Source-linked AI summary

Are Diffusion Models Vulnerable to Membership Inference Attacks?

Jinhao Duan, Fei Kong, Shiqi Wang, Xiaoshuang Shi, Kaidi Xu

arXiv:2302.01316v2cs.CVcs.AIcs.CRcs.LG

TL;DR

The paper investigates whether diffusion models expose training-set membership, addressing limited evidence about MIAs in this setting. It evaluates existing attacks and proposes SecMI, a query-based posterior-estimation attack; existing methods are largely ineffective, while SecMI achieves strong membership inference across diffusion models and datasets. The authors note practical limits involving intermediate-result access, public-data evaluation, and the scope of MIA in the real world.

  • Problem

    Research on membership inference in diffusion models is missing despite MIAs being an established privacy concern.

  • Method

    SecMI is a query-based MIA that compares step-wise forward-process posterior estimation errors, alongside evaluations of existing attacks.

  • Results

    Existing MIAs are largely ineffective, whereas SecMI achieves at least 0.80 average ASR and 0.85 average AUC across the reported settings.

  • Takeaways & Limitations

    The results indicate that diffusion models have serious privacy issues and warrant increased privacy consideration.

  • Takeaways & Limitations

    SecMI requires access to intermediate model results, is evaluated only on public data, and has limited real-world MIA scope.

Abstract

from arXiv · show

Diffusion-based generative models have shown great potential for image synthesis, but there is a lack of research on the security and privacy risks they may pose. In this paper, we investigate the vulnerability of diffusion models to Membership Inference Attacks (MIAs), a common privacy concern. Our results indicate that existing MIAs designed for GANs or VAE are largely ineffective on diffusion models, either due to inapplicable scenarios (e.g., requiring the discriminator of GANs) or inappropriate assumptions (e.g., closer distances between synthetic samples and member samples). To address this gap, we propose Step-wise Error Comparing Membership Inference (SecMI), a query-based MIA that infers memberships by assessing the matching of forward process posterior estimation at each timestep. SecMI follows the common overfitting assumption in MIA where member samples normally have smaller estimation errors, compared with hold-out samples. We consider both the standard diffusion models, e.g., DDPM, and the text-to-image diffusion models, e.g., Latent Diffusion Models and Stable Diffusion. Experimental results demonstrate that our methods precisely infer the membership with high confidence on both of the two scenarios across multiple different datasets. Code is available at https://github.com/jinhaoduan/SecMI.

1. Introduction

The paper asks whether diffusion models are vulnerable to membership inference, a privacy risk previously well studied in other models but largely unexamined for diffusion models. It evaluates existing attacks and proposes SecMI to address this gap.

  • Diffusion models achieve high-fidelity, diverse, and creative image generation, including large-scale text-to-image systems.
  • Membership inference attacks determine whether a sample belongs to a model’s training set or hold-out set.
  • The paper identifies missing research on diffusion-model MIAs and asks whether diffusion-based generative models are vulnerable.
  • Existing MIAs are largely ineffective on diffusion models, potentially because they use stronger evaluations, exploit diffusion properties poorly, or assume synthetic samples are closer to members.
  • SecMI is a query-based attack that leverages diffusion models’ step-wise posterior estimation and the assumption that members have smaller estimation errors.
  • SecMI is evaluated on DDPM, LDMs, and Stable Diffusion across multiple image datasets.

2. Related Works

Related work covers diffusion-model foundations and prior membership-inference attacks for classification and generative models. Existing diffusion-model studies use varied assumptions and loss-based approaches, while this paper introduces a different posterior-estimation strategy.

  • Generative Diffusion Models: Diffusion models approximate the data distribution by matching a diffusion process with a parameterized reverse process.
  • Membership Inference Privacy: Prior generative-model MIAs include discriminator-logit attacks for GANs, Monte Carlo scores, VAE reconstruction attacks, and distance-based methods.
  • Membership Inference Privacy: Diffusion-model MIA studies include distribution-shift assumptions, loss comparisons, data extraction, and LiRA-enhanced attacks.
  • Evaluation Setting: The paper evaluates prior methods and its own method on DDPM using a 50% CIFAR-10 training split as members and the remainder as hold-out data.
  • Prior Attack Constraints: GAN-Leaks is computationally infeasible for diffusion models in its original white-box form, so its reported result uses a theoretical upper bound based on DDIM-generated latent codes.

