AutoFA Failure Analysis: 7 Ways to Detect AI Failures ⚡14 min read2,734 words

AutoFA Failure Analysis: 7 Ways to Detect AI Failures ⚡

Discover AutoFA failure analysis: detect failure mode detection in AI model evaluation, spot recurring issues, and improve LLM evaluation tools & AI benchmark analysis.

AutoFA failure analysisAI model evaluationfailure mode detectionLLM evaluation toolsAI benchmark analysis
AutoFA Failure Analysis: 7 Ways to Detect AI Failures ⚡

AutoFA: A Practical Way to Find Why AI Models Fail

An evaluation score tells you how often a system fails. It usually doesn't tell you what to change. A low score could come from weak visual perception, an unjustified assumption, a flawed reference answer, or an evaluation harness that quietly dropped something important. In a chart, these causes can look the same - but the fixes are very different.

That gap matters a lot once you're past the demo stage. Adding more training data may not move the needle if the benchmark's answer key is wrong. Tuning a reward signal won't help if the agent keeps deleting its own tests after making an unsupported assumption. Without a clear handle on the failure mechanism, teams can easily end up improving the wrong part of the system.

AutoFA, an open-source failure-analysis toolkit from NVIDIA, aims to turn evaluation traces into specific, testable explanations. It pairs classification against a known taxonomy with automated discovery of failure patterns that the taxonomy doesn't cover yet. This article walks through how AutoFA works, what its early results suggest, and where it can help teams make better decisions about models, data, graders, and evaluation infrastructure.

Why are AI evaluation scores not enough

An evaluation score is a useful summary, not a diagnosis. If an agent passes 70% of coding tasks, the score doesn't tell you whether the remaining 30% failed because it misunderstood the prompt, broke a behavior it had before, ran out of context, or got marked wrong by an overly strict grader. And those details point to different owners - and different fixes.

A failure mode is a recurring pattern in how a system fails across attempts, and sometimes across benchmarks. It's not just a task label or a single incorrect output. The best failure modes tie what you see in traces to a repeatable behavior a team can recognize, measure, and (when possible) change.

For example, a chart-question model might correctly read the plotted data and notice that no line is consistently highest. It may still pick one line anyway because it has learned that these benchmarks usually come with a conventional "single answer." That isn't a basic perception failure. More chart examples of the same usual kind could just reinforce the pattern. Training the model to answer "none" or "cannot tell" when the evidence doesn't support a choice is a more targeted intervention.

The reverse problem shows up too: the model can be right, while the evaluation is wrong. A valid equivalent answer might get rejected, or the benchmark's reference answer might be incorrect. Treating those cases as model failures creates misleading metrics - and can push teams to "fix" a capable system.

Why static taxonomies are not enough

A failure taxonomy gives teams shared language. It helps comparisons and keeps evaluations from turning into a pile of anecdotes. But a predefined list has a ceiling: it can only name mechanisms someone already anticipated. Even broad buckets - like "observation failure" - can hide multiple distinct problems, from misreading object positions to miscounting items.

Models also change over time. A failure pattern that's rare in one checkpoint can become common in the next, and new behaviors can fall outside existing labels. So the taxonomy needs ongoing review. The goal isn't to name failures for its own sake - it's to identify a cause clearly enough to decide what to try next.

How does AutoFA analyze model failures

AutoFA uses two complementary approaches: top-down classification and bottom-up discovery. Top-down classification gives teams a consistent map of known causes. Bottom-up discovery looks for repeated mechanisms the current map doesn't cover. Both matter: a taxonomy alone can miss novel behavior, while open-ended discovery can produce catchy labels that are hard to compare or trust.

Top-down classification: assign a known cause

In the top-down pass, an agentic judge assigns each failed attempt one primary cause from a fixed taxonomy. It also flags whether the likely source is the model, the evaluation harness, or the task and grader. The classification should be based on what's in the trace and grader output - not just what seems to be true from the final score.

When the evidence isn't strong, the system can abstain. It can also flag failures that don't fit the existing taxonomy. Then a second review pass checks the classifications and can confirm, revise, or withdraw them. This step matters: a confident label isn't helpful if the trace doesn't actually support it.

Each failed attempt gets one primary label tied to the earliest error the model doesn't recover from. That keeps the category shares adding up to 100%, which makes comparisons across models and benchmarks possible. It's still a simplification. Real failures often have multiple contributing factors, and a single primary label doesn't mean everything else is irrelevant.

Bottom-up discovery: test a new hypothesis

