Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Towards Effective Code-Integrated Reasoning

About

In this paper, we investigate code-integrated reasoning, where models generate code when necessary and integrate feedback by executing it through a code interpreter. To acquire this capability, models must learn when and how to use external code tools effectively, which is supported by tool-augmented reinforcement learning (RL) through interactive learning. Despite its benefits, tool-augmented RL can still suffer from potential instability in the learning dynamics. In light of this challenge, we present a systematic approach to improving the training effectiveness and stability of tool-augmented RL for code-integrated reasoning. Specifically, we develop enhanced training strategies that balance exploration and stability, progressively building tool-use capabilities while improving reasoning performance. Through extensive experiments on five mainstream mathematical reasoning benchmarks, our model demonstrates significant performance improvements over multiple competitive baselines. Furthermore, we conduct an in-depth analysis of the mechanism and effect of code-integrated reasoning, revealing several key insights, such as the extension of model's capability boundaries and the simultaneous improvement of reasoning efficiency through code integration. All data and code for reproducing this work are available at: https://github.com/RUCAIBox/CIR.

Fei Bai, Yingqian Min, Beichen Zhang, Zhipeng Chen, Wayne Xin Zhao, Lei Fang, Zheng Liu, Zhongyuan Wang, Ji-Rong Wen• 2025

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH
Accuracy90.4
535
Mathematical ReasoningAIME 25
Accuracy29.2
201
Mathematical ReasoningMinerva
Pass@138.62
138
Mathematical ReasoningMATH
Pass@179.21
112
Mathematical ReasoningAMC
Pass@157.84
112
Scientific Question AnsweringGPQA Diamond
Accuracy49.5
64
Mathematical ReasoningOlympiad
Pass@142.1
50
CodingLiveCodeBench
Task Accuracy19.3
23
Mathematical ReasoningAIME 24
Accuracy42.3
17
Showing 9 of 9 rows

Other info

Follow for update