3. Preliminary Analysis

The preliminary analysis formalizes membership inference, evaluates prior generative-model attacks on DDPM, and examines why they perform poorly. It highlights stronger evaluation settings, weak member-distribution bias, and limited use of diffusion-specific properties.

  • Problem Statement: Membership inference predicts whether a sample belongs to the model’s training subset rather than its hold-out subset.
  • Prior MIA Evaluation: Prior MIAs are largely ineffective on DDPM when evaluated with half of CIFAR-10 as members and the other half as hold-out data.
  • Evaluation Metrics: The study measures attack performance with ASR, AUC, and TPR at extremely low FPR, including TPR@1%/0.1% FPR.
  • Prior MIA Evaluation: Only LOGAN shows marginal black-box effectiveness, while other attacks are largely ineffective; GAN-Leaks shows some effectiveness only under its theoretical upper-bound evaluation.
  • Analytical Insights: Using a 50% member set makes evaluation stronger than prior studies using at most 10%, reducing overfitting amplification of attack effects.
  • Analytical Insights: FID values of 9.66 versus 9.85 show no distinct diffusion-model bias toward member samples, weakening frequency- or distance-based assumptions.
  • Analytical Insights: Existing attacks were designed mainly for GANs or VAEs and therefore do not exploit diffusion models’ specific properties.

4. Methodology

The paper derives membership signals from diffusion models’ step-wise posterior estimation errors and introduces SecMI, which compares these errors using deterministic processes. It evaluates statistic-based and neural-network-based inference variants across diffusion-model settings.

  • Step-wise error comparison: Diffusion-model membership exposure can be studied by comparing local posterior-estimation errors at each timestep, assuming member samples have smaller errors than hold-out samples.The underlying diffusion objective matches forward-process posteriors at each step.
  • Deterministic approximation: Because the exact posterior quantity is intractable and Monte Carlo estimation is costly, the method approximates it with deterministic reversing and denoising processes.The computational difficulty is especially relevant for multi-step diffusion models such as those with T = 1,000.
  • t-error: The paper defines t-error as the approximated posterior-estimation error obtained from a sample’s deterministic reverse result at timestep t.The notation ˜xt denotes the deterministic reverse result used to calculate the error.
  • Empirical behavior and scope: The analysis finds larger t-errors for hold-out samples, with the separation becoming more distinct as t approaches 0, and reports that a single timestep can already support effective inference.The paper leaves multi-step error fusion for future work and describes adaptations to Latent Diffusion Models.
  • SecMI variants: SecMI infers membership from t-error using two variants: threshold-based SecMIstat and neural-network-based SecMINNs.SecMIstat uses a selected timestep and threshold, whereas SecMINNs feeds pixel-wise absolute estimation errors to an attack model trained on subsets of member and hold-out data.

5. Experiments

Experiments evaluate SecMI across standard and text-to-image diffusion models, datasets, baselines, operating points, and defenses. SecMI achieves effective membership inference, remains stable across settings, and is sensitive to some training choices and prompt availability.

  • Comparison to Baselines: 81.0% and 88.9% average ASRs were achieved by SecMIstat and SecMINNs, respectively, across four DDPM datasets.SecMINNs outperformed SecMIstat by over 7%.
  • Comparison to Baselines: SecMI achieved notable TPR at both 1% FPR and 0.1% FPR on DDPM across four datasets.The authors use low-FPR evaluation because correctly inferring membership can pose greater risk in some scenarios.
  • Ablation Study: Attack performance was stable, with AUC and ASR variance ≤0.05 across trials and limited sensitivity to tSEC when 50 ≤ tSEC ≤150.SecMI remained effective with only 3 queries, while distance measurement affected sensitivity to estimation error.
  • SecMI v.s. Defense: Without augmentation, attack performance increased significantly; Cutout and RandomHorizontalFlip decreased ASR and AUC to a certain degree.Stronger methods including DP-SGD, ℓ2 regularization, and RandAugment caused DDPM training to fail to converge or produce meaningful images.
  • Evaluations on Latent Diffusion Models (LDMs): SecMI achieved superior attack performance on Pokemon and COCO2017-Val, while prompt sensitivity differed across datasets.Empty prompts caused an around 0.03 drop on Pokemon and an around 0.15 drop on COCO2017-Val; BLIP pseudo-prompts reduced the latter drop to around 0.05.
  • Evaluations on Stable Diffusion: SecMI achieved notable attack performance on Stable Diffusion v1-4 and v1-5 in a large-scale pre-training setting.The evaluation used 2,500 Laion-aesthetic-5plus member images and 2,500 COCO2017-val hold-out images.