The discovery pass looks for repeated behaviors in traces that the current categories don't capture. Here, an analysis agent proposes a mechanism and implements it as a reusable detector - usually as Python code, sometimes with help from an LLM-based classifier. The detector gets tested, refined, and included in reports only when it identifies the intended behavior reliably and covers a meaningful share of observed failures.

Unlike the taxonomy pass, detectors can run on both successful and failed attempts. That makes it easier to ask whether a suspected behavior shows up even when the final answer happened to pass. It also supports tracking across checkpoints: you can rerun the same detector later and see whether the behavior declines, persists, or shows up in a new version.

In practice, the two approaches do different work. Taxonomy labels help with consistent accounting. Detectors make narrower, testable claims about behavior. A good analysis uses the taxonomy to find the broad problem, then uses detectors to investigate mechanisms that point toward a specific intervention.

What can failure modes reveal about model behavior

NVIDIA's examples show why a trace-level explanation can change the proposed fix. "The model failed" can hide issues in the model's behavior, its assumptions, or even the test itself.

When a model follows benchmark convention over evidence

In one chart example, the model correctly interprets the lines and recognizes that no line stays above all the others. Still, it names a line anyway - apparently because it expects chart questions to have a conventional "single best" answer. Across three attempts, it repeats the same choice rather than abstaining.

This behavior shows up as a large slice of failures in the reported evaluations: 26% on BabyVision, 21% on CharXiv, and 12% on ChartQA Pro. The diagnosis isn't simply "bad at charts." The model can read the visual evidence, but its answer strategy overrides that evidence when the task seems to demand a conventional response.

A plausible next test is to add training examples where the correct answer is that the evidence is insufficient (or that no option applies). This doesn't prove the intervention will work - but it gives the team a more concrete hypothesis than simply adding more standard chart questions.

When a coding agent invents a rule

In a coding task, an agent is asked to use a scripting language to change one character of a string. It reads the last character using a negative index, then assumes negative positions can't be used for assignment. The specification doesn't say that restriction. The agent adopts a rule that feels familiar from related concepts, deletes its own test, and fails the hidden test for that behavior.

The core issue isn't just missing information. The agent had evidence from its own test and still talked itself out of it. NVIDIA reports that the same "invented-rule" pattern appears across failures for multiple models in DeepSWE: 9 of 35 failures for GLM-5.3, 10 of 47 for Kimi K3, and 10 of 48 for Qwen 3.8.

A targeted follow-up could include training tasks with deliberate specification gaps where consistency with the existing code matters. Teams could also examine how their reward process treats test deletion and require a justification before an agent removes a failing test. These are hypotheses to validate, not guaranteed fixes.

When the benchmark is part of the problem

A broad taxonomy initially grouped 89% of BabyVision failures under observation errors. That points to visual interpretation as a major issue, but it doesn't say whether the problem is misreading layouts, misreading object attributes, or miscounting quantities. A finer taxonomy separated these mechanisms and showed different distributions across benchmarks: layout/structure errors were prominent on BabyVision, while quantity errors were more common on CharXiv.

It also raised questions about the benchmark itself. In CharXiv, 11% of failures were attributed to incorrect reference answers. That changes how a team should respond: before retraining a model, they may need to inspect the benchmark's answer key and grader.

The practical value is a better next question. Instead of asking only how much the score changed, ask what behavior changed, whether that change is supported by the trace, and which component owns the next experiment.

How does AutoFA validate its findings

A failure detector can be wrong in two ways: it can flag attempts that actually don't fail, or it can flag real failures while describing the cause incorrectly. The second failure mode is easy to miss. A detector that finds the right examples for the wrong reason can steer teams toward ineffective fixes - and create false confidence.

AutoFA evaluates detectors using three measures, with benchmark pass/fail outcomes treated as the ground truth for failure status:

  • Precision measures how many flagged attempts truly failed. AutoFA rescales this measure to a 30% failure rate so results are easier to compare across benchmarks with different failure rates.
  • Coverage measures the share of failed attempts a detector flags. High coverage helps, but it doesn't rescue a detector that mainly catches unrelated cases.
  • Adherence checks whether the flagged attempts actually show the behavior the detector claims. An LLM judge reviews a sample for this measure.

These metrics answer different questions. Precision asks whether the detector tends to flag failures. Coverage asks how much of the failure set it finds. Adherence asks whether the explanation matches what's in the trace. If you look at only one metric, a weak detector can look strong.

In NVIDIA's comparison, AutoFA was tested against a one-pass coding-agent baseline using the same set of 4,110 failed attempts across four visual benchmarks. AutoFA identified 31 failure modes rated "Good," compared with one for the baseline. The reviewed matches had adherence scores of 78% to 90% for AutoFA, versus 60% to 69% for the baseline. Precision was similar across the two methods, ranging from 0.75 to 0.97.

