arXiv(opens in a new tab)cs.AIAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.29646

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

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

Abstract

Large language model (LLM)-based agents have shown strong potential in solving complex tasks through multi-step reasoning, yet they remain vulnerable to execution failures. Accurate failure attribution is therefore critical for improving agent reliability. Existing topology- and spectrum-based methods exploit trajectory structures but often overlook fine-grained semantics, while LLM-based attribution methods capture semantic cues but suffer from long-context degradation over lengthy trajectories. To address these challenges, we propose DUOTRACE, a plug-and-play detection filter for LLM-based failure attribution. DUOTRACE follows a detect-before-attribute paradigm: it first detects anomalous executions and then supplies focused trajectory evidence to downstream LLM-based attribution methods. For effective VAE-based anomaly detection on agent trajectories, DUOTRACE integrates dual-view semantic-structural node representations, a Tree-LSTM-based trajectory encoder, and prefix-chain- and LLM-based data augmentation to handle heterogeneous nodes, hierarchical execution structures, and limited failure data. Experiments with six LLM-based attribution baselines show that DUOTRACE improves agent-level and step-level attribution accuracy by 8.7% and 7.0%, respectively.

1 Introduction

Large language models (LLMs) have empowered autonomous agents to tackle complex scenarios through reasoning, planning, and environmental interaction (Yao et al., 2023b,a). As modern agent systems increasingly shift towards long-horizon tasks, their execution typically unfolds as a complex, hierarchical tree of highly coupled operations. However, this multi-step architecture introduces a critical vulnerability: a subtle error at an early stage goes unnoticed, cascading through the execution branches and corrupting downstream

Figure

(a) Agent-level accuracy.

(b) Step-level accuracy.

Figure 1: Failure attribution accuracy with different input length.

decisions. This delayed manifestation of errors not only derails the final objective but also incurs substantial computational overhead and wasted inference time. Consequently, Failure Attribution (FA)—the process of tracing a system-level failure back to its precise origin—has become indispensable. By pinpointing the root cause, FA fundamentally enhances the debuggability, reliability, and cost-efficiency of LLM-based agents (Zhang et al., 2025b; Ge et al., 2025).

Existing approaches to failure attribution still suffer from notable limitations. Topology- and spectrum-driven methods can exploit structural information in trajectories, such as node dependencies, but often overlook fine-grained semantic cues, making them ineffective at attributing common hallucination-related failures. In contrast, LLM-as-a-Judge methods provide a more promising direction, as they can jointly consider both structural and semantic information. However, as shown in Figure 1, when trajectories become longer, LLM-based judges are increasingly affected by the lost-in-the-middle problem, which leads to degraded attribution accuracy and limits their practicality in complex online systems (Liu et al., 2024).

This motivates a detect-before-attribute paradigm for LLM-based failure attribution: before invoking an LLM judge, we first detect abnormal executions and filter out normal infor-mation, providing the judge with a compact set of failure-relevant signals. For sequential anomaly detection, existing filtering methods can be broadly categorized into rule-based, prediction-based (Zhou et al., 2024), and reconstruction-based (Wang et al., 2024b) approaches. Rule-based methods lack generalizability, while prediction-based methods may overfit anomalies in unsupervised settings. Reconstruction-based methods thus offer a more suitable foundation for trajectory filtering. Accordingly, we adopt a Variational AutoEncoder (VAE)-based module as a plug-and-play filtering backbone. However, applying a VAE to agent trajectories remains non-trivial due to three primary challenges:

(i) Dual-view modeling. As validated by our empirical evaluations, agent trajectories require joint modeling of textual semantics and topological structures for reliable anomaly filtering.

(ii) Tree-structured encoding. Agent executions naturally form hierarchical trees due to task decomposition and nested tool calls, rather than simple linear sequences.

(iii) Limited normal data. High-quality normal trajectories are scarce, making it difficult for VAEs to learn a stable normal execution manifold.

To address these challenges, we propose DUOTRACE, a dual-view VAE filter designed to accelerate and refine agent failure attribution. First, to support dual-view modeling, it constructs node representations by fusing semantic embeddings of agent states and operator logs with topological adjacency information. Second, to encode hierarchical executions, it employs a Tree-LSTM-based VAE that naturally captures tree-structured dependencies and identifies abnormal nodes through statistical reconstruction errors. Third, to alleviate the scarcity of normal data, it augments the normal execution manifold with prefix chains extracted from successful trajectories and diverse LLM-generated simulations. As a lightweight plug-and-play module, DUOTRACE can be seamlessly integrated with existing LLM-based judges, improving attribution accuracy while reducing token consumption and inference latency. Experiments on multiple public datasets show that DUOTRACE improves agent-level and step-level attribution accuracy by 8.7% and 7.0%, respectively, over strong baselines.

The main contributions of this work are summarized as follows:

• We propose DUOTRACE, a plug-and-play VAE filter that utilizes Tree-LSTM reconstruction errors to isolate anomalies and empower downstream LLM evaluators.

• We design a novel trajectory representation explicitly fusing textual semantics with topological structures to capture complex dependencies.

• We introduce a robust augmentation strategy via prefix-chain extraction and LLM simulations to enrich the normal execution manifold.

• DUOTRACE yields absolute improvements of 8.7% and 7.0% in agent-level and step-level accuracy, respectively, over existing baselines, while substantially reducing inference overhead.

References (3)

  • - Orchestrator: coordinates other agents, makes decisions, plans
  • : as specified above. -
  • (starting from 1)