Understanding Generalizability of Diffusion Models Requires Rethinking the Hidden Gaussian Structure
Xiang Li, Yixiang Dai, Qing Qu
TL;DR
Diffusion models trained on finite data generalize in part by learning a hidden Gaussian structure in their score functions. The authors show that, in the generalization regime, nonlinear diffusion denoisers become approximately linear and align with the optimal Gaussian denoiser for a data distribution characterized by mean $\boldsymbol{\mu}$ and covariance $\boldsymbol{\Sigma}$ estimated from training data. This Gaussian inductive bias is strongest when model capacity is small relative to data and can emerge early in training for overparameterized models, offering a potential explanation for observed strong generalization. The work provides a new perspective on diffusion model generalization by linking denoising behavior to data covariance and highlights the role of linear Gaussian structure alongside nonlinearity in high-quality image generation.
Abstract
In this work, we study the generalizability of diffusion models by looking into the hidden properties of the learned score functions, which are essentially a series of deep denoisers trained on various noise levels. We observe that as diffusion models transition from memorization to generalization, their corresponding nonlinear diffusion denoisers exhibit increasing linearity. This discovery leads us to investigate the linear counterparts of the nonlinear diffusion models, which are a series of linear models trained to match the function mappings of the nonlinear diffusion denoisers. Surprisingly, these linear denoisers are approximately the optimal denoisers for a multivariate Gaussian distribution characterized by the empirical mean and covariance of the training dataset. This finding implies that diffusion models have the inductive bias towards capturing and utilizing the Gaussian structure (covariance information) of the training dataset for data generation. We empirically demonstrate that this inductive bias is a unique property of diffusion models in the generalization regime, which becomes increasingly evident when the model's capacity is relatively small compared to the training dataset size. In the case that the model is highly overparameterized, this inductive bias emerges during the initial training phases before the model fully memorizes its training data. Our study provides crucial insights into understanding the notable strong generalization phenomenon recently observed in real-world diffusion models.
