arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.00129cs.LGcs.SE
收藏

基于大语言模型的执行引导程序修复的蒙特卡罗树搜索

Monte Carlo Tree Search for Execution-Guided Program Repair with Large Language Models

Illinois Institute of Technology Chicago, USA(伊利诺伊理工学院芝加哥分校)

Yixuan Liang

AI总结:

CodePilot结合MCTS和大语言模型,通过执行反馈引导程序修复,实现高效的问题解决。

摘要:

自动化程序修复仍面临挑战,因为需要长周期推理和自回归解码的限制。我们提出了CodePilot,一种将蒙特卡罗树搜索(MCTS)与大语言模型结合的混合框架,用于实时世界GitHub问题的执行引导程序修复。CodePilot从仓库到文件和函数级别进行分层故障定位,使用MCTS探索多样的补丁轨迹,并利用执行反馈作为奖励信号来引导搜索和细化。该框架进一步结合了置信度校准生成,以选择性地细化低置信度输出。在SWE-bench Lite上的实验表明,CodePilot使用开放式权重模型实现了24.67%的问题解决率,优于可比基线。这些结果表明,结合符号搜索与神经语言模型是实现可扩展的执行感知软件工程自动化的有效策略。

英文摘要:

Automated program repair with large language models remains challenging at the repository level due to long-horizon reasoning requirements and the limitations of autoregressive decoding. We present CodePilot, a hybrid framework that integrates Monte Carlo Tree Search (MCTS) with large language models to enable execution-guided program repair for real-world GitHub issues. CodePilot performs hierarchical fault localization from repository to file and function level, explores diverse patch trajectories using MCTS, and leverages execution feedback as a reward signal to guide search and refinement. The framework further incorporates confidence-calibrated generation to selectively refine low-confidence outputs. Experiments on SWE-bench Lite demonstrate that CodePilot achieves a 24.67% issue resolution rate using open-weight models, outperforming comparable baselines. These results suggest that combining symbolic search with neural language models is an effective strategy for scalable, execution-aware software engineering automation.

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

↑