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

Yixuan Liang
1/28/2026
cs.LGcs.SE

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liang2026monte,
  title  = {Monte Carlo Tree Search for Execution-Guided Program Repair with Large Language Models},
  author = {Yixuan Liang},
  year   = {2026},
  eprint = {2602.00129},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00129v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00129.svg)](https://codeofpaper.com/paper/2602.00129)

Discussion