An Efficient Membership Inference Attack for the Diffusion Model by Proximal Initialization

Fei Kong, Jinhao Duan, RuiPeng Ma, Heng Tao Shen, Xiaoshuang Shi, Xiaofeng Zhu, Kaidi Xu

TL;DR

Researchers have developed a highly efficient Membership Inference Attack (MIA) called Proximal Initialization Attack (PIA) that can determine if a specific data point was used to train a diffusion model using only two queries. Not only is this method 5–10x faster than previous state-of-the-art attacks, but it also reveals a startling privacy gap in AI audio: models that generate "image-like" mel-spectrograms are far more vulnerable to privacy leaks than those generating raw audio waveforms.

What Problem Does This Paper Address?

Membership Inference Attacks (MIAs) aim to answer a simple but sensitive question: "Was this specific person's data used to train this AI model?" For generative models like Stable Diffusion, this is a major privacy and copyright concern.

Attacking diffusion models is traditionally difficult because they are stochastic—they rely on random Gaussian noise. Previous attacks (like SecMI) tried to overcome this by iteratively "finding" the right noise, but this requires dozens of queries to the model, making the attack slow and computationally expensive. Furthermore, while the privacy of image-generation models has been studied, the burgeoning field of diffusion-based audio generation (Text-to-Speech) remained a "black box" regarding privacy risks.

Methods

The authors introduce the Proximal Initialization Attack (PIA). The core innovation lies in how it handles the noise initialization to drastically reduce the number of queries required.

Overview of the Proximal Initialization Attack (PIA) framework.
  1. Proximal Initialization: Instead of guessing random noise, the attack uses the model’s own output at $t=0$ (the point closest to the original data) to estimate the noise.
  2. Trajectory Comparison: Under the Denoising Diffusion Implicit Model (DDIM) framework, if you know the starting point and the noise, the entire "trajectory" of the data through the diffusion process becomes deterministic.
  3. The Metric: The attack calculates a "groundtruth trajectory" and compares it to the model's actual prediction. If the distance between the two is very small, the model "remembers" the sample well, indicating it was likely part of the training set.

The authors also propose PIAN, a normalized version of the attack that accounts for the fact that model outputs don't always follow a perfect standard normal distribution.

Datasets

The study evaluated the attack across a wide variety of domains:

  • Images: CIFAR10, CIFAR100, and TinyImageNet (for standard DDPM models).
  • Large-Scale Vision: LAION-5B (training) and COCO2017 (hold-out) for Stable Diffusion.
  • Audio (TTS): LJSpeech, VCTK, and LibriTTS.
  • Models: The researchers tested the attack on Grad-TTS, DiffWave, and FastDiff to compare different audio output formats.

Key Insights and Ideas

  • Efficiency is the New SOTA: By mathematically simplifying the trajectory, the authors reduced the attack to just two queries. This makes privacy auditing significantly more practical for large-scale models.
  • The "Image-Like" Vulnerability: One of the most striking findings is that the format of the output matters for privacy. Grad-TTS, which produces mel-spectrograms (visual representations of audio), is highly vulnerable to MIA (AUC near 99%). In contrast, models like DiffWave and FastDiff, which produce raw audio waveforms, are much more robust.
  • The $t=0$ Sweet Spot: The authors found that attacking the model at the very beginning of the diffusion process ($t$ near 0) is most effective because the model fits training data best when it is closest to the original, non-noisy sample.
Performance of PIA and PIAN across different time steps (t), showing peak effectiveness near t=0.

Key Results

  • Speed: PIA is 5–10 times faster than the previous leading attack (SecMI), requiring only 2 queries compared to 12–62.
  • Performance: On image datasets like CIFAR10, PIA achieved a significantly higher True Positive Rate (TPR) at low False Positive Rates (FPR) compared to "Naive" attacks.
  • Stable Diffusion: PIA outperformed previous methods on Stable Diffusion, achieving an AUC of 70.5% on the Laion5 dataset.
  • Audio Privacy: The attack confirmed that while some TTS models are highly vulnerable, raw audio generation is a safer bet for privacy-conscious applications.

Limitations and Future Work

The primary limitation is the Threat Model: this is a "query-based" attack that requires access to the model's intermediate outputs (the predicted noise or score), rather than just the final generated image or audio file. While many APIs might expose these for tasks like inpainting, a strictly "black-box" API that only returns a final .png or .wav file would be harder to attack using this specific method.

Future work could involve exploring how to make audio mel-spectrogram models more robust without sacrificing quality, or extending this efficient trajectory-based logic to "pure" black-box scenarios.

Summary updated

BibTeX
@inproceedings{kong2024efficient,
  author = {Fei Kong and Jinhao Duan and RuiPeng Ma and Heng Tao Shen and Xiaoshuang Shi and Xiaofeng Zhu and Kaidi Xu},
  title = {{An Efficient Membership Inference Attack for the Diffusion Model by Proximal Initialization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=rpH9FcCEV6},
}
Figure