arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.02479cs.LG
收藏

SimpleTIR:面向多轮工具集成推理的端到端强化学习

SimpleTIR: End-to-End Reinforcement Learning for Multi-Turn Tool-Integrated Reasoning

Nanyang Technological University(南洋理工大学);TikTok

Zhenghai Xue, Longtao Zheng, Qian Liu, Yingru Li, Xiaosen Zheng, Zejun Ma, Bo An

AI总结:

针对多轮工具集成推理强化学习训练不稳定的问题,提出即插即用算法SimpleTIR,通过过滤含无效轮次的轨迹稳定训练,在数学推理基准上取得SOTA性能,还能促使模型发现多样推理模式。

摘要:

大语言模型(LLM)可通过与外部工具交互显著提升推理能力,这一范式被称为工具集成推理(Tool-Integrated Reasoning, TIR)。然而,使用强化学习(RL)将TIR扩展至多轮场景时,常受训练不稳定和性能崩溃的阻碍。我们发现,这种不稳定主要由外部工具反馈导致的分布漂移引起,进而产生低概率token。该问题在连续轮次中不断累积,引发灾难性的梯度范数爆炸,破坏训练进程。为解决这一挑战,我们提出SimpleTIR——一种即插即用的算法,用于稳定多轮TIR训练。其核心策略是识别并过滤掉包含无效轮次的轨迹,无效轮次指既不生成代码块也不输出最终答案的轮次。通过从策略更新中移除这些有问题的轨迹,SimpleTIR有效阻断了有害的高幅值梯度,从而稳定学习动态。大量实验表明,SimpleTIR在具有挑战性的数学推理基准上取得了当前最优性能,值得注意的是,以Qwen2.5-7B为基础模型时,其AIME24得分从纯文本基线的22.1提升至50.5。此外,由于无需受监督微调的约束,SimpleTIR能促使模型发现多样且复杂的推理模式,例如自我纠错和交叉验证。

英文摘要:

Large Language Models (LLMs) can significantly improve their reasoning capabilities by interacting with external tools, a paradigm known as Tool-Integrated Reasoning (TIR). However, extending TIR to multi-turn scenarios using Reinforcement Learning (RL) is often hindered by training instability and performance collapse. We identify that such instability is primarily caused by a distributional drift from external tool feedback, leading to the generation of low-probability tokens. This issue compounds over successive turns, causing catastrophic gradient norm explosions that derail the training process. To address this challenge, we introduce SimpleTIR , a plug-and-play algorithm that stabilizes multi-turn TIR training. Its core strategy is to identify and filter out trajectories containing void turns, i.e., turns that yield neither a code block nor a final answer. By removing these problematic trajectories from the policy update, SimpleTIR effectively blocks the harmful, high-magnitude gradients, thus stabilizing the learning dynamics. Extensive experiments show that SimpleTIR achieves state-of-the-art performance on challenging math reasoning benchmarks, notably elevating the AIME24 score from a text-only baseline of 22.1 to 50.5 when starting from the Qwen2.5-7B base model. Furthermore, by avoiding the constraints of supervised fine-tuning, SimpleTIR encourages the model to discover diverse and sophisticated reasoning patterns, such as self-correction and cross-validation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