Paper: 2608.24881 Authors: Hao Chen Categories: stat.ML, cs.LG

The Gap

Generative models are ranked by FID and KID. That is not a methodological preference; it is the field’s default, and it carries three distinct jobs at once — ranking models by how far they depart from real data, testing whether a departure is statistically real, and diagnosing what kind of departure it is. A single scalar is asked to do all three, and the paper shows it cannot do any of them reliably.

The failure has a concrete demonstration rather than an argument. FID summarises a distribution by its first two moments. So on ImageNet, images optimized only to match the reference Inception mean and covariance obtain FID 24.7, versus 58.6 for held-out real images — lower being better. The optimized images are visually unrecognizable and they beat real data on the metric. This is not FID being misused; it is FID reporting exactly what it measures. The moment restriction is the metric.

The second failure is subtler and more damaging for practice. FID and KID are scalar discrepancies, unchanged when the two samples are exchanged. A number that does not change under swapping cannot encode the direction of a dispersion change — and the direction is precisely what you need to distinguish mode collapse (under-dispersion) from over-dispersion. Two opposite pathologies produce the same statistic.

The third failure is statistical. A reported scalar gap is not a calibrated test against sampling variation. Without a null distribution, “model A beats model B by 3 FID” is an observation, not a finding.

   ONE SCALAR, THREE INCOMPATIBLE JOBS

   [ RANK ]  which model is further from real?   -> a score
   [ TEST ]  is the gap beyond sampling noise?   -> a p-value
   [ DIAGNOSE ] what KIND of departure?          -> a direction
                    |
        all three currently answered by FID / KID
                    |
                    v
   [1] MOMENT RESTRICTION
       ImageNet: images matching only the reference
       mean+covariance  ->  FID 24.7
       held-out REAL images ->  FID 58.6   (lower is better)
       -> unrecognizable images beat real data

   [2] SYMMETRY
       FID/KID unchanged when the two samples are SWAPPED
       -> cannot encode direction
       -> under-dispersion (mode collapse) vs over-dispersion
          produce the same number

   [3] NO NULL
       a scalar gap is not calibrated against sampling variation

The Increment

One sentence: Before this paper, one number was asked to rank, test and diagnose; after it, ZID reports three linked outputs — a magnitude index, a permutation p-value, and a signed dispersion readout — and detects departures on which FID is flat or reversed.

Core Mechanism

The diagnosis drives the design, so ZID is assembled to remove each specific restriction rather than to improve a scalar.

Six standardized arms across two kernel families. ZID combines six location- and dispersion-sensitive arms drawn from a rank graph (RISE) and Gaussian kernels (GPK at two bandwidths). The multiplicity is the point: a single kernel at a single bandwidth has its own blind spots, and taking an aggregate over location- and dispersion-sensitive statistics across families is how the metric stops depending on one summary. Standardizing the arms is what makes them combinable at all.

Three linked outputs instead of one overloaded scalar. This is the structural fix, and it is the right shape for the problem:

  • An index for ranking departure magnitude — the job FID was doing, now measured without the moment restriction.
  • A permutation p-value for testing distributional equality — supplying the null that a bare scalar gap lacks, so a gap can be distinguished from sampling variation.
  • A signed dispersion readout for diagnosis — the direction, which a swap-invariant statistic structurally cannot provide.

Three outputs for three incompatible jobs, with no attempt to compress them back into one number.

The experiments target exactly the cases the diagnosis predicts will break FID. In controlled sweeps, ZID detects a broad range of departures, and its score tracks increasing severity along the corresponding sweeps, including cases in which FID is flat or reversed. Monotone tracking of severity is the property you want from a ranking index and it is the property a moment-based scalar fails to provide. On DiT-XL/2 and SiT-XL/2 guidance sweeps, ZID detects departure from real data, and the signed readout labels the high-guidance diversity collapse as under-dispersion — the diagnosis that a swap-invariant statistic cannot express.

   ZID: THREE OUTPUTS FOR THREE JOBS

   inputs: generated sample, real sample
        |
        v
   SIX STANDARDIZED ARMS
     rank graph (RISE)          } location- and
     Gaussian kernels (GPK x2)  } dispersion-sensitive
        |
        +-----------------+------------------+
        v                 v                  v
   [ INDEX ]        [ PERMUTATION ]     [ SIGNED DISPERSION ]
   rank departure   p-value: are the    direction: under- vs
   magnitude        distributions       over-dispersion
                    equal?
   (replaces the    (adds the null      (impossible for a
    FID ranking)     FID lacks)          swap-invariant scalar)
        |                 |                  |
        +-----------------+------------------+
                          v
   on DiT-XL/2, SiT-XL/2 guidance sweeps:
     detects departure AND labels the
     high-guidance collapse as UNDER-dispersion

