Improving Image Synthesis with Diffusion-Negative Sampling

Alakh Desai, Nuno Vasconcelos
11/1/2024

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

Abstract

For image generation with diffusion models (DMs), a negative prompt n can be used to complement the text prompt p, helping define properties not desired in the synthesized image. While this improves prompt adherence and image quality, finding good negative prompts is challenging. We argue that this is due to a semantic gap between humans and DMs, which makes good negative prompts for DMs appear unintuitive to humans. To bridge this gap, we propose a new diffusion-negative prompting (DNP) strategy. DNP is based on a new procedure to sample images that are least compliant with p under the distribution of the DM, denoted as diffusion-negative sampling (DNS). Given p, one such image is sampled, which is then translated into natural language by the user or a captioning model, to produce the negative prompt n*. The pair (p, n*) is finally used to prompt the DM. DNS is straightforward to implement and requires no training. Experiments and human evaluations show that DNP performs well both quantitatively and qualitatively and can be easily combined with several DM variants.

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. 6 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!

Cite this paper

@article{desai2024improving,
  title  = {Improving Image Synthesis with Diffusion-Negative Sampling},
  author = {Alakh Desai and Nuno Vasconcelos},
  year   = {2024},
  eprint = {2411.05473},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2411.05473},
  journal = {ECCV 2024 2024}
}

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

Discussion