TL;DR
When a multi-agent AI system crashes and burns, looking at the final output tells you that it failed, not where the rot started. RecordRoute is a lightweight, classical-ML detective that pinpoints the exact agent and step where an error originated, and then—crucially—diagnoses the failure mode by reading only that specific record instead of getting confused by the chaotic aftermath. Even better, it beats neural baselines and open-source LLMs while running in under 10 milliseconds on a CPU.
What Problem Does This Paper Address?
Modern AI workflows increasingly look like assembly lines of multiple Large Language Models (LLMs) passing information, writing code, and calling tools. When one agent makes a subtle mistake early on—say, turning "over 40 reptile species" into "exactly 40 crocodiles"—downstream agents blindly repeat and compound that error.
Auditing these failures requires answering three questions: Who (which agent), When (which step), and What (what error mode, like a communication failure or tool misuse). Existing supervised methods run into two traps:
- Blurry vision: They compress execution steps into dense neural embeddings, which often wash out exact literal clues like tool names, variable identifiers, or snippet fragments that distinguish an original error from a repeated symptom.
- Information overload: When diagnosing what went wrong, existing models pool representations across the entire failed trace. Feeding a classifier the initial mistake alongside ten subsequent steps of downstream panic mixes the root cause with its symptoms.
Methods
RecordRoute decouples finding the needle from examining it, ditching heavy neural architectures for sharp, classical machine learning.
- Literal Feature Extraction: First, identifying headers (which state the actor and step) are temporarily stripped so the model can't cheat, though they are kept aside for later. Each execution record is converted into sparse word and character TF-IDF vectors (capturing exact action phrases and sub-word exception strings), combined with lexical overlap features against the user's task query.
- Pairwise Record Ranking (Localization): Instead of scoring steps in isolation during training, RecordRoute uses logistic regression to learn from feature differences between pairs of records within the same failed trace (comparing the true root-cause record against innocent steps and later symptoms). At test time, it scores each record independently in linear time and picks the highest scorer.
- Local Diagnosis: The winning record's saved header immediately gives the Who and When. To get the What, a linear Support Vector Machine (SVM) predicts the error mode using only that winning record's text, actor identity, and structural metadata (like relative position in the trace).
Datasets
The authors evaluate RecordRoute on three existing multi-agent failure benchmarks (no new datasets are introduced):
- Who&When Pro: 6,257 controlled, injected failures (38,140 candidate records) spanning 8 agent frameworks and 16 task benchmarks. Used to evaluate full attribution (Who, When, What).
- TraceElephant: 218 naturally occurring failures (5,898 steps) across 3 multi-agent systems, used to test step localization.
- CatchBench (POST subset): 126 natural failures (1,099 steps) evaluated in a retrospective ("post-mortem") localization setting.
Key Insights and Ideas
- Sparse beats dense for debugging: Replacing 1024-dimensional Qwen3 dense embeddings with good old-fashioned word and character TF-IDF jumped step-localization accuracy by 17.41 percentage points. In log auditing, exact string matching on tool names and error fragments matters more than broad semantic vibes.
- Less context is better for diagnosis: Fixing the locator so every classifier gets the exact same step predictions, diagnosing the error mode from the single selected record beats reading the concatenated full trace by 8.18 percentage points (77.47% vs. 69.28% joint accuracy). Ignoring the rest of the trace prevents downstream noise from polluting the diagnosis.
- Comparing siblings works: Training via pairwise differences within a trace consistently outperforms pointwise classification, because common background context cancels out when you subtract one step's features from another's.
Key Results
Across all three benchmarks, RecordRoute outperforms specialized neural baselines (StepFinder, ASCon), graph/structural rankers, and zero-shot open LLMs (Qwen2.5-14B, Mixtral-8x7B, Llama-3.1-8B):
- Who&When Pro: Hits 88.50% macro step accuracy (When) and 63.67% macro joint accuracy (All), beating ASCon by 11.37 points and StepFinder by 15.14 points on joint accuracy.
- Natural Failures: Achieves 27.06% exact-step accuracy on TraceElephant (vs. 18.81% for ASCon and 23.85% for Qwen2.5-14B) and 37.46% Top-1 / 77.78% Top-3 accuracy on CatchBench POST, placing the true culprit in the top three candidates over three-quarters of the time.
- Generalization & Speed: Without seeing a task benchmark or query during training, it still hits 81.99% pooled step accuracy on unseen tasks. Median inference takes just 9.32 ms on a CPU, compared to 66.61 ms on a GPU for StepFinder.
Limitations and Future Work
Not explicitly discussed in a dedicated section in the paper. However, the authors note in their setup and experiments that:
- RecordRoute is strictly a supervised, retrospective (POST) auditor—unlike zero-shot LLM judges, it requires annotated failure traces and a predefined error-mode taxonomy to train on, and does not perform live, mid-execution intervention.
- Because the locator and mode classifier are cascaded, localization errors propagate directly into joint attribution at test time.
- Generalizing to completely unseen agent frameworks remains challenging: while RecordRoute leads on macro-averaged accuracy (54.97%), its pooled accuracy drops to 49.03%, essentially tying a simple "guess the last step" heuristic (49.38%).
Summary updated