Abstract
Automated issue-commit linking is essential for maintaining software traceability, yet current state-of-the-art (SOTA) models are often evaluated on benchmarks that fail to reflect the complexity of real-world repositories. This paper identifies a critical flaw in existing evaluation methodologies and introduces the Realistic Distribution Setting (RDS), a framework that dynamically constructs candidate pools based on actual repository activity. To address the challenges of RDS, the authors propose EasyLink, a training-free, two-stage approach combining vector retrieval with LLM-assisted reranking. EasyLink achieves a 75.03% Precision@1, representing a 420% improvement over previous SOTA models in realistic scenarios.
Introduction
In software development, linking an issue (such as a bug report or feature request) to the specific code changes (the commit) that resolved it is vital for regression testing, impact analysis, and security auditing. While recent deep learning models have claimed high accuracy in automating this task, their evaluations typically rely on a simplified "closed-world" assumption. In these benchmarks, models are asked to identify the correct commit from a tiny pool of just 99 random decoys. In reality, an active repository may generate thousands of commits during the time an issue remains open, making the task of finding the correct fix significantly more difficult.
The Realistic Distribution Setting (RDS)
To bridge the gap between academic benchmarks and real-world software engineering, the authors propose the Realistic Distribution Setting (RDS). Unlike prior work that uses a fixed number of random false links, RDS includes all commits made within a one-year window of an issue's creation.
Under RDS, the average number of false links per issue increases from 99 to over 1,500. When tested in this realistic environment, the performance of previous SOTA models like EALink plummeted by more than half, dropping from 53.67% to just 14.43% Precision@1. This "Emperor Has No Clothes" moment reveals that existing tools struggle to differentiate true fixes from plausible-but-unrelated commits in dense repositories.
EasyLink: A Two-Stage Retrieval Framework
The authors introduce EasyLink, a methodology that abandons heavy, project-specific model training in favor of modern Information Retrieval (IR) and Large Language Model (LLM) reasoning. The framework operates in two stages:
- Stage 1 (Vector Retrieval): EasyLink uses a lightweight embedding model (MiniLM) to convert issue descriptions and commit messages into vectors, storing them in a FAISS vector database. It efficiently retrieves the top-$k$ most semantically similar commits from the repository.
- Stage 2 (LLM Reranking): Because textually similar commits often mention the same files or libraries without being the actual fix (the "semantic gap"), EasyLink passes the top 10 candidates to an LLM (GPT-4o). The LLM acts as a reasoning engine to rerank the commits based on logical relevance rather than just keyword overlap.
Key Results and Insights
The authors constructed a massive benchmark comprising 9,319 unique issues across 20 open-source projects, including Apache Airflow and NetBeans. The results highlight the dominance of the EasyLink approach:
- Performance Dominance: EasyLink achieved an average Precision@1 of 75.03%, outperforming the previous SOTA (EALink) by over 400% on the RDS dataset.
- Zero Training Required: Unlike EALink, which required over 100 hours of training across 20 projects, EasyLink requires no task-specific training and is faster during the testing phase.
- The Power of Baselines: Astonishingly, the vector database alone (Stage 1) outperformed heavily trained SOTA models, suggesting that the community has neglected strong, simple IR baselines.
Conclusion
EasyLink demonstrates that combining efficient vector retrieval with the reasoning capabilities of LLMs can solve complex software traceability tasks without the need for expensive, project-specific training. While the use of commercial LLM APIs incurs a minor cost, the dramatic increase in accuracy and the elimination of training overhead make it a highly practical solution for modern software repositories. Future work will explore extending this architecture to other traceability tasks, such as mapping high-level requirements directly to code changes.
Summary updated