English

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

Machine Learning 2026-02-03 v1 Software Engineering

Abstract

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.

Keywords

Cite

@article{arxiv.2602.00129,
  title  = {Monte Carlo Tree Search for Execution-Guided Program Repair with Large Language Models},
  author = {Yixuan Liang},
  journal= {arXiv preprint arXiv:2602.00129},
  year   = {2026}
}

Comments

10 pages, 5 figures. Submitted to a conference workshop

R2 v1 2026-07-01T09:28:28.744Z