Failure Makes the Agent Stronger: Enhancing Accuracy through Structured Reflection for Reliable Tool Interactions
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Tool-augmented large language models (LLMs) are usually trained with supervised imitation or coarse-grained reinforcement learning that optimizes single tool calls. Current self-reflection practices rely on heuristic prompts or one-way reasoning: the model is urged to 'think more' instead of learning error diagnosis and repair. This is fragile in multi-turn interactions; after a failure the model often repeats the same mistake. We propose structured reflection, which turns the path from error to repair into an explicit, controllable, and trainable action. The agent produces a short yet precise reflection: it diagnoses the failure using evidence from the previous step and then proposes a correct, executable follow-up call. For training we combine DAPO and GSPO objectives with a reward scheme tailored to tool use, optimizing the stepwise strategy Reflect, then Call, then Final. To evaluate, we introduce Tool-Reflection-Bench, a lightweight benchmark that programmatically checks structural validity, executability, parameter correctness, and result consistency. Tasks are built as mini trajectories of erroneous call, reflection, and corrected call, with disjoint train and test splits. Experiments on BFCL v3 and Tool-Reflection-Bench show large gains in multi-turn tool-call success and error recovery, and a reduction of redundant calls. These results indicate that making reflection explicit and optimizing it directly improves the reliability of tool interaction and offers a reproducible path for agents to learn from failure.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 31 of its 73 references that are in the map. First posted on arXiv 23 Sep 2025.
Builds on
31 of 73 references.
Closest ancestors · 7
Same direction, newest first
- 2024TL-Training: A Task-Feature-Based Framework for Training Large Language Models in Tool Use20 Dec
- 2024Facilitating Multi-turn Function Calling for LLMs via Compositional Instruction Tuning16 Oct
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions10 Oct
- 2024ToolACE: Winning the Points of LLM Function Calling2 Sep
- 2024Tool Learning with Large Language Models: A Survey28 May
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs14 Apr
Other references · 24
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2025Group Sequence Policy Optimizationcited by 788
- 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 377
- 2024SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuningcited by 345
- 2025ToolRL: Reward is All Tool Learning Needscited by 342
- 2025SFT or RL? An Early Investigation into Training R1-Like Reasoning Large Vision-Language Modelscited by 209
- 2025ToRL: Scaling Tool-Integrated RLcited by 166
12 more
- 2024xLAM: A Family of Large Action Models to Empower AI Agent Systemscited by 108
- 2024Planning, Creation, Usage: Benchmarking LLMs for Comprehensive Tool Utilization in Real-World Complex Scenarioscited by 85
- 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 72
- 2025LongCat-Flash Technical Reportcited by 54
- 2023LLM4EDA: Emerging Progress in Large Language Models for Electronic Design Automationcited by 40
- 2024Large Language Models Can Self-Correct with Key Condition Verificationcited by 39
- 2025PAG: Multi-Turn Reinforced LLM Self-Correction with Policy as Generative Verifiercited by 28
- 2024Self-Reflection Makes Large Language Models Safer, Less Biased, and Ideologically Neutralcited by 20
- 2025Boosting LLM Reasoning via Spontaneous Self-Correctioncited by 18
- 2024Equipping Language Models with Tool Use Capability for Tabular Data Analysis in Financecited by 14
- 2024Sparse Rewards Can Self-Train Dialogue Agentscited by 6
- 2025Correcting Hallucinations in News Summaries: Exploration of Self-Correcting LLM Methods with External Knowledgecited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 11.
12 papers.
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2026Robust Tool Use via Fission-GRPO: Learning to Recover from Execution Errorscited by 10
- 2026Toward Personalized LLM-Powered Agents: Foundations, Evaluation, and Future Directionscited by 10
- 2025Beyond Words and Pixels: A Benchmark for Implicit World Knowledge Reasoning in Generative Modelscited by 4
- 2026Correct Is Not Enough: Training Reasoning Planners with Executor-Grounded Rewardscited by 1
- 2026Agent Lifecycle Toolkit (ALTK): Reusable Middleware Components for Robust AI Agentscited by 0
- 2026Mint-Agent: Introducing Finance-Native Agentic Foundation Modelscited by 0
- 2026SAP: State-Guided Data Synthesis with Argument Provenance for Multi-Turn Tool Usecited by 0
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing Itcited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026MCP Error Messages Written for Developers Hurt the Most Capable Agents Mostcited by 0
- 2026Failure-Transparent Agents: Benchmarking Post-Failure Reporting in Tool-Using Language Modelscited by 0
- 2026Failure-Transparent Agents: Benchmarking Post-Failure Reporting in Tool-Using Language Models28 Sep 2026
- 2026MCP Error Messages Written for Developers Hurt the Most Capable Agents Most28 Sep 2026
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It22 Sep 2026
- 2026SAP: State-Guided Data Synthesis with Argument Provenance for Multi-Turn Tool Use5 Sep 2026
- 2026Mint-Agent: Introducing Finance-Native Agentic Foundation Models17 Aug 2026
- 2026Correct Is Not Enough: Training Reasoning Planners with Executor-Grounded Rewards5 May 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Agent Lifecycle Toolkit (ALTK): Reusable Middleware Components for Robust AI Agents16 Mar 2026
- 2026Toward Personalized LLM-Powered Agents: Foundations, Evaluation, and Future Directions26 Feb 2026
- 2026Robust Tool Use via Fission-GRPO: Learning to Recover from Execution Errors22 Jan 2026
- 2025Beyond Words and Pixels: A Benchmark for Implicit World Knowledge Reasoning in Generative Models23 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2026ReGRPO: Reflection-Augmented Policy Optimization for Tool-Using Agents
- 2025MIRROR: Multi-agent Intra- and Inter-Reflection for Optimized Reasoning in Tool Learning
- 2025PALADIN: Self-Correcting Language Model Agents to Cure Tool-Failure Cases
- 2025Advancing Tool-Augmented Large Language Models via Meta-Verification and Reflection Learning
- 2026Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
- 2026ToolRobustBench: Stage-Wise Perturbation Evaluation and Failure Diagnosis for Tool-Calling Agents
- 2026Retry, Switch, or Abstain? Learning Strategy-Aware Tool-Use Policies via Controlled Error Injection
- 2026ParaRecover: A Process-Level Benchmark for Error Localization and Recovery in Parallel Tool-Use Agents