MIRROR: Multi-agent Intra- and Inter-Reflection for Optimized Reasoning in Tool Learning

Zikang Guo, Benfeng Xu, Xiaorui Wang, Zhendong Mao

Overview

MIRROR is a novel multi-agent framework designed to optimize how Large Language Models (LLMs) interact with external tools. By introducing a "think-before-you-act" mechanism, MIRROR combines intra-reflection (internal self-correction before execution) and inter-reflection (system-wide learning from past attempts). This approach achieves state-of-the-art performance on complex benchmarks by catching errors before they propagate through a workflow.

The Challenge of Tool Learning

While LLMs are increasingly capable, they often struggle with multi-step tasks requiring external APIs. Current agentic workflows typically rely on "post-hoc" reflection, where an agent only analyzes its mistakes after a failed execution. This reactive approach suffers from three major drawbacks:

  1. Irreversibility: Actions like sending emails or making purchases cannot be undone.
  2. Error Propagation: Early planning mistakes can snowball, rendering the entire task trajectory useless.
  3. Cost: Executing a full cycle only to find a simple typo in the first step is computationally expensive.

MIRROR addresses these issues by enabling agents to "mentally simulate" outcomes and refine their plans proactively.

The MIRROR Architecture

The framework distributes tasks across three specialized agents: the Planner Agent (decomposes requests), the Tool Agent (selects parameters), and the Answer Agent (synthesizes the final response).

The MIRROR architecture featuring specialized agents and dual-phase reflection loops.

The core innovation is its dual-phase reflection strategy:

  • Intra-reflection (The Pre-check): Before passing output to the next stage, each agent performs a self-assessment against predefined quality thresholds. If the output is suboptimal, the agent iteratively refines it internally.
  • Inter-reflection (The Post-mortem): MIRROR utilizes a dual-memory system. Short-Term Memory (STM) helps the Tool Agent avoid immediate parameter errors, while Long-Term Memory (LTM) stores failed trajectories to help the Planner Agent refine high-level strategies for future attempts.

Experimental Results

MIRROR was evaluated on rigorous benchmarks, including StableToolBench (executable API tests) and TravelPlanner (complex multi-step planning). It consistently outperformed baselines like ReAct, Reflexion, and DFSDT across various backbones (GPT-4o, Claude 3, Qwen2.5).

Key performance highlights include:

  • StableToolBench: Achieved an 85.7% Pass Rate with GPT-4o-mini, surpassing the standard Reflexion approach (75.6%).
  • TravelPlanner: Reached a 100% Delivery Rate on GPT-4o, compared to 85.6% for the ReAct baseline.
Comparison of pass rate and token cost across different agentic frameworks.

Beyond accuracy, MIRROR demonstrates significant token efficiency. By pruning unsuccessful paths early through intra-reflection, it avoids the massive overhead associated with deep tree-search methods like DFSDT, proving that "thinking twice" can actually be more economical than exhaustive exploration.

Insights and Future Work

Ablation studies highlight that the Answer Agent acts as a vital gatekeeper; if the final synthesis is poor, it triggers a strategic reset via the LTM. While MIRROR sets new standards, future work will focus on automating the determination of quality thresholds and reducing the inference latency inherent in iterative reflection steps. Despite these challenges, MIRROR represents a significant step toward more reliable and efficient autonomous agents.

Summary updated

BibTeX
@inproceedings{guo2025mirror,
  author = {Zikang Guo and Benfeng Xu and Xiaorui Wang and Zhendong Mao},
  title = {{MIRROR: Multi-agent Intra- and Inter-Reflection for Optimized Reasoning in Tool Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/14},
}
Figure