NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models

Dingfan Chen, Ning Yu, Yang Zhang, Mario Fritz

Introduction

Membership Inference Attacks (MIA) pose a significant privacy risk by determining whether a specific individual's data was used to train a machine learning model. While well-documented for discriminative models, MIA against generative models like GANs is more complex because these models output samples rather than confidence scores. This paper introduces GAN-Leaks, a systematic taxonomy and framework for MIA against deep generative models, demonstrating that they can leak membership information even in black-box settings.

Taxonomy of Adversary Knowledge

The researchers categorize potential attacks based on the level of access an adversary has to the target model. This ranges from seeing only generated samples to having full access to the internal discriminator.

Adversary knowledge taxonomy for GAN-Leaks.
  1. Full Black-box: The attacker only observes generated samples.
  2. Partial Black-box: The attacker has access to the generator and the latent code ($z$) for each sample but not the weights.
  3. White-box: The attacker has access to the generator's internal parameters.
  4. Accessible Discriminator: The attacker has access to the full model, including the discriminator (rare in practice).

The GAN-Leaks Attack Framework

The core of the GAN-Leaks attack is reconstruction distance. The intuition is that a generative model will more accurately reconstruct a sample if it was part of its training set.

Attack Mechanism and Calibration

To execute the attack, an adversary attempts to find a latent code $z$ that produces an image as close as possible to a query sample $x$. In white-box settings, first-order optimization (L-BFGS) is used, while black-box settings rely on derivative-free optimization.

Visualizing the generic attack model, black-box/white-box variants, and attack calibration.

A critical innovation is Attack Calibration. Since some samples are inherently harder to generate, a high reconstruction error doesn't always imply non-membership. The authors use a "reference" GAN trained on a disjoint dataset to normalize the reconstruction error. If the victim model reconstructs a sample significantly better than the reference model, it is likely a training sample.

Experimental Evaluation

The framework was tested across three diverse datasets:

  • CelebA: Celebrity face images.
  • MIMIC-III: Sensitive electronic health records.
  • Instagram New-York: Spatiotemporal location check-in data.

Key Results

  • High Accuracy: On smaller training sets (e.g., 512 samples), the attack achieves near-perfect inference (AUCROC ~1.0).
  • Scalability: The white-box attack remains effective even with larger training sets (20,000 images), maintaining an AUCROC significantly above random chance.
  • The Calibration Boost: Calibration consistently improves performance, often increasing AUCROC by up to 0.2.
  • Defense Trade-offs: Differential Privacy (DP-SGD) can mitigate these attacks but significantly slows training (10x) and degrades the quality of generated samples (higher FID).

Insights and Conclusion

The study reveals that overfitting is a primary driver of MIA vulnerability in generative models. Furthermore, while black-box attacks on classifiers are often comparable to white-box ones, generative models show a significant performance gap; white-box access allows for much more precise reconstruction.

Ultimately, GAN-Leaks highlights a severe utility-privacy trade-off. While defenses like DP-SGD exist, they currently compromise model performance. Future research must focus on efficient defense mechanisms that protect membership privacy without sacrificing the generative quality of the models.

Summary updated

BibTeX
@inproceedings{chen2020gan,
  author = {Dingfan Chen and Ning Yu and Yang Zhang and Mario Fritz},
  title = {{GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models}},
  booktitle = {CCS},
  year = {2020},
  doi = {10.1145/3372297.3417238},
}
Figure