AutoFA: Towards Targeted AI Improvement
Understanding Why Models Fail
Aggregate evaluation scores indicate how often a model fails, but they do not reveal the underlying mechanisms or specific causes of those failures. A model might fail due to misinterpreted input, exploitation of evaluation shortcuts, or errors within the benchmark itself. AutoFA is an open-source toolkit from NVIDIA designed to bridge this gap by providing a systematic approach to failure analysis, moving from static metrics to actionable, granular insights.
The Two Lenses of AutoFA
AutoFA analyzes evaluation runs using two complementary methodologies to identify why failures occur:
- Top-down taxonomy classification: This approach uses an agentic judge to categorize failed attempts based on a fixed, evolving taxonomy. Each classification is grounded in evidence from trace events and grader outputs, with a secondary review pass to ensure accuracy. This method provides a high-level overview where every failure is assigned a single primary cause, allowing for consistent comparisons across different models and benchmarks.
- Bottom-up failure discovery: This process identifies "unknown unknowns" by using an automated research loop. A coding agent analyzes traces to hypothesize recurring failure mechanisms and implements them as reusable Python-based detectors. These detectors are evaluated for coverage, precision, and adherence—ensuring that the flagged failures actually exhibit the hypothesized behavior.
Defining Effective Failure Modes
A high-quality failure mode definition must explain a significant share of failures, maintain an unambiguous definition to prevent overlap, and suggest concrete improvements for the model or training process.
For example, AutoFA identified that some models fail on chart-based benchmarks because they assume every question must have a direct answer, even when the evidence suggests otherwise. This "answer convention" bias explains 21% of failures on the CharXiv benchmark. By identifying this specific mode, researchers can target the issue by introducing training data that explicitly teaches the model to abstain or respond with "none" or "cannot tell."
Evaluating and Evolving the Taxonomy
AutoFA evaluates its failure detectors using three metrics: precision (the share of flagged attempts that failed), coverage (the share of failed attempts identified), and adherence (the share of flagged attempts that actually show the claimed behavior). In comparative testing, AutoFA demonstrated higher adherence and produced more "good" failure modes than a one-pass baseline agent.
As new failure modes are discovered, they are integrated into the AutoFA taxonomy. Version 1 of the taxonomy, for instance, expanded upon initial categories by adding 13 new modes, including specific types of visual misinterpretation and reasoning errors. This allows for more precise remediation, such as distinguishing between failures caused by layout misinterpretation versus those caused by incorrect reference answers in the benchmark.
Collaboration and Future Roadmap
AutoFA is built to be a collaborative tool where researchers can share and reuse detectors across different evaluation runs. Because detectors are implemented as code, they can be applied to future model checkpoints to track whether specific failure modes have been mitigated.
NVIDIA's future roadmap for AutoFA includes:
- Connecting failure modes directly to training data and reward signals.
- Expanding detection to include harness-specific failures, such as premature execution termination.
- Mapping failures to specific capabilities, such as web-browsing or coding tasks.
- Establishing a community-driven workflow for proposing and validating new failure modes.
Users can access the toolkit at the official GitHub repository.