NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RAFFLES: Reasoning-based Attribution of Faults for LLM Systems

Chenyang Zhu, Spencer Hong, Jingyu Wu, Kushal Chawla, Yuhui Tang, Youbing Yin, Nathan Wolfe, Erin Babinsky, Daben Liu

TL;DR

As large language model (LLM) applications evolve into complex, multi-step agentic systems, finding the exact point where an agent's logic derails has become a "needle in a haystack" problem. This paper introduces RAFFLES, an automated, simulation-free offline evaluation framework that uses an iterative Judge-Evaluator team to pinpoint root-cause errors. RAFFLES establishes a new state-of-the-art in fault attribution, significantly outperforming single-pass LLM judges and complex simulation-based debugging methods at a fraction of the cost of human review.

What Problem Does This Paper Address?

Modern LLM architectures (like ReAct or Reflexion) allow autonomous agents to plan, call tools, and reason over long horizons. However, this flexibility introduces a major challenge: a single, subtle error early in a multi-step trajectory can cascade, causing the entire system to fail.

Currently, identifying these root causes relies heavily on manual "detective work" by engineers, which can take tens of minutes per data instance. Existing automated evaluation strategies typically look only at end-to-end outcomes or rely on single-pass "LLM-as-a-judge" prompts. These single-pass judges notoriously struggle with long contexts and lack the structured reasoning required to trace complex, multi-agent dependencies. The authors address this gap by engineering an automated framework capable of localizing the exact step where a fatal error occurs.

Methods

The core philosophy behind RAFFLES is that an evaluator must be as sophisticated as the system it evaluates. Instead of a single judgment call, RAFFLES implements an iterative, multi-component pipeline structured around the concept of a Decisive Fault—defined as the earliest critical error that dooms an otherwise successful trajectory.

The RAFFLES framework architecture showing the iterative loop between the central Judge and specialized Evaluators.

The framework operates via a multi-turn loop consisting of two primary roles:

  1. The Judge: Analyzes the execution logs globally and proposes a candidate faulty step $t$, along with three distinct rationales based on specific criteria: Fault Condition (did an error happen?), Primacy (is it the earliest error?), and Decisiveness (did it cause the final failure?).
  2. Specialized Evaluators: A set of independent LLM evaluators critique the Judge's rationales. Each evaluator focuses on a single criterion, providing natural language feedback and a confidence score (0-100). A final rule-based evaluator checks for log consistency.

The evaluators' feedback is saved to a memory history component ($\mathcal{H}$) and fed back to the Judge in the next turn. This allows the Judge to iteratively refine its hypothesis. The loop terminates when the evaluators' combined confidence crosses a high threshold or a maximum iteration count ($K$) is reached.

Datasets

The authors evaluated RAFFLES across two distinct domains using established benchmarks:

  • Who&When Dataset: Designed for step-level fault attribution in multi-agent systems. It features real-world agent logs derived from GAIA and AssistantBench. It is split into an Algorithmically-Generated subset (126 logs, averaging 9 steps) and a highly complex Hand-Crafted subset (58 logs, averaging 51 steps).
  • ReasonEval Dataset: Used to diagnose step-level mathematical reasoning errors. The authors utilized the MR-MATH-Invalid subset (83 trajectories with reasoning errors) and the MR-GSM8K (Original and Reversed) subsets.

Key Insights and Ideas

  • Global vs. Local Dichotomy: Single-pass models fail because they try to process everything at once. RAFFLES succeeds by separating global hypothesis generation (the Judge) from focused, local analysis (the Evaluators).
  • Mitigating "Lost in the Middle" Bias: LLMs evaluating long trajectories inherently suffer from a bias toward blaming early steps. The authors observed that in early iterations, the Judge frequently fell into this trap. However, the iterative critique from the Evaluators successfully forced the Judge to look deeper into later steps, correcting this context-length bias over time.
Step-level accuracy degradation across input context length quartiles for Llama 3.3 70B.
  • Simulation-Free Superiority: Traditionally, high-accuracy fault attribution required running expensive counterfactual simulations (re-running the agent from a specific step to see if it still fails). RAFFLES proves that structured, multi-agent reasoning can match or beat simulation-based methods without the massive computational overhead.

Key Results

RAFFLES demonstrated substantial performance gains across multiple model families (including Llama 3.3 70B, GPT models, and Claude Sonnet 4).

Who&When Benchmark

RAFFLES achieved a new state-of-the-art on the Who&When dataset, outperforming strong baselines like sequential routers and tool-calling planners.

Step-level accuracy comparison on the Who&When datasets.

When compared to published literature, Claude Sonnet 4 powered by RAFFLES achieved 51.59% accuracy on the Algorithmically-Generated split (beating the previous best simulation-free method, CORRECT, at 38.10%) and 27.59% on the Hand-Crafted split.

ReasonEval Benchmark

On mathematical reasoning chains, RAFFLES consistently boosted step-level accuracy, proving its versatility beyond multi-agent logs.

Step-level accuracy comparison on the ReasonEval datasets.

Cost and Latency

Using Claude Sonnet 4, RAFFLES costs roughly $0.12 to $0.31 per log analysis. Compared to human junior engineers (estimated at $2.50 to $12.50 per log), RAFFLES represents a massive cost reduction. Furthermore, by parallelizing the Evaluator calls, the authors reduced average latency by over 50% down to ~15.5 seconds.

Limitations and Future Work

The authors highlight a critical bottleneck in this sub-field: the pronounced scarcity of large-scale, high-quality datasets for agentic fault attribution. For instance, the Hand-Crafted subset of Who&When suffers from a severe label imbalance where a single agent type (WebSurfer) accounts for 57% of all failures, allowing trivial baselines to score deceptively high on agent-level metrics.

Additionally, while parallelization helps, the multi-turn nature of RAFFLES inherently incurs higher latency than a single-pass model or a fine-tuned Process Reward Model (PRM). The authors suggest that future work should focus on using RAFFLES as a high-quality data generator to train more efficient, single-pass downstream models.

Summary updated

BibTeX
@inproceedings{zhu2026raffles,
  author = {Chenyang Zhu and Spencer Hong and Jingyu Wu and Kushal Chawla and Yuhui Tang and Youbing Yin and Nathan Wolfe and Erin Babinsky and Daben Liu},
  title = {{RAFFLES: Reasoning-based Attribution of Faults for LLM Systems}},
  booktitle = {EACL (Volume 1: Long Papers)},
  year = {2026},
  doi = {10.18653/v1/2026.eacl-long.359},
}
Figure