NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Guided Diffusion from Self-Supervised Diffusion Features

Vincent Tao Hu, Yunlu Chen, Mathilde Caron, Yuki M. Asano, Cees G. M. Snoek, Björn OmmerarXiv 2023

Abstract

Guidance serves as a key concept in diffusion models, yet its effectiveness is often limited by the need for extra data annotation or classifier pretraining. That is why guidance was harnessed from self-supervised learning backbones, like DINO. However, recent studies have revealed that the feature representation derived from diffusion model itself is discriminative for numerous downstream tasks as well, which prompts us to propose a framework to extract guidance from, and specifically for, diffusion models. Our research has yielded several significant contributions. Firstly, the guidance signals from diffusion models are on par with those from class-conditioned diffusion models. Secondly, feature regularization, when based on the Sinkhorn-Knopp algorithm, can further enhance feature discriminability in comparison to unconditional diffusion models. Thirdly, we have constructed an online training approach that can concurrently derive guidance from diffusion models for diffusion models. Lastly, we have extended the application of diffusion models along the constant velocity path of ODE to achieve a more favorable balance between sampling steps and fidelity. The performance of our methods has been outstanding, outperforming related baseline comparisons in large-resolution datasets, such as ImageNet256, ImageNet256-100 and LSUN-Churches.

Introduction

Diffusion models have revolutionized generative AI, but they typically rely on guidance to produce high-quality, controllable results. Traditionally, this guidance comes from human-annotated labels (class-conditioning) or massive pre-trained models like CLIP (text-to-image). However, high-quality annotations are expensive, time-consuming, and often biased. While some researchers have tried using self-supervised backbones like DINO to provide guidance without labels, this still requires a complex two-stage process and reliance on an external model.

This paper introduces a framework for "self-guided" diffusion models that eliminates the need for external labels or pre-trained encoders. By leveraging the model's own internal features through an online Sinkhorn-Knopp clustering mechanism, the authors enable diffusion models to bootstrap their own guidance signals, achieving image fidelity on par with class-conditioned models using only unlabeled data.

Methodology: Bootstrap Online Sinkhorn-Knopp Clustering

The authors propose a single-stage training approach that extracts and utilizes discriminative features directly from the diffusion model's backbone.

The training and sampling pipeline of the proposed self-guided diffusion framework.
  1. Feature Extraction: During training, intermediate features are extracted from the U-ViT architecture. The authors found that specific layers and noise levels contain the most useful discriminative information.
  2. Online Clustering: These features are passed through a projection head and assigned to learnable prototypes using the Sinkhorn-Knopp algorithm. This algorithm enforces a balanced partition, preventing the model from collapsing all images into a single cluster.
  3. Joint Optimization: The model is trained with a dual loss: the standard diffusion denoising objective and the Sinkhorn-Knopp clustering loss.
  4. Self-Guidance: During sampling, the model uses these learned prototypes as pseudo-labels. By applying Classifier-Free Guidance (CFG) with these internal prototypes, the model focuses its generative power on specific concepts discovered during training.
  5. Efficient Sampling: The framework utilizes a "constant velocity path" Ordinary Differential Equation (ODE) solver, allowing for high-quality image generation in significantly fewer steps than traditional methods.

Key Insights and Analysis

  • The "Sweet Spot" for Features: Not all layers or timesteps are equal. The authors discovered that features from the middle of the network (e.g., layer 10 of a 21-layer U-ViT) at low noise levels ($t \approx 0.2$) provide the best guidance signals.
Clustering performance (NMI and ARI) across different U-ViT layers and diffusion timesteps.
  • Balanced Partitioning: Using simple k-means often leads to cluster collapse. Sinkhorn-Knopp acts as a regularizer that forces the model to use its entire vocabulary of prototypes.
  • Patch-Level vs. Image-Level: While image-level clustering helps with global structure, patch-level guidance (clustering individual parts of the image) significantly boosts fidelity and texture, nearly matching the performance of models trained with expensive DINO features.

Experimental Results

The proposed self-guidance method significantly outperforms standard unconditional diffusion models across several benchmarks:

  • ImageNet256-100: The "Bootstrapping" method achieved an FID of 36.0, a major improvement over the 45.1 FID of the unconditional baseline. Patch-level guidance dropped the FID further to 33.4.
  • LSUN-Churches: The online self-guidance approach reached an FID of 12.38, outperforming the unconditional baseline (13.10).
  • Sampling Efficiency: Using the ODE-based approach, the model produces vivid results in just 20 steps, whereas traditional SDE models often require hundreds of steps.

Conclusion

This work demonstrates that diffusion models can effectively guide themselves by leveraging their own internal representations. By integrating online clustering into the training loop, the proposed framework achieves high-quality generation without the need for external labels or pre-trained models. Future work includes extending these benefits to other popular backbones like Diffusion Transformers (DiT) and exploring the universal applicability of self-guidance.

Summary updated

BibTeX
@misc{hu2023guided,
  author = {Vincent Tao Hu and Yunlu Chen and Mathilde Caron and Yuki M. Asano and Cees G. M. Snoek and Björn Ommer},
  title = {{Guided Diffusion from Self-Supervised Diffusion Features}},
  year = {2023},
  eprint = {2312.08825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.08825},
}
Figure