AEGIS: Evidence-Guided Set Decisions for Requirement-to-Code Traceability
Zhiyao Wang, Yiming Peng, Munan Li, Mingyue Zhang, Guanghong Li, Jialong Li, Tatsuhiro Tsuchiya
Abstract
Requirement-to-code traceability recovery identifies code artifacts that implement a requirement, but manual review costs limit how many candidates developers can inspect. Code relations can reveal candidates missed by textual retrieval, yet can also introduce code unrelated to the requirement. We propose AEGIS, which combines retrieval evidence and code relations to construct and revise trace sets under a project-wide review budget. Grouped retrieval and semantic retrieval supply candidates. A set objective combines relevance to the requirement with structural compatibility. Local search constructs sets of different sizes, and dynamic programming selects one set per requirement within the budget. Call-context admission then compares replacements using evidence from arguments and return values in calls involving protected members, while bounding retrieval-score loss. Across 13 projects, AEGIS achieves the highest project-macro average on nine of ten evaluation metrics among the compared methods. Relative to same-corpus adaptations of TAROT-VSM and FTLR+MC, it improves F@5 by 33.21% and 52.28%, and MAP by 38.58% and 49.08%, respectively.
Create a lesson
Metadata
- Comments
- Code, data, and supplementary material: https://doi.org/10.5281/zenodo.23944184
Related papers
Scientific Coding with Large Language Models: Evidence from Finite Element Analysis
Shared title terminologycs.SEErfan Hamdi, Joel Shor, Emma Lejeune
Below the Stopwatch: Checking the Performance Claims of Coding Agents in the Kernel
Shared title terminologycs.SEYuvraj Sehgal, Sneh Patel, Mahsa Panahandeh et al.
Decision Models for Definition-Driven GitHub Actions Workflow Smell Detection
Shared title terminologycs.SERohit Gheyi, Anderson Uchôa, Wesley Assunção et al.
Diffs Are Cheap, Show Me the Trajectory: An Empirical Study of Trajectory-Informed Code Review
Shared title terminologycs.SEZijian Luo, Pengfei Gao, Dayi Lin et al.
Useful but Unwieldy: How Software Engineers Perceive the Design of Chain-of-Thought Explanations in Coding Agents
Shared title terminologycs.SECarlos Rafael Catalan, Lheane Marie Dizon, Patricia Nicole Monderin et al.
sudo L7: Can Coding Agents Act Like Staff Engineers?
Shared title terminologycs.SENick Heiner, Ian Niebres, Suhaas Garre et al.