mlsanityData to 7 Oct 2026

Planning-Driven Programming: A Large Language Model Programming Workflow

arXiv 2411.14503 ↗First posted 21 Nov 2024cs.SE cs.AIcited by 7

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  8. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  9. 2023Let's Verify Step by Stepcited by 3,598
  10. 2021Program Synthesis with Large Language Modelscited by 3,509
  11. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  12. 2023Code Llama: Open Foundation Models for Codecited by 2,105
34 more
  1. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  2. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  3. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  4. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  5. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  6. 2023Teaching Large Language Models to Self-Debugcited by 963
  7. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  8. 2021Measuring Coding Challenge Competence With APPScited by 879
  9. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  10. 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
  11. 2022CodeT: Code Generation with Generated Testscited by 369
  12. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  13. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 317
  14. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  15. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  16. 2022Binding Language Models in Symbolic Languagescited by 224
  17. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  18. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
  19. 2022Natural Language to Code Translation with Executioncited by 122
  20. 2023Self-planning Code Generation with Large Language Modelscited by 121
  21. 2022Coder Reviewer Reranking for Code Generationcited by 83
  22. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  23. 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 66
  24. 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
  25. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  26. 2024Language Models for Code Completion: A Practical Evaluationcited by 38
  27. 2023ClarifyGPT: Empowering LLM-based Code Generation with Intention Clarificationcited by 37
  28. 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
  29. 2023Fixing Large Language Models' Specification Misunderstanding for Better Code Generationcited by 16
  30. 2023A Survey on Automated Program Repair Techniquescited by 12
  31. 2023Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanationscited by 12
  32. 2024Generalized Planning for the Abstraction and Reasoning Corpuscited by 10
  33. 2023Generalized Planning as Heuristic Search: A new planning search-space that leverages pointers over objectscited by 6
  34. 2023Novelty and Lifted Helpful Actions in Generalized Planningcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 1.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
  2. 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
  3. 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
  4. 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
  5. 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
  6. 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement
  7. 2026P3: Joint Program-and-Proof Planning for Verified Code Generation
  8. 2025Evaluating and Improving Large Language Models for Competitive Program Generation