Back to the Basics: Rethinking Issue-Commit Linking with LLM-Assisted Retrieval
Huihui Huang, Ratnadira Widyasari, Ting Zhang, Ivana Clairine Irsan, Jieke Shi, Han Wei Ang, Frank Liauw, Eng Lieh Ouh, Lwin Khin Shar, Hong Jin Kang, David Lo
TL;DR
This work tackles issue-commit linking by exposing realism gaps in prior evaluations and introducing Realistic Distribution Setting (RDS) to build a large, practical benchmark across 20 open-source projects. It demonstrates that a modern IR baseline (vector database) can outperform state-of-the-art deep learning approaches when evaluated under realistic conditions, and that adding a lightweight LLM reranking stage (EasyLink) yields substantial gains, achieving an average Precision@1 of 75.03%. Key findings show EasyLink outperforms previous methods by large margins on realistic data, with the LLM component providing meaningful semantic refinement and the vector-DB stage offering scalable retrieval. The paper offers practical guidelines and an accessible replication package, advancing research in software traceability and issue-commit link recovery.
Abstract
Issue-commit linking, which connects issues with commits that fix them, is crucial for software maintenance. Existing approaches have shown promise in automatically recovering these links. Evaluations of these techniques assess their ability to identify genuine links from plausible but false links. However, these evaluations overlook the fact that, in reality, when a repository has more commits, the presence of more plausible yet unrelated commits may interfere with the tool in differentiating the correct fix commits. To address this, we propose the Realistic Distribution Setting (RDS) and use it to construct a more realistic evaluation dataset that includes 20 open-source projects. By evaluating tools on this dataset, we observe that the performance of the state-of-the-art deep learning-based approach drops by more than half, while the traditional Information Retrieval method, VSM, outperforms it. Inspired by these observations, we propose EasyLink, which utilizes a vector database as a modern Information Retrieval technique. To address the long-standing problem of the semantic gap between issues and commits, EasyLink leverages a large language model to rerank the commits retrieved from the database. Under our evaluation, EasyLink achieves an average Precision@1 of 75.03\%, improving over the state-of-the-art by over four times. Additionally, this paper provides practical guidelines for advancing research in issue-commit link recovery.
