Discffusion: Discriminative Diffusion Models as Few-shot Vision and Language Learners

Xuehai He, Weixi Feng, Tsu-Jui Fu, Varun Jampani, Arjun Akula +4 more
5/18/2023
cs.CV

No official code found. Best implementation: eric-ai-lab/Discffusion (29 stars, MIT, last commit 2024-04-27).

Abstract

Diffusion models, such as Stable Diffusion, have shown incredible performance on text-to-image generation. Since text-to-image generation often requires models to generate visual concepts with fine-grained details and attributes specified in text prompts, can we leverage the powerful representations learned by pre-trained diffusion models for discriminative tasks such as image-text matching? To answer this question, we propose a novel approach, Discriminative Stable Diffusion (DSD), which turns pre-trained text-to-image diffusion models into few-shot discriminative learners. Our approach mainly uses the cross-attention score of a Stable Diffusion model to capture the mutual influence between visual and textual information and fine-tune the model via efficient attention-based prompt learning to perform image-text matching. By comparing DSD with state-of-the-art methods on several benchmark datasets, we demonstrate the potential of using pre-trained diffusion models for discriminative tasks with superior results on few-shot image-text matching.

View on arXivView PDF

Code Implementations(1)

MIT

Official repo for the TMLR paper "Discffusion: Discriminative Diffusion Models as Few-shot Vision and Language Learners"

294MDX, PythonNov 16, 20232 years agoMIT
diffusion-modelsdiscriminative-learningfew-shot-learningvision-and-language

Similar Papers

Cite this paper

@article{he2023discffusion,
  title  = {Discffusion: Discriminative Diffusion Models as Few-shot Vision and Language Learners},
  author = {Xuehai He and Weixi Feng and Tsu-Jui Fu and Varun Jampani and Arjun Akula and Pradyumna Narayana and Sugato Basu and William Yang Wang and Xin Eric Wang},
  year   = {2023},
  eprint = {2305.10722},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10722v3}
}

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/2305.10722.svg)](https://codeofpaper.com/paper/2305.10722)

Discussion