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

GAN-Leaks: A Taxonomy of Membership Inference Attacks against GANs

Dingfan Chen, Ning Yu, Yang Zhang, Mario Fritz · DOI

TL;DR

This paper introduces "GAN-Leaks," the first comprehensive taxonomy of membership inference attacks (MIAs) against generative models, particularly GANs. It proposes a novel, generic attack framework and a theoretically grounded calibration technique, demonstrating significant privacy risks associated with releasing generative models, even without full access to their internals.

What Problem Does This Paper Address?

Deep generative models, like GANs, have revolutionized fields from image synthesis to data generation. However, their success comes with a hidden cost: privacy. While MIAs are well-studied for discriminative models (identifying if a specific data point was used in training), they are less understood for generative models. This gap is critical because generative models are increasingly used with sensitive data (e.g., medical records). The authors aim to systematically analyze and quantify the privacy leakage from generative models, specifically focusing on how much information an attacker can glean about the training data based on different levels of access to the generative model.

Methods

The core contribution is a taxonomy of attack settings against GANs, categorized by the attacker's knowledge:

  • Full Black-box Generator: Attacker only sees generated samples.
  • Partial Black-box Generator: Attacker can query the generator with latent codes.
  • White-box Generator: Attacker has access to the generator's internal architecture and parameters.
  • Accessible Discriminator (Full Model): Attacker has full access to both generator and discriminator (considered less practical but most knowledgeable).

They propose a generic attack model based on the idea that a data point is more likely to have been in the training set if the generative model can reconstruct it with a low error. This is achieved by estimating the probability of a sample being generated by the victim model.

A key novelty is the attack calibration technique. This involves training a separate "reference" GAN on a disjoint dataset and using its reconstruction error to calibrate the victim GAN's reconstruction error. This helps mitigate query-dependent reconstruction errors and improves attack accuracy.

Datasets

The authors evaluate their methods on three diverse datasets:

  • CelebA: A large-scale face attributes dataset (used for image generation).
  • MIMIC-III: A public Electronic Health Records (EHR) database (used for medical data generation).
  • Instagram New-York: A dataset of user check-ins (used for location data generation).

They also use a subset of the Labeled Faces in the Wild (LFW) dataset for training reference GANs in the black-box settings.

Key Insights and Ideas

  • Generative models are surprisingly vulnerable: Even with limited access (e.g., only the generator), attackers can infer training data membership with high accuracy, especially for smaller training sets.
  • Access matters, but less than expected: While full white-box access yields the best results, partial black-box access (querying with latent codes) significantly boosts attack performance over full black-box, highlighting the privacy risk of even interactive generative models.
  • Calibration is crucial: The proposed calibration technique consistently improves attack performance across all settings, demonstrating its robustness and theoretical grounding.
  • Training data size is a critical privacy factor: Smaller training datasets lead to higher overfitting and thus greater vulnerability to MIAs.
  • Identity-based training data selection amplifies risk: When training data is selected based on individual identity (e.g., all images of a person), the privacy risk increases significantly compared to random selection.

Key Results

  • High attack success rates: In many scenarios, especially with smaller training sets (e.g., < 1024 samples), the Area Under the Receiver Operating Characteristic Curve (AUCROC) for membership inference attacks reached above 0.95, indicating near-perfect attacks.
  • White-box attacks significantly outperform black-box: AUCROC values increased by at least 0.03 when moving from full black-box to white-box settings.
  • Calibration boosts performance: Attack AUCROC values consistently improved after applying the calibration technique, with gains of up to 0.2 for VAEGAN.
  • Differential Privacy (DP) helps but has trade-offs: DP defense reduced attack effectiveness but at the cost of significantly increased computation time and degraded generation quality.

Limitations and Future Work

  • Practicality of Full Model Access: The "accessible discriminator" setting, while yielding the most effective attacks, is acknowledged as less practical as discriminators are often discarded post-training.
  • Computational Cost of DP: While DP is effective, its computational burden and impact on utility (generation quality) are significant drawbacks.
  • Future Work: The authors suggest that their work provides a foundation for understanding privacy risks in generative models and can inform the development of more robust privacy-preserving generative techniques. They also highlight the need for further research into defenses that balance privacy and utility.

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 GANs}},
  booktitle = {CCS},
  year = {2020},
  doi = {10.1145/3372297.3417238},
}
Figure