Do text-free diffusion models learn discriminative visual representations?

Soumik Mukhopadhyay, Matthew Gwilliam, Yosuke Yamaguchi, Vatsal Agarwal, Namitha Padmanabhan +4 more
11/29/2023
cs.CV

Official code: soumik-kanad/diffssl (33 stars, MIT, last commit 2023-12-15).

Abstract

While many unsupervised learning models focus on one family of tasks, either generative or discriminative, we explore the possibility of a unified representation learner: a model which addresses both families of tasks simultaneously. We identify diffusion models, a state-of-the-art method for generative tasks, as a prime candidate. Such models involve training a U-Net to iteratively predict and remove noise, and the resulting model can synthesize high-fidelity, diverse, novel images. We find that the intermediate feature maps of the U-Net are diverse, discriminative feature representations. We propose a novel attention mechanism for pooling feature maps and further leverage this mechanism as DifFormer, a transformer feature fusion of features from different diffusion U-Net blocks and noise steps. We also develop DifFeed, a novel feedback mechanism tailored to diffusion. We find that diffusion models are better than GANs, and, with our fusion and feedback mechanisms, can compete with state-of-the-art unsupervised image representation learning methods for discriminative tasks - image classification with full and semi-supervision, transfer for fine-grained classification, object detection and segmentation, and semantic segmentation. Our project website (https://mgwillia.github.io/diffssl/) and code (https://github.com/soumik-kanad/diffssl) are available publicly.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the paper "Do text-free diffusion models learn discriminative visual representations?"

332Shell, PythonNov 29, 20232 years agoMIT

Similar Papers

Cite this paper

@article{mukhopadhyay2023textfree,
  title  = {Do text-free diffusion models learn discriminative visual representations?},
  author = {Soumik Mukhopadhyay and Matthew Gwilliam and Yosuke Yamaguchi and Vatsal Agarwal and Namitha Padmanabhan and Archana Swaminathan and Tianyi Zhou and Jun Ohya and Abhinav Shrivastava},
  year   = {2023},
  eprint = {2311.17921},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.17921v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.17921.svg)](https://codeofpaper.com/paper/2311.17921)

Discussion