arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.01256

DeFA: Dependency-Guided Failure Attribution for LLM Agents

Bo Deng, Xinlei Zheng, Yi Wei, Kang Zhou, Chongyang Tao, Renzhao Liang, Xuanren Chen, Lifan Guo, Chi Zhang

ABSTRACT

Errors in LLM agent executions and their visible consequences can be separated by many steps, making decisive-error localization a matter of understanding both step content and step dependencies. We introduce DeFA, a dependency-guided framework for agent failure attribution. DeFA first combines protocol relations and semantic dependencies into an event dependency graph spanning the trajectory. It then identifies events that may violate task requirements and traces their sources and subsequent effects to construct a failure propagation graph. Finally, DeFA uses step evidence and the steps' roles in failure propagation to identify the decisive error, responsible agent, and error category. To support long trajectories, DeFA partitions executions into segments and combines the current segment's detailed content with summaries of the other segments, giving local diagnosis access to global execution context. Across Who&When and the Who&When Pro text subset, DeFA achieves the highest responsible-agent and exact step accuracy with all evaluated backbones, and the highest failure-mode accuracy among taxonomy-aligned methods on Pro. Further experiments on image and video trajectories demonstrate its applicability to multimodal failure attribution. Ablations support the contributions of segmentation, the event dependency graph, and the failure propagation graph. Using DeFA's diagnostic feedback for skill evolution in Trace2Skill improves downstream task accuracy by 6–15 percentage points over the native pipeline, showing that the diagnoses can also support agent improvement on subsequent tasks.

1 INTRODUCTION

When an LLM agent fails a task, the final outcome rarely reveals which earlier decision was responsible. Agents interleave reasoning, tool use, and communication (Yao et al., 2023; Wu et al., 2024), producing trajectories in which an error and its visible consequences may be separated by many steps. Failure attribution identifies the responsible agent and the decisive error step (Zhang et al., 2025; Liu et al., 2026), providing specific evidence for debugging and subsequent improvement.

The difficulty lies in tracing how errors arise and propagate through execution to identify the decisive error behind downstream symptoms. Suppose an agent misreads a retrieved value, another agent uses it in a calculation, and the final answer repeats the incorrect result. The final answer reveals the failure, but the earlier interpretation may be the decisive error. Empirical studies likewise examine failure onset and propagation in agent trajectories (Zhao et al., 2026). Attribution must therefore examine what information a step received, how it used that information, and what happened afterward. This becomes harder when relevant evidence is distributed across a long trace (Liu et al., 2024).

Existing attribution frameworks use global judgments, sequential checks, or binary search (Zhang et al., 2025), as well as constraint validation, multi-agent investigation, and hierarchical diagnosis (Barke et al., 2026; Li et al., 2026; Wang et al., 2026). Our focus is to connect suspicious events with the execution that made them consequential. A local deviation must be examined together with its upstream sources and the later actions that adopted, amplified, or corrected its effects. Reconstructing these relations brings distributed evidence together to explain how the execution failed.

We introduce DeFA, a framework for dependency-guided failure attribution from recorded trajectories. DeFA first combines protocol relations and semantic dependencies into an event dependency graph spanning the trajectory. Building on this structure, it identifies events that may violate task requirements and traces their sources and subsequent effects to construct a failure propagation graph. It then combines trajectory content and propagation relations to identify the decisive error step, responsible agent, and error category. For long trajectories, DeFA uses segmented analysis, combining the current segment's detailed content with summaries of the other segments so that local diagnosis can use both concrete step evidence and global execution context.

Against seven baselines, DeFA leads in responsible-agent and exact step accuracy on Who&When with all three backbones, improving exact step by 7.6–9.8 percentage points. On 300 Pro text trajectories, it also achieves the highest responsible-agent and exact step accuracy with all three backbones, as well as the highest failure-mode accuracy among taxonomy-aligned methods. On 100 multimodal trajectories, it improves exact step accuracy by 6.0–7.0 points across both backbones. Ablations show that segmentation, the event dependency graph, and the failure propagation graph each contribute to attribution accuracy. Removing propagation relations lowers exact step accuracy even when the adjudication set is held fixed, supporting their role in identifying the decisive error. Downstream experiments integrate DeFA's diagnostic feedback into Trace2Skill, improving test accuracy over the native pipeline by 6–15 percentage points across human-written and model-generated initial skills and demonstrating its utility for agent improvement on subsequent tasks.

Our contributions are:

• We introduce a failure attribution framework that combines protocol relations and semantic dependencies into an event dependency graph to identify suspicious events, trace their contribution to task failure, and locate the decisive error and responsible agent.

• We develop a failure propagation graph that connects suspicious events with their upstream sources and downstream effects, tracing how errors are introduced, transmitted, and adopted to support decisive-error attribution.

• We demonstrate gains in precise attribution across text and multimodal evaluations, and show that DeFA’s diagnostic feedback improves downstream skill evolution by 6–15 percentage points over native Trace2Skill.

References (28)