Contrastive Prompts Improve Disentanglement in Text-to-Image Diffusion Models

Chen Wu, Fernando De la Torre
2/21/2024
cs.CV

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Text-to-image diffusion models have achieved remarkable performance in image synthesis, while the text interface does not always provide fine-grained control over certain image factors. For instance, changing a single token in the text can have unintended effects on the image. This paper shows a simple modification of classifier-free guidance can help disentangle image factors in text-to-image models. The key idea of our method, Contrastive Guidance, is to characterize an intended factor with two prompts that differ in minimal tokens: the positive prompt describes the image to be synthesized, and the baseline prompt serves as a "baseline" that disentangles other factors. Contrastive Guidance is a general method we illustrate whose benefits in three scenarios: (1) to guide domain-specific diffusion models trained on an object class, (2) to gain continuous, rig-like controls for text-to-image generation, and (3) to improve the performance of zero-shot image editors.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2024contrastive,
  title  = {Contrastive Prompts Improve Disentanglement in Text-to-Image Diffusion Models},
  author = {Chen Wu and Fernando De la Torre},
  year   = {2024},
  eprint = {2402.13490},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13490v1}
}

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

Discussion