Manuscript Offprint

arXiv:2610.34477

Finite-Sample Sensitivity of Kernel Metrics for Generative Evaluation

Tomasz Radzikowski, Mateusz Modrzejewski

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Kernel distances such as the Kernel Inception Distance (KID) and the Kernel Audio Distance (KAD) compare generated and reference samples in an embedding space, and model comparisons rest on their values. Each ship with one fixed kernel, and a reported value does not say which changes that kernel detects at the sample size used. We run each default as a permutation two-sample test on real embeddings of symbolic music, audio and images, comparing a sample with an independent sample changed by a mean shift, an isotropic contraction, or a rotation that keeps the mean and the covariance trace and is matched to the shift in transport distance. At 780 samples per side, both defaults rarely detect the rotations in five evaluation spaces, while they detect the shifts in every run. The median-bandwidth Gaussian kernel of KAD detects the contraction and regains power against rotations on image embeddings with an order of magnitude more samples. The cubic kernel of KID contains second- and third-moment information but misses the contraction in most runs, and our experiments do not establish a high-power rotation regime for it over the tested sample sizes. Narrower Gaussian bandwidths restore sensitivity in music and audio, an ℓ1\ell_{1} Laplace kernel does so for images, and aggregated tests combine both at nominal level. We recommend that a reported kernel distance state its sample budget and the changes its configuration detects at that budget.

1 INTRODUCTION

Generative models of images, audio and music are compared by distances between embedded sample sets. The Fréchet family (FID, FAD, and FMD for symbolic music; Heusel et al., 2017; Kilgour et al., 2019; Retkowski et al., 2024) compares Gaussian fits of the embeddings. Kernel distances replace the Gaussian fit with a maximum mean discrepancy (MMD) under a fixed kernel: KID uses a cubic polynomial kernel (Bińkowski et al., 2018), KAD a Gaussian kernel whose bandwidth is set by the median heuristic (Chung et al., 2025), and CMMD a Gaussian kernel on CLIP embeddings (Jayasumana et al., 2024). Papers report these values to rank models and to argue that a change improved the quality or the diversity of samples.

Whether a reported value can reflect a given kind of difference depends on the kernel, on the geometry of the embedding, and on the number of samples. The two-sample testing literature establishes each dependence. The kernel determines which alternatives a test can detect (Gretton et al., 2012; Sutherland et al., 2017), Gaussian-kernel power decays with dimension under common bandwidth choices (Ramdas et al., 2015), and in high dimension MMD and energy-distance tests respond mainly to differences in marginal means and variances (Zhu & Shao, 2021; Yan & Zhang, 2023). These results do not tell a practitioner which differences the shipped KID or KAD configuration detects at the sample budget of an evaluation, because that depends on the embedding distributions in use and has to be measured on them.

We measure this on real embedding distributions of symbolic music (CLaMP 2), audio (VGGish and PANNs) and images (Inception features of CIFAR-10 and STL-10). We apply one known change to an independent sample, and test the two samples with each kernel configuration as a permutation test at level 0.05. The changes are a mean shift, an isotropic contraction, a rotation that keeps the mean and the covariance trace, low-rank changes in the leading principal directions, and losses of coverage. We match strengths in 2-Wasserstein distance, so that the Gaussian transport bound of each rotation is at least the distance of the mean shift it is compared with, and we vary the sample size from 195 to 20,000 per side.

At 780 samples per side, the median heuristic detects the weak rotation in at most 4 of 20 runs in each music and audio space, and the matched mean shift in every run (Figure 1). The cubic kernel behaves the same way on both. The two defaults separate on scale and on sample size. The median heuristic detects an isotropic contraction of matched transport distance in every run in all five spaces, while the cubic kernel misses it in most runs. On Inception features, the median heuristic rejects the rotation in every run from 10,000 samples per side, while the cubic kernel rejects it in 2 of 5 runs at 20,000 (Figure 2).

Two expansions clarify which information the kernels retain. At wide bandwidths, the Gaussian MMD equals the squared mean difference divided by the squared bandwidth, and covariance differences enter only at the next order (Appendix A.1). The cubic kernel's MMD is an exact sum of mean, second-moment and third-moment terms, with the second-moment term weighted by a further factor 1/d (Section 6). The cubic kernel therefore contains covariance information, and its observed weakness concerns the finite-sample signal-to-noise ratio of the full statistic. The kernel that restores sensitivity depends on the embedding. A Gaussian bandwidth of 0.05 to 0.1 times the median squared distance suffices in music and audio. On image features, the only single kernel among those we tried that reaches high power is an exponential kernel on ℓ1\ell_1 distances, consistent with the result of Zhu & Shao (2021) that ℓ1\ell_1-distance tests respond to differences in marginal distributions where ℓ2\ell_2-distance tests respond to means and variances.

This paper makes three contributions. First, we measure the finite-sample sensitivity of the default KID and KAD kernels to controlled changes of real evaluation embeddings in five spaces, so that a reported value can be read against the changes its configuration detects (Section 4). Second, we separate the effects of sample size, Gaussian bandwidth and kernel family, which shows why a configuration that succeeds in one space fails in another (Sections 5 and 6). Third, we turn these results into a reporting protocol that separates distributional testing from the description of location, covariance and spectral diversity and from checks for copying (Section 7).

Scope. Our experiments evaluate statistical sensitivity in the chosen embedding spaces. A change with larger transport distance need not be more perceptually important, and higher rejection power does not by itself establish a better model ranking. We therefore read the results as an audit of metric configurations and sample budgets rather than as a comparison of perceptual quality measures.

References (35)