FID抽奖:量化生成模型评估中的隐藏随机性
The FID Lottery: Quantifying Hidden Randomness in Generative-Model Evaluation
摘要
Frechet Inception Distance(FID)实际上成为了图像生成的评估标准。然而,大多数研究仅使用一个训练好的模型以及一个固定的采样种子来报告一个数值。如果我们重新训练模型或重新采样数据,这个数值还能保持稳定性吗?在本文中,我们将FID视为一个随机变量,该变量与训练和生成过程中的多个种子相关。我们通过在数百个基于ImageNet 256x256数据的SiT网络上进行训练来直接测量其方差。我们的研究发现有一些令人惊讶的结果:(a) 使用不同的种子重新训练模型时,FID的数值会增加3.2倍(以Inception特征空间为单位),而重新从固定网络中采样数据则无法达到这一效果。(b) 这种差异是由三个因素造成的:随机初始化、数据顺序以及流匹配损失中的每一步高斯噪声。(c) 增加计算资源或模型规模几乎无法缩小这种差异,FID的变异系数仍然保持在1-2%之间。(d) 每个单元的最优引导调整方式可以减半这种差异,但也会改变哪些种子最适用于该任务;而幸运的训练种子则可以用较少的计算资源达到相同的FID值,甚至比不幸的训练种子节省2倍的计算资源。基于这些发现,我们建议采用一种新的FID评估方法:在每个单元都进行最优引导调整的情况下进行评估;任何低于约1.3%变异系数的FID差异都应被视为不可靠,同时需要报告多个训练种子的结果,而不是单一的FID数值。
English Abstract
The Frechet Inception Distance (FID) is the de facto arbiter of image generation, yet most papers report just a single number from a single trained model using a single sampling seed. How reproducible is that number if we retrain the model, or merely resample from it? In this paper, we treat FID as a random variable on a two-axis panel of training and generation seeds, and measure its variance directly on several hundred SiT networks trained on class-conditional ImageNet 256x256. We report surprising findings: (a) Retraining the model using the same recipe with a different seed moves FID 3.2x more (in Inception feature space) than redrawing samples from a fixed network. (b) That gap is driven by three factors: random initialisation, data ordering, and the per-step Gaussian noise of the flow-matching loss. (c) Increasing compute or model size barely tightens the spread, holding the FID coefficient of variation (CoV) inside a 1-2% band. (d) Per-cell classifier-free-guidance tuning halves the spread but reshuffles which seeds work best, and a lucky training seed reaches the same FID with up to 2x less compute than an unlucky one. Based on these findings, we recommend a new FID evaluation protocol: evaluate under per-cell optimal guidance, treat any FID gap below the empirically measured ~1.3% CoV as inconclusive, and report an error bar over several training seeds rather than a single FID number.