Think of it as replacing a single bathroom scale with a full check-up. Stepping on a scale gives one number, and it is genuinely useful for one question — roughly, how heavy am I. But if you ask that same number whether you are actually ill, and in which direction, it cannot answer, and it will happily return a reassuring figure for someone with a serious problem. A check-up separates the outputs instead: a measurement you can track over time, a test against a reference range that tells you whether a difference is real or noise, and a signed reading that distinguishes “too much of X” from “too little of X”. The paper’s ImageNet example is the scale reporting a great number for an unrecognizable image — not a broken scale, but a scale answering a question it was never able to answer.

Key Concepts

  • The moment restriction as the root cause: FID summarises a distribution by mean and covariance. Its famous failure on optimized images is not a misuse but a direct consequence — anything matching those two moments scores well, regardless of what it looks like. Naming this as the mechanism rather than as an anecdote is what motivates replacing the summary.
  • Swap invariance and the missing direction: FID and KID are unchanged when the two samples are exchanged. This is a structural property, and it makes the metric incapable of distinguishing mode collapse from over-dispersion — two opposite problems reported identically.
  • Calibration against sampling variation: a p-value from a permutation test. Without it, a scalar gap cannot be separated from the noise of finite sampling, which means ranking and testing are not the same activity and should not share an output.
  • Severity tracking: the property that a ranking index increases monotonically as the departure worsens. It is what makes a metric usable for model selection, and it is what FID fails to deliver in the paper’s sweeps.

Framework Shift

Before (one scalar, three jobs):
  FID / KID -> a number
    rank:     yes, under a moment restriction
    test:     no null distribution
    diagnose: impossible (swap-invariant)
  -> unrecognizable images can beat real data
  -> mode collapse and over-dispersion look identical

After (three outputs, matched to jobs):
  ZID
    index        -> rank departure magnitude
    permutation  -> p-value against sampling noise
    signed read  -> under- vs over-dispersion
  -> tracks severity where FID is flat or reversed
  -> labels high-guidance collapse as under-dispersion

From asking one number to rank, test and diagnose at once, to separating outputs by the question they answer, the core shift is recognising that a swap-invariant scalar cannot express direction, and a moment summary cannot express severity.

Expert Assessment

Problem choice: Excellent, and it has been needed for years. FID is one of the most consequential numbers in generative modelling — it decides which papers look better — and the community has long known it was flawed without a clean account of which specific jobs it fails, or what to replace them with.

Method maturity: The design follows the diagnosis rather than decorating it, which is the right way to build a metric. Six standardized arms across a rank graph and two kernel bandwidths is a reasonable construction for breadth without an unbounded hyperparameter search, and the three-output structure refuses the temptation to squeeze everything back into one number. The open question is sensitivity to the arm set: an aggregate over six statistics needs a defensible weighting, and a reader will want to know how much the index depends on that choice.

Experimental integrity: The ImageNet demonstration is the strongest kind of evidence — a construction that exposes what the metric actually measures, rather than an argument about what it might. Reporting cases where FID is flat or reversed is candid and important, since those are precisely the situations that would have invalidated the method had they gone unmentioned. The evaluation is largely in controlled sweeps and two DiT/SiT families, which is appropriate for a metric paper, though broader adoption will depend on how it behaves on the noisier, less controlled comparisons people actually run.

Writing quality: The framing of three incompatible jobs answered by one scalar is stated immediately and organises everything that follows. The paper would benefit from one concrete worked comparison — a pair of models where FID and ZID disagree, with the images — since that is the evidence that would convince a practitioner to switch.

Verdict: strong accept — it replaces an overloaded metric with outputs matched to the questions being asked, and it demonstrates the failure mode with a construction rather than an argument.

Takeaways

  • Stop using one scalar for ranking, significance testing and diagnosis. These are three questions and they need three outputs; compressing them loses at least one.
  • Check swap invariance before trusting a distance metric to describe a direction. If exchanging the samples does not change the number, the metric cannot express which way things moved.
  • Read the moment restriction in any moment-based metric. FID rewards matching mean and covariance, so optimization pressure against it will find images that match those two things and nothing else.
  • When reporting a metric gap, report a null alongside it. A scalar difference without a calibrated test cannot be distinguished from sampling noise, no matter how many decimals it has.

论文: 2608.24881 作者: Hao Chen 分类: stat.ML, cs.LG

缺口

生成模型是用 FID 和 KID 来排名的。 这不是某种方法论偏好,而是这个领域的默认做法;而它同时承担着三项彼此不同的任务——排名(哪些模型离真实数据更远)、检验(这个偏离在统计上是否真实)、以及诊断(这是哪一类偏离)。 一个标量被要求同时做完这三件事,而论文表明它其实一件都做不可靠。

