Unlocking Reasoning Potential in Large Langauge Models by Scaling Code-form Planning
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
- 2024MAmmoTH2: Scaling Instructions from the Web6 May
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar
- 2022PAL: Program-aided Language Models18 Nov
- 2022Language Models of Code are Few-Shot Commonsense Learners13 Oct
- 2022Measuring and Narrowing the Compositionality Gap in Language Models7 Oct
- 2022ReAct: Synergizing Reasoning and Acting in Language Models6 Oct
Other references · 56
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2017Neural Discrete Representation Learningcited by 4,650
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
38 more
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023Mistral 7Bcited by 3,065
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2017Mixed Precision Trainingcited by 1,135
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
- 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 865
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
- 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 668
- 2015Generating Sentences from a Continuous Spacecited by 607
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 385
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2023AgentTuning: Enabling Generalized Agent Abilities for LLMscited by 319
- 2023Large Language Models as Tool Makerscited by 293
- 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 276
- 2023MathPrompter: Mathematical Reasoning using Large Language Modelscited by 236
- 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
- 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
- 2019Interactive Fiction Games: A Colossal Adventurecited by 165
- 2023Foundation Models for Decision Making: Problems, Methods, and Opportunitiescited by 160
- 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
- 2023Self-Alignment with Instruction Backtranslationcited by 149
- 2023Agent Lumos: Unified and Modular Training for Open-Source Language Agentscited by 72
- 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2025: 17; 2026: 7.
24 papers.
Sort:
By area:
- 2025Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawingcited by 130
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025ARM: Adaptive Reasoning Modelcited by 38
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
- 2026AIDev: Studying AI Coding Agents on GitHubcited by 15
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMscited by 9
- 2025Extended Inductive Reasoning for Personalized Preference Inference from Behavioral Signalscited by 5
- 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Codecited by 5
- 2025Towards Verified Code Reasoning by LLMscited by 4
12 more
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
- 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignmentcited by 3
- 2025RV-Syn: Rational and Verifiable Mathematical Reasoning Data Synthesis based on Structured Function Librarycited by 1
- 2025KG-Augmented Executable CoT for Mathematical Codingcited by 1
- 2025DynaAct: Large Language Model Reasoning with Dynamic Action Spacescited by 1
- 2025A Multi-Agent Framework for Stateful Inference-Time Searchcited by 0
- 2026Neurosymbolic Language Reasoning as Satisfiability Modulo Theorycited by 0
- 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thoughtcited by 0
- 2026Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigmcited by 0
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketchingcited by 0
- 2026Visual Compliance via Executable Safety Rule Entailmentcited by 0
- 2026Marathoner: Ultra-Long-Horizon Autonomous Intelligencecited by 0
- 2026Marathoner: Ultra-Long-Horizon Autonomous Intelligence28 Sep 2026
- 2026Visual Compliance via Executable Safety Rule Entailment16 Sep 2026
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2026Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm10 Apr 2026
- 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thought18 Mar 2026
- 2026Neurosymbolic Language Reasoning as Satisfiability Modulo Theory20 Feb 2026
- 2026AIDev: Studying AI Coding Agents on GitHub9 Feb 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025DynaAct: Large Language Model Reasoning with Dynamic Action Spaces11 Nov 2025
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism15 Oct 2025
- 2025A Multi-Agent Framework for Stateful Inference-Time Search8 Oct 2025
- 2025Towards Verified Code Reasoning by LLMs30 Sep 2025
12 more
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities15 Aug 2025
- 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Code9 Aug 2025
- 2025KG-Augmented Executable CoT for Mathematical Coding6 Aug 2025
- 2025CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMs4 Jul 2025
- 2025Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawing11 Jun 2025
- 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignment1 Jun 2025
- 2025ARM: Adaptive Reasoning Model26 May 2025
- 2025Extended Inductive Reasoning for Personalized Preference Inference from Behavioral Signals23 May 2025
- 2025RV-Syn: Rational and Verifiable Mathematical Reasoning Data Synthesis based on Structured Function Library29 Apr 2025
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generation20 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2025Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawingcited by 130
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025ARM: Adaptive Reasoning Modelcited by 38
- 2025a1: Steep Test-time Scaling Law via Environment Augmented Generationcited by 13
- 2025CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMscited by 9
- 2025Extended Inductive Reasoning for Personalized Preference Inference from Behavioral Signalscited by 5
- 2025Towards Verified Code Reasoning by LLMscited by 4
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
- 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignmentcited by 3
- 2025RV-Syn: Rational and Verifiable Mathematical Reasoning Data Synthesis based on Structured Function Librarycited by 1
- 2025KG-Augmented Executable CoT for Mathematical Codingcited by 1
- 2025DynaAct: Large Language Model Reasoning with Dynamic Action Spacescited by 1
12 most cited of 15 All 15 (JSON)
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thought18 Mar 2026
- 2026Neurosymbolic Language Reasoning as Satisfiability Modulo Theory20 Feb 2026
- 2025DynaAct: Large Language Model Reasoning with Dynamic Action Spaces11 Nov 2025
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism15 Oct 2025
- 2025Towards Verified Code Reasoning by LLMs30 Sep 2025
- 2025KG-Augmented Executable CoT for Mathematical Coding6 Aug 2025
- 2025CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMs4 Jul 2025
- 2025Reinforcing Spatial Reasoning in Vision-Language Models with Interwoven Thinking and Visual Drawing11 Jun 2025
- 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignment1 Jun 2025
- 2025ARM: Adaptive Reasoning Model26 May 2025
- 2025Extended Inductive Reasoning for Personalized Preference Inference from Behavioral Signals23 May 2025
12 newest of 15 All 15 (JSON)
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
- 2026AIDev: Studying AI Coding Agents on GitHubcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Codecited by 5
- 2025A Multi-Agent Framework for Stateful Inference-Time Searchcited by 0
- 2026AIDev: Studying AI Coding Agents on GitHub9 Feb 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025A Multi-Agent Framework for Stateful Inference-Time Search8 Oct 2025
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities15 Aug 2025
- 2025Context Engineering for Multi-Agent LLM Code Assistants Using Elicit, NotebookLM, ChatGPT, and Claude Code9 Aug 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025Advancing Reasoning in Large Language Models: Promising Methods and Approaches
- 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipes
- 2026Maistros: A Greek Large Language Model Adapted Through Knowledge Distillation From Large Reasoning Models
- 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Code
- 2025A Survey on Large Language Models with some Insights on their Capabilities and Limitations
- 2025mSCoRe: a Multilingual and Scalable Benchmark for Skill-based Commonsense Reasoning
- 2026Opening the Black Box: A Survey on the Mechanisms of Multi-Step Reasoning in Large Language Models
- 2025R-Capsule: Compressing High-Level Plans for Efficient Large Language Model Reasoning