AMTFV: Agentic Mathematical Tool-Flow Verification for LLM Self-Correction
Rui Zou, Yutao Zhu, Mengqi Wei, Ji-Rong Wen
Abstract
Large language models have demonstrated strong mathematical problem-solving capabilities, yet reliably verifying their candidate answers remains challenging. Existing representative methods mainly revise outputs through natural-language reflection or assist verification by directly generating verification programs; the former may not reliably support exact computation, whereas the latter prematurely couples mathematical modeling with low-level implementation. We propose AMTFV (Agentic Mathematical Tool-Flow Verification). By introducing Mathematical Tool Flow (MTF) as an interrupt--execute--resume interface, AMTFV decouples verification modeling from concrete execution and supports exact computation through a mathematical toolbox. Specifically, the verification agent first constructs a verification workflow, encodes the mathematical objects and computational intent requiring reliable execution in an MTF request, and sends it to the mathematical toolbox agent. The latter parses the request, generates executable calls, and dispatches them to the backend for exact computation. Tool outputs then support candidate-answer adjudication, answer revision, and verification-workflow revision. We evaluate AMTFV on five challenging mathematical reasoning datasets with seven model configurations from DeepSeek, GPT, and Gemini. Experimental results show that AMTFV outperforms the representative baselines evaluated in this study overall; under an individual model configuration, it improves average accuracy over the strongest baseline by up to 8.3 percentage points, with larger gains on samples of medium and high verification complexity.
Create a lesson
Related papers
When Uncertainty Isn't Enough: An Empirical Study of Self-Correction in Code Generation
Shared title terminology · Pranav Rakasi, Maanas Lalwani, Arnav Srivastava et al.
The Self-Correction Illusion: Role Relabeling Gates Explicit Error Flagging in Large Language Models
Shared title terminology · Kuan-Yen Chen, Fang-Yi Su, Shih-Yen Lin et al.
SciToolAgent-Evo: An Ontology-Aware Self-Evolving Agent for Open-World Scientific Tool Acquisition
Shared title terminology · Yuqi Tang, Chenyi Zhou, Libin Wang et al.
Keep the Process, Change the Supplier: Runtime Governance for Tool-Using AI Agents
Shared title terminology · Deepak Waghmare, Shaad Sufi
AstronautBench: Measuring Agent Self-Improvement Across Episodes Through Knowledge, Evidence, and Progress
Shared title terminology · Congyuan Yu, Runping Tian
How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM Agents
Shared title terminology · K. R. Jayaram, Vatche Isahagian, Aswath Vaithinathan Aravindan et al.