paper-with-me

홈 › Papers

THOR: Tool-Integrated Hierarchical Optimization via RL for Mathematical Reasoning

2025-09-17 · Qikai Chang, Zhenrong Zhang, Pengfei Hu, Jun Du, Jiefeng Ma, Yicheng Pan, Jianshu Zhang, Quan Liu, Jianqing Gao arxiv

Large Language Models (LLMs) have made remarkable progress in mathematical reasoning, but still continue to struggle with high-precision tasks like numerical computation and formal symbolic manipulation. Integrating external tools has emerged as a promising approach to bridge this gap. Despite recent advances, existing methods struggle with three key challenges: constructing tool-integrated reasoning data, performing fine-grained optimization, and enhancing inference. To overcome these limitations, we propose THOR (Tool-Integrated Hierarchical Optimization via RL). First, we introduce TIRGen, a multi-agent based pipeline for constructing high-quality datasets of tool-integrated reasoning paths, aligning with the policy and generalizing well across diverse models. Second, to perform fine-grained hierarchical optimization, we introduce an RL strategy that jointly optimizes for both episode-level problem solving and step-level code generation. This is motivated by our key insight that the success of an intermediate tool call is a strong predictor of the final answer's correctness. Finally, THOR incorporates a self-correction mechanism that leverages immediate tool feedback to dynamically revise erroneous reasoning paths during inference. Our approach demonstrates strong generalization across diverse models, performing effectively in both reasoning and non-reasoning models. It further achieves state-of-the-art performance for models of a similar scale on multiple mathematical benchmarks, while also delivering consistent improvements on code benchmarks. Our code will be publicly available at https://github.com/JingMog/THOR.

📄 PDF Abstract BibTeX arXiv:2509.13761

Code (0)

등록된 구현이 없습니다.

Tasks

Mathematical ReasoningCode Generation

Similar Papers 제목 키워드 기반

Implicit Hierarchical GRPO: Decoupling Tool Invocation from Execution for Tool-Integrated Mathematical Reasoning

2026-05-18 · Li Wang, Xiaohan Wang, Xiaodong Lu, Zipeng Zhang 외 arxiv

Large language models (LLMs) have increasingly leveraged tool invocation to enhance their reasoning capabilities. However, existing approaches typically tightly couple tool invocation with immediate execution. Such immed…

Mathematical Reasoning

TreeWriter: AI-Assisted Hierarchical Planning and Writing for Long-Form Documents

2026-01-19 · Zijian Zhang, Fangshi Du, Xingjian Liu, Pan Chen 외 arxiv

Long documents pose many challenges to current intelligent writing systems. These include maintaining consistency across sections, sustaining efficient planning and writing as documents become more complex, and effective…

PyraMathBench: Evaluating and Improving Mathematical Capability in Large Language Models

2026-06-02 · Zetian Ouyang, Linlin Wang, Gerard de Melo, Liang He arxiv

Despite the pivotal role of numerical reasoning as the cornerstone of mathematical capabilities in large language models (LLMs) across applications, few benchmarks evaluate LLMs by integrating numerical processing and ma…

Mathematical Reasoning

Towards Semantic Markup of Mathematical Documents via User Interaction

2024-08-05 · Luka Vrečar, Joe Wells, Fairouz Kamareddine

Mathematical documents written in LaTeX often contain ambiguities. We can resolve some of them via semantic markup using, e.g., sTeX, which also has other potential benefits, such as interoperability with computer algebr…

ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving

2023-09-29 · Zhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen 외

Large language models have made significant progress in various language tasks, yet they still struggle with complex mathematics. In this paper, we propose ToRA a series of Tool-integrated Reasoning Agents designed to so…

Arithmetic ReasoningComputational EfficiencyImitation LearningMath+3