TL;DR
EAGER introduces a highly efficient failure management framework for LLM-based multi-agent systems by encoding complex agent interactions into a unified latent space. By replacing slow, expensive "LLM-as-a-judge" methods with a lightweight contrastive learning representation model, EAGER enables real-time, step-wise failure detection and immediate reflexive mitigation using historical failure patterns.
What Problem Does This Paper Address?
Large Language Model (LLM)-based Multi-Agent Systems (MASs) are rapidly becoming a dominant paradigm for tackling complex tasks like automated software engineering and scientific workflows. However, their dynamic, multi-step nature makes them prone to unpredictable failures.
Current "AgentOps" debugging tools try to fix this by using a large LLM to analyze reasoning traces one by one. This approach suffers from two major flaws:
- Low Efficiency: Running a large LLM judge over every single trace independently is incredibly slow and computationally expensive.
- Ignoring History: These tools treat every failure as brand new, completely ignoring historical failure patterns.
Furthermore, standard text embedding models treat agent traces like flat text, failing to capture the complex, hierarchical structure of multi-agent reasoning and coordination.
Methods
The authors propose EAGER (Efficient failure management framework for multi-AGEnt systems with Reasoning trace representation). The framework consists of several key components:
- Reasoning-Scoped Contrastive Learning: To avoid the need for scarce labeled failure data, EAGER uses an unsupervised training pipeline. By applying "question variation" (generating semantically similar questions), it creates positive and negative pairs to train a dual-encoder system: a Reasoning Encoder for intra-agent dynamics and a Trace Encoder for inter-agent coordination.
- Step-Wise Detection: Instead of waiting for a task to finish, EAGER continuously checks the embedding of each reasoning step against a database of historical Failure Knowledge (both fine-grained agent errors and coarse-grained system errors) in real time.
- Reflexive Mitigation: If a failure is detected mid-execution, EAGER triggers immediate self-correction. This happens at two levels: model-centric reflection (prompting a specific agent to rethink its step) or orchestration-centric reflection (re-evaluating the entire multi-agent coordination).
- Expert Inspect + Agent RCA: When a user flags an incorrect final output, EAGER uses root cause analysis (RCA) to update its historical failure knowledge base, continuously improving the system.
Datasets
The framework was evaluated using the official task datasets of three prominent open-source multi-agent systems:
- AutoGen-Code: A code-generation multi-agent setup.
- RCLAgent: A system designed for microservice root cause localization.
- SWE-Agent: An agent system engineered to resolve software engineering issues in GitHub repositories.
Key Insights and Ideas
- Failures are highly concentrated: An empirical analysis revealed that specific multi-agent systems don't fail randomly; their errors are highly predictable and system-dependent. For example, AutoGen-Code fails mostly on incorrect code generation (48.28%), while RCLAgent suffers heavily from missing critical traces (52.63%). This concentration proves that historical failure knowledge is a goldmine for optimization.
- Standard embeddings are blind to agent logic: Off-the-shelf text embedding models (like Qwen or BGE) perform poorly at retrieving semantically similar reasoning traces (Recall@10 under 23%). They miss the hierarchical dependencies between agents.
- Unsupervised alignment via question variation: You don't need a massive dataset of labeled bugs to train a good failure detector. By assuming that similar user questions should yield structurally similar agent reasoning paths, contrastive learning can map out "normal" vs. "abnormal" trajectories entirely unsupervised.
Key Results
- High Accuracy & Low Latency: EAGER achieved strong anomaly detection F1-scores (73.57% to 86.18%) and failure diagnosis F1-scores (63.23% to 78.76%) across the three MAS benchmarks. Crucially, the average detection latency was reduced to just 4.5 to 5.2 seconds, making it viable for high-throughput production environments.
- Boosts End-Task Performance: Integrating EAGER's real-time reflexive mitigation into RCLAgent directly improved the system's task success rate, raising the Mean Reciprocal Rank (MRR) from 46.13% to 48.65% and Recall@1 from 28.47% to 30.19%.
Limitations and Future Work
The authors note that their current representation model is only lightly fine-tuned from a small backbone (Qwen-0.6B-Embedding), which limits its out-of-the-box generalization capabilities across completely unseen domains. For future work, they plan to execute large-scale fine-tuning and structural optimization to boost cross-domain robustness and better adapt to highly diverse reasoning styles.
Summary updated