Planning-Driven Programming: A Large Language Model Programming Workflow
Not on the map. Why?
Abstract (arXiv)
The strong performance of large language models (LLMs) raises extensive discussion on their application to code generation. Recent research suggests continuous program refinements through visible tests to improve code generation accuracy in LLMs. However, these methods suffer from LLMs' inefficiency and limited reasoning capacity. In this work, we propose an LLM programming workflow (LPW) designed to improve both initial code generation and subsequent refinements within a structured two-phase workflow. Specifically, the solution generation phase formulates a solution plan, which is then verified through visible tests to specify the intended natural language solution. Subsequently, the code implementation phase drafts an initial code according to the solution plan and its verification. If the generated code fails the visible tests, the plan verification serves as the intended solution to consistently inform the refinement process for correcting bugs. Compared to state-of-the-art methods across various existing LLMs, LPW significantly improves the Pass@1 accuracy by up to 16.4% on well-established text-to-code generation benchmarks. LPW also sets new state-of-the-art Pass@1 accuracy, achieving 98.2% on HumanEval, 84.8% on MBPP, 59.3% on LiveCode, 62.6% on APPS, and 34.7% on CodeContest, using GPT-4o as the backbone. Our code is publicly available at: https://github.com/you68681/lpw
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 46 of its 65 references that are in the map. First posted on arXiv 21 Nov 2024.
Builds on
46 of 65 references.
References · 46
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
34 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023ChatDev: Communicative Agents for Software Developmentcited by 893
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
- 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 317
- 2023Self-collaboration Code Generation via ChatGPTcited by 255
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2022Binding Language Models in Symbolic Languagescited by 224
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2022Natural Language to Code Translation with Executioncited by 122
- 2023Self-planning Code Generation with Large Language Modelscited by 121
- 2022Coder Reviewer Reranking for Code Generationcited by 83
- 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
- 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 66
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
- 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
- 2024Language Models for Code Completion: A Practical Evaluationcited by 38
- 2023ClarifyGPT: Empowering LLM-based Code Generation with Intention Clarificationcited by 37
- 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
- 2023Fixing Large Language Models' Specification Misunderstanding for Better Code Generationcited by 16
- 2023A Survey on Automated Program Repair Techniquescited by 12
- 2023Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanationscited by 12
- 2024Generalized Planning for the Abstraction and Reasoning Corpuscited by 10
- 2023Generalized Planning as Heuristic Search: A new planning search-space that leverages pointers over objectscited by 6
- 2023Novelty and Lifted Helpful Actions in Generalized Planningcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 1.
7 papers.
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworkscited by 36
- 2025Execution Guided Line-by-Line Code Generationcited by 10
- 2025Nexus: A Lightweight and Scalable Multi-Agent Framework for Complex Tasks Automationcited by 4
- 2024Thinking Before Running! Efficient Code Generation with Thorough Exploration and Optimal Refinementcited by 3
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmarkcited by 2
- 2026Generative AI-assisted Participatory Modeling in Socio-Environmental Planning under Deep Uncertaintycited by 0
- 2026Generative AI-assisted Participatory Modeling in Socio-Environmental Planning under Deep Uncertainty17 Mar 2026
- 2025Execution Guided Line-by-Line Code Generation12 Jun 2025
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmark23 May 2025
- 2025Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworks12 May 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025Nexus: A Lightweight and Scalable Multi-Agent Framework for Complex Tasks Automation26 Feb 2025
- 2024Thinking Before Running! Efficient Code Generation with Thorough Exploration and Optimal Refinement30 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation
- 2025Evaluating and Improving Large Language Models for Competitive Program Generation