这个失效有一个具体的演示,而不是一段论证。 FID 用一个分布的前两阶矩来概括它。于是在 ImageNet 上,只被优化去匹配参考集 Inception 均值与协方差的图像,FID 达到 24.7——而留出的真实图像是 58.6(越低越好)。 那些被优化出来的图像在视觉上完全无法辨认,却在指标上击败了真实数据。这不是 FID 被误用,而是 FID 在准确地报告它所度量的东西矩约束本身就是这个指标

第二处失效更细微,对实践的伤害也更大。 FID 与 KID 是标量式的差异度量,在两个样本互换后数值不变。一个在互换下不变的数,无法编码离散度变化的方向——而方向恰恰是你区分”模式坍塌(分布偏窄)“与”分布偏宽”所需要的东西。两种截然相反的病症,产出同一个统计量。

第三处失效是统计层面的。 一个被报出的标量差距,并不是一个对抽样波动做过标定的检验。没有零分布,“模型 A 比模型 B 的 FID 好 3”只是一条观察,不是一个结论。

   一个标量,三项互不相容的任务

   [ 排名 ]  哪个模型离真实更远?      -> 一个分数
   [ 检验 ]  这个差距超出抽样噪声了吗? -> 一个 p 值
   [ 诊断 ]  这是哪一类偏离?          -> 一个方向
                    |
        目前这三者都由 FID / KID 一并回答
                    |
                    v
   [1] 矩约束
       ImageNet:只匹配参考集
       均值与协方差的图像  ->  FID 24.7
       留出的「真实」图像  ->  FID 58.6   (越低越好)
       -> 无法辨认的图像击败了真实数据

   [2] 对称性
       FID/KID 在两个样本「互换」后数值不变
       -> 无法编码方向
       -> 分布偏窄(模式坍塌)与分布偏宽
          给出同一个数字

   [3] 没有零假设
       标量差距没有对抽样波动做过标定

增量

一句话: 在这篇论文之前,我们要求一个数字同时完成排名、检验与诊断;在这篇论文之后,ZID 给出三个彼此关联的输出——量级指数、置换检验 p 值、以及带符号的离散度读数——并且能在 FID 持平甚至反转的情形下检测出偏离。

核心机制

诊断决定了设计,因此 ZID 是针对每一处具体的约束去拆解,而不是去改良某个标量。

两个核家族下的六条标准化分支。 ZID 组合了六条对位置与离散度敏感的分支,分别取自秩图(RISE)与高斯核(GPK,两个带宽)。这个”多”本身就是要点:单一核、单一带宽各有自己的盲点,而跨家族对位置敏感与离散度敏感的统计量做聚合,正是让这个指标不再依赖某一种概括的方式。而对各分支做标准化,是它们能被合并的前提。

三个彼此关联的输出,取代一个过载的标量。 这是结构性的修正,也正是这个问题应有的形态:

  • 一个指数,用于给偏离量级排名——这是 FID 原本在做的事,现在在没有矩约束的前提下度量。
  • 一个置换检验 p 值,用于检验分布是否相等——它补上了裸标量差距所缺的那个零假设,使差距得以与抽样波动区分开。
  • 一个带符号的离散度读数,用于诊断——也就是方向,而这对一个互换不变的统计量而言,在结构上不可能提供。

三个输出对应三项互不相容的任务,而且不去尝试把它们重新压缩回一个数字。

实验针对的,正是诊断所预测会被 FID 搞坏的那些情形。 在受控扫描中,ZID 检出了范围很广的各类偏离,而且它的分数沿相应的扫描维度随严重程度单调上升——包括 FID 持平甚至反转的那些情形。随严重程度单调追踪,正是你希望排名指数具备的性质,也正是基于矩的标量无法提供的性质。 在 DiT-XL/2 与 SiT-XL/2 的引导(guidance)扫描上,ZID 检测出了与真实数据的偏离,而带符号读数把高引导下的多样性坍塌标注为分布偏窄——这正是互换不变的统计量表达不出的那个诊断。

   ZID:三项任务,三个输出

   输入:生成样本、真实样本
        |
        v
   六条标准化分支
     秩图(RISE)            } 对位置与
     高斯核(GPK ×2 带宽)    } 离散度敏感
        |
        +-----------------+------------------+
        v                 v                  v
   [ 指数 ]         [ 置换检验 ]        [ 带符号离散度 ]
   给偏离量级        p 值:两个分布       方向:偏窄 还是
   排名              是否相等?           偏宽
   (替代 FID        (补上 FID 缺的     (互换不变的标量
     的排名职能)      那个零假设)        不可能提供)
        |                 |                  |
        +-----------------+------------------+
                          v
   在 DiT-XL/2、SiT-XL/2 的引导扫描上:
     既能检出偏离,又能把高引导下的坍塌
     标注为「分布偏窄」

