Abstract
While diffusion models are primarily recognized for their generative capabilities, they have emerged as potent self-supervised representation learners. A persistent empirical observation in the field is the "unimodal" performance curve: feature quality for downstream tasks peaks at intermediate noise levels rather than with clean data. This paper introduces a theoretical framework using Mixture of Low-Rank Gaussians (MoLRG) to explain these dynamics. We demonstrate that this unimodal peak is a fundamental consequence of the trade-off between denoising and class signal preservation. Furthermore, we show that the presence of this peak serves as a reliable indicator of model generalization versus memorization.
Introduction
Diffusion models (DMs) have set new benchmarks in image synthesis, but their utility extends beyond generation. When repurposed for discriminative tasks like classification or segmentation, DMs provide high-quality features. However, practitioners have noted a counter-intuitive phenomenon: the best representations are not found at the end of the reverse diffusion process (the "clean" image state). Instead, linear probing accuracy typically follows a unimodal trajectory, reaching its zenith at a specific intermediate timestep (or noise level).
This paper provides the first rigorous mathematical treatment of these representation dynamics. By modeling data through a low-dimensional lens, we explain why this "Goldilocks zone" exists and how it can be leveraged to monitor model health and improve robustness.
Theoretical Framework: The MoLRG Model
To analyze the U-Net's behavior, the authors model image data as a Mixture of Low-Rank Gaussians (MoLRG). This assumption suggests that high-dimensional data, such as natural images, actually resides on a union of simpler, low-dimensional subspaces—for example, a "dog" subspace distinct from a "car" subspace.
The Signal-to-Noise Ratio (SNR) Metric
The core of the analysis involves a mathematically tractable version of a U-Net employing a "mixture-of-experts" mechanism. The authors define a specific Signal-to-Noise Ratio (SNR) for representations, which quantifies the energy the model projects into the correct class subspace relative to irrelevant or noisy directions. The paper proves that the unimodal SNR curve is an inevitable result of two competing forces:
- Denoising Strength: At low noise levels, the model is distracted by fine-grained, class-irrelevant details (e.g., background textures). Adding noise suppresses these "clutter" features.
- Class Confidence: At high noise levels, the fundamental structural signal of the image is lost, causing the model's class-specific projections to collapse.
The peak occurs where the suppression of clutter is maximized before the primary signal is significantly degraded.
Key Insights
The Fine-to-Coarse Transition
Diffusion models act as hierarchical filters. During the diffusion process, they remove details in a specific order: fine-grained textures disappear first, followed by intermediate shapes, and finally global structures. The intermediate noise level is optimal for representation because it effectively filters out the high-frequency "noise" of the dataset while preserving the coarse structural features essential for semantic classification.
Generalization as a "Smoke Detector"
One of the paper's most significant findings is the correlation between the shape of the representation curve and the model's internal state.
- Generalization Phase: When a model is learning to create novel images, the unimodal peak is prominent and distinct.
- Memorization Phase: As a model begins to overfit or memorize the training set, the peak vanishes. The curve becomes monotonically decreasing, with the highest accuracy appearing at the lowest noise levels.
This transition allows the representation curve to act as a "smoke detector" for overfitting. Monitoring these dynamics provides a way to implement early stopping without the need for external validation sets or computationally expensive metrics like Fréchet Inception Distance (FID).
Experimental Results
The theoretical predictions were validated across several benchmarks, including CIFAR-10/100, TinyImageNet, and CelebA.
- Theoretical Alignment: The derived SNR approximation closely tracks the actual linear probing accuracy of trained models, confirming the utility of the MoLRG assumption.
- Memorization Transition: In experiments using limited data on CIFAR-10 ($N=2^{12}$), the peak accuracy dropped from approximately 80% during the generalization phase to 65% during severe memorization, coinciding with the flattening of the unimodal curve.
- Robustness via Ensembling: Because different timesteps capture different granularities, the authors demonstrated that ensembling features from multiple noise levels significantly boosts performance. For a Diffusion Transformer (DiT) on MiniImageNet, this approach increased accuracy from 77.6% to 78.4% and improved robustness under 80% label noise from 47.3% to 56.3%.
Conclusion and Future Work
This work provides a principled foundation for understanding how diffusion models process information. By identifying the link between noise levels and feature granularity, the authors move the field away from empirical trial-and-error toward a more theoretical understanding of representation learning.
Future research will focus on extending this analysis to more complex, non-linear manifolds and investigating how these dynamics vary across different layers of the U-Net or Transformer architectures. Additionally, these insights could lead to more efficient feature extraction protocols that bypass the need for exhaustive grid searches for the optimal noise level.
Summary updated