Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter

📅 2026-06-15
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the lack of systematic understanding of effective behavioral characteristics in code interpreter (CI) reasoning, which limits the potential of large language models (LLMs) in executable computation and iterative verification. The work presents the first systematic characterization of key attributes underlying effective CI reasoning, modeling its mechanisms through both extrinsic critical tokens and intrinsic cognitive behaviors—such as verification, backtracking, and backward chaining. To enhance model capabilities, the authors propose injecting critical tokens during inference and incorporating cognitive behaviors into training. Experiments demonstrate that this approach significantly improves performance across mathematical, sorting, and optimization tasks on multiple mainstream LLMs, while simultaneously increasing token efficiency and reducing unproductive reasoning steps.
📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Code Interpreter
reasoning
extrinsic properties
intrinsic properties
large language models
Innovation

Methods, ideas, or system contributions that make the work stand out.

Code Interpreter
Crucial Tokens
Cognitive Behaviors
Reasoning Enhancement
Token Efficiency
🔎 Similar Papers
No similar papers found.