paperbot · PL 论文追踪

全部论文 待读 收藏

P2 PRCBERT: Prompt Learning for Requirement Classification using BERT-based Pretrained Language Models

PRCBERT:基于 BERT 预训练语言模型提示学习的需求分类
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 1/10 · 该论文将提示学习与 BERT 用于软件需求分类,属于需求工程/NLP应用;与用户关注的核心方向(程序静态分析、Agentic 程序分析、LLM 改进静态分析/形式化验证、浮点或贝叶斯程序分析)几乎没有交集。虽然涉及提示学习,但并非将 LLM/Agent 作为程序分析工具,也不涉及编程语言理论或程序验证。引用 83 inbox
Xianchang Luo, Yinxing Xue, Zhenchang Xing, Jiamou Sun
crossref: 2026-09-12

AI 速览

一句话:提出 PRCBERT,用灵活提示模板与 BERT 预训练语言模型实现需求分类,性能优于 NoRBERT。

需求分类是需求工程中的长期重要问题,已有工作多采用 SVM、决策树等传统机器学习方法,近期最先进的 NoRBERT 借助预训练语言模型 BERT 取得了较好效果,但其使用的 PROMISE 数据集仅含数百条需求且内容已过时,所用 NLP 技术也可能落后。本文提出基于 BERT 类预训练语言模型的提示学习需求分类方法 PRCBERT,通过设计灵活的提示模板实现准确分类。作者在 PROMISE、NFR-Review 两个小规模数据集以及自建的大规模需求数据集 NFR-SO 上开展实验,结果表明 PRCBERT 的分类性能优于 NoRBERT 和采用标准提示模板的 MLM-BERT。此外,在去标签的 NFR-Review 与 NFR-SO 数据集上,在 PROMISE 上微调得到的 Trans_PRCBERT 结合自学习策略后,分别取得 53.27% 与 72.96% 的 F1 值,展现出可接受的零样本性能。

问题
软件需求分类中,现有数据集规模小且内容过时,已有 NLP 方法(如 NoRBERT)可能已不再先进,分类性能有待提升。
方法
提出 PRCBERT,采用基于 BERT 预训练语言模型的提示学习,设计灵活提示模板完成需求分类,并可微调为 Trans_PRCBERT 以支持跨数据集零样本迁移。
评估
在 PROMISE、NFR-Review 及自建大规模数据集 NFR-SO 上与 NoRBERT、MLM-BERT 对比分类性能;并在去标签数据上结合自学习策略评估零样本 F1。
原文摘要(Abstract)

Software requirement classification is a longstanding and important problem in requirement engineering. Previous studies have applied various machine learning techniques for this problem, including Support Vector Machine (SVM) and decision trees. With the recent popularity of NLP technique, the state-of-the-art approach NoRBERT utilizes the pre-trained language model BERT and achieves a satisfactory performance. However, the dataset PROMISE used by the existing approaches for this problem consists of only hundreds of requirements that are outdated according to today’s technology and market trends. Besides, the NLP technique applied in these approaches might be obsolete. In this paper, we propose an approach of prompt learning for requirement classification using BERT-based pretrained language models (PRCBERT), which applies flexible prompt templates to achieve accurate requirements classification. Experiments conducted on two existing small-size requirement datasets (PROMISE and NFR-Review) and our collected large-scale requirement dataset NFR-SO prove that PRCBERT exhibits moderately better classification performance than NoRBERT and MLM-BERT (BERT with the standard prompt template). On the de-labeled NFR-Review and NFR-SO datasets, Trans_PRCBERT (the version of PRCBERT which is fine-tuned on PROMISE) is able to have a satisfactory zero-shot performance with 53.27% and 72.96% F1-score when enabling a self-learning strategy.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7272,
  title = {PRCBERT: Prompt Learning for Requirement Classification using BERT-based Pretrained Language Models},
  author = {Xianchang Luo and Yinxing Xue and Zhenchang Xing and Jiamou Sun},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3560417}
}