Understanding and Mitigating Copying in Diffusion Models

Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, Tom Goldstein
5/31/2023
cs.LGcs.CRcs.CV

No official code found. Best implementation: somepago/DCR (114 stars, Apache-2.0, last commit 2023-11-22).

Abstract

Images generated by diffusion models like Stable Diffusion are increasingly widespread. Recent works and even lawsuits have shown that these models are prone to replicating their training data, unbeknownst to the user. In this paper, we first analyze this memorization problem in text-to-image diffusion models. While it is widely believed that duplicated images in the training set are responsible for content replication at inference time, we observe that the text conditioning of the model plays a similarly important role. In fact, we see in our experiments that data replication often does not happen for unconditional models, while it is common in the text-conditional case. Motivated by our findings, we then propose several techniques for reducing data replication at both training and inference time by randomizing and augmenting image captions in the training set.

View on arXivView PDF

Code Implementations(1)

somepago/DCRCommunity100%
Apache-2.0

Official Pytorch repo of CVPR'23 and NeurIPS'23 papers on understanding replication in diffusion models.

1146PythonMay 29, 20232 years agoApache-2.0
diffusionmemorizationtext-to-image-diffusiontext-to-image-generation

Similar Papers

Cite this paper

@article{somepalli2023understanding,
  title  = {Understanding and Mitigating Copying in Diffusion Models},
  author = {Gowthami Somepalli and Vasu Singla and Micah Goldblum and Jonas Geiping and Tom Goldstein},
  year   = {2023},
  eprint = {2305.20086},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.20086v1},
  journal = {NEURIPS 2023 2023}
}

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

Discussion