Skip to main navigation Skip to search Skip to main content

Shielded Diffusion: Generating Novel and Diverse Images using Sparse Repellency

  • Michael Kirchhof
  • , James Thornton
  • , Louis Béthune
  • , Pierre Ablin
  • , Eugene Ndiaye
  • , Marco Cuturi
  • Apple Computer
  • University of Tübingen

Research output: Contribution to journalConference articlepeer-review

1 Citation (Scopus)

Abstract

The adoption of text-to-image diffusion models raises concerns over reliability, drawing scrutiny under the lens of various metrics like calibration, fairness, or compute efficiency. We focus in this work on two issues that arise when deploying these models: a lack of diversity when prompting images, and a tendency to recreate images from the training set. To solve both problems, we propose a method that coaxes the sampled trajectories of pretrained diffusion models to land on images that fall outside of a reference set. We achieve this by adding repellency terms to the diffusion SDE throughout the generation trajectory, which are triggered whenever the path is expected to land too closely to an image in the shielded reference set. Our method is sparse in the sense that these repellency terms are zero and inactive most of the time, and even more so towards the end of the generation trajectory. Our method, named SPELL for sparse repellency, can be used either with a static reference set that contains protected images, or dynamically, by updating the set at each timestep with the expected images concurrently generated within a batch, and with the images of previously generated batches. We show that adding SPELL to popular diffusion models improves their diversity while impacting their FID only marginally, and performs comparatively better than other recent training-free diversity methods. We also demonstrate how SPELL can ensure a shielded generation away from a very large set of protected images by considering all 1.2M images from ImageNet as the protected set.

Original languageEnglish
Pages (from-to)30911-30942
Number of pages32
JournalProceedings of Machine Learning Research
Volume267
Publication statusPublished - 1 Jan 2025
Externally publishedYes
Event42nd International Conference on Machine Learning, ICML 2025 - Vancouver, Canada
Duration: 13 Jul 202519 Jul 2025

Fingerprint

Dive into the research topics of 'Shielded Diffusion: Generating Novel and Diverse Images using Sparse Repellency'. Together they form a unique fingerprint.

Cite this