paper-with-me

홈 › Papers

Semantic-guided Search for Efficient Program Repair with Large Language Models

2024-10-22 · Thanh Le-Cong, Bach Le, Toby Murray

In this paper, we first show that increases in beam size of even just small-sized LLM (1B-7B parameters) require an extensive GPU resource consumption, leading to up to 80% of recurring crashes due to memory overloads in LLM-based APR. Seemingly simple solutions to reduce memory consumption are (1) to quantize LLM models, i.e., converting the weights of a LLM from high-precision values to lower-precision ones. and (2) to make beam search sequential, i.e., forwarding each beam through the model sequentially and then concatenate them back into a single model output. However, we show that these approaches still do not work via both theoretical analysis and experiments. To address this, we introduce FLAMES, a novel LLM-based APR technique that employs semantic-guided patch generation to enhance repair effectiveness and memory efficiency. Unlike conventional methods that rely on beam search, FLAMES utilizes greedy decoding to enhance memory efficiency while steering the search to more potentially good repair candidates via a semantic-guided best-first search algorithm. At each decoding step, FLAMES uses semantic feedback from test validation such as the number of passing and failing test cases to select the most promising token to explore further. Our empirical evaluation on the Defects4J and HumanEval-Java datasets shows that FLAMES not only substantially reduces memory consumption by up to 83% compared to conventional LLM-based APR, but also accelerates the repair process. Remarkably, FLAMES successfully generated 133 and 103 correct fixes for 333 and 163 bugs in the Defects4J and HumanEval-Java datasets, respectively. This suggests that FLAMES is not only more efficient but also outperforms state-of-the-art techniques, fixing at least 10 and 11 more bugs than SOTA baselines in the Defects4J and HumanEval-Java datasets, respectively.

📄 PDF Abstract BibTeX arXiv:2410.16655

Code (0)

등록된 구현이 없습니다.

Tasks

GPUHumanEvalProgram Repair

Similar Papers 제목 키워드 기반

VIBEPASS: Can Vibe Coders Really Pass the Vibe Check?

2026-03-16 · Srijan Bansal, Jiao Fangkai, Yilun Zhou, Austin Xu 외 arxiv

As Large Language Models shift the programming toward human-guided ''vibe coding'', agentic coding tools increasingly rely on models to self-diagnose and repair their own subtle faults -- a capability central to autonomo…

Program Repair

Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spaces

2025-05-23 · André Silva, Gustav Thorén, Martin Monperrus

Automatic program repair seeks to generate correct code from buggy programs, with most approaches searching the correct program in a discrete, symbolic space of source code tokens. This symbolic search is fundamentally l…

Program Repair

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

2026-01-28 · Yixuan Liang arxiv

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 fr…

Program Repair

Counterexample Guided Program Repair Using Zero-Shot Learning and MaxSAT-based Fault Localization

2024-12-19 · Pedro Orvalho, Mikoláš Janota, Vasco Manquinho

Automated Program Repair (APR) for introductory programming assignments (IPAs) is motivated by the large number of student enrollments in programming courses each year. Since providing feedback on IPAs requires substanti…

Fault localizationProgram RepairZero-Shot Learning

Fix Initial Programs and Iteratively Refine Repair Instructions Toward Non-Elimination Multi-Turn Program Correction

2026-04-27 · Yuto Tanaka, Issei Sato arxiv

Recent work on large language models (LLMs) has emphasized the importance of scaling inference compute. From this perspective, the state-of-the-art method Scattered Forest Search (SFS) has been proposed, employing Monte …