paper-with-me

홈 › Papers

Planning In Natural Language Improves LLM Search For Code Generation

2024-09-05 · Evan Wang, Federico Cassano, Catherine Wu, Yunfeng Bai, Will Song, Vaskar Nath, Ziwen Han, Sean Hendryx, Summer Yue, Hugh Zhang

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.

📄 PDF Abstract BibTeX arXiv:2409.03733

Code (2)

scaleapi/plansearch 공식 구현
codelion/optillm/blob/main/optillm/plansearch.py pytorch

Tasks

Code GenerationDiversityHumanEvalmbpp

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

PDDLCoder: Agentic PDDL Generation for LLM-Assisted Symbolic Planning

2026-08-17 · Veit Laule, Jiangtao Shuai, Manfred Hauswirth, Sonja Schimmler arxiv

LLMs remain unreliable for long-horizon planning, often generating logically inconsistent or non-applicable plans. Recent hybrid methods instead translate natural language into the Planning Domain Definition Language (PD…

Planetarium: A Rigorous Benchmark for Translating Text to Structured Planning Languages

2024-07-03 · Max Zuo, Francisco Piedrahita Velez, Xiaochen Li, Michael L. Littman 외

Many recent works have explored using language models for planning problems. One line of research focuses on translating natural language descriptions of planning tasks into structured planning languages, such as the pla…

Language Modellingvalid

Can Large Language Models Generalize Procedures Across Representations?

2026-02-03 · Fangru Lin, Valentin Hofmann, Xingchen Wan, Weixing Wang 외 arxiv

Large language models (LLMs) are trained and tested extensively on symbolic representations such as code and graphs, yet real-world user tasks are often specified in natural language. To what extent can LLMs generalize a…

Reinforcement Learning

ISR-LLM: Iterative Self-Refined Large Language Model for Long-Horizon Sequential Task Planning

2023-08-26 · Zhehua Zhou, Jiayang Song, Kunpeng Yao, Zhan Shu 외

Motivated by the substantial achievements observed in Large Language Models (LLMs) in the field of natural language processing, recent research has commenced investigations into the application of LLMs for complex, long-…

Language ModelingLanguage ModellingLarge Language ModelTask Planning

Integrating AI Planning with Natural Language Processing: A Combination of Explicit and Tacit Knowledge

2022-02-15 · Kebing Jin, Hankz Hankui Zhuo

Natural language processing (NLP) aims at investigating the interactions between agents and humans, processing and analyzing large amounts of natural language data. Large-scale language models play an important role in c…

Text Generation