AutoFA: Towards Targeted AI Improvement

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

AutoFA: Towards Targeted AI Improvement

A score tells you that a model failed, not why. An evaluation score tells us how often a model fails, but not how or why. A failed task looks the same in aggregate metrics whether the model misinterpreted an image, exploited a shortcut in the evaluation, or was penalized by an incorrect reference answer. Yet, each failure calls for a different intervention: better training data, a revised reward signal, a change to the evaluation harness, or a correction to the benchmark itself.

评分只能告诉你模型失败了,却不能告诉你原因。评估分数告诉我们模型失败的频率,但无法说明失败的方式或原因。无论模型是误解了图像、利用了评估中的捷径,还是因为错误的参考答案而受到惩罚,失败的任务在汇总指标中看起来都是一样的。然而,每一次失败都需要不同的干预措施:更好的训练数据、修订后的奖励信号、对评估工具的更改,或是对基准测试本身的修正。

Failure taxonomies help bridge this gap by organizing failures into a shared set of error categories. However, predefined categories often obscure distinct underlying mechanisms that require different fixes. Furthermore, as models evolve, taxonomies struggle to capture unknown novel failure modes, making it difficult to maintain a comprehensive and actionable taxonomy without continuous human oversight. In this short blog post, we show how we are approaching this challenge at NVIDIA with AutoFA: a new open-source toolkit for failure analysis, designed to move beyond aggregate scores and static taxonomies toward a more systematic understanding of how and why models fail.

失败分类法通过将失败组织成一组共享的错误类别来帮助弥合这一差距。然而,预定义的类别往往掩盖了需要不同修复方法的独特潜在机制。此外,随着模型的演进,分类法难以捕捉未知的、新颖的失败模式,这使得在没有持续人工监督的情况下,难以维护一个全面且可操作的分类体系。在这篇简短的博文中,我们将展示 NVIDIA 如何通过 AutoFA 来应对这一挑战:这是一个用于故障分析的全新开源工具包,旨在超越汇总分数和静态分类,转向对模型如何以及为何失败的更系统性的理解。

What is a failure mode? A failure mode is a recurring pattern in how an evaluated system fails across trajectories and, sometimes, across benchmarks. It captures a shared behavior, symptom, or mechanism, not a single bad answer or benchmark category. Two examples here make this concrete: a model answering chart questions, and a coding agent.

什么是失败模式?失败模式是指被评估系统在不同轨迹,有时甚至在不同基准测试中失败时所表现出的重复模式。它捕捉的是一种共享的行为、症状或机制,而不是单一的错误答案或基准类别。以下两个例子具体说明了这一点:一个回答图表问题的模型,以及一个编码智能体。

Example 1: answering what the benchmark “usually wants”. What happened? CharXiv asks questions about charts from scientific papers. Here, the model under inspection must name the line that stays above the others. It reads the chart correctly: blue overtakes yellow, so no line stays on top, and it says so in the trace. Then, it reasons that benchmark questions usually expect a line, and names the yellow one, in all three attempts, demonstrating inability to abstain when there is truly no correct answer to the problem.

示例 1:回答基准测试“通常想要”的内容。发生了什么?CharXiv 询问有关科学论文中图表的问题。在这里,被检查的模型必须说出位于其他线条之上的那条线。它正确地读取了图表:蓝色超过了黄色,因此没有线条保持在最上方,它在追踪记录中也确实这样说了。然后,它推断基准测试问题通常期望有一个答案,于是三次尝试都命名了黄色线条,这表明当问题确实没有正确答案时,它无法做到拒绝回答。

The failure mode. When the evidence gives no clean answer, the model substitutes an assumed bias from answer conventions in benchmarks: e.g. every question should have an answer among the labels that is correct, the first option is usually the right answer. Its impact. It explains 26% of BabyVision failures, 21% on CharXiv and 12% on ChartQA Pro. What can be improved? The model “sees” fine, but it has learned that chart questions always have an answer. We suspect because chart-QA training data rarely says “none” or “cannot tell”. Data whose answers include “none”, “cannot tell” teaching the model how to abstain can target the habit more directly. More chart data of the usual kind would not.

失败模式。当证据无法给出明确答案时,模型会用基准测试中答案惯例的假设偏差来替代:例如,每个问题在选项中都应该有一个正确答案,或者第一个选项通常是正确答案。其影响。这解释了 26% 的 BabyVision 失败、21% 的 CharXiv 失败和 12% 的 ChartQA Pro 失败。可以改进什么?模型“看”得很好,但它已经学会了图表问题总是有答案。我们怀疑这是因为图表问答训练数据很少包含“无”或“无法判断”。包含“无”、“无法判断”等答案的数据可以教导模型如何拒绝回答,从而更直接地纠正这种习惯。更多常规类型的图表数据则无济于事。

