Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Models

Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, Tom Goldstein · DOI

Abstract

Cutting-edge diffusion models produce images with high quality and customizability, enabling them to be used for commercial art and graphic design purposes. But do diffusion models create unique works of art, or are they replicating content directly from their training sets? In this work, we study image retrieval frameworks that enable us to compare generated images with training samples and detect when content has been replicated. Applying our frameworks to diffusion models trained on multiple datasets including Oxford flowers, Celeb-A, ImageNet, and LAION, we discuss how factors such as training set size impact rates of content replication. We also identify cases where diffusion models, including the popular Stable Diffusion model, blatantly copy from their training data.

Introduction

As diffusion models like Stable Diffusion become the backbone of commercial graphic design and digital art tools, a pressing ethical and legal question emerges: Are these models learning the abstract concepts of objects, or are they functioning as high-tech photocopiers? If a model reproduces a copyrighted image or a specific photographer's work without attribution, it creates a significant intellectual property minefield. While previous research has documented memorization in large language models (LLMs), this study seeks to quantify and qualify "content replication" in the visual domain, defining it as a generated image containing an object that appears identically in a training image.

Methodology and Detection Framework

To investigate this phenomenon, the researchers developed a robust "replication detector" based on several key components:

  1. Similarity Metrics: The team benchmarked 10 different feature extractors, including state-of-the-art self-supervised models like DINO and SSCD, to identify the most reliable way to compare generated images to training data.
  2. The "Split-Product" Metric: Standard metrics often miss cases where a model "collages" a memorized object into a new background. To address this, the authors introduced a split-product metric. This technique breaks feature vectors into chunks representing local regions and computes the maximum similarity across these chunks, significantly improving the detection of partial or "patchwork" replications.
  3. Experimental Framework: Denoising Diffusion Probabilistic Models (DDPM) were trained on datasets of varying sizes (from 100 to 30,000 images) to observe how data volume affects memorization. Large-scale retrieval searches were then performed on off-the-shelf models, including the ImageNet Latent Diffusion Model (LDM) and Stable Diffusion v1.4.

Analysis of Content Replication

The study revealed a "Dataset Size Paradox." In small-to-medium datasets like Celeb-A, replication is rampant. While replication appeared nearly undetectable in the ImageNet LDM, Stable Diffusion—trained on billions of images—proved that scaling up does not eliminate the copying problem.

Visual evidence of content replication in Stable Diffusion, comparing generated images (top) with their nearest training set matches in LAION (bottom).

In a sample of 9,000 random generations from Stable Diffusion, approximately 1.88% were identified as clear replications. This is likely a significant underestimate, as the search was limited to a 12-million-image subset of the 2-billion-image LAION dataset. Qualitative evidence shows the model reproducing everything from movie posters and famous paintings to specific product photos from e-commerce sites.

Reconstructive Memory and Prompt Triggers

A key finding is that the model doesn't just copy pixels verbatim; it often exhibits "reconstructive memory." This occurs when the model pieces together foreground and background objects it has memorized separately, creating a collage-like effect.

Demonstration of 'reconstructive memory' where the model replicates a memorized object while varying the background or context.

Furthermore, the study identified that certain "key phrases" in prompts—such as "Canvas Wall Art Print" or specific artist names—can act as triggers, causing the model to output a memorized training image. Images that appear multiple times in the training set (duplicates) are also significantly more likely to be replicated, acting as "magnets" for the model's memory.

Conclusion

The DINO model using the split-product metric emerged as the most effective tool for identifying these "digital forgeries." The findings suggest that current diffusion models frequently cross the line from inspiration to replication. Future work must focus on developing training techniques that explicitly penalize memorization or creating "un-learnable" datasets that prevent models from copying specific intellectual property while still allowing them to learn general visual concepts.

Summary updated

BibTeX
@misc{somepalli2022diffusion,
  author = {Gowthami Somepalli and Vasu Singla and Micah Goldblum and Jonas Geiping and Tom Goldstein},
  title = {{Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Models}},
  year = {2022},
  eprint = {2212.03860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.03860},
}
Figure