[Paper Review] Denoising Diffusion Autoencoders are Unified Self-supervised Learners
This paper demonstrates that denoising diffusion autoencoders (DDA) pre-trained for unconditional image generation inherently learn highly linear-separable representations in their intermediate layers, enabling them to serve as unified self-supervised learners for both generative and discriminative tasks. Without auxiliary encoders, DDAEs achieve 95.9% linear probe accuracy on CIFAR-10 and 50.0% on Tiny-ImageNet, matching state-of-the-art contrastive and masked autoencoding methods.
Inspired by recent advances in diffusion models, which are reminiscent of denoising autoencoders, we investigate whether they can acquire discriminative representations for classification via generative pre-training. This paper shows that the networks in diffusion models, namely denoising diffusion autoencoders (DDAE), are unified self-supervised learners: by pre-training on unconditional image generation, DDAE has already learned strongly linear-separable representations within its intermediate layers without auxiliary encoders, thus making diffusion pre-training emerge as a general approach for generative-and-discriminative dual learning. To validate this, we conduct linear probe and fine-tuning evaluations. Our diffusion-based approach achieves 95.9% and 50.0% linear evaluation accuracies on CIFAR-10 and Tiny-ImageNet, respectively, and is comparable to contrastive learning and masked autoencoders for the first time. Transfer learning from ImageNet also confirms the suitability of DDAE for Vision Transformers, suggesting the potential to scale DDAEs as unified foundation models. Code is available at github.com/FutureXiang/ddae.
Motivation & Objective
- To investigate whether diffusion models can serve as unified self-supervised learners for both generation and recognition.
- To evaluate if denoising diffusion autoencoders (DDA) learn discriminative representations through generative pre-training alone.
- To compare DDAE performance against contrastive learning and masked autoencoders in linear probing and fine-tuning settings.
- To assess the scalability and transferability of DDAEs to Vision Transformers and large-scale datasets like ImageNet.
- To explore whether the inherent denoising process in diffusion models implicitly supports discriminative representation learning.
Proposed method
- Pre-train a denoising diffusion autoencoder (DDA) on unconditional image generation using a noise schedule that progressively adds noise to images and learns to reverse the process.
- Extract intermediate features from the DDA encoder during the noising process and evaluate them via linear probing to assess discriminative quality.
- Truncate the DDA encoder at the best-performing layer identified through probing and fine-tune the resulting model for image classification.
- Compare DDAE performance with contrastive learning (SimCLR) and masked autoencoders (MAE) on CIFAR-10 and Tiny-ImageNet using both linear probe and fine-tuning protocols.
- Use a class-conditional DDAE variant trained on ImageNet and evaluate it in an unconditional manner to assess transfer learning potential.
- Apply metric-based layer selection to identify the most discriminative intermediate representation without additional supervision.
Experimental results
Research questions
- RQ1Can a diffusion model pre-trained solely for unconditional image generation learn strong discriminative representations in its intermediate layers without auxiliary supervision or explicit contrastive objectives?
- RQ2How does the performance of DDAE-based self-supervised representation learning compare to state-of-the-art contrastive and masked autoencoding methods on standard benchmarks like CIFAR-10 and Tiny-ImageNet?
- RQ3Does the intermediate feature space of a DDAE exhibit sufficient linearity and separability to support effective linear probing and fine-tuning for image classification?
- RQ4Can DDAEs be effectively transferred to Vision Transformers and scaled to large datasets like ImageNet, suggesting their potential as unified foundation models?
- RQ5What is the relationship between the denoising process in diffusion models and the emergence of discriminative features, and how does it compare to contrastive or masked modeling approaches?
Key findings
- DDA pre-training on unconditional image generation yields intermediate features that are highly linear-separable, enabling strong performance in linear probe evaluations without any additional training.
- On CIFAR-10, DDAE achieves 95.9% linear probe accuracy, matching or exceeding state-of-the-art contrastive and masked autoencoding methods.
- On Tiny-ImageNet, DDAE achieves 50.0% linear probe accuracy, demonstrating competitive performance despite the dataset's complexity.
- Fine-tuning the truncated DDAE encoder yields 97.2% accuracy on CIFAR-10 and 69.4% on Tiny-ImageNet, showing strong transferability to classification tasks.
- When fine-tuned on ImageNet, the DDAE-based model achieves 98.1% accuracy on CIFAR-10 and 77.8% on Tiny-ImageNet, confirming its scalability and effectiveness for transfer learning.
- The performance of DDAE is comparable to MAE and SimCLR, suggesting that diffusion-based pre-training can serve as a unified alternative for both generative and discriminative learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.