Code-enabled language models can outperform reasoning models on diverse tasks
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Reasoning models (RMs), language models (LMs) trained with reinforcement learning to produce long-form natural language reasoning, have been remarkably successful, but they still require large amounts of computation and data to train, and can be slow and expensive to run. In this paper, we show that standard instruct LMs can already be elicited to be strong reasoners at a level comparable to or even surpassing their corresponding RMs (e.g., DeepSeek V3 vs R1) without finetuning, across diverse domains from instruction following and creative generation to mathematical reasoning. This is achieved by CodeAdapt, our simple recipe that combines the CodeAct framework, where LMs interleave natural language reasoning with code execution in a multi-step fashion, with few-shot bootstrap in-context learning from as few as five training problems. Analyzing four matched pairs of LMs and RMs, we find that CodeAdapt enables three LMs to outperform the corresponding RMs on average over eight tasks (up to 22.9%) while being 10-81% more token efficient, and delivers superior performance on six tasks when averaged over the four models (up to 35.7%). Furthermore, the code-augmented reasoning traces display rich and varied problem-solving strategies. Our findings support that (1) CodeAdapt-style learning and reasoning may be robust and domain general and (2) code-enabled LMs are cognitively grounded and powerful systems, potentially providing a strong foundation for in-weight reinforcement learning.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 69 of its 92 references that are in the map. First posted on arXiv 23 Oct 2025.
Builds on
69 of 92 references.
Closest ancestors · 9
Same direction, newest first
- 2025Scaling up the think-aloud method29 May
- 2025Qwen3 Technical Report14 May
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Models24 Feb
- 2024HYBRIDMIND: Meta Selection of Natural Language and Symbolic Language for Enhanced LLM Reasoning28 Sep
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Provers23 Oct
- 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Tasks5 Jul
- 2022PAL: Program-aided Language Models18 Nov
- 2022ReAct: Synergizing Reasoning and Acting in Language Models6 Oct
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Models30 Nov
Other references · 60
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2025s1: Simple test-time scalingcited by 1,311
38 more
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 948
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2025Group Sequence Policy Optimizationcited by 788
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 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
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2025Humanity's Last Examcited by 467
- 2025Stop Overthinking: A Survey on Efficient Reasoning for Large Language Modelscited by 456
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
- 2023Cognitive Architectures for Language Agentscited by 422
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2025L1: Controlling How Long A Reasoning Model Thinks With Reinforcement Learningcited by 381
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 377
- 2024Automated Design of Agentic Systemscited by 360
- 2025ToolRL: Reward is All Tool Learning Needscited by 342
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2025ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learningcited by 187
- 2025Generalizing Verifiable Instruction Followingcited by 178
- 2024Stream of Search (SoS): Learning to Search in Languagecited by 141
- 2025Echo Chamber: RL Post-training Amplifies Behaviors Learned in Pretrainingcited by 123
- 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 120
- 2024Self-Discover: Large Language Models Self-Compose Reasoning Structurescited by 108
- 2025Reinforcement Learning for Long-Horizon Interactive LLM Agentscited by 103
- 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 69
- 2024What Are Tools Anyway? A Survey from the Language Model Perspectivecited by 53
- 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 38
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Code as Agent Harnesscited by 40
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026Learning User Simulators with Turing Rewardscited by 3
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agentscited by 2
- 2026Learning User Simulators with Turing Rewards17 Jun 2026
- 2026Code as Agent Harness18 May 2026
- 2026Coding Agents are Effective Long-Context Processors20 Mar 2026
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agents26 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025Training Language Models to Reason Efficiently
- 2025A Sober Look at Progress in Language Model Reasoning: Pitfalls and Paths to Reproducibility
- 2025A Survey of Reinforcement Learning for Large Reasoning Models
- 2025Curriculum Reinforcement Learning from Easy to Hard Tasks Improves LLM Reasoning
- 2024Can Small Language Models Help Large Language Models Reason Better?: LM-Guided Chain-of-Thought
- 2025SLR: Automated Synthesis for Scalable Logical Reasoning
- 2025Advancing Reasoning in Large Language Models: Promising Methods and Approaches
- 2023Large Language Models Are Not Strong Abstract Reasoners