Pith. sign in

REVIEW 7 cited by

Planning In Natural Language Improves LLM Search For Code Generation

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2409.03733 v2 pith:ASBVJQKM submitted 2024-09-05 cs.LG cs.AIcs.CL

classification cs.LGcs.AIcs.CL
keywords searchplansearchlanguagecodediversemodelsnaturalpass
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

While scaling training compute has led to remarkable improvements in large language models (LLMs), scaling inference compute has not yet yielded analogous gains. We hypothesize that a core missing component is a lack of diverse LLM outputs, leading to inefficient search due to models repeatedly sampling highly similar, yet incorrect generations. We empirically demonstrate that this lack of diversity can be mitigated by searching over candidate plans for solving a problem in natural language. Based on this insight, we propose PlanSearch, a novel search algorithm which shows strong results across HumanEval+, MBPP+, and LiveCodeBench (a contamination-free benchmark for competitive coding). PlanSearch generates a diverse set of observations about the problem and then uses these observations to construct plans for solving the problem. By searching over plans in natural language rather than directly over code solutions, PlanSearch explores a significantly more diverse range of potential solutions compared to baseline search methods. Using PlanSearch on top of Claude 3.5 Sonnet achieves a state-of-the-art pass@200 of 77.0% on LiveCodeBench, outperforming both the best score achieved without search (pass@1 = 41.4%) and using standard repeated sampling (pass@200 = 60.6%). Finally, we show that, across all models, search algorithms, and benchmarks analyzed, we can accurately predict performance gains due to search as a direct function of the diversity over generated ideas. Code can be found at https://github.com/scaleapi/plansearch.

Discussion (0). Sign in to comment.

Forward citations

Cited by 7 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Syntax Without Semantics: Teaching Large Language Models to Code in an Unseen Language

    cs.CL 2026-05 unverdicted novelty 7.0 of 10

    Fine-tuning LLMs on an unseen language teaches syntax but fails to transfer semantic competence, leaving Python with up to a 19% performance advantage and no tested intervention closing the gap.

  2. StaAgent: An Agentic Framework for Testing Static Analyzers

    cs.SE 2025-07 conditional novelty 6.0 of 10

    An LLM-powered four-agent framework performs metamorphic testing on static analyzers and reports 64 faulty rule implementations across SpotBugs, SonarQube, ErrorProne, Infer, and PMD.

  3. Agent-RLVR: Training Software Engineering Agents via Guidance and Environment Rewards

    cs.CL 2025-06 conditional novelty 6.0 of 10

    A guidance-augmented RLVR framework improves software engineering agent pass@1 on SWE-Bench Verified from 9.4% to 22.4%, with guidance being the critical component.

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

    cs.CL 2025-08 unverdicted novelty 5.0 of 10

    The abstract claims a new local search framework for code generation, but the manuscript body is a different mathematics paper.

  5. Optimizing Sequential Multi-Step Tasks with Parallel LLM Agents

    cs.MA 2025-07 conditional novelty 5.0 of 10

    Running multiple multi-agent teams in parallel, stopping at the first successful answer, cuts end-to-end latency by up to 2.2x with roughly unchanged completion rates on GAIA.

  6. EvoVerilog: Large Langugage Model Assisted Evolution of Verilog Code

    cs.AR 2025-06 unverdicted novelty 5.0 of 10

    EvoVerilog uses multiobjective evolutionary search with LLMs to generate Verilog code, reporting higher pass@10 than prior methods on VerilogEval-Machine and VerilogEval-Human.

  7. A Survey on Large Language Models for Mathematical Reasoning

    cs.AI 2025-06 conditional novelty 1.0 of 10

    Recent advances in LLM mathematical reasoning are organized into comprehension and generation phases, covering methods from prompting to test-time scaling.

Pith tools