TL;DR
When multi-agent LLM systems fail, pinpointing the exact agent and step responsible is notoriously difficult due to cascading errors. This paper introduces Adaptive Influence Graphs (AIGs), a framework that shifts failure diagnosis from reading flat text logs to navigating a dynamically constructed dependency graph. By treating failure attribution as an interface-design problem, AIGs achieve a new state-of-the-art on the standard multi-agent debugging benchmark.
What Problem Does This Paper Address?
As multi-agent LLM systems are increasingly deployed for complex tasks, they inevitably encounter failures. Diagnosing these systems is challenging because an error made early on by one agent can propagate silently through several other agents before causing a visible failure at the very end. Finding the root cause—the specific agent and step where the execution first went off the rails—is known as failure attribution.
Currently, most automated debugging approaches feed long, flat, sequential text logs directly into an LLM. However, human engineers rarely debug complex systems by reading raw logs end-to-end; instead, they rely on observability tools that organize traces around components, spans, and dependencies. The authors hypothesize that LLMs, much like humans, struggle with flat logs and perform significantly better when given a structured, navigable interface.
Methods
The authors propose Adaptive Influence Graphs (AIGs), a training-free, two-stage agentic framework consisting of two main components:
- The Builder Agent: Instead of using a rigid, predefined schema to parse logs, an LLM-based Builder dynamically groups consecutive log steps into action-level nodes and assigns them specific workflow roles (e.g., task, orchestrator, agent, conclusion). It then draws directed "inheritance edges" between nodes to map out how data and errors propagate downstream. To ensure reliability, a critic-refiner loop automatically audits the graph for structural and semantic consistency against the original log.
- The Reader Agent: An independent LLM-based Reader navigates the finalized graph. Starting from the final failure symptom, it traces backward along the inheritance edges. Crucially, the Reader does not blindly trust the graph; it uses specialized tools to selectively inspect the underlying raw log steps to verify the graph's claims before outputting its final failure attribution prediction.
Datasets
The framework was evaluated on Who&When, the standard benchmark for multi-agent failure attribution, across both of its primary partitions:
- Algorithm-Generated partition: Used for controlled ablations and detailed analysis.
- Hand-Crafted partition: Used to test generalization on human-designed agent traces.
Key Insights and Ideas
- Interface Design is a Core AI Problem: Failure attribution performance depends heavily on how the trace is represented and explored, not just the raw reasoning capability of the diagnosing model.
- Structuring Logs Levels the Playing Field: Moving from raw logs to structured logs dramatically improves the performance of weaker backbone models (like Claude 3 Sonnet and DeepSeek-V3), bringing their diagnostic accuracy within close reach of top-tier models like Claude 3 Opus.
- Variable Granularity is Crucial: Unlike prior methods that use fixed rules to chunk logs, the adaptive builder dynamically compresses long runs of successful steps into single nodes while expanding complex, error-prone interactions. This explicitly exposes long-range dependencies that span multiple steps.
Key Results
- State-of-the-Art Performance: AIGs using Claude 3 Opus achieved 55.20% exact step accuracy on the Algorithm-Generated partition of Who&When, outperforming the previous best-reported method (51.60%).
- Localization of Deep Failures: The biggest improvements occur when failures happen deep within the trace (step 5 or later), where downstream symptoms usually obscure the root cause. For these deep failures, exact accuracy shot up from 10.8% (using raw logs) to 40.5% (using AIGs).
- High Near-Miss Accuracy: Even when missing the exact step, AIGs localized 84.00% of failures within a tight $\pm3$-step window.
Limitations and Future Work
- Token Overhead: Because AIG introduces a multi-stage process involving building, criticizing, and reading, it consumes significantly more tokens than simple single-call raw log reading. It is best suited for environments where reliable diagnosis justifies the extra computational cost.
- Evaluation Scope: The approach was only validated on the Who&When benchmark. Its generalizability to other multi-agent frameworks or task distributions remains an open question.
- Missing Inputs: The Who&When benchmark only exposes agent outputs, not the inputs they observed. The authors note that future work could extend AIGs to ground graph nodes in both inputs and tool logs for even richer context.
Summary updated