CPSample: Classifier Protected Sampling for Guarding Training Data During Diffusion
On the map: Diffusion models → Robustness, privacy and adversarial aspects
Abstract (arXiv)
Diffusion models have a tendency to exactly replicate their training data, especially when trained on small datasets. Most prior work has sought to mitigate this problem by imposing differential privacy constraints or masking parts of the training data, resulting in a notable substantial decrease in image quality. We present CPSample, a method that modifies the sampling process to prevent training data replication while preserving image quality. CPSample utilizes a classifier that is trained to overfit on random binary labels attached to the training data. CPSample then uses classifier guidance to steer the generation process away from the set of points that can be classified with high certainty, a set that includes the training data. CPSample achieves FID scores of 4.97 and 2.97 on CIFAR-10 and CelebA-64, respectively, without producing exact replicates of the training data. Unlike prior methods intended to guard the training images, CPSample only requires training a classifier rather than retraining a diffusion model, which is computationally cheaper. Moreover, our technique provides diffusion models with greater robustness against membership inference attacks, wherein an adversary attempts to discern which images were in the model's training dataset. We show that CPSample behaves like a built-in rejection sampler, and we demonstrate its capabilities to prevent mode collapse in Stable Diffusion.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 41 of its 55 references that are in the map. First posted on arXiv 11 Sep 2024.
Builds on
41 of 55 references.
Closest ancestors · 10
Same direction, newest first
- 2024CPR: Retrieval Augmented Generation for Copyright Protection27 Mar
- 2023Black-box Membership Inference Attacks against Fine-tuned Diffusion Models13 Dec
- 2023White-box Membership Inference Attacks against Diffusion Models11 Aug
- 2023Towards More Realistic Membership Inference Attacks on Large Diffusion Models22 Jun
- 2023A Reproducible Extraction of Training Images from Diffusion Models15 May
- 2023Differentially Private Diffusion Models Generate Useful Synthetic Images27 Feb
- 2023Membership Inference Attacks against Diffusion Models7 Feb
- 2023Are Diffusion Models Vulnerable to Membership Inference Attacks?2 Feb
- 2023Membership Inference of Diffusion Models24 Jan
- 2022Differentially Private Diffusion Models18 Oct
Other references · 31
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
- 2016Deep Learning with Differential Privacycited by 2,682
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2023Consistency Modelscited by 1,778
- 2016Understanding deep learning requires rethinking generalizationcited by 1,657
19 more
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2023Consistency Trajectory Models: Learning Probability Flow ODE Trajectory of Diffusioncited by 448
- 2022Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Modelscited by 418
- 2022Brain Imaging Generation with Latent Diffusion Modelscited by 267
- 2018Differentially Private Generative Adversarial Networkcited by 235
- 2023Understanding and Mitigating Copying in Diffusion Modelscited by 205
- 2022Measuring Forgetting of Memorized Training Examplescited by 118
- 2023Ambient Diffusion: Learning Clean Distributions from Corrupted Datacited by 108
- 2022Soft Diffusion: Score Matching for General Corruptionscited by 101
- 2023On Provable Copyright Protection for Generative Modelscited by 97
- 2023BOOT: Data-free Distillation of Denoising Diffusion Models with Bootstrappingcited by 96
- 2024Detecting, Explaining, and Mitigating Memorization in Diffusion Modelscited by 94
- 2022Membership Inference Attacks Against Text-to-image Generation Modelscited by 66
- 2021Training Certifiably Robust Neural Networks with Efficient Local Lipschitz Boundscited by 64
- 2024Towards Memorization-Free Diffusion Modelscited by 49
- 2023On the De-duplication of LAION-2Bcited by 47
- 2022PAC Privacy: Automatic Privacy Measurement and Control of Data Processingcited by 16
- 2023Training Data Protection with Compositional Diffusion Modelscited by 16
- 2021Privacy-Aware Rejection Samplingcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Model Will Tell: Training Membership Inference for Diffusion Models
- 2023PriSampler: Mitigating Property Inference of Diffusion Models
- 2023Unlearnable Examples for Diffusion Models: Protect Data from Unauthorized Exploitation
- 2025Training-Free Safe Denoisers for Safe Use of Diffusion Models
- 2023Bridging the Gap: Addressing Discrepancies in Diffusion Model Training for Classifier-Free Guidance
- 2022Classifier-Free Diffusion Guidance
- 2026Noise as a Probe: Membership Inference Attacks on Diffusion Models Leveraging Initial Noise
- 2024Dual-Model Defense: Safeguarding Diffusion Models from Membership Inference Attacks through Disjoint Data Splitting