Teaching Language Models to Reason with Tools
Chengpeng Li, Zhengyang Tang, Ziniu Li, Mingfeng Xue, Keqin Bao, Tian Ding, Ruoyu Sun, Benyou Wang, Xiang Wang, Junyang Lin, Dayiheng Liu

TL;DR
This paper introduces CoRT, a training framework that improves large reasoning models' ability to effectively utilize computational tools like Code Interpreters, leading to better accuracy and efficiency in mathematical reasoning tasks.
Contribution
The paper presents CoRT, a novel post-training method with Hint-Engineering for optimizing LRM and CI interaction, significantly enhancing reasoning accuracy and reducing token usage.
Findings
Achieved 4-8% improvements on mathematical reasoning datasets.
Reduced token usage by 30-50% compared to baseline models.
Demonstrated effectiveness across models from 1.5B to 32B parameters.
Abstract
Large reasoning models (LRMs) like OpenAI-o1 have shown impressive capabilities in natural language reasoning. However, these models frequently demonstrate inefficiencies or inaccuracies when tackling complex mathematical operations. While integrating computational tools such as Code Interpreters (CIs) offers a promising solution, it introduces a critical challenge: a conflict between the model's internal, probabilistic reasoning and the external, deterministic knowledge provided by the CI, which often leads models to unproductive deliberation. To overcome this, we introduce CoRT (Code-Optimized Reasoning Training), a post-training framework designed to teach LRMs to effectively utilize CIs. We propose \emph{Hint-Engineering}, a new data synthesis strategy that strategically injects diverse hints at optimal points within reasoning paths. This approach generates high-quality,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsTopic Modeling · Multimodal Machine Learning Applications · Natural Language Processing Techniques
