Traceability, the ability to trace relevant software artifacts to support reasoning about the quality of the software and its development process, plays a crucial role in requirements and software engineering, particularly for safety-critical systems. In this chapter, we provide a comprehensive overview of the representative tasks in requirement traceability for which natural language processing (NLP) and related techniques have made considerable progress in the past decade. We first present the definition of traceability in the context of requirements and the overall engineering process, as well as other important concepts related to traceability tasks. Then, we discuss two tasks in detail, including trace link recovery and trace link maintenance. We also introduce two other related tasks concerning when trace links are used in practical contexts. For each task, we explain the characteristics of the task, how it can be approached through NLP techniques, and how to design and conduct the experiment to demonstrate the performance of the NLP techniques. We further discuss practical considerations on how to effectively apply NLP techniques and assess their effectiveness regarding the data set collection, the metrics selection, and the role of humans when evaluating the NLP approaches. Overall, this chapter prepares the readers with the fundamental knowledge of designing automated traceability solutions enabled by NLP in practice.
An Empirical Study on the Impact of Normalized Use-Case Specifications on Traceability
College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院);State Key Laboratory of Complex & Critical Software Environment(复杂与关键软件环境国家重点实验室)
Enhancing Requirements Traceability Link Recovery: A Novel Approach with T-SimCSE
School of Computer Science and Technology, Zhejiang Gongshang University(浙江工商大学计算机科学与技术学院);Zhejiang Key Laboratory of Big Data and Future E-Commerce Technology(浙江省大数据与未来电子商务技术重点实验室);Department of Computer Science, The University of Manchester(曼彻斯特大学计算机科学系)
TraceLLM: Leveraging Large Language Models with Prompt Engineering for Enhanced Requirements Traceability
KFUPM(国王法赫德石油矿物大学);Imam Abdulrahman Bin Faisal University(伊玛目阿卜杜勒拉赫曼·本·费萨尔大学);SDAIA–KFUPM Joint Research Center of Artificial Intelligence, KFUPM(沙特数据与人工智能中心-国王法赫德石油矿物大学人工智能联合研究中心);University of Quebec in Montreal(蒙特利尔魁北克大学)
TraceDev: A Traceability-Driven Multi-agent Framework for Requirement-to-Code Development
Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Shenzhen Key Laboratory of Internet Information Collaboration, Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳)深圳市互联网信息协同重点实验室);State Key Laboratory of Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);Beijing Institute of Control Engineering(北京控制工程研究所)
Classifier or Prompt: A Case Study on Legal Requirements Traceability
University of Ottawa(渥太华大学);University of Luxembourg(卢森堡大学);Monash University(蒙纳士大学);Lero Research Ireland centre for Software Research(Lero爱尔兰软件研究中心);University of Limerick(利默里克大学)
Synergistic Enhancement of Requirement-to-Code Traceability: A Framework Combining Large Language Model based Data Augmentation and an Advanced Encoder
Hangzhou Normal University(杭州师范大学);University of North Florida(北佛罗里达大学);Jiangxi Provincial Institute of Cyber Security(江西省网络安全研究院)
Large Language Models for Requirements Engineering: A Cross-Task Empirical Evaluation
University of Limerick(利默里克大学);Trinity College Dublin (TCD)(都柏林三一学院);Consiglio Nazionale delle Ricerche (CNR)(意大利国家研究委员会);University of Padova(帕多瓦大学);The Open University(开放大学)
College of Computer Sciences & Mathematics(计算机科学与数学学院)
需求可追溯性是在软件开发生存周期的早期阶段确保软件质量的重要步骤。需求跟踪通常包括文档解析、候选链接生成和评估以及可追溯性分析。本文证明了统计术语提取指标生成候选链接的适用性。它是应用和验证使用两个数据集和四种类型的过滤器,每个数据集,0.2和0.25中分辨率成像光谱仪,0和0.05 CM 1。该方法生成文本需求工件之间的需求跟踪矩阵(例如跟踪到低级需求的高级需求)。所提出的方法包括十个词频度量分为三个主要组计算的频率的条款。结果表明,与传统的TF-IDF方法相比,该方法具有更好的效果。
On the Impact of Requirement Smells in LLM-Based Code Generation
fortiss GmbH(fortiss有限公司);Netlight Consulting(Netlight咨询公司);Technical University of Munich(慕尼黑工业大学);Chalmers University of Technology(查尔姆斯理工大学);Trinity College Dublin(都柏林三一学院);University of Duisburg-Essen(杜伊斯堡-埃森大学);Blekinge Institute of Technology(布莱金厄理工学院)
Model-Driven Discipline for Multi-Agent LLMs: Requirement-to-Verification Generation of Traceable System Models
Lancaster University(兰卡斯特大学);Tsinghua University(清华大学);Harbin Institute of Technology(哈尔滨工业大学);Dalian University of Technology(大连理工大学);Southeast University(东南大学);Loughborough University(拉夫堡大学)
Natural Language-Programming Language Software Traceability Link Recovery Needs More than Textual Similarity
School of Computer Science and Artificial Intelligence, Wuhan Textile University(计算机科学与人工智能学院,武汉纺织大学);School of Computer Science, Wuhan University(计算机科学学院,武汉大学);The University of Melbourne(墨尔本大学);The University of Western Australia(西澳大学)
Benchmarking Requirement-to-Architecture Generation with Hybrid Evaluation
State Key Laboratory of Complex & Critical Software Environment School of Computer Science and Engineering Beihang University, Beijing, China(北京航空航天大学计算机科学与工程学院复杂与关键软件环境国家重点实验室)