Advancing Tool-Augmented Large Language Models via Meta-Verification and Reflection Learning

Zhiyuan Ma, Jiayu Liu, Xianzhen Luo, Zhenya Huang, Qingfu Zhu, Wanxiang Che · DOI

Abstract

While Large Language Models (LLMs) have shown promise as autonomous agents capable of using external tools, their performance is often hampered by noisy training data and an inability to recover from execution errors. We introduce Tool-MVR, a framework that enhances the "System 2" reasoning capabilities of LLMs through a two-pronged approach: Multi-Agent Meta-Verification (MAMV) for data curation and Exploration-based Reflection Learning (EXPLORE) for error recovery. Tool-MVR achieves a state-of-the-art pass rate of 83.8% on the StableToolBench, outperforming GPT-4 while requiring 31% fewer API calls.

Introduction

The integration of external tools allows LLMs to perform complex real-world tasks. However, current tool-augmented LLMs face two primary bottlenecks. First, existing datasets like ToolBench often contain "hallucinated" API calls or unsolvable queries, leading to poor imitation learning. Second, models typically lack the ability to reflect on and correct errors, often repeating mistakes or abandoning tasks when an API returns an error—a phenomenon termed the "Give Up" problem. Tool-MVR aims to transition LLMs from fast, error-prone "System 1" thinking to deliberate, self-correcting "System 2" reasoning.

Methodology

Multi-Agent Meta-Verification (MAMV)

To address data quality issues, we developed the MAMV pipeline, which utilizes specialized agents to curate the ToolBench-V dataset. This pipeline ensures that APIs are functional, documentation is clear, and trajectories are logically sound.

The Multi-Agent Meta-Verification (MAMV) pipeline for high-quality data curation.

The pipeline consists of three key agents:

  • APIOptAgent: Validates API functionality and refines documentation to ensure the LLM understands required parameters.
  • QueryVerifyAgent: Filters out nonsensical or unsolvable user queries.
  • APICallAgent: Generates verified, step-by-step trajectories where every call is necessary and accurate.

Exploration-based Reflection Learning (EXPLORE)

To teach models how to recover from failures, we introduced the EXPLORE algorithm. Unlike standard imitation learning that only demonstrates successful paths, EXPLORE purposefully samples erroneous actions to generate "Error → Reflection → Correction" trajectories.

The EXPLORE algorithm generates reflection-based correction trajectories to teach error recovery.

This process results in the ToolBench-R dataset, which trains the model to analyze error messages (e.g., incorrect date formats) and implement corrections rather than failing the task.

Experimental Results

Tool-MVR was evaluated against several benchmarks, demonstrating significant improvements in both accuracy and efficiency.

Performance and Error Correction

On the StableToolBench, Tool-MVR (based on Qwen-2.5-7B) achieved an average pass rate of 83.8%, significantly higher than GPT-4 (68.5%) and the previous state-of-the-art, ToolLLM (59.9%). Crucially, on the RefineToolBench—a benchmark specifically designed to test error recovery—Tool-MVR achieved a 58.9% error correction rate, compared to just 9.1% for ToolLLM.

Efficiency and Generalization

Deliberate planning allowed Tool-MVR to solve tasks with 31.4% fewer API calls than GPT-4. This efficiency stems from avoiding redundant trial-and-error loops. Furthermore, the model demonstrated strong generalization to unseen tools and categories, suggesting that the learned reasoning patterns are robust across diverse domains.

Conclusion

Tool-MVR demonstrates that high-quality, verified data and explicit reflection training are more effective than simply scaling noisy datasets. By fostering "System 2" reasoning, the framework enables LLMs to become more reliable and efficient agents. Future work will explore extending these capabilities to autonomous tool discovery and long-term planning in dynamic environments.

Summary updated

BibTeX
@inproceedings{ma2025advancing,
  author = {Zhiyuan Ma and Jiayu Liu and Xianzhen Luo and Zhenya Huang and Qingfu Zhu and Wanxiang Che},
  title = {{Advancing Tool-Augmented Large Language Models via Meta-Verification and Reflection Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3736835},
}
Figure