TL;DR
Multi-agent LLM systems are powerful but notoriously difficult to debug when things go wrong. VerifyMAS introduces an "error-first" hypothesis verification framework that flips the traditional debugging approach on its head: instead of scanning individual agents for mistakes, it verifies global failure hypotheses against the entire interaction trajectory before localizing the faulty agent. This method significantly reduces the combinatorial search space and dramatically improves the detection of complex, distributed system failures without sacrificing inference speed.
What Problem Does This Paper Address?
Large Language Model Multi-Agent Systems (LLM-MAS) collaborate to solve complex tasks by breaking them down into specialized subtasks. However, because the final outcome relies on a chain of interactions, a failure in a single agent can propagate through the entire system, leading to incorrect or suboptimal results. Pinpointing which agent messed up and what specific error occurred is known as failure attribution.
Current attribution approaches fall into two traps:
- Direct Prediction (DPR): Tries to predict the exact agent-error pair simultaneously, creating a massive combinatorial search space that hinders fine-grained accuracy.
- Agent-First Attribution: Uses Chain-of-Thought (CoT) prompting to analyze each agent's local logs first. However, this biases the model toward local contexts and completely misses global failures—such as cross-step inconsistencies or inter-agent coordination errors—that only manifest across the full interaction trajectory.
Methods
The authors propose VerifyMAS, a framework that decomposes failure attribution into two distinct, manageable stages:
- Error-Hypothesis Verification: Instead of asking "who failed?", the system instantiates natural language hypotheses for predefined error types (e.g., "An agent skipped necessary verification steps"). An LLM verifier evaluates the full trajectory against each hypothesis, outputting a three-way classification: Entail (the error definitely happened), Neutral (insufficient/ambiguous evidence), or Contradict (clear evidence the error did not happen).
- Agent-level Attribution: For any hypothesis labeled as Entail, the framework then localizes which specific agent(s) within the candidate set were responsible.
VerifyMAS operates out-of-the-box via zero-shot inference, but it truly shines when paired with Hypothesis Verification-guided Supervised Fine-Tuning (SFT). The authors developed a data construction strategy that automatically generates positive (entailed) and negative (contradicted/neutral) training pairs using counter-evidence keywords and semantically related "nearby" error mappings to train a highly specialized LLM verifier.
Datasets
The framework was evaluated on two primary benchmarks:
- Aegis-Bench: A comprehensive trajectory dataset containing 9,533 trajectories and 24,843 errors across six task domains (e.g., MATH, GSM8K, HumanEval) and six multi-agent frameworks. It defines a structured taxonomy of 14 fine-grained error types categorized into Local, Global, and Hybrid errors.
- Who&When: An out-of-distribution (OOD) evaluation benchmark consisting of failure logs from 127 different LLM multi-agent systems. Free-text mistake explanations were mapped to the 14 standard error modes using Gemini-2.5-Flash to ensure evaluation consistency.
Key Insights and Ideas
- Error-First > Agent-First: Prioritizing the verification of error types against the global trajectory prevents the model from getting bogged down by local agent behaviors. Local agent logs only provide partial observations of the system.
- The Power of 'Neutral': Moving from binary classification to a three-way logic (Entail, Neutral, Contradict) prevents the model from forcing ambiguous or minor, self-corrected errors into hard positive/negative categories, leading to much more robust verification.
- Mastery Over Global and Hybrid Errors: Traditional agent-first methods are decent at finding Local errors (like an agent outputting the wrong format), but fail on Global errors (like drifting from the main goal) and Hybrid errors (which require both local behavioral evidence and global context). VerifyMAS bridges this gap effectively.
Key Results
- Model-Agnostic Improvements: In zero-shot settings, VerifyMAS consistently boosted the performance of various backbone models, including open-source options (Qwen2.5-7B/14B, Qwen3-8B) and proprietary APIs (GPT-4o-mini, GPT-4.1, Gemini-2.5-Flash/Pro).
- Massive SFT Gains: When fine-tuned (VerifyMAS-7B-SFT), it achieved a Pair-F1 score of 11.93 on Aegis-Bench, vastly outperforming the standard Qwen2.5-7B-SFT baseline (5.05) and the contrastive-learning-based DCL baseline (8.33).
- Inference Efficiency: Despite evaluating multiple hypotheses, VerifyMAS maintains a highly competitive inference runtime (~2.1 seconds per trajectory), making it a practical and scalable tool for real-time multi-agent system monitoring.
Limitations and Future Work
- Over-Prediction Risks: The verification-driven design can sometimes lead to less conservative predictions, occasionally over-identifying failures in highly complex or ambiguous trajectories.
- Future Directions: The authors plan to explore additional supplementary supervision techniques to achieve even more precise agent localization once a failure has been verified.
Summary updated