Extracting Training Data from Diffusion Models

Authors: Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, Borja Balle, Daphne Ippolito, Eric Wallace

Submitted to arXiv on 30 Jan. 2023
Abstract

Image diffusion models such as DALL-E 2, Imagen, and Stable Diffusion have attracted significant attention due to their ability to generate high-quality synthetic images. In this work, we show that diffusion models memorize individual images from their training data and emit them at generation time. With a generate-and-filter pipeline, we extract over a thousand training examples from state-of-the-art models, ranging from photographs of individual people to trademarked company logos. We also train hundreds of diffusion models in various settings to analyze how different modeling and data decisions affect privacy. Overall, our results show that diffusion models are much less private than prior generative models such as GANs, and that mitigating these vulnerabilities may require new advances in privacy-preserving training.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Another approach to the problem
    Differentially Private Diffusion Models Generate Useful Synthetic Images
    Sahra Ghalebikesabi, Leonard Berrada, Sven Gowal et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 119 times · Not summarized yet

    Differentially Private Diffusion Models Generate Useful Synthetic Images privately fine-tunes diffusion models to protect training data while retaining useful synthetic-image quality.

    Abstract

    The ability to generate privacy-preserving synthetic versions of sensitive image datasets could unlock numerous ML applications currently constrained by data availability. Due to their astonishing image generation quality, diffusion models are a prime candidate for generating high-quality synthetic data. However, recent studies have found that, by default, the outputs of some diffusion models do not preserve training data privacy. By privately fine-tuning ImageNet pre-trained diffusion models with more than 80M parameters, we obtain SOTA results on CIFAR-10 and Camelyon17 in terms of both FID and the accuracy of downstream classifiers trained on synthetic data. We decrease the SOTA FID on CI…

  2. Very close Another approach to the problem
    LoyalDiffusion: A Diffusion Model Guarding Against Data Replication
    Chenghao Li, Yu-Ke Zhang, Da-Ke Chen et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet

    LoyalDiffusion reduces training-data replication by modifying U-Net skip connections, whereas this paper extracts memorized training images.

    Abstract

    Diffusion models have demonstrated significant potential in image generation. However, their ability to replicate training data presents a privacy risk, particularly when the training data includes confidential information. Existing mitigation strategies primarily focus on augmenting the training dataset, leaving the impact of diffusion model architecture under explored. In this paper, we address this gap by examining and mitigating the impact of the model structure, specifically the skip connections in the diffusion model's U-Net model. We first present our observation on a trade-off in the skip connections. While they enhance image generation quality, they also reinforce the memorization o…

  3. Very close Another approach to the problem
    Unlearnable Examples for Diffusion Models: Protect Data from Unauthorized Exploitation
    Zhengyue Zhao, Jinhao Duan, Xing Hu et al. · 2023 · Computer Vision and Pattern Recognition · preprint, not peer reviewed · cited 52 times · Not summarized yet

    Unlearnable Examples for Diffusion Models adds imperceptible image perturbations to stop diffusion models learning protected data, addressing the memorization risk this paper demonstrates.

    Abstract

    Diffusion models have demonstrated remarkable performance in image generation tasks, paving the way for powerful AIGC applications. However, these widely-used generative models can also raise security and privacy concerns, such as copyright infringement, and sensitive data leakage. To tackle these issues, we propose a method, Unlearnable Diffusion Perturbation, to safeguard images from unauthorized exploitation. Our approach involves designing an algorithm to generate sample-wise perturbation noise for each image to be protected. This imperceptible protective noise makes the data almost unlearnable for diffusion models, i.e., diffusion models trained or fine-tuned on the protected data canno…

  4. Very close Same question Cited by this paper Used in depth by this paper
    Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Models
    Gowthami Somepalli, Vasu Singla, Micah Goldblum et al. · 2022 · Computer Vision and Pattern Recognition · cited 577 times · Not summarized yet

    Diffusion Art or Digital Forgery? detects replicated training images in diffusion outputs and examines how training-set size affects replication.

    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, in…

  5. Very close Review
    Comprehensive exploration of diffusion models in image generation: a survey
    Hang Chen, Qian Xiang, Jiaxi Hu et al. · 2025 · Artificial Intelligence Review · cited 94 times · Not summarized yet

    Comprehensive exploration of diffusion models in image generation surveys diffusion applications and discusses privacy, security, and ethical concerns.

    Abstract

    The rapid development of deep learning technology has led to the emergence of diffusion models as a promising generative model with diverse applications. These include image generation, audio and video synthesis, molecular design, and text generation. The distinctive generation mechanism and exceptional generation quality of diffusion models have made them a valuable tool in these diverse fields. However, with the extensive deployment of diffusion models in the domain of image generation, concerns pertaining to data privacy, data security, and artistic ethics have emerged with increasing prominence. Given the accelerated pace of development in the field of diffusion models, the majority of e…

  6. Very close Broader context
    Generate Anything Anywhere in Any Scene
    Yuheng Li, Haotian Liu, Yangming Wen et al. · 2023 · Computer Vision and Pattern Recognition · preprint, not peer reviewed · cited 21 times · AI summary available

    Generate Anything Anywhere in Any Scene develops controllable personalized object generation, rather than investigating training-data memorization or privacy.

    Abstract

    Text-to-image diffusion models have attracted considerable interest due to their wide applicability across diverse fields. However, challenges persist in creating controllable models for personalized object generation. In this paper, we first identify the entanglement issues in existing personalized generative models, and then propose a straightforward and efficient data augmentation training strategy that guides the diffusion model to focus solely on object identity. By inserting the plug-and-play adapter layers from a pre-trained controllable diffusion model, our model obtains the ability to control the location and size of each generated personalized object. During inference, we propose a…

  7. Very close Another approach to the problem
    Differentially Private Latent Diffusion Models
    Michael F. Liu, Saiyue Lyu, Margarita Vinaroz et al. · 2023 · Trans. Mach. Learn. Res. · cited 42 times · Not summarized yet

    Differentially Private Latent Diffusion Models uses latent representations and differential privacy to reduce the privacy risks from training-data extraction.

    Abstract

    Diffusion models (DMs) are one of the most widely used generative models for producing high quality images. However, a flurry of recent papers points out that DMs are least private forms of image generators, by extracting a significant number of near-identical replicas of training images from DMs. Existing privacy-enhancing techniques for DMs, unfortunately, do not provide a good privacy-utility tradeoff. In this paper, we aim to improve the current state of DMs with differential privacy (DP) by adopting the $\textit{Latent}$ Diffusion Models (LDMs). LDMs are equipped with powerful pre-trained autoencoders that map the high-dimensional pixels into lower-dimensional latent representations, in…

  8. Very close Broader context
    Diffusion Models Generate Images Like Painters: an Analytical Theory of Outline First, Details Later
    Binxu Wang, John J. Vastola · 2023 · Computer Vision and Pattern Recognition · preprint, not peer reviewed · cited 64 times · AI summary available

    Diffusion Models Generate Images Like Painters analyzes how image details emerge during generation, not whether generated images reproduce training examples.

    Abstract

    How do diffusion generative models convert pure noise into meaningful images? We argue that generation involves first committing to an outline, and then to finer and finer details. The corresponding reverse diffusion process can be modeled by dynamics on a (time-dependent) high-dimensional landscape full of Gaussian-like modes, which makes the following predictions: (i) individual trajectories tend to be very low-dimensional; (ii) scene elements that vary more within training data tend to emerge earlier; and (iii) early perturbations substantially change image content more often than late perturbations. We show that the behavior of a variety of trained unconditional and conditional diffusion…

