Abstract
Recent advances in diffusion models have primarily focused on denoising and reconstruction objectives, often overlooking the potential of internal representation learning. We present Dispersive Loss, a minimalist "plug-and-play" regularizer that enhances generative quality by encouraging internal features to disperse within the latent space. Unlike existing alignment methods that rely on heavy pre-trained encoders, Dispersive Loss requires no external models, additional parameters, or extra data. Our experiments on ImageNet and CIFAR-10 demonstrate significant improvements in Fréchet Inception Distance (FID) across various model scales and architectures, establishing a new state-of-the-art for one-step generation.
Introduction
Diffusion-based generative models, such as Stable Diffusion and Diffusion Transformers (DiT), have achieved remarkable success by learning to reverse a noise process. However, their training objectives are largely regressive, focusing on pixel-level or latent-level reconstruction. In contrast, representation learning in discriminative tasks emphasizes the geometric structure of the feature space. While recent attempts like Representation Alignment (REPA) bridge this gap, they often rely on massive, pre-trained external models like DINOv2, introducing significant computational overhead and dependency on external datasets. This paper explores whether the benefits of representation learning can be achieved in a self-contained, minimalist way.
Methodology: The Dispersive Loss
The proposed Dispersive Loss is a minimalist approach to representation regularization. It draws inspiration from contrastive learning, which typically involves both alignment (pulling similar samples together) and dispersion (pushing different samples apart).
In the context of diffusion, the standard denoising task already serves as a powerful alignment mechanism by forcing the model to map noisy inputs back to a coherent target. Consequently, the authors realized that a dedicated alignment loss is redundant. Dispersive Loss focuses solely on the dispersion component. By pushing the representations of different images in a batch away from each other in the intermediate layers—specifically the first quarter of Transformer blocks—the model is discouraged from feature collapse. This "positive-free" contrastive approach is implemented in just a few lines of code and requires no extra learnable parameters or changes to the sampling process, making it an efficient addition to generative training pipelines.
Key Results and Scalability
The impact of Dispersive Loss is consistent across different model architectures and sizes. On the Scalable Interpolant Transformer (SiT-B/2) trained on ImageNet, the method improved the FID from 36.49 to 32.45, representing an 11.1% relative gain. This improvement is achieved without the computational burden of external models like DINOv2.
As illustrated in the figure above, the performance benefits scale effectively as model capacity increases. For the largest SiT-XL/2 model, the FID improved by 13.6%, reaching 15.95. Furthermore, when integrated into the MeanFlow framework, the method achieved a state-of-the-art FID of 3.21 for one-step generation on ImageNet. Analysis of internal states revealed that Dispersive Loss significantly increases the norm of internal representations. This suggests that "stronger" features, in terms of magnitude, correlate with the model's ability to generate higher-quality images. The researchers also noted that the method is remarkably robust to hyperparameter choices, such as the temperature (τ) and loss weight (λ), making it a reliable addition to standard training.
Conclusion
Dispersive Loss offers a computationally efficient and architecturally simple way to integrate representation learning into diffusion models. By leveraging the inherent alignment of the denoising objective and adding a simple dispersion regularizer, we achieve state-of-the-art results without the need for external data or complex pre-training pipelines. This work suggests that the internal feature dynamics of generative models remain a fertile ground for further optimization, offering a rare "free lunch" in deep learning performance.
Summary updated