6. Conclusion

The paper concludes that conventional MIAs are largely ineffective on diffusion models and introduces SecMI as a step-wise posterior-matching attack. Experiments across standard and text-to-image models and multiple datasets demonstrate its effectiveness, while the authors frame the findings as a privacy warning.

  • Conclusion: Conventional MIAs are largely ineffective on diffusion models, whereas SecMI uses step-wise posterior matching for membership inference.The method is evaluated on DDPM and Stable Diffusion.
  • Conclusion: Experimental results across multiple datasets demonstrate SecMI's effectiveness on standard diffusion models and text-to-image models.The conclusion covers evaluations summarized for LDMs and Stable Diffusion.
  • Conclusion: The authors report that current diffusion models suffer from serious privacy issues and call for more privacy considerations.The stated consequence is presented as an alert to the generative-model community.

Limitations

The paper identifies three physical-world limitations: SecMI requires intermediate model results, its subgroup sensitivity is unevaluated, and MIA has limited real-world scope.

  • Limitations: SecMI is less applicable to black-box API services because it requires access to the victim model's intermediate results.The limitation concerns deployment access rather than the attack's reported benchmark performance.
  • Limitations: The evaluation uses public data and does not investigate effectiveness or sensitivity for demographic groups or dataset subgroups.This leaves subgroup-specific behavior unassessed.
  • Limitations: The authors note that MIA's scope is limited in the real world despite its prominence as an academic privacy concern.This bounds how directly the results transfer to practical privacy risk.

Ethics and Broader Impacts

The paper limits experiments to public datasets and common model architectures to mitigate possible abuse, while presenting the work as an alert about privacy risks.

  • Ethics and Broader Impacts: All experiments use public datasets and common model architectures to mitigate possible abuse from releasing a privacy attack.The figures are licensed under Creative Commons 4.0 for distribution.
  • Ethics and Broader Impacts: The authors characterize the paper as an alert and encourage privacy and security considerations before diffusion models are publicly released.They acknowledge that the paper itself may still cause privacy risks.

A. Generalization to Latent Diffusion Model (LDM)

For LDMs, t-error is computed similarly to DDPM, but diffusion occurs in latent space and denoising is conditioned on text embeddings.

  • A. Generalization to Latent Diffusion Model (LDM): LDM t-error computation follows DDPM while operating on intermediate latent variables.The original image is encoded into latent space through a VAE before diffusion.
  • A. Generalization to Latent Diffusion Model (LDM): The LDM reverse process is conditioned by text embeddings.Text conditions are denoted by C in the formulation.
  • A. Generalization to Latent Diffusion Model (LDM): The LDM diffusion and denoising processes are derived using VAE-encoded latent representations.The encoded representation is defined as v0 = V(x0).
  • A. Generalization to Latent Diffusion Model (LDM): The t-error is rewritten using deterministic reverse and sampling mappings for the latent variables.The mappings reuse the symbols ϕθ and ψθ.

B. Adopted Diffusion Models and Datasets

The study summarizes its adopted diffusion models and datasets, with their data splits organized in Table 7.

  • B. Adopted Diffusion Models and Datasets: The adopted models, datasets, and data splittings are presented together.
  • B. Adopted Diffusion Models and Datasets: Table 7 summarizes the diffusion models and datasets adopted in the experiments.

C. Failed Defensive Training Results

Defensive training with aggressive regularization or data augmentation produces poor samples, making reconstructions from both member and hold-out sets unsuitable for MIA.

  • C. Failed Defensive Training Results: Aggressive regularization or data augmentation makes generated samples vague and unrealistic.The cited defensive-training examples come from Figures 8 and 9.
  • C. Failed Defensive Training Results: Low-quality reconstruction affects both member and hold-out samples, preventing useful membership inference.The resulting images are described as unworthy for conducting MIA.
  • C. Failed Defensive Training Results: Figures 8 and 9 show sampling results at the 800,000th training step under ℓ2 regularization and RandAugment.
Loading 2302.01316v2…