Accurate requirement-to-code traceability is crucial for software maintenance. However, existing IR- and embedding-based methods are heavily dependent on lexical similarity, often yielding incomplete or inconsistent links across projects and languages and incurring high cost from long-context retrieval and prompting. This paper presents R2Code, an LLM-based semantic traceability framework designed to improve trace link accuracy while reducing inference cost. R2Code integrates three components: 1) a decomposition-enhanced Bidirectional Alignment Network (BAN) that aligns four-layer requirement semantics with corresponding code structures to support cross-level semantic matching; 2) a Self-Reflective Consistency Verification (SRCV) module that conducts explanation-guided consistency checking to calibrate link reliability; and 3) a Dynamic Context-Adaptive Retrieval (DCAR) mechanism that adjusts retrieval granularity and filters contexts using semantic-overlap weighting for efficient context utilization. Experiments on five public datasets spanning multiple domains and two programming languages demonstrate that R2Code consistently outperforms the strongest baselines, achieving an average F1 gain of 7.4%, while reducing token consumption by up to 41.7% through adaptive context control.
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(西澳大学)
Coordinating Stakeholders in the Consideration of Performance Indicators and Respective Interface Requirements for Automated Vehicles
Institute for Control Engineering, TU Braunschweig(Brunswick理工大学控制工程研究所);Institute of Automotive Engineering, TU Darmstadt(达姆施塔特工业大学汽车工程研究所);Chair of Embedded Software, RWTH Aachen University(亚琛工业大学嵌入式软件讲席)
Citation Discipline in Spec-Driven Development: A Cross-Model Empirical Study of Output Determinism and Automated Hallucination Detection in LLM-Generated Code