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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autor principal: Liang, Yixuan
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911412273545216
author Liang, Yixuan
author_facet Liang, Yixuan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_00129
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Monte Carlo Tree Search for Execution-Guided Program Repair with Large Language Models
Liang, Yixuan
Machine Learning
Software Engineering
68T50 68N20
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.
title Monte Carlo Tree Search for Execution-Guided Program Repair with Large Language Models
topic Machine Learning
Software Engineering
68T50 68N20
url https://arxiv.org/abs/2602.00129