Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter

Patomporn Payoungkhamdee, Napat Laosaengpha, Jenta Wonglertsakul, Pittawat Taveekitworachai, Pume Tuchinda +6 more
6/15/2026
cs.CLcs.LG

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{payoungkhamdee2026exploring,
  title  = {Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter},
  author = {Patomporn Payoungkhamdee and Napat Laosaengpha and Jenta Wonglertsakul and Pittawat Taveekitworachai and Pume Tuchinda and Panjapong Poobanchuen and Ekapol Chuangsuwanich and Can Udomcharoenchaikit and Samuel Cahyawijaya and Peerat Limkonchotiwat and Sarana Nutanong},
  year   = {2026},
  eprint = {2606.16934},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16934v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.16934.svg)](https://codeofpaper.com/paper/2606.16934)

Discussion