Introduction: The Generalization Mystery
Image diffusion models have revolutionized generative AI, producing high-fidelity, novel images. However, a fundamental "paradox" lies at their core: why do these models generate new content instead of simply memorizing and reproducing their training data? Mathematically, the optimal solution to the denoising objective is a function that returns the training image closest to the noisy input. If models truly reached this global optimum, they would "teleport" to known samples, failing to generalize.
This paper reveals that the key to this mystery is "locality"—the tendency of a model to denoise a pixel based primarily on its neighbors. Crucially, the authors demonstrate that this locality is not just a byproduct of neural network design (such as the convolutional layers in U-Nets), but an emergent property dictated by the statistical structure of the training data itself.
The Denoising Paradox and Inductive Bias
Previous research suggested that the "memorization" optimum is avoided due to the inductive bias of model architectures. U-Nets, which dominated early diffusion research, use convolutions that naturally restrict the model's receptive field to local neighborhoods. This restriction prevents the model from seeing the "whole picture" required for perfect memorization of specific training samples.
However, the recent success of Diffusion Transformers (DiTs)—which lack these built-in local biases—challenges this explanation. If Transformers also exhibit locality, the source must be external to the architecture. The authors set out to find the true source of locality and its role in generalization by bridging the gap between deep learning and classical signal processing.
Methods: Bridging Deep Learning and Signal Processing
The authors analyze the Wiener filter—the optimal linear denoiser—to understand how data statistics influence denoising. Their approach involves:
- Statistical Analysis: Demonstrating that for natural images, principal components (directions of highest variance) align with low-frequency Fourier bases. Because nearby pixels are highly correlated, an optimal linear filter naturally develops a "local" sensitivity field.
- Analytical Denoiser: Proposing a new model that replaces heuristic "patch sizes" with a projection operator derived directly from the data's covariance matrix. This model uses high signal-to-noise ratio (SNR) principal components to define the "locality" for each pixel.
- Sensitivity Mapping: Measuring the "sensitivity field" (the Jacobian of the output with respect to the input) to visualize which pixels influence the denoising of a specific target pixel.
Key Insights: Locality as a Learned Property
A central finding of the paper is that both U-Nets and DiTs learn nearly identical sensitivity fields when trained on the same data. This confirms that locality is a learned property driven by data statistics rather than an architectural constraint.
Furthermore, the authors show that models learn non-local sensitivity when the data contains global correlations. On datasets like CelebA-HQ (faces), the model learns to look at distant but correlated features. For example, when denoising one eye, the model becomes sensitive to the location of the other eye, reflecting the inherent structure of the facial data.
Results and Implications
The authors' data-derived analytical denoiser significantly outperforms previous "expert-crafted" models. On the CIFAR10 dataset, their model achieved an $r^2$ of 0.589 (measuring its ability to explain a real U-Net's predictions), nearly doubling the 0.303 achieved by the previous state-of-the-art analytical model.
This research suggests that generalization in diffusion models happens because the models capture the underlying statistical structure common to the dataset. By focusing on high-SNR components, the model "passes through" the essential features of a novel image while filtering out noise, effectively generalizing based on the shared statistics of the training distribution rather than memorizing individual points.
Conclusion
By showing that locality emerges from data statistics, this work provides a more unified theory of how diffusion models work across different architectures. It shifts the focus from architectural constraints to the inherent structure of the data, offering a clearer path for designing future generative models that balance memorization and generalization.
Summary updated