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

一个工具就够了:面向仓库级LLM智能体的强化学习

One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agents

National Key Laboratory for Multimedia Information Processing, Peking University(信息处理国家级重点实验室,北京大学);School of Computer Science, Peking University(北京大学计算机科学学院);Zhongguancun Institute of Artificial Intelligence (ZGCI)(中关村人工智能研究院(ZGCI));Baidu Inc(百度公司)

Zhaoxi Zhang, Yitong Duan, Yanzhi Zhang, Yiming Xu, Zhixiang Wang, Kun Liang, Weikang Li, Jiahui Liang, Deguo Xia, Jizhou Huang, Jiyan He, Yunfang Wu

AI总结:

提出RepoNavigator,一个仅配备单一执行感知工具(跳转到调用符号定义)的LLM智能体,通过强化学习端到端训练,在仓库级问题定位中达到最先进性能。

摘要:

在大型软件仓库中定位需要修改的文件和函数由于规模和结构复杂性而具有挑战性。现有的基于LLM的方法通常将其视为仓库级检索任务,并依赖多个辅助工具,这些工具常常忽略代码执行逻辑并使模型控制复杂化。我们提出RepoNavigator,一个配备单一执行感知工具的LLM智能体:跳转到调用符号的定义。这种统一设计反映了代码执行的实际流程,同时简化了工具操作。RepoNavigator通过强化学习(RL)直接从基础预训练模型进行端到端训练,不依赖闭源蒸馏。实验表明,经过RL训练的RepoNavigator实现了最先进的性能,7B模型优于14B基线,14B模型超越32B竞争对手,32B模型在大多数指标上超过闭源模型如GPT-5。这些结果证实,将单一的、结构基础的工具与RL训练相结合,为仓库级问题定位提供了高效且可扩展的解决方案。

英文摘要:

Locating files and functions requiring modification in large software repositories is challenging due to their scale and structural complexity. Existing LLM-based methods typically treat this as a repository-level retrieval task and rely on multiple auxiliary tools, which often overlook code execution logic and complicate model control. We propose RepoNavigator, an LLM agent equipped with a single execution-aware tool: jumping to the definition of an invoked symbol. This unified design reflects the actual flow of code execution while simplifying tool manipulation. RepoNavigator is trained end-to-end via Reinforcement Learning (RL) directly from a base pretrained model, without relying on closed-source distillation. Experiments demonstrate that RL-trained RepoNavigator achieves state-of-the-art performance, with the 7B model outperforming 14B baselines, the 14B model surpassing 32B competitors, and the 32B model exceeding closed-source models such as GPT-5 on most metrics. These results confirm that integrating a single, structurally grounded tool with RL training provides an efficient and scalable solution for repository-level issue localization.

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

↑