Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Reasoning with a Code Interpreter (CI) has emerged as an effective paradigm for enhancing the reasoning capabilities of large language models (LLMs) through executable computation and iterative verification. Despite its growing adoption, the behavioral properties underlying effective code reasoning remain largely underexplored. In this work, we investigate code reasoning from two distinct perspectives inspired by prior studies of natural language reasoning: extrinsic properties, represented by crucial tokens, and intrinsic properties, represented by code-specific cognitive behaviors. Across multiple LLMs, we find that stronger CI reasoning models consistently exhibit a higher prevalence of crucial tokens and cognitive behaviors, particularly verification, backtracking, and backward chaining. Building on these observations, we examine how these properties can be leveraged during both inference and training. At inference time, appending code-specific crucial tokens improves performance on several reasoning capabilities, including mathematical, ordering, and optimization, while yielding limited benefits elsewhere. At training time, augmenting a state-of-the-art framework with code-specific cognitive behaviors improves supervised fine-tuning and reinforcement learning performance in two of three evaluated models. Further analysis shows that these behaviors reduce overthinking in incorrect responses and improve token efficiency, while also revealing factors that limit gains in a certain model. Our findings provide the first systematic characterization of effective reasoning with CI and demonstrate both the potential and limitations of leveraging key properties to improve CI-based reasoning.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 17 of its 48 references that are in the map. First posted on arXiv 15 Jun 2026.
Builds on
17 of 48 references.
References · 17
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022PAL: Program-aided Language Modelscited by 635
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 215
- 2025ToRL: Scaling Tool-Integrated RLcited by 166
- 2025Olmo 3cited by 95
5 more
- 2025Grounded Reinforcement Learning for Visual Reasoningcited by 80
- 2025Does Thinking More always Help? Mirage of Test-Time Scaling in Reasoning Modelscited by 52
- 2025Test-Time Scaling in Reasoning Models Is Not Effective for Knowledge-Intensive Tasks Yetcited by 10
- 2026Understanding Reasoning in LLMs through Strategic Information Allocation under Uncertaintycited by 8
- 2025It's Not That Simple. An Analysis of Simple Test-Time Scalingcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment
- 2026Is Code Better Than Language for Algorithmic Reasoning
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning
- 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning
- 2026Think Multilingual, Not Harder: A Data-Efficient Framework for Teaching Reasoning Models to Code-Switch
- 2025On Code-Induced Reasoning in LLMs
- 2025R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
- 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Prediction