AgentMath: Empowering Mathematical Reasoning for Large Language Models via Tool-Augmented Agent
The DOI matches its DataCite record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
Large Reasoning Models (LRMs) like o3 and DeepSeek-R1 have achieved remarkable progress in reasoning tasks with long cot. However, they remain computationally inefficient and struggle with accuracy when solving problems requiring complex mathematical operations. In this work, we present AgentMath, an agent framework that seamlessly integrates language models' reasoning capabilities with code interpreters' computational precision to efficiently tackle complex mathematical problems. Our approach introduces three key innovations: (1) An automated method that converts natural language chain-of-thought into structured tool-augmented trajectories, generating high-quality supervised fine-tuning (SFT) data to alleviate data scarcity; (2) A novel agentic reinforcement learning (RL) paradigm that dynamically interleaves natural language generation with real-time code execution. This enables models to autonomously learn optimal tool-use strategies through multi-round interactive feedback, while fostering emergent capabilities in code refinement and error correction; (3) An efficient training system incorporating innovative techniques, including request-level asynchronous rollout scheduling, agentic partial rollout, and prefix-aware weighted load balancing, achieving 4-5x speedup and making efficient RL training feasible on ultra-long sequences with scenarios with massive tool invocation. The evaluations show that AgentMath achieves state-of-the-art performance on challenging mathematical competition benchmarks including AIME24, AIME25, and HMMT25. Specifically, AgentMath-30B-A3B attains 90.6%, 86.4%, and 73.8% accuracy respectively, surpassing OpenAI-o3-mini and Claude-Opus-4.0-Thinking while remaining competitive with OpenAI-o3, Gemini-2.5-Pro, and DeepSeek-R1-671B-0528.These results validate the effectiveness of our approach and pave the way for building scalable mathematical reasoning agents.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“memory mechanisms abstract universal wisdom that is independent of context from clusters of trajectories; through this process, LLM agents (Luo et al., 2026; Tian et al., 2025a)”
From From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms (2026) · cites this paper as Luo et al., 2026
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Toolformer: Language Models Can Teach Themselves to Use Tools
Schick, T., Dwivedi-Yu, J., Dessì, R., Raileanu, R., Lomeli, M., Zettlemoyer, L., Cancedda, N., & Scialom, T. (2023) · arXiv · doi:10.48550/arxiv.2302.04761 · Cited by 1,150
The landscape of agentic reinforcement learning for LLMs: a survey
Zhang, G., Geng, H., Yu, X., Yin, Z., Zhang, Z., Tan, Z., Zhou, H., Li, Z., Xue, X., Li, Y., et al. (2025) · arXiv · doi:10.48550/arxiv.2509.02547 · Cited by 229
Chen, W., Ma, X., Wang, X., & Cohen, W. W. (2022) · arXiv · doi:10.48550/arxiv.2211.12588 · Cited by 125
HybridFlow: A Flexible and Efficient RLHF Framework
Sheng, G., Zhang, C., Ye, Z., Wu, X., Zhang, W., Zhang, R., Peng, Y., Lin, H., & Wu, C. (2024) · arXiv · doi:10.48550/arxiv.2409.19256 · Cited by 74 · cited 1×
“Our RL training is built on the verl 0.5.0.dev0 framework(Sheng et al., 2024), initializing from the best SFT checkpoint and using VLLM(Kwon et al., 2023) as the inference engine, with a 128-node Sandbox cluster for large-scale code execution.”
InfluentialHybridFlow: A Flexible and Efficient RLHF Framework
Sheng, G., Zhang, C., Ye, Z., Wu, X., Zhang, W., Zhang, R., Peng, Y., Lin, H., & Wu, C. (2025) · Proceedings of the Twentieth European Conference on Computer Systems · doi:10.1145/3689031.3696075 · Cited by 74
Chain of Agents: Large Language Models Collaborating on Long-Context Tasks
Zhang, Y., Sun, R., Chen, Y., Pfister, T., Zhang, R., & Arik, S. Ö. (2024) · arXiv · doi:10.48550/arxiv.2406.02818 · Cited by 47
WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct
Luo, H., Sun, Q., Xu, C., Zhao, P., Lou, J., Tao, C., Geng, X., Lin, Q., Chen, S., Tang, Y., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.09583 · Cited by 33 · cited 1×
“Tool-augmented reasoning has emerged as a promising so-lution to the limitations of text-based approaches(Li et al., 2025e; Lin & Xu, 2025; Zhang et al., 2025b; Jin et al., 2025b; Liu et al., 2025a; Luo et al., 2023; Azerbayev et al., 2023; Yu et al., 2023).”
Self-citationToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving
Gou, Z., Shao, Z., Gong, Y., Shen, Y., Yang, Y., Huang, M., Duan, N., & Chen, W. (2023) · arXiv · doi:10.48550/arxiv.2309.17452 · Cited by 24 · cited 2×
“ToRA(Gou et al., 2023b) subsequently developed code-integrated reasoning frameworks tailored for mathematical problems, demonstrating the efficacy of specialized tools in complex computations.”
MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning
Yue, X., Qu, X., Zhang, G., Fu, Y., Huang, W., Sun, H., Su, Y., & Chen, W. (2023) · arXiv · doi:10.48550/arxiv.2309.05653 · Cited by 21
Iterative Reasoning Preference Optimization
Pang, R. Y., Yuan, W., Cho, K., He, H., Sukhbaatar, S., & Weston, J. (2024) · arXiv · doi:10.48550/arxiv.2404.19733 · Cited by 15 · cited 1×
“…trained with advanced methods like Reinforcement Learning(Schulman et al., 2017; Li et al., 2024; Shao et al., 2024), Direct Preference Optimization(Rafailov et al., 2023; Lai et al., 2024; Luo et al., 2024b; Pang et al., 2024), and Monte Carlo Tree Search(Xie et al., 2024; Wang et al., 2023).”
Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement
Yang, A., Zhang, B., Hui, B., Gao, B., Yu, B., Li, C., Liu, D., Tu, J., Zhou, J., Lin, J., et al. (2024) · arXiv · doi:10.48550/arxiv.2409.12122 · Cited by 14 · cited 1×
“COA(Zhang et al., 2024b) further improved flexibility through abstract placeholders and decoupled tool invocation mechanisms.”
Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning
Jin, B., Zeng, H., Yue, Z., Yoon, J., Arik, S., Wang, D., Zamani, H., & Han, J. (2025) · arXiv · doi:10.48550/arxiv.2503.09516 · Cited by 13 · cited 1×
“…et al., 2025; Shang et al., 2025; Nguyen et al., 2025; Wei et al., 2025; Luo et al., 2025b; Hao et al., 2025; Agarwal et al., 2025; Lu et al., 2025; Zeng et al., 2025a; Liu et al., 2025c; Du et al., 2025b; Chang et al., 2025; Feng et al., 2025b; Li et al., 2025d; Song et al., 2025; Nakano et al.,…”
Apigen: Automated pipeline for generating verifiable and diverse function-calling datasets
Liu, Z., Hoang, T., Zhang, J., Zhu, M., Lan, T., Kokane, S., Tan, J., Yao, W., Liu, Z., Feng, Y., et al. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-1725 · Cited by 13
APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets
Liu, Z., Hoang, T., Zhang, J., Zhu, M., Lan, T., Kokane, S., Tan, J., Yao, W., Liu, Z., Feng, Y., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.18518 · Cited by 13
R1-Searcher: Incentivizing the Search Capability in LLMs via Reinforcement Learning
Song, H., Jiang, J., Min, Y., Chen, J., Chen, Z., Zhao, W. X., Fang, L., & Wen, J.-R. (2025) · arXiv · doi:10.48550/arxiv.2503.05592 · Cited by 7
Process Reinforcement through Implicit Rewards
Cui, G., Yuan, L., Wang, Z., Wang, H., Zhang, Y., Chen, J., Li, W., He, B., Fan, Y., Yu, T., et al. (2025) · arXiv · doi:10.48550/arxiv.2502.01456 · Cited by 3
Memento: Fine-tuning LLM Agents without Fine-tuning LLMs
Zhou, H., Chen, Y., Guo, S., Yan, X., Lee, K. H., Wang, Z., Lee, K. Y., Zhang, G., Shao, K., Yang, L., et al. (2025) · arXiv · doi:10.48550/arxiv.2508.16153 · Cited by 2 · cited 1×
“…recent work has explored incorporating external tools (i.e., code interpreters), delegating complex and error-prone computational steps to external environments(Li et al., 2025e; Zhou et al., 2025; Lin & Xu, 2025; Zhang et al., 2025b; Chen et al., 2023; Gao et al., 2023; Gou et al., 2023b).”
ReFT: Reasoning with Reinforced Fine-Tuning
Luong, T. Q., Zhang, X., Jie, Z., Sun, P., Jin, X., & Li, H. (2024) · arXiv · doi:10.48550/arxiv.2401.08967 · Cited by 1
Agent Lightning: Train ANY AI Agents with Reinforcement Learning
Luo, X., Zhang, Y., He, Z., Wang, Z., Zhao, S., Li, D., Qiu, L. K., & Yang, Y. (2025) · arXiv · doi:10.48550/arxiv.2508.03680 · cited 1×
“…al., 2025; Zhang et al., 2025c; Xue et al., 2025; Li et al., 2025c; Singh et al., 2025; Shang et al., 2025; Nguyen et al., 2025; Wei et al., 2025; Luo et al., 2025b; Hao et al., 2025; Agarwal et al., 2025; Lu et al., 2025; Zeng et al., 2025a; Liu et al., 2025c; Du et al., 2025b; Chang et al.,…”
Cited by
From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms
Luo, J., Tian, Y., Cao, C., Luo, Z., Lin, H., Li, K., Kong, C., Yang, R., & Ma, J. (2026) · Findings of the Association for Computational Linguistics: ACL 2026 · doi:10.18653/v1/2026.findings-acl.2069 · Cited by 3
Metadata
- Authors
- Luo, H., Feng, H., Sun, Q., Xu, C., Zheng, K., Wang, Y., Yang, T., Hu, H., & Tang, Y.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2025
- arXiv
- 2512.20745
- References
- 19
- Type
- Preprint
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.