回归基础:用大语言模型辅助检索重新思考Issue-Commit关联
Back to the Basics: Rethinking Issue-Commit Linking with LLM-Assisted Retrieval
AI总结:
该研究针对现有issue-commit关联评估脱离实际的问题,提出真实分布设置构建更贴合实际的数据集,发现传统信息检索方法优于当前深度学习方法,进而提出结合向量数据库与大语言模型重排序的EasyLink方法,性能提升超四倍,并给出研究实用指南。
摘要:
Issue-commit关联(将问题与修复它们的提交关联起来)对软件维护至关重要。现有方法在自动恢复这些关联方面已展现出前景。对这些技术的评估会测试它们从看似合理但错误的关联中识别真实关联的能力。然而,这些评估忽略了一个事实:在实际场景中,当代码仓库有更多提交时,更多看似合理却无关的提交可能会干扰工具区分正确修复提交的能力。为解决这一问题,我们提出了真实分布设置(Realistic Distribution Setting,RDS),并利用它构建了一个包含20个开源项目的更贴合实际的评估数据集。通过在该数据集上评估工具,我们发现当前最优的基于深度学习的方法性能下降超过一半,而传统的信息检索方法VSM(向量空间模型)表现更优。受这些观察启发,我们提出了EasyLink,它采用向量数据库作为现代信息检索技术。为解决长期存在的issue与commit之间的语义鸿沟问题,EasyLink利用大语言模型对从数据库检索到的提交进行重排序。在我们的评估中,EasyLink的平均Precision@1达到75.03%,比当前最优方法提升了四倍多。此外,本文还为推进issue-commit关联恢复研究提供了实用指南。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。