Lune

ICCV2023Top-tier venue

Discriminative Class Tokens for Text-to-Image Diffusion Models

Idan Schwartz, Vésteinn Snæbjarnarson, Hila Chefer, Serge J. Belongie, Lior Wolf, Sagie Benaim

Abstract

Recent advances in text-to-image diffusion models have enabled the generation of diverse and high-quality images. However, generated images often fall short of depicting subtle details and are susceptible to errors due to ambiguity in the input text. One way of alleviating these issues is to train diffusion models on class-labeled datasets. This comes with a downside, doing so limits their expressive power: (i) supervised datasets are generally small compared to largescale scraped text-image datasets on which text-to-image models are trained, and so the quality and diversity of generated images are severely affected, or (ii) the input is a hard-coded label, as opposed to free-form text, which limits the control over the generated images. In this work, we propose a non-invasive fine-tuning technique that capitalizes on the expressive potential of freeform text while achieving high accuracy through discriminative signals from a pretrained classifier, which guides the generation. This is done by iteratively modifying the embedding of a single input token of a text-to-image diffusion model, using the classifier, by steering generated images toward a given target class. Our method is fast compared to prior fine-tuning methods and does not require a collection of in-class images or retraining of a noise-tolerant classifier. We evaluate our method extensively, showing that the generated images are: (i) more accurate and of higher quality than standard diffusion models, (ii) can be used to augment training data in a low-resource setting, and (iii) reveal information about the data used to train the guiding classifier. The code is available at https://github.com/ idansc/discriminative_class_tokens .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion Models cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • It's All About Your Sketch: Democratising Sketch Control in Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • It's All About Your Sketch: Democratising Sketch Control in Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • It's All About Your Sketch: Democratising Sketch Control in Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
  • It's All About Your Sketch: Democratising Sketch Control in Diffusion Models cites Denoising Diffusion Probabilistic Models
  • It's All About Your Sketch: Democratising Sketch Control in Diffusion Models cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Training-Free and Adaptive Sparse Attention for Efficient Long Video Generation cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Training-Free and Adaptive Sparse Attention for Efficient Long Video Generation cites Diffusion Models Beat GANs on Image Synthesis
  • Training-Free and Adaptive Sparse Attention for Efficient Long Video Generation cites Denoising Diffusion Probabilistic Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Diffusion Models Beat GANs on Image Synthesis
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Learning Transferable Visual Models From Natural Language Supervision
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Open-Vocabulary Attention Maps with Token Optimization for Semantic Segmentation in Diffusion ModelsPablo Marcos-Manchón, Roberto Alcover-Couso, Juan C. SanMiguel, Jose M. MartínezCVPR 2024 · 9 citations
  2. Training-Free and Adaptive Sparse Attention for Efficient Long Video GenerationYifei Xia, Suhan Ling, Fangcheng Fu, Yujie Wang et al.ICCV 2025 · 6 citations
  3. It's All About Your Sketch: Democratising Sketch Control in Diffusion ModelsSubhadeep Koley, Ayan Kumar Bhunia, Deeptanshu Sekhri, Aneeshan Sain et al.CVPR 2024

Builds on18

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  4. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  5. Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations

Related papers

  1. Image is All You Need to Empower Large-scale Diffusion Models for In-Domain GenerationPu Cao, Feng Zhou, Lu Yang, Tianrui Huang et al.CVPR 2025
  2. SINE: SINgle Image Editing with Text-to-Image Diffusion ModelsZhixing Zhang, Ligong Han, Arnab Ghosh, Dimitris N. Metaxas et al.CVPR 2023
  3. Prompt Tuning Inversion for Text-Driven Image Editing Using Diffusion ModelsWenkai Dong, Song Xue, Xiaoyue Duan, Shumin HanICCV 2023 · 104 citations
  4. GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion ModelsAlexander Quinn Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam et al.ICML 2022 · 4,691 citations
  5. Training-Free Safe Text Embedding Guidance for Text-to-Image Diffusion ModelsByeonghu Na, Mina Kang, Jiseok Kwak, Minsang Park et al.NeurIPS 2025 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines