SODA: Bottleneck Diffusion Models for Representation Learning

Drew A. Hudson, Daniel Zoran, Mateusz Malinowski, Andrew K. Lampinen, Andrew Jaegle, James L. McClelland, Loic Matthey, Felix Hill, Alexander Lerchner · DOI

Abstract

We introduce SODA, a self-supervised diffusion model designed for representation learning. The model incorporates an image encoder, which distills a source view into a compact representation, that, in turn, guides the generation of related novel views. We show that by imposing a tight bottleneck between the encoder and a denoising decoder, and leveraging novel view synthesis as a self-supervised objective, we can turn diffusion models into strong representation learners, capable of capturing visual semantics in an unsupervised manner. To the best of our knowledge, SODA is the first diffusion model to succeed at ImageNet linear-probe classification, and, at the same time, it accomplishes reconstruction, editing and synthesis tasks across a wide range of datasets. Further investigation reveals the disentangled nature of its emergent latent space, that serves as an effective interface to control and manipulate the produced images.

Introduction

While diffusion models have revolutionized image synthesis, their ability to learn useful representations for downstream tasks has lagged behind discriminative methods like SimCLR or DINO. Standard diffusion models often focus on low-level pixel details rather than high-level semantic understanding. SODA (Self-supervised Optimized Diffusion Analysis) addresses this by designing a diffusion model with specific constraints to distill the essence of a scene into a compact latent space.

Methods

SODA introduces a specialized architecture that moves away from standard unconditional diffusion. It consists of an Encoder (ResNet or ViT) that compresses a source view into a compact latent vector ($z$), and a Denoising Decoder (UNet) that generates a related "target view."

Overview of the SODA architecture, including the training views and layer modulation scheme.

Key Innovations

  • Novel View Synthesis: Training the model to predict a related view (different crop or angle) forces the encoder to learn semantic identity rather than pixel locations.
  • Information Bottleneck: A low-dimensional latent $z$ ensures the model prioritizes high-level semantics over granular details.
  • Layer Modulation: The latent vector $z$ is partitioned to modulate specific decoder layers. This encourages sub-vectors to specialize in attributes like pose, structure, or texture.
  • Inverted Noise Schedule: SODA utilizes a schedule prioritizing "medium" noise levels, which provides a stronger signal for representation learning compared to standard schedules.

Key Results

SODA demonstrates state-of-the-art performance for generative models in representation learning tasks.

Latent space interpolations across diverse categories demonstrating semantic smoothness and disentanglement.
  • ImageNet Linear Probing: SODA achieved 72.24% Top-1 accuracy, a landmark result for diffusion models, placing it in the same league as top-tier discriminative models.
  • Disentanglement and Control: The model improved disentanglement scores by 27–58% over traditional variational approaches. The layer modulation allows for zero-shot "style mixing" and unsupervised image editing.
  • Robustness: Unlike contrastive models, SODA remains robust even with light data augmentation, suggesting it captures more fundamental visual features.
  • Visual Quality: SODA produces reconstructions with a significantly better FID (2.77 on ImageNet) compared to VQGAN or DALL-E 2.

Conclusion and Future Work

SODA proves that diffusion models can be world-class representation learners when designed with the right bottlenecks. While currently focused on single-object datasets, future work will explore scaling to complex, multi-object scenes and reducing the computational cost of iterative sampling.

Summary updated

BibTeX
@misc{hudson2023soda,
  author = {Drew A. Hudson and Daniel Zoran and Mateusz Malinowski and Andrew K. Lampinen and Andrew Jaegle and James L. McClelland and Loic Matthey and Felix Hill and Alexander Lerchner},
  title = {{SODA: Bottleneck Diffusion Models for Representation Learning}},
  year = {2023},
  eprint = {2311.17901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17901},
}
Figure