可以用**“用一次完整体检取代一台体重秤”**来理解这件事: 踩上体重秤会得到一个数字,它对一个问题确实有用——大致就是”我有多重”。但如果你拿这个数字去问”我到底有没有病、是哪一边的病”,它答不了,而且它会为一位身患重疾的人愉快地报出一个令人安心的数字。 体检则把输出拆开:一个你可以长期追踪的测量值;一次对照参考区间的检验,告诉你差异是真实的还是噪声;以及一个带符号的读数,区分”某项指标过高”与”某项指标过低”。 论文里那个 ImageNet 的例子,就是体重秤对一张无法辨认的图像报出了极好的数字——不是秤坏了,而是这台秤在回答一个它从来就答不了的问题。

关键概念

  • 以矩约束为根因: FID 用均值与协方差概括一个分布。它在被优化图像上的著名失效并非误用,而是直接后果——只要匹配这两个矩,无论看起来是什么,分数都会好。把这个机制点名出来(而不是当作一则轶事),才是”要替换这个概括”的动机所在。
  • 互换不变性与缺失的方向: FID 与 KID 在两个样本交换后数值不变。这是一个结构性性质,它使该指标无法区分模式坍塌与分布偏宽——两种相反的问题被报成同一个数。
  • 对抽样波动的标定: 来自置换检验的 p 值。没有它,标量差距就无法与有限采样的噪声分开——这也意味着”排名”与”检验”不是同一件事,不该共用一个输出。
  • 严重程度追踪: 排名指数随偏离加剧而单调上升这一性质。正是它让一个指标可用于模型选择,也正是论文的扫描中 FID 未能提供的。

框架转变

之前(一个标量,三项任务):
  FID / KID -> 一个数字
    排名:在矩约束下可以
    检验:没有零分布
    诊断:不可能(互换不变)
  -> 无法辨认的图像可以击败真实数据
  -> 模式坍塌与分布偏宽看起来完全一样

之后(三个输出,各对一项任务):
  ZID
    指数        -> 给偏离量级排名
    置换检验    -> 相对抽样噪声的 p 值
    带符号读数  -> 偏窄 还是 偏宽
  -> 在 FID 持平或反转处仍能追踪严重程度
  -> 把高引导下的坍塌标注为「分布偏窄」

从”要求一个数字同时承担排名、检验与诊断”,转变为”按它所回答的问题把输出拆开”,核心转变在于认识到:互换不变的标量表达不了方向,而矩概括表达不了严重程度。

专家评审

选题眼光: 极好,而且是多年来一直被需要的工作。 FID 是生成建模领域最具影响力的数字之一——它决定哪些论文看起来更好——而社区早就知道它有缺陷,却一直没有一个干净的说明:它究竟在哪几项任务上失效,以及该用什么替代。

方法成熟度: 设计是跟着诊断走,而不是给结论做装饰,这是构建指标的正确方式。 跨秩图与两个核带宽的六条标准化分支,是在不引入无界超参搜索的前提下取得覆盖面的一种合理构造;而”三个输出”的结构拒绝了把一切重新挤回一个数字的诱惑。 开放问题是它对分支集合的敏感性:对六个统计量做聚合需要一个站得住脚的加权,读者会想知道这个指数对该选择有多依赖。

实验诚意: ImageNet 那个演示是最强的一类证据——一个把”这个指标实际在度量什么”暴露出来的构造,而不是一段关于”它可能如何”的论证。 报告 FID 持平甚至反转的情形是坦率且重要的,因为那恰恰是”如果不说就会让方法失效”的场景。评测主要落在受控扫描与两个 DiT/SiT 家族上,对一篇指标论文来说是恰当的;不过要真正被采纳,还取决于它在人们实际运行的、更嘈杂也更不受控的比较中表现如何。

写作功力: “一个标量回答三项互不相容的任务”这个框架被立刻给出,并组织了后文的一切。 若补一个具体的对照案例——一对 FID 与 ZID 结论相左的模型,配上图像——论文会更有说服力,因为那才是能让实践者决定改用它的证据。

判决: 强接收(Strong Accept) — 它用一个过载的指标,换来了与所提问题相匹配的一组输出;并用一个构造而非一段论证,展示出失效模式。

要点总结

  • 停止用一个标量同时做排名、显著性检验与诊断。这是三个问题,需要三个输出;把它们压在一起,至少会丢掉一个。
  • 在信任某个距离指标去描述方向之前,先检查它的互换不变性。如果交换两个样本并不改变那个数,它就无法表达事物朝哪边动了。
  • 对任何基于矩的指标,请读出它的矩约束。FID 奖励匹配均值与协方差,因此针对它做优化压力,必然会找到那些只匹配了这两样、别的什么都没匹配的图像。
  • 报告指标差距时,请一并报告零假设。一个没有经过标定检验的标量差值,无论小数点后有多少位,都无法与抽样噪声区分开。