Detect Before You Attribute: Cascade Failure Attribution for Multi-Agent Systems

Jiayi Zhang, Zexin Wang, Degang Sun, Changhua Pei, Fei Sun, Gaogang Xie, Jingjing LiarXiv 2026

TL;DR

DUOTRACE introduces a smart "detect-before-attribute" paradigm to pinpoint root-cause failures in LLM-based multi-agent systems. By using a lightweight Tree-LSTM Variational Autoencoder (VAE) to filter out normal execution steps, it feeds downstream LLM judges a highly condensed, relevant sub-trajectory. This approach overcomes the "lost-in-the-middle" context dilution problem, boosting failure attribution accuracy while slashing token costs by up to 76%.

What Problem Does This Paper Address?

As Large Language Model (LLM)-based multi-agent systems (MAS) tackle increasingly complex, long-horizon tasks, they become highly vulnerable to cascading failures. A subtle hallucination or minor error by an agent early in a workflow can quietly propagate through subsequent steps, ultimately derailing the final objective.

Finding the exact origin of these failures is known as Failure Attribution (FA). Existing approaches fall into two flawed camps:

  1. Topology- and spectrum-based methods: These are fast and lightweight but "semantic-blind"—they only look at execution frequencies and completely miss text-based hallucinations.
  2. LLM-as-a-Judge methods: These understand fine-grained semantics but suffer heavily from the "lost-in-the-middle" phenomenon when processing long execution logs. As trajectories grow, the judge's accuracy degrades significantly, accompanied by soaring token costs and inference latencies.
Figure 1: Failure attribution accuracy with different input length.

Methods

The authors propose DUOTRACE, a plug-and-play detection filter that sits in front of any downstream LLM judge. Instead of forcing the LLM to read the entire execution log, DUOTRACE filters out normal behaviors and isolates a compact set of anomalous signals.

Figure 2: The overall architecture of DUOTRACE.

The framework consists of four core modules:

  • Data Augmentation: To train the anomaly detector without massive failure datasets, DUOTRACE uses LLMs to replay tasks and generate diverse, successful trajectories. These are sliced into variable-length "prefix chains" to teach the model how normal execution progresses over time.
  • Dual-View Feature Representation: For every execution step, DUOTRACE fuses a Semantic View (encoding agent identities and tool payloads using a Sentence Transformer) with a Structural View (capturing parent-child invocation dependencies via an adjacency matrix).
  • Lightweight Structural VAE: Because multi-agent workflows naturally form hierarchical trees (due to nested tool calls and task decomposition), the authors employ a Tree-LSTM-based VAE. The encoder models the tree structure, while the MLP decoder attempts to reconstruct the expected semantic behavior and token footprints. Steps that deviate from the norm yield high reconstruction errors.
  • Dynamic Scoring & Integration: Anomaly scores are converted into standardized Z-scores to track sudden "mutation peaks" along the execution tree. The top-$K$ anomalous nodes are extracted, preserving their topological links, and forwarded as a clean, distilled sub-trajectory to the downstream LLM judge.

Datasets

The authors evaluated DUOTRACE across several distinct multi-agent fault attribution benchmarks:

  • Who and When Benchmark: The primary dataset, containing 184 failure instances split into Handcraft (complex, long-step trajectories) and Automated (shorter interaction sequences) subsets.
  • AgentErrorBench & RealWorld (LongRCABench): Used to test cross-benchmark generalization on completely unseen target schemas.
  • MP-Bench: Used to evaluate candidate-ranking performance in complex scenarios featuring multiple failure causes.

Key Insights and Ideas

  • Tree Inductive Bias is Crucial: Multi-agent logs aren't flat sequences; they are hierarchical trees. Ablation studies showed that the Tree-LSTM encoder significantly outperformed flat architectures (like standard Transformers or MLPs) and generic graph models (like GATs) because its inductive bias perfectly matches the call-and-return nature of multi-agent interactions.
  • Dual-View Modeling is Non-Negotiable: Removing either the structural view or the semantic view caused massive performance drops (up to 20.69%). You need both to catch subtle hallucinations that look structurally sound but make no sense textually.
  • Intelligent Distillation vs. Simple Truncation: Simply shortening a log randomly or using naive top-$K$ positional filtering destroys downstream attribution accuracy. The filtering mechanism must be explicitly relevance-aware to keep the LLM judge effective.

Key Results

DUOTRACE consistently supercharged every evaluated baseline model (including DeepSeek-R1, Claude-Sonnet-4, GPT-5, and specialized frameworks like ECHO and CORRECT):

  • Accuracy Boosts: On average, DUOTRACE improved agent-level attribution accuracy by 8.7% and step-level accuracy by 7.0%. For instance, it boosted Qwen3.5-plus's agent accuracy on the complex Handcraft dataset by an absolute margin of 19.0%.
  • Efficiency Gains: By pruning redundant logs, it cut token consumption by 41% for ECHO and up to 76% for Qwen3.5-plus.
  • Speedups: Downstream inference latency plummeted. The CORRECT framework achieved a 2.5× speedup (reducing debugging time from 81.4 to 32.3 minutes), making real-time online multi-agent debugging highly practical.

Limitations and Future Work

While DUOTRACE dramatically reduces downstream LLM evaluation costs, it introduces an upstream trade-off: training the Tree-LSTM-based VAE requires initial computational resources and normal execution data.

Additionally, the framework still fundamentally relies on the downstream LLM judge for final causal reasoning, meaning it remains subject to any intrinsic cognitive or societal biases present in those foundational models. The authors suggest that future work should explore even lighter-weight VAE architectures to further minimize the initial training carbon footprint.

Summary updated

BibTeX
@misc{zhang2026detect,
  author = {Jiayi Zhang and Zexin Wang and Degang Sun and Changhua Pei and Fei Sun and Gaogang Xie and Jingjing Li},
  title = {{Detect Before You Attribute: Cascade Failure Attribution for Multi-Agent Systems}},
  year = {2026},
  eprint = {2608.29646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29646},
}
Figure