Membership Inference Attack on Diffusion Models via Quantile Regression

Steven Wu, Shuai Tang, Sergul Aydore, Michael Kearns, Aaron RothRegML @ NeurIPS 2023

TL;DR

This paper introduces a novel membership inference attack specifically designed for diffusion models, a powerful class of generative AI. By employing quantile regression, their method can more accurately determine if a specific data point was used to train a diffusion model, outperforming existing techniques while being significantly more computationally efficient.

What Problem Does This Paper Address?

Diffusion models are revolutionizing image synthesis, generating incredibly realistic and high-quality images. However, this power comes with a significant privacy concern: these models might inadvertently reveal sensitive information about the data they were trained on. Membership Inference (MI) attacks are a crucial tool for assessing this risk. They aim to determine if a particular data point was part of the model's training set. While MI attacks are well-established for traditional supervised learning models, they are less explored and understood for generative models like diffusion models. Existing MI attacks on generative models often require substantial computational resources, such as training numerous "shadow" models, making them impractical for large-scale applications. This paper addresses the need for an effective, efficient, and practical MI attack tailored for diffusion models.

Methods

The core innovation of this paper is the application of quantile regression to membership inference for diffusion models. Instead of relying on a single, uniform threshold for all data points, their attack learns a model that predicts a per-example threshold. This threshold is based on the predicted $\alpha$-quantile of the reconstruction loss for that specific data point.

Here's a breakdown of their approach:

  • t-error: They utilize the "t-error" metric, a deterministic measure of reconstruction loss defined in prior work [6]. This error quantifies how much a diffusion model's denoising process alters an input at a specific step. Intuitively, data points that were part of the training set should have lower t-errors.
  • Quantile Regression Model: The attacker trains a quantile regression model (e.g., a neural network like ResNet) on public auxiliary data. This model learns to predict the $\alpha$-quantile of the t-error distribution for any given input. The parameter $\alpha$ directly controls the false-positive rate of the attack.
  • Membership Decision: For a target data point, the attack compares its actual t-error to the predicted $\alpha$-quantile from the learned model. If the actual t-error is less than or equal to the predicted quantile, the data point is classified as a member of the training set.

They explore two ways to train the quantile regression model:

  1. Pinball Loss Minimization: Directly optimizing the quantile regression objective.
  2. Parametric Approach: Modeling the log of the t-error distribution as Gaussian and fitting its mean and standard deviation using neural networks. Empirically, this parametric approach proved easier to optimize and yielded better results.

Datasets

The authors evaluated their attack on several standard image datasets:

  • CIFAR-10
  • CIFAR-100
  • STL-10
  • Tiny-ImageNet

For each dataset, they split the data into private training samples for the diffusion model and public auxiliary samples for training the MI attack. A holdout set was also used for evaluation.

Key Insights and Ideas

  • Per-Example Thresholding is Key: The most significant insight is that a uniform threshold for reconstruction loss is suboptimal for MI attacks on diffusion models. By learning a conditional, per-example threshold using quantile regression, the attack can better distinguish between members and non-members, leading to higher accuracy.
  • Diffusion Models Have Subtle Privacy Leaks: Even though the marginal distributions of t-errors for members and non-members are not drastically different (as shown in Figure 1), there are subtle differences that a sophisticated attack can exploit. This motivates the need for attacks that go beyond simple marginal analysis.
  • Quantile Regression as a Powerful Tool: The paper demonstrates the effectiveness of quantile regression not just for its accuracy but also for its ability to control the false-positive rate ($\alpha$) and trace trade-off curves.
  • Efficiency Matters: The computational burden of existing state-of-the-art MI attacks (like GSA) involving training numerous shadow models is a major bottleneck. The proposed single-model quantile regression approach offers a practical alternative.

Key Results

The proposed quantile regression-based MI attack demonstrated strong performance across various datasets:

  • State-of-the-Art Accuracy: The attack achieved state-of-the-art accuracy on several popular vision datasets, particularly at very low false positive rates (FPRs) like 1% and 0.1%.
  • Outperforms Prior Work: On CIFAR-10, their attack outperformed the GSA attack (a prior state-of-the-art white-box MI attack for diffusion models) at a 0.1% FPR, achieving a TPR of 99.26% compared to GSA's 58.57%.
  • Computational Efficiency: A major advantage is its significantly lower computational cost. Unlike attacks requiring multiple shadow models, their approach only needs to train a single quantile regression model. This makes it much more practical for auditing large-scale diffusion models.
  • Reduced Reliance on Training Details: The attack does not require detailed knowledge of the diffusion model's training algorithm (e.g., hyperparameters, architecture), making it more versatile.

Limitations and Future Work

  • Pinball Loss Optimization: The authors note that directly optimizing the pinball loss function with neural networks can be challenging. They found the parametric approach (Gaussian modeling) to be more effective empirically, suggesting that better optimization techniques for pinball loss could further improve results.
  • Future Work: The paper suggests that their work enriches the set of practical tools for auditing the privacy risks of large-scale generative models. Future research could explore extending these techniques to other types of generative models or investigating more sophisticated attack scenarios. The authors also mention that better optimization techniques for directly optimizing the pinball loss are needed.

Summary updated

BibTeX
@inproceedings{wu2023membership,
  author = {Steven Wu and Shuai Tang and Sergul Aydore and Michael Kearns and Aaron Roth},
  title = {{Membership Inference Attack on Diffusion Models via Quantile Regression}},
  booktitle = {RegML @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=8WH2t9F0Ip},
}
Figure