TL;DR
When trained on completely different subsets of a dataset, diffusion models remarkably generate nearly identical images from the same random noise seed. This paper uses Random Matrix Theory (RMT) to reveal that this striking consistency is fundamentally driven by shared linear Gaussian statistics. By analyzing finite-sample effects, the authors provide a precise mathematical framework explaining how data size and spectral properties dictate the stability, bias, and fluctuations of generative outputs.
What Problem Does This Paper Address?
If you train two deep diffusion models on completely disjoint halves of an image dataset and feed them the exact same random noise seed, they will synthesize highly similar images. This run-to-run consistency is a unique superpower of diffusion models, contrasting sharply with GANs or VAEs, where latent spaces can arbitrarily rotate and cause massive variability.
But why does this happen? Does it imply the models are simply memorizing data, or are they capturing universal statistical regularities? This paper aims to demystify the phenomenon. The authors tackle the challenge of mathematically quantifying how finite dataset sizes shape the learned denoiser and sampling trajectories, establishing a principled baseline for reproducibility and generalization in diffusion models.
Methods
The authors approach the problem by analyzing a tractable baseline: the optimal empirical linear denoiser (Wiener filter). They show that this linear framework is already sufficient to predict the core consistency effect.
To model the randomness introduced by finite training samples, they leverage Random Matrix Theory (RMT) and Deterministic Equivalence (DE) tools. This allows them to replace complex, random empirical covariance matrices with deterministic surrogates that become exact in high dimensions.
Crucially, because full diffusion sampling trajectories involve fractional matrix powers (e.g., $\Sigma^{1/2}$), standard DE tools do not apply. The authors overcome this by utilizing integral representations (specifically Balakrishnan’s formula) to derive novel deterministic equivalents for entire sampling paths.
Datasets
The theoretical predictions were validated using both linear models and deep architectures (UNet and Diffusion Transformers [DiT]) across several standard image benchmarks:
- FFHQ (Flickr-Faces-HQ) at $32\times32$ and $64\times64$ resolutions
- AFHQ32 (Animal Faces-HQ)
- CIFAR10 and CIFAR100
- LSUN Church and Bedroom datasets (at $32\times32$ and $64\times64$)
Key Insights and Ideas
- Linear Origin of Consistency: The run-to-run agreement is primarily a linear phenomenon driven by the first two moments (mean and covariance) of the data distribution. When data splits are deliberately engineered to have mismatched covariances, the consistency collapses.
- Noise Renormalization & Overshrinkage: Finite training data introduces a systematic bias. Mathematically, it acts like an adaptive Ridge penalty that inflates the effective noise level ($\sigma^2 \mapsto \kappa(\sigma^2)$). This causes the model to aggressively over-shrink low-variance data directions (fine details) and pull samples toward the dataset mean.
- The Triad of Disagreement: Fluctuations between models trained on different data splits follow a strict "variance law" factorized into three components:
- Anisotropy: Disagreement is not uniform; it peaks along eigenmodes where data variance matches the renormalized noise level.
- Inhomogeneity: Noisy images that are heavily displaced along high-variance directions suffer from much higher cross-split uncertainty.
- Global Scaling: The variance of the discrepancy scales inversely with the dataset size ($1/n$).
Key Results
- Two-Phase Behavior: Deep networks demonstrate a clear transition based on dataset size $n$. In the memorization phase ($n \le 1000$), models copy training samples, and consistency is low. In the renormalization phase ($n \ge 3000$), models generalize, and their behavior aligns closely with RMT predictions.
- Predicting Deep Net Fluctuations: In the generalization regime, seed-wise consistency predictions derived purely from RMT correlate significantly with empirical deep network deviations (achieving a Spearman correlation of 0.33 on FFHQ64 with $n=30,000$).
- Spectral Shift of Deviations: As predicted by the anisotropy law, at high noise levels, cross-split denoiser deviations manifest as low-frequency structural changes (e.g., facial envelopes), whereas at low noise levels, they shift to high-frequency specular details.
Limitations and Future Work
While the linear surrogate beautifully explains the where and how of model deviations, it has clear boundaries:
- Underestimating Total Variance: Linear models cannot capture the nonlinear dynamics of highly expressive deep networks, meaning the absolute magnitude of empirical deep-net deviations is larger than the theory predicts.
- Inductive Biases: The framework does not account for architecture-specific inductive biases (like the locality of CNNs).
The authors suggest that extending this RMT framework to random-feature models could bridge the gap, helping to fully quantify how model capacity shifts the required dataset size for absolute consistency.
Summary updated