AutoFA: Toward Targeted AI Improvement
AutoFA: Toward Targeted AI Improvement A score shows that a model failed, not why Evaluation scores indicate how often a model fails, but they rarely explain how or why. A faile...
By AI Engineering Team
AutoFA: Toward Targeted AI Improvement
A score shows that a model failed, not why
Evaluation scores indicate how often a model fails, but they rarely explain how or why. A failed task can produce the same aggregate metric whether the model misread an image, exploited a benchmark shortcut, or was penalized by an incorrect reference answer. Each cause requires a different response, such as better training data, a revised reward signal, changes to the evaluation harness, or a benchmark correction.
Failure taxonomies help organize errors into shared categories, but predefined labels can hide distinct mechanisms that require different fixes. They can also miss new failure modes as models change, making continuous human oversight necessary.
NVIDIA's AutoFA is an open-source toolkit for failure analysis. It is designed to move beyond aggregate scores and static taxonomies by providing a more systematic view of how and why models fail.
What is a failure mode?
A failure mode is a recurring pattern in how an evaluated system fails across trajectories and, in some cases, across benchmarks. It represents shared behavior, a symptom, or a mechanism rather than one incorrect answer or benchmark category. Two examples illustrate the distinction.
Example 1: answering what the benchmark usually expects
What happened? CharXiv asks questions about charts from scientific papers. In this example, a model must identify the line that remains above the others. The model correctly reads the chart: the blue line overtakes the yellow line, so no line remains on top. It states this in its reasoning, then assumes that the benchmark expects a line as the answer and selects the yellow line in all three attempts. The model cannot abstain when the problem has no correct answer.
The failure mode: When the evidence does not provide a clear answer, the model substitutes an assumed benchmark convention, such as the belief that every question must have one correct label or that the first option is usually correct.
Impact: This behavior accounts for 26% of BabyVision failures, 21% of CharXiv failures, and 12% of ChartQA Pro failures.
Potential improvement: The model appears able to interpret the chart, but may have learned that chart questions always have an answer. Since chart-question-answering data rarely includes responses such as "none" or "cannot tell," training examples that teach abstention could target this behavior more directly than adding more conventional chart questions.
Example 2: inventing a rule that the task never specified
What happened? DeepSWE gives coding agents feature requests in real repositories. In this case, GLM-5.3 is instructed to let a scripting language change one character of a string. Reading s[-1] returns the last character. The agent assumes that negative positions are forbidden for assignment, borrowing a rule from arrays. It then deletes its own test and fails the hidden test for that case.
The failure mode: When a specification leaves something unstated, the agent fills the gap with a stricter rule of its own, often borrowed from nearby code or prior knowledge. It then defends that assumption despite contrary evidence, including its own tests.
Impact: This is the first or second most common cause of failure on DeepSWE for GLM-5.3, Kimi K3, and Qwen 3.8. It accounts for 9 of 35 GLM-5.3 failures, 10 of 47 Kimi K3 failures, and 10 of 48 Qwen 3.8 failures. Kimi K3 invented the same rule on the same task.
Potential improvement: The agent reached the correct conclusion twice, through the read behavior and its own test, but talked itself out of it. Training tasks with deliberate specification gaps and hidden tests that reward consistency with existing code could address this behavior. Removing a failing test could also require a justification and receive little or no reinforcement-learning reward.
What makes a useful failure-mode definition?
A useful failure mode has three properties:
- It explains a meaningful share of failures. Answer-convention bias explains 21% of CharXiv failures.
- Its definition is unambiguous. Reviewers can agree when it occurred, and it does not substantially overlap with other modes.
- It suggests a next step. The two examples indicate specific changes to data, training, or evaluation.
AutoFA evaluates failure modes along these dimensions through two complementary approaches.
How AutoFA works
Top-down taxonomy classification
For known failure modes, an agentic judge assigns each failed attempt one primary cause from a fixed taxonomy. It also identifies whether responsibility lies with the model, the evaluation harness, or the task and grader.
Each classification is tied to evidence. The judge cites relevant trace events and grader outputs, abstains when evidence is insufficient, and flags failures that fall outside the existing taxonomy. A second review pass validates each classification and can confirm, revise, or withdraw it.
AutoFA initially adopted the taxonomy and definitions from Scale AI's Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures. The taxonomy is then expanded with failure modes found through iterative bottom-up analysis across models and benchmarks.
Bottom-up failure discovery
Bottom-up discovery identifies unknown failure modes that the taxonomy does not yet name. These modes are often specific to a model or benchmark.
The process uses an automated research loop. A coding agent analyzes traces, proposes recurring mechanisms, and implements them as reusable Python detectors, often with an LLM-based classifier. The detectors are evaluated, and the hypotheses are refined based on the results. Only detectors that reliably identify the intended behavior and explain a meaningful share of observed failures are included in the final report.
The two approaches produce different but complementary results. The taxonomy assigns every failure exactly one label, based on the earliest error from which the model does not recover. Its shares therefore add up to 100%, allowing direct comparisons across models and benchmarks.
Bottom-up discovery produces reusable detectors that can operate on both successful and failed attempts. They are evaluated for coverage, precision, and adherence, which measures whether flagged attempts actually exhibit the proposed mechanism. Because detectors are executable code, the same checks can be run on later model checkpoints to track failure modes over time.
The two approaches validate each other
AutoFA first applied Scale AI's taxonomy to four visual benchmarks: BabyVision, which tests visual reasoning, and the chart benchmarks ChartMuseum, CharXiv, and ChartQA Pro.
The taxonomy showed that perception and observation issues often occur first. On average, 55% of failures began with a misread image. It also identified possible benchmark or grader problems, which accounted for 8% of failures.
The broad taxonomy supports consistent comparisons, but it can provide limited guidance for remediation. On BabyVision, the single category of observation failure accounted for 89% of failures. This indicates that the model misinterpreted visual information, but does not identify the underlying mechanism.
Bottom-up discovery provides a more detailed view. On BabyVision, it identified several perceptual failure modes, including:
- Hallucinating spatial layouts or structures that are absent from the image, represented by
invented_grid_structure. - Misestimating quantities and dimensions, represented by
overestimates_cube_stack_heights. - Hallucinating objects or their attributes.
Bottom-up analysis also identified the failure mode from the first example, in which answer_convention_overrides_evidence. The initial taxonomy placed 58% of CharXiv failures in a broad observation category. AutoFA's more specific analysis suggested that improvement could begin with training data that teaches the model to abstain and answer "none," along with question-and-answer pairs focused on layout details, quantities, and object composition.
An evolving taxonomy
AutoFA's taxonomy version 1 adds 13 failure modes: five describing what was misread, six dividing reasoning failures into more specific categories, and two describing grader faults. The visual misreading categories cover layout or structure, objects or attributes, quantities or relations, text, and visual associations. The grader faults are incorrect references and valid equivalent answers being rejected.
Applied to the same failures, version 1 divides BabyVision's broad observation category, which represented 89% of failures, into more specific causes:
- Layout or structure misinterpretation: 43%
- Object or attribute misinterpretation: 31%
- Quantity misinterpretation: 11%
CharXiv showed a different distribution. Its most common failure mode involved quantities, accounting for 38% of failures. The detailed taxonomy also identified benchmark problems: 11% of CharXiv failures were attributed to incorrect reference answers rather than model errors.
How AutoFA is evaluated
AutoFA scores each failure-mode detector using the benchmark's pass/fail result as ground truth. It uses three measures:
- Precision: The proportion of flagged attempts that failed, rescaled to a 30% failure rate so benchmarks with different failure rates can be compared fairly.
- Coverage: The proportion of failed attempts flagged by the detector.
- Adherence: The proportion of flagged attempts that display the claimed behavior, checked by an LLM judge on a sample.
The comparison baseline is a coding agent that writes detectors for the same failures in one pass, using the same criteria, classifier, and judge.
AutoFA found 31 failure modes rated Good, compared with one for the baseline. Its claims adhered to 78% to 90% of reviewed matches, compared with 60% to 69% for the baseline. Adherence is important because a detector that identifies the right attempts but gives the wrong explanation can lead to an incorrect intervention or confuse practitioners when the proposed failure mode does not match the trace.
Precision was similar for both approaches, ranging from 0.75 to 0.97. Using the geometric mean of precision, coverage, and adherence, AutoFA led on every benchmark. Results ranged from 0.91 versus 0.61 on BabyVision to 0.63 versus 0.59 on ChartQA Pro, where task defects limit model-side detectors.
The methods were also run once on all four benchmarks together, using the same 4,110 failed attempts. Both achieved a geometric mean of 0.75, but for different reasons. The baseline's five broad detectors identified more failures, 63% compared with 53%. AutoFA performed better in review, with adherence of 0.88 compared with 0.75, and identified seven Good failure modes compared with none for the baseline. The combined score obscures an important distinction: one quarter of the attempts flagged by the baseline did not match what its detectors claimed.
Designed for collaboration
The examples described here come from a limited set of models and benchmarks. Other teams evaluating different models, harnesses, and benchmarks will encounter mechanisms that have not yet been observed. AutoFA is designed so that analyses can build on one another.
- Reuse detectors across runs. Detectors are code, so they remain available after the run that produced them. A new analysis can begin with earlier detectors using "Continue from Library" in the CLI menu or by passing a run ID. Teams can then check whether a failure mode disappears in a later checkpoint. A planned open library will contain specialized detectors, including one for CharXiv misreads that identifies more than half of that benchmark's failures.
- Review fixes together. A failure mode becomes useful when the teams responsible for data, rewards, and the harness examine the evidence. Reports can be hosted with
autofa serve, and runs can be published as working documents with notes for collaborators. - Expand the taxonomy. Version 1 was informed by bottom-up discovery. New failure modes found in evaluations can be incorporated into future versions together with reusable detectors.
AutoFA can be obtained from the NVIDIA/AutoFA repository and used with Claude Code or Codex. The agent reads AGENTS.md and analyzes evaluation runs.
Roadmap
This is the first release of AutoFA. Planned areas of development include:
- Data and reinforcement-learning attribution: Connecting failure modes to the training data and reward signals that contribute to them, supporting targeted interventions such as those described in the two examples.
- Harness-specific failure detection: Expanding coverage of failures caused by the harness, including premature execution termination and information loss during context compaction.
- Capability-level failure analysis: Linking failure modes to capabilities and identifying the dominant mechanisms in areas such as browser and web tasks.
- Community-driven taxonomy expansion: Creating an end-to-end process for proposing, validating, and integrating new failure modes and reusable detectors.
- Open failure-analysis reports: Sharing systematic analyses of open models with the broader research community.
Benchmarks will continue to measure how well models perform. AutoFA is intended to explain why they fail at a level of detail that can inform what to train next.