AutoTIR: Autonomous Tools Integrated Reasoning via Reinforcement Learning

Yifan Wei, Xiaoyan Yu, Yixuan Weng, Tengfei Pan, Angsheng Li +1 more
7/29/2025
cs.CL

Official code: weiyifan1023/AutoTIR (54 stars, MIT, last commit 2025-09-04).

Abstract

Large Language Models (LLMs), when enhanced through reasoning-oriented post-training, evolve into powerful Large Reasoning Models (LRMs). Tool-Integrated Reasoning (TIR) further extends their capabilities by incorporating external tools, but existing methods often rely on rigid, predefined tool-use patterns that risk degrading core language competence. Inspired by the human ability to adaptively select tools, we introduce AutoTIR, a reinforcement learning framework that enables LLMs to autonomously decide whether and which tool to invoke during the reasoning process, rather than following static tool-use strategies. AutoTIR leverages a hybrid reward mechanism that jointly optimizes for task-specific answer correctness, structured output adherence, and penalization of incorrect tool usage, thereby encouraging both precise reasoning and efficient tool integration. Extensive evaluations across diverse knowledge-intensive, mathematical, and general language modeling tasks demonstrate that AutoTIR achieves superior overall performance, significantly outperforming baselines and exhibits superior generalization in tool-use behavior. These results highlight the promise of reinforcement learning in building truly generalizable and scalable TIR capabilities in LLMs. The code and data are available at https://github.com/weiyifan1023/AutoTIR.

View on arXivView PDF

Code Implementations(1)

MIT

Code and Data for Paper "AutoTIR: Autonomous Tools Integrated Reasoning via Reinforcement Learning"

546Shell, PythonJul 29, 20251 years agoMIT

Similar Papers

Cite this paper

@article{wei2025autotir,
  title  = {AutoTIR: Autonomous Tools Integrated Reasoning via Reinforcement Learning},
  author = {Yifan Wei and Xiaoyan Yu and Yixuan Weng and Tengfei Pan and Angsheng Li and Li Du},
  year   = {2025},
  eprint = {2507.21836},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.21836v1}
}

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/2507.21836.svg)](https://codeofpaper.com/paper/2507.21836)

Discussion