atlas

Research map / Large language models / Reasoning and chain of thought

Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ReLoc, a unified local search framework for LLM code generation that iteratively revises code, guided by a revision reward model trained on revision-distance preference pairs, instantiated as Hill Climbing and Genetic Algorithm.

Problem

Inference-time scaling for LLM code generation is inefficient: construction-based tree search grows rapidly in token cost and lacks anytime behavior, while existing improvement-based methods rely on uninformative rewards (sparse public-test pass rates or unreliable self-evaluation) and costly search

Approach

Frame iterative code revision as a local search with four components (drafting, neighborhood generation, candidate evaluation, incumbent update), and score candidates with a revision reward model trained with Bradley-Terry on pairs ranked by revision distance (minimum revisions to a correct program) within local code-tree neighborhoods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use ReLoc_HC instead of Plan SearchQwen2.5-32B-Instruct · LiveCodeBench code genPass@1 (%): 32.7 -> 38.4Helped
use ReLoc_HC instead of Plan SearchQwen2.5-32B-Instruct · LiveCodeBench code repairPass@1 (%): 31.3 -> 33.4Helped
use ReLoc_GA instead of Plan SearchQwen2.5-32B-Instruct · TACO code genPass@1 (%): 11.2 -> 15.3Helped
use ReLoc_GA instead of Plan SearchQwen2.5-32B-Instruct · TACO code repairPass@1 (%): 8.2 -> 11.5Helped
replace ORM with the revision reward modelReLoc_HC · LiveCodeBenchPass@1: 35.9 -> 38.4Helped
replace ORM with the revision reward modelReLoc_HC · TACOPass@1: 9.7 -> 13.3Helped
remove natural language plans from initialization (ablation)ReLoc_HC · LiveCodeBenchPass@1 (%): 38.4 -> 36.9Hurt
remove natural language plans from initialization (ablation)ReLoc_HC · TACOPass@1 (%): 13.3 -> 13.7No clear effect
remove revision strategies (ablation)ReLoc_HC · LiveCodeBenchPass@1 (%): 38.4 -> 35.9Hurt
remove revision strategies (ablation)ReLoc_HC · TACOPass@1 (%): 13.3 -> 11.7Hurt
remove execution feedback (ablation)ReLoc_HC · LiveCodeBenchPass@1 (%): 38.4 -> 34.8Hurt
remove execution feedback (ablation)ReLoc_HC · TACOPass@1 (%): 13.3 -> 11.4Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LiveCodeBench TACO APPS CodeContests

Benchmarks: LiveCodeBench TACO

Metrics: Pass@1 token consumption

Baselines: RAP ToT Code Tree Reflexion Plan Search BoN SFS ORPS Skywork-27B reward model ORM-7B

Builds on: Bradley-Terry reward modeling Tree of Thoughts Reflexion Plan Search Best-of-N sampling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy