mlsanityData to 7 Oct 2026

Unlocking Reasoning Potential in Large Langauge Models by Scaling Code-form Planning

arXiv 2409.12452 ↗First posted 19 Sep 2024cs.CLcited by 24

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Despite the remarkable success of large language models (LLMs) on traditional natural language processing tasks, their planning ability remains a critical bottleneck in tackling complex multi-step reasoning tasks. Existing approaches mainly rely on prompting or task-specific fine-tuning, often suffering from poor robustness and cross-task generalization. To address the limitation, we introduce CodePlan, a scalable framework that empowers LLMs to generate and follow textitcode-form plans -- pseudocode that outlines high-level, structured reasoning processes. By leveraging the structured and versatile nature of code, CodePlan effectively captures the rich semantics and control flows inherent to sophisticated reasoning tasks. Importantly, CodePlan allows automatic extraction of code-form plans from massive, wide-ranging text corpora without the need for curated, task-specific datasets. This enables it to scale up efficiently and improve LLM's reasoning capabilities across diverse scenarios. To train CodePlan, we construct a large-scale dataset of 2M examples that integrate code-form plans with standard prompt-response pairs from existing corpora. With minimal computation overhead during both training and inference, CodePlan achieves a 25.1% relative improvement compared with directly generating responses, averaged across 13 challenging multi-step reasoning benchmarks, spanning mathematical reasoning, symbolic reasoning, instruction-following, multi-hop QA, and decision-making tasks. Further analysis reveals CodePlan's increasing performance gains on more complex reasoning tasks, as well as significant data efficiency thanks to its generalization ability.

Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 62 of its 74 references that are in the map. First posted on arXiv 19 Sep 2024.

Builds on

62 of 74 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024MAmmoTH2: Scaling Instructions from the Web6 May
  2. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar
  3. 2022PAL: Program-aided Language Models18 Nov
  4. 2022Language Models of Code are Few-Shot Commonsense Learners13 Oct
  5. 2022Measuring and Narrowing the Compositionality Gap in Language Models7 Oct
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Models6 Oct

Other references · 56

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  7. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  8. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  10. 2017Neural Discrete Representation Learningcited by 4,650
  11. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  12. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
38 more
  1. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  2. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  3. 2023Mistral 7Bcited by 3,065
  4. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2022Emergent Abilities of Large Language Modelscited by 2,483
  8. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  9. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  10. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  11. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
  12. 2017Mixed Precision Trainingcited by 1,135
  13. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
  14. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  15. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 865
  16. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  17. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  18. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  19. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
  20. 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 668
  21. 2015Generating Sentences from a Continuous Spacecited by 607
  22. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  23. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
  24. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  25. 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 385
  26. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  27. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 319
  28. 2023Large Language Models as Tool Makerscited by 293
  29. 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 276
  30. 2023MathPrompter: Mathematical Reasoning using Large Language Modelscited by 236
  31. 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
  32. 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
  33. 2019Interactive Fiction Games: A Colossal Adventurecited by 165
  34. 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
  35. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
  36. 2023Self-Alignment with Instruction Backtranslationcited by 149
  37. 2023Agent Lumos: Unified and Modular Training for Open-Source Language Agentscited by 72
  38. 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 17; 2026: 7.

24 papers.

Sort:

By area:

  1. 2025Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawingcited by 130
  2. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
  3. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  4. 2025ARM: Adaptive Reasoning Modelcited by 38
  5. 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
  6. 2026AIDev: Studying AI Coding Agents on GitHubcited by 15
  7. 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
  8. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  9. 2025CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMscited by 9
  10. 2025Extended Inductive Reasoning for Personalized Preference Inference from Behavioral Signalscited by 5
  11. 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Codecited by 5
  12. 2025Towards Verified Code Reasoning by LLMscited by 4
12 more
  1. 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
  2. 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignmentcited by 3
  3. 2025RV-Syn: Rational and Verifiable Mathematical Reasoning Data Synthesis based on Structured Function Librarycited by 1
  4. 2025KG-Augmented Executable CoT for Mathematical Codingcited by 1
  5. 2025DynaAct: Large Language Model Reasoning with Dynamic Action Spacescited by 1
  6. 2025A Multi-Agent Framework for Stateful Inference-Time Searchcited by 0
  7. 2026Neurosymbolic Language Reasoning as Satisfiability Modulo Theorycited by 0
  8. 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thoughtcited by 0
  9. 2026Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigmcited by 0
  10. 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketchingcited by 0
  11. 2026Visual Compliance via Executable Safety Rule Entailmentcited by 0
  12. 2026Marathoner: Ultra-Long-Horizon Autonomous Intelligencecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Advancing Reasoning in Large Language Models: Promising Methods and Approaches
  2. 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipes
  3. 2026Maistros: A Greek Large Language Model Adapted Through Knowledge Distillation From Large Reasoning Models
  4. 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Code
  5. 2025A Survey on Large Language Models with some Insights on their Capabilities and Limitations
  6. 2025mSCoRe: a Multilingual and Scalable Benchmark for Skill-based Commonsense Reasoning
  7. 2026Opening the Black Box: A Survey on the Mechanisms of Multi-Step Reasoning in Large Language Models
  8. 2025R-Capsule: Compressing High-Level Plans for Efficient Large Language Model Reasoning