arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.12232cs.SEcs.AI
收藏

LinkAnchor:一个基于自主LLM的代理用于问题到提交链接恢复

LinkAnchor: An Autonomous LLM-Based Agent for Issue-to-Commit Link Recovery

Bowling Green State University(伯灵顿州立大学);University of Nebraska-Lincoln(内布拉斯加大学林肯分校);University of Zurich(苏黎世大学)

Arshia Akhavan, Alireza Hoseinpour, Abbas Heydarnoori, Hamid Bagheri, Mehdi Keshani

AI总结:

针对软件仓库中问题到提交链接恢复的挑战,本文提出LinkAnchor,通过懒惰访问架构动态检索相关数据,提升链接恢复的准确性和效率。

摘要:

在软件仓库中,问题到提交链接恢复对于软件追溯和项目管理至关重要,但仍然是一项具有挑战性的任务。先前研究表明,仅约42.2%的GitHub问题正确链接到其提交,凸显了需要更有效解决方案的必要性。现有工作已探索了多种ML/DL方法,最近大语言模型(LLMs)被应用于该问题。然而,这些方法面临两个主要限制。首先,LLMs受限于有限的上下文窗口,无法同时处理所有可用的数据源,如长提交历史、广泛的讨论和大型代码库。其次,大多数方法针对单个问题-提交对,其中模型独立评分单个提交与问题的相关性。这种成对方法未能考虑软件修复的复杂关联性,即一个问题通常由一系列提交的聚合链解决,而不是单一原子变更。通过忽略这些时间和父依赖关系,现有方法往往无法纳入完整的解决逻辑,可能将中间提交误认为最终修复。此外,这种策略在大型仓库中计算效率低下,因为它需要穷举大量候选对。为了解决这些挑战,我们提出了LinkAnchor,这是首个专门针对问题到提交链接恢复的自主LLM代理。LinkAnchor引入了一种懒惰访问架构,使底层LLM能够动态检索最相关的内容数据,如提交、问题评论和代码文件,而不会超过令牌限制。

英文摘要:

Issue-to-commit link recovery in software repositories is fundamental to software traceability and project management, yet it remains a challenging task. Prior studies show that only about 42.2% of issues on GitHub are correctly linked to their commits, highlighting the need for more effective solutions. Existing work has explored a range of ML/DL approaches, and more recently, large language models (LLMs) have been applied to this problem. However, these methods face two major limitations. First, LLMs are restricted by limited context windows and cannot simultaneously process all available data sources, such as long commit histories, extensive issue discussions, and large code repositories. Second, most approaches operate on individual issue-commit pairs, where a model independently scores the relevance of a single commit to an issue. This pairwise formulation fails to account for the complex associativity of software fixes, where an issue is often resolved by an aggregate chain of commits rather than a single atomic change. By ignoring these temporal and parental dependencies, existing methods often fail to incorporate the complete resolution logic and might misidentify intermediate commits as final fixes. Furthermore, this strategy is computationally inefficient in large repositories, as it requires exhaustively evaluating an enormous number of candidate pairs. To address these challenges, we present LinkAnchor, the first autonomous LLM-based agent designed specifically for issue-to-commit link recovery. LinkAnchor introduces a lazy-access architecture that allows the underlying LLM to dynamically retrieve only the most relevant contextual data, such as commits, issue comments, and code files, without exceeding token limits.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