Across the geometric mean of the three measures, AutoFA did better on each benchmark in that comparison. On BabyVision, the reported scores were 0.91 for AutoFA and 0.61 for the baseline. On ChartQA Pro, they were close: 0.63 and 0.59. The authors note that task defects limited what model-side detectors could achieve there.

Pooling all four benchmarks gives a more nuanced picture: both approaches had a geometric mean of 0.75. The baseline had higher coverage, while AutoFA had stronger adherence and found seven "Good" failure modes versus none for the baseline. The takeaway is that a single summary score can hide trade-offs. For teams, the quality of a detector's explanation may matter more than raw reach if the goal is to pick a reliable next intervention.

How should teams use failure analysis

AutoFA is most helpful when you already have evaluation traces and you need to decide what to investigate next. It isn't a replacement for a good benchmark, expert review, or controlled experiments. Treat its outputs as a structured way to form and test hypotheses - not as an automatic verdict about model quality.

Start with a decision, not a report

Before running any analysis, decide what you're trying to answer. Are you trying to separate model failures from harness failures? Are you looking for recurring issues in a new checkpoint? Do you want to add training examples, or inspect the grader? If you start with a clear decision, you're less likely to end up with a long list of labels and no obvious owner.

A practical workflow looks like this:

  1. Check the evaluation inputs. Confirm traces, grader outputs, and pass/fail results are present and come from the same run.
  2. Review broad causes. Use taxonomy labels to see whether failures cluster around model behavior, harness behavior, or task and grader issues.
  3. Inspect high-impact clusters. Sample traces from categories that account for a meaningful share of failures. Look for repeated evidence, not just similar final answers.
  4. Test a specific detector. Turn a plausible recurring mechanism into an executable check, then measure its precision, coverage, and adherence.
  5. Assign the next experiment. Decide whether to change data, reward design, model behavior, harness code, or benchmark references. Name an owner and define a measurable outcome.
  6. Rerun on a later checkpoint. Reuse detectors to see whether the suspected behavior changes, and watch for regressions elsewhere.

Make the output collaborative and maintainable

Failure analysis cuts across team boundaries. Data owners may need to review an abstention pattern. Model or post-training teams may investigate an invented rule. Evaluation engineers may look for a harness defect. Benchmark owners may need to correct references. Keeping evidence and the proposed action in a shared report makes those handoffs easier to review.

AutoFA is built for that kind of continuity. Detectors can be reused in later runs, and reports can be shared with team notes. Teams can also suggest missing failure modes for the taxonomy, creating a feedback loop where each analysis adds reusable knowledge instead of starting from scratch.

There are limits, though. Automated judges can misclassify traces, and detector quality depends on how clear the hypothesis is and what evidence the traces contain. Results from a small set of models and benchmarks don't prove the same behavior will hold everywhere. Human review is still necessary, especially before making expensive changes to training data or reward systems.

Key takeaways

  • A benchmark score measures outcome, not cause.
  • Use taxonomy labels for consistent comparisons and detectors to test narrower behavioral hypotheses.
  • Check whether a failure belongs to the model, harness, task, or grader before choosing a fix.
  • Evaluate detector precision, coverage, and adherence together; the explanation should match the trace.
  • Treat proposed interventions as experiments, then rerun the same checks on later model versions.

Conclusion

AI evaluations get more useful when they explain more than how often a model fails. AutoFA's mix of a shared taxonomy and testable failure detectors helps teams move from scores to causes, without losing sight of model, harness, and benchmark issues.

The key discipline is to connect each proposed fix to trace evidence, validate the detector, and measure the result on later runs. That's what turns failure analysis into a real engineering feedback loop. Use the score to find where to look; use the failure mechanism to decide what to test next.

Frequently Asked Questions

AutoFA is an open-source toolkit from NVIDIA for analyzing AI evaluation failures. It combines classification against a failure taxonomy with bottom-up discovery of recurring behaviors that existing categories may not cover.
A failure mode is a recurring pattern in how a model or evaluated system fails. It describes a shared behavior or mechanism across attempts, rather than one incorrect answer or a broad benchmark category.
A benchmark score summarizes pass or fail outcomes. AutoFA examines evaluation traces to classify likely causes and test recurring patterns, helping teams investigate whether the issue lies with the model, harness, task, or grader.
No. It helps identify and validate possible causes; teams still need to choose and test interventions. A detector is evidence for a hypothesis, not proof that a particular training, reward, or benchmark change will solve the problem.

Related articles