Example 2: inventing a rule the task never stated. What happened? DeepSWE gives coding agents feature requests in real repositories. Here, GLM-5.3 is instructed to let a scripting language change one character of a string. Reading s[-1] returns the last character. However, the agent makes an assumption that negative positions are forbidden for assignment/writing, copying this rule from arrays (Step 1). Based on this assumption, it then deletes its own test (Step 3), and fails the hidden test on exactly that test case.

示例 2:发明任务中从未说明的规则。发生了什么?DeepSWE 为真实代码库中的编码智能体提供功能请求。在这里,GLM-5.3 被指示让脚本语言更改字符串的一个字符。读取 s[-1] 会返回最后一个字符。然而,智能体假设负位置禁止赋值/写入,并从数组中复制了这条规则(步骤 1)。基于这一假设,它随后删除了自己的测试(步骤 3),并在该测试用例上未能通过隐藏测试。

The failure mode. When the specification is not present, the agent fills the gap with a stricter rule of its own, often borrowed from nearby code or knowledge, and defends it against contrary evidence, even its own tests. Its impact. It is the first or second most common cause of failure on DeepSWE for GLM-5.3 (9 of 35 failures), Kimi K3 (10 of 47) and Qwen 3.8 (10 of 48). Kimi K3 invented exactly the same rule on the same task. What can be improved? The agent had the right answer twice, in the read behavior and in its own test, and talked itself out of it. Training tasks with deliberate specification gaps, whose hidden tests reward consistency with existing code. Deleting a failing test should also require a justification and earn little or no RL reward.

失败模式。当规范缺失时,智能体会用自己更严格的规则填补空白,这些规则通常借用自附近的代码或知识,并且即使面对相反的证据(甚至是它自己的测试),它也会坚持这一规则。其影响。这是 GLM-5.3(35 次失败中的 9 次)、Kimi K3(47 次中的 10 次)和 Qwen 3.8(48 次中的 10 次)在 DeepSWE 上第一或第二常见的失败原因。Kimi K3 在同一任务上发明了完全相同的规则。可以改进什么?智能体在读取行为和它自己的测试中两次得到了正确答案,却说服自己放弃了它。训练任务应包含刻意的规范空白,其隐藏测试应奖励与现有代码的一致性。删除失败的测试也应要求提供理由,且几乎不应获得或完全不应获得强化学习奖励。

What makes a good failure mode definition? It explains a meaningful share of failures. Answer convention biases explain 21% of CharXiv failures. Its definition is unambiguous. Reviewers agree when it happened, and it does not overlap other modes. It suggests ideas on what to do next, as both examples show. Next, we describe how we evaluate and estimate through these axes. But first, let’s understand how AutoFA works.

什么样的失败模式定义是好的?它能解释相当大比例的失败。答案惯例偏差解释了 21% 的 CharXiv 失败。其定义是明确的。审查人员对于何时发生该模式达成一致,且它不会与其他模式重叠。正如两个例子所示,它能为下一步做什么提供思路。接下来,我们将描述如何通过这些维度进行评估和估算。但首先,让我们了解 AutoFA 是如何工作的。

How AutoFA works. AutoFA analyzes evaluation runs through two complementary lenses. Top-down taxonomy classification covers already known failure modes. An agentic judge gives each failed attempt one primary cause from a fixed taxonomy and names who is at fault: the model, the harness, or the task and its grader. Each classification is grounded in evidence: the judge cites supporting trace events and grader outputs, abstains when the 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. We adopted the taxonomy and definitions introduced in Scale AI’s Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures as a starting point and and progressively expanded the taxonomy with ne

AutoFA 是如何工作的。AutoFA 通过两个互补的视角分析评估运行。自上而下的分类法涵盖了已知的失败模式。智能体裁判会从固定的分类法中为每次失败的尝试指定一个主要原因,并指出是谁的过错:模型、评估工具,还是任务及其评分器。每一项分类都有证据支持:裁判引用支持性的追踪事件和评分器输出,在证据不足时拒绝判断,并标记出超出现有分类法的失败。第二轮审查会验证每一项分类,并可以确认、修订或撤销它。我们采用了 Scale AI 的《模型还是工具?一种用于定位智能体失败的交互中心分类法》中引入的分类法和定义作为起点,并逐步扩展了该分类法……