paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Using Consensual Biterms from Text Structures of Requirements and Code to Improve IR-Based Traceability Recovery

利用需求与代码文本结构中的共识双词项改进基于信息检索的可追溯性恢复
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 1/10 · 该论文研究基于信息检索的需求-代码追溯恢复,核心是文本结构中的双词项增强 IR,不涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户研究画像的核心方向基本无关。引用 22 inbox
Hui Gao, Hongyu Kuang, Kexin Sun, Xiaoxing Ma, Alexander Egyed, Patrick Mäder, Guoping Rong, Dong Shao, He Zhang
crossref: 2026-09-12

AI 速览

一句话:提出从需求与代码文本结构提取共识双词项,增强信息检索模型以提升需求-代码追溯链接恢复性能。

软件制品间的追溯链接对开发很有价值,但人工恢复成本高且易出错。基于信息检索(IR)的自动方法依赖制品文本相似度,而需求与代码文本质量低、数量少会降低 IR 值并制约性能。本文提出从需求与代码的文本结构中提取共现词对,即共识双词项:先依据需求文本的词性收集双词项,再用代码文本过滤,最后用这些双词项扩充 IR 输入语料并增强 IR 值计算。基于九个系统的评估表明,仅用于增强 IR 技术时,该方法在 AP 上分别比纯 IR 方法和另一基线高 21.9% 与 21.8%,在 MAP 上高 9.3% 与 7.2%;与另一种不同视角的增强策略协作时,仍比该基线在 AP 和 MAP 上高 5.9% 与 4.8%。

问题
需求与代码之间的人工追溯链接恢复成本高、易出错,而基于 IR 的自动恢复方法受制品文本质量和数量不足影响,计算出的文本相似度不准确。
方法
从需求文本中按词性收集共现词对,并利用代码文本过滤得到共识双词项,再将其用于扩充 IR 输入语料和增强 IR 值计算。
评估
在九个系统上进行评估,比较 AP 与 MAP 指标;既测试单独增强 IR 技术的效果,也测试与另一种增强策略协作时的效果。
原文摘要(Abstract)

Traceability approves trace links among software artifacts based on whether two artifacts are related by system functionalities. The traces are valuable for software development, but are difficult to obtain manually. To cope with the costly and fallible manual recovery, automated approaches are proposed to recover traces through textual similarities among software artifacts, such as those based on Information Retrieval (IR). However, the low quality & quantity of artifact texts negatively impact the calculated IR values, thus greatly hindering the performance of IR-based approaches. In this study, we propose to extract co-occurred word pairs from the text structures of both requirements and code (i.e., consensual biterms) to improve IR-based traceability recovery. We first collect a set of biterms based on the part-of-speech of requirement texts, and then filter them through the code texts. We then use these consensual biterms to both enrich the input corpus for IR techniques and enhance the calculations of IR values. A nine-system-based evaluation shows that in general, when solely used to enhance IR techniques, our approach can outperform pure IR-based approaches and another baseline by 21.9% & 21.8% in AP, and 9.3% & 7.2% in MAP, respectively. Moreover, when used to collaborate with another enhancing strategy from different perspectives, it can outperform this baseline by 5.9% in AP and 4.8% in MAP.

链接与引用

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

BibTeX
@inproceedings{paperbot7266,
  title = {Using Consensual Biterms from Text Structures of Requirements and Code to Improve IR-Based Traceability Recovery},
  author = {Hui Gao and Hongyu Kuang and Kexin Sun and Xiaoxing Ma and Alexander Egyed and Patrick Mäder and Guoping Rong and Dong Shao and He Zhang},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3556948}
}