← All papers  /  Oct 11, 2026
Data

Make Every Expansion Count: Learning to Search Efficiently in LLM Code Repair

First page
Make Every Expansion Count: Learning to Search Efficiently in LLM Code Repair
The curator’s take

Elad Sharony, Ido Greenberg, Shie Mannor, Gal Chechik, Eli Meirom and colleagues (NVIDIA, Technion) present CodeTriage, a 0.6B model that ranks pending code edits by how many repair steps they will need before any revised program is generated or tested.

Ask this paper

Key points
01

Problem. Code-repair search policies rank candidates by test pass rates and search statistics and ignore what the test failure says and what the proposed edit changes.

02

Method. CodeTriage reads the test output, failure diagnosis and proposed edit, predicts a distribution over remaining repair steps, and prioritizes all pending edits across programs.

03

Results. On held-out repair tasks it finds fixes with 21% fewer program revisions and 12% fewer output tokens than the strongest baseline on each metric.

04

Transfer. Without retraining it has the highest average success across search budgets for each of 11 unseen repair LLMs.

05

Data release. A corpus of 12.2 million program versions from four LLMs, organized into repair trees with edits and test results.

Abstract

Large language model (LLM) code-repair systems fix faulty programs by repeatedly generating and testing revisions. Each revision is costly, making the choice of which repair to pursue important for efficiency. Existing search policies rely on test pass rates and search statistics, ignoring the details of test failures and proposed edits. We introduce CodeTriage, a learned policy that prioritizes edits before their revised programs are generated and tested. Its 0.6B-parameter model reads the test output, failure diagnosis, and proposed edit, then predicts a distribution over the number of repair steps needed to reach a fix through that edit. These predictions prioritize all pending edits across programs before generating and testing the revised code. On held-out repair tasks, CodeTriage finds fixes with 21% fewer program revisions and 12% fewer output tokens than the strongest baseline on each metric. Without retraining, it achieves the highest average success across search budgets for each of 11 unseen repair LLMs. Ablations show that both the failure context and edit text, as well as comparisons across programs, improve search. We also release a corpus of 12.2 million program versions from four LLMs, organized into repair trees with proposed edits and test results.

Every Monday
Get next week’s papers.
Subscribe on Substack