Lingxi:由过程性知识引导扩展增强的仓库级问题解决框架
Lingxi: Repository-Level Issue Resolution Framework Enhanced by Procedural Knowledge Guided Scaling
AI总结:
针对基于LLM的智能体在仓库级问题解决中缺乏过程性知识及盲目探索的局限,本文提出Lingxi框架,利用从历史数据中分层提取的过程性知识指导智能体多角度分析问题,在SWE-bench Verified上取得74.6%的解决率,显著超越现有技术。
摘要:
受大型语言模型(LLMs)进展的推动,基于LLM的智能体在软件工程任务中取得了显著改进,但在复杂的仓库级问题解决上仍面临困难。现有的基于智能体的方法存在两个关键局限。首先,它们缺乏过程性知识(即问题是如何一步步修复的及其背后的原理)以供学习和利用于问题解决。其次,它们依赖海量计算能力来盲目探索解决方案空间。为了解决这些局限,我们提出了Lingxi,这是一个利用从历史问题修复数据中提取的过程性知识来指导智能体解决仓库级问题的问题解决框架。Lingxi首先通过分层抽象机制离线构建这些知识,使智能体能够学习修复背后的“如何做”和“为什么”,而不仅仅是最终解决方案。在在线应用中,它采用知识驱动的扩展方法,利用相似问题的过程性知识从多个角度智能分析目标问题,这与无向的暴力探索形成鲜明对比。在Past@1设置下,Lingxi在SWE-bench Verified基准上成功解决了74.6%的Bug,以显著优势(5.4%至14.9%)超越了五种最先进的技术。我们全面的消融研究证实,Lingxi的成功直接源于其对过程性知识的使用。若没有它,仅靠扩展带来的性能提升微乎其微。我们的定性研究进一步表明,“设计模式与编码实践”是最关键的知识方面,且不同知识方面的作用在不同阶段(即分析、规划和修复)会发生切换。
英文摘要:
Driven by the advancements of Large Language Models (LLMs), LLM-powered agents are making significant improvements in software engineering tasks, yet struggle with complex, repository-level issue resolution. Existing agent-based methods have two key limitations. First, they lack of procedural knowledge (i.e., how an issue is fixed step-by-step and rationales behind it) to learn and leverage for issue resolution. Second, they rely on massive computational power to blindly explore the solution space. % To address those limitations, we propose Lingxi, an issue resolution framework that leverages procedural knowledge extracted from historical issue-fixing data to guide agents in solving repository-level issues. \ourTool first constructs this knowledge offline through a hierarchical abstraction mechanism, enabling agents to learn the how and why behind a fix, not just the final solution. During online application, it employs a knowledge-driven scaling method that leverages the procedural knowledge of similar issues to intelligently analyze the target issue from multiple perspectives, in sharp contrast to undirected, brute-force exploration. % Lingxi successfully resolves 74.6\% of bugs on the SWE-bench Verified benchmark in Past@1 setting, outperforming five state-of-the-art techniques by a significant margin (5.4\% to 14.9\%). Our comprehensive ablation study confirmed that the success of Lingxi comes directly from its use of procedural knowledge. Without it, the performance gains from scaling alone is negligible. Our qualitative study further shows that the ``design patterns $\&$ coding practices'' is the most critical knowledge aspect, and that the roles of different knowledge aspects switch across different stages (i.e., analysis, planning, and fixing).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。