Prior work it builds on

  1. Close Groundwork for this paper Used in depth by this paper A method it uses
    High-Resolution Image Synthesis with Latent Diffusion Models
    Robin Rombach, Andreas Blattmann, Dominik Lorenz et al. · 2021 · Computer Vision and Pattern Recognition · cited 28,754 times · AI summary available

    High-Resolution Image Synthesis with Latent Diffusion Models introduces latent-space diffusion models, which this paper identifies among the models under study.

    Abstract

    By decomposing the image formation process into a sequential application of denoising autoencoders, diffusion models (DMs) achieve state-of-the-art synthesis results on image data and beyond. Additionally, their formulation allows for a guiding mechanism to control the image generation process without retraining. However, since these models typically operate directly in pixel space, optimization of powerful DMs often consumes hundreds of GPU days and inference is expensive due to sequential evaluations. To enable DM training on limited computational resources while retaining their quality and flexibility, we apply them in the latent space of powerful pretrained autoencoders. In contrast to p…

  2. Close Groundwork for this paper Used in depth by this paper A method it uses
    Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
    Chitwan Saharia, William Chan, Saurabh Saxena et al. · 2022 · Computer Vision and Pattern Recognition · cited 9,183 times · AI summary available

    Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding presents Imagen, one of the high-quality diffusion models discussed in this paper.

    Abstract

    We present Imagen, a text-to-image diffusion model with an unprecedented degree of photorealism and a deep level of language understanding. Imagen builds on the power of large transformer language models in understanding text and hinges on the strength of diffusion models in high-fidelity image generation. Our key discovery is that generic large language models (e.g. T5), pretrained on text-only corpora, are surprisingly effective at encoding text for image synthesis: increasing the size of the language model in Imagen boosts both sample fidelity and image-text alignment much more than increasing the size of the image diffusion model. Imagen achieves a new state-of-the-art FID score of 7.27 …

  3. Close Groundwork for this paper A method it uses
    Diffusion Models Beat GANs on Image Synthesis
    Prafulla Dhariwal, Alex Nichol · 2021 · Machine Learning · cited 13,656 times · AI summary available

    Diffusion Models Beat GANs on Image Synthesis establishes diffusion models' image-generation quality, the model capability whose privacy this paper investigates.

    Abstract

    We show that diffusion models can achieve image sample quality superior to the current state-of-the-art generative models. We achieve this on unconditional image synthesis by finding a better architecture through a series of ablations. For conditional image synthesis, we further improve sample quality with classifier guidance: a simple, compute-efficient method for trading off diversity for sample quality using gradients from a classifier. We achieve an FID of 2.97 on ImageNet $128 \times 128$, 4.59 on ImageNet $256 \times 256$, and $7.72$ on ImageNet $512 \times 512$, and we match BigGAN-deep even with as few as 25 forward passes per sample, all while maintaining better coverage of the dist…

  4. Close Broader context
    Spot the fake lungs: Generating Synthetic Medical Images using Neural Diffusion Models
    Hazrat Ali, Shafaq Murad, Zubair Shah · 2022 · Irish Conference on Artificial Intelligence and Cognitive Science · cited 73 times · Not summarized yet

    Spot the fake lungs generates synthetic medical images with DALL-E 2 and Stable Diffusion, rather than testing whether models reproduce training data.

    Abstract

    Generative models are becoming popular for the synthesis of medical images. Recently, neural diffusion models have demonstrated the potential to generate photo-realistic images of objects. However, their potential to generate medical images is not explored yet. In this work, we explore the possibilities of synthesis of medical images using neural diffusion models. First, we use a pre-trained DALLE2 model to generate lungs X-Ray and CT images from an input text prompt. Second, we train a stable diffusion model with 3165 X-Ray images and generate synthetic images. We evaluate the synthetic image data through a qualitative analysis where two independent radiologists label randomly chosen sample…

  5. Close Another approach to the problem
    Differentially Private Diffusion Models
    Tim Dockhorn, Tianshi Cao, Arash Vahdat et al. · 2022 · Trans. Mach. Learn. Res. · cited 176 times · Not summarized yet

    Differentially Private Diffusion Models applies DP-SGD to protect sensitive training data, while this paper demonstrates extraction of memorized examples.

    Abstract

    While modern machine learning models rely on increasingly large training datasets, data is often limited in privacy-sensitive domains. Generative models trained with differential privacy (DP) on sensitive data can sidestep this challenge, providing access to synthetic data instead. We build on the recent success of diffusion models (DMs) and introduce Differentially Private Diffusion Models (DPDMs), which enforce privacy using differentially private stochastic gradient descent (DP-SGD). We investigate the DM parameterization and the sampling algorithm, which turn out to be crucial ingredients in DPDMs, and propose noise multiplicity, a powerful modification of DP-SGD tailored to the training…

Papers that cite it

  1. Close Broader context Uses this paper in depth
    Fingerprinting Text-to-Image Diffusion Models via Collapsed Generation
    Yuanmin Huang, Chen Chen, Geng Hong et al. · 2026 · cited 1 time · Not summarized yet

    Fingerprinting Text-to-Image Diffusion Models identifies models from generation patterns, whereas this paper extracts their training images.

    Abstract

    Proprietary text-to-image diffusion models are increasingly distributed as hosted services and downloadable checkpoints, making their intellectual property (IP) protection an increasingly critical concern when model leakage, copying, or unauthorized fine-tuning is disputed. In this work, we present a non-invasive model fingerprinting framework based on \emph{collapsed generation}, a phenomenon where certain input conditions produce highly consistent images across multiple stochastic seeds. We show that collapsed generation is an intrinsic, model-dependent property of the learned generation process. These collapse-prone conditions therefore expose model-specific behavioral signatures, enablin…

  2. Close Builds on this paper
    Ablating Concepts in Text-to-Image Diffusion Models
    Nupur Kumari, Bingliang Zhang, Sheng-Yu Wang et al. · 2023 · IEEE/CVF International Conference on Computer Vision (ICCV) · cited 146 times · Not summarized yet

    Ablating Concepts in Text-to-Image Diffusion Models removes copyrighted concepts or memorized samples from pretrained models, citing this paper's evidence of memorization.

    Abstract

    Large-scale text-to-image diffusion models can generate high-fidelity images with powerful compositional ability. However, these models are typically trained on an enormous amount of Internet data, often containing copyrighted material, licensed images, and personal photos. Furthermore, they have been found to replicate the style of various living artists or memorize exact training samples. How can we remove such copyrighted concepts or images without retraining the model from scratch? To achieve this goal, we propose an efficient method of ablating concepts in the pretrained model, i.e., preventing the generation of a target concept. Our algorithm learns to match the image distribution for …

  3. Close Review
    Diffusion Models: A Comprehensive Survey of Methods and Applications
    Ling Yang, Zhilong Zhang, Shenda Hong · 2022 · Machine Learning · cited 1,706 times · AI summary available

    Diffusion Models: A Comprehensive Survey of Methods and Applications reviews diffusion-model variants and cites this paper among its related work.

    Abstract

    Diffusion models are a class of deep generative models that have shown impressive results on various tasks with dense theoretical founding. Although diffusion models have achieved impressive quality and diversity of sample synthesis than other state-of-the-art models, they still suffer from costly sampling procedure and sub-optimal likelihood estimation. Recent studies have shown great enthusiasm on improving the performance of diffusion model. In this article, we present a first comprehensive review of existing variants of the diffusion models. Specifically, we provide a first taxonomy of diffusion models and categorize them variants to three types, namely sampling-acceleration enhancement,…

  4. Close Different results
    Outputs of generative diffusion models are often unattributable
    Zheng Dai, D. Gifford · 2026 · Nature Communications · cited 1 time · Not summarized yet

    Outputs of generative diffusion models are often unattributable finds generated samples often unaffected by any single training example, contrasting with this paper's extraction of memorized images.

    Abstract

    Modern generative diffusion models work by replicating the statistical patterns of large training datasets. Developing a method to attribute generated outputs to influential training data would greatly advance our understanding of and ability to regulate these models, leading to much work towards this goal. But is this possible? Here, we show that models trained with enough data often generate samples that are unattributable. We establish this through a large-scale analysis of what-if scenarios, revealing that we can often omit any sample or creator from the training data without affecting a generated sample. Our study focuses on diffusion models, which has become the dominant model for gene…

  5. Close Builds on this paper
    Beyond Memorization: Selective Learning for Copyright-Safe Diffusion Model Training
    D. Kothandaraman, Jaclyn Pytlarz · 2025 · Not summarized yet

    Beyond Memorization: Selective Learning for Copyright-Safe Diffusion Model Training targets concept-level memorization and cites this paper's evidence of extraction risks.

    Abstract

    Memorization in large-scale text-to-image diffusion models poses significant security and intellectual property risks, enabling adversarial attribute extraction and the unauthorized reproduction of sensitive or proprietary features. While conventional dememorization techniques, such as regularization and data filtering, limit overfitting to specific training examples, they fail to systematically prevent the internalization of prohibited concept-level features. Simply discarding all images containing a sensitive feature wastes invaluable training data, necessitating a method for selective learning at the concept level. We introduce a gradient projection method designed to enforce a stringent …

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 2 November 2026.

The illustrated guide to the papers around a paper