An Efficient Subpopulation-based Membership Inference Attack

Shahbaz Rezaei, Xin LiuarXiv 2022 · DOI

Introduction

Membership Inference Attacks (MIAs) pose a significant privacy risk by determining whether a specific data point was included in a target "victim" model's training set. The most effective current MIAs rely on sample calibration. Because some data points are naturally "easier" for a model to predict than others, attackers cannot simply rely on high confidence scores; they must compare the victim model's response on a target sample to a "typical" response.

Traditionally, this "typical" response is estimated by training dozens or hundreds of shadow models—models trained on data similar to the victim's. However, training a fleet of shadow models is computationally expensive and often impractical for large-scale deep learning tasks. Furthermore, if a new target sample is identified post-training, some state-of-the-art (SOTA) methods require retraining the entire fleet, making the attack prohibitively slow.

Methodology: Subpopulation-Based Scoring

This paper proposes a shift in perspective: instead of comparing one sample across many models, the attack compares many similar samples on a single model.

Overview of the attack training and inference phases using BiGAN to generate subpopulations.

The core of the approach involves:

  1. Subpopulation-Based Scoring: The attack calculates the victim model's loss on a target sample and compares it to the average loss of samples from the same "subpopulation" (semantically similar images). If the target sample's loss is significantly lower than its peers, it was likely in the training set.
  2. Crafting Subpopulations with BiGAN: To generate these subpopulations, the authors utilize a modified Bidirectional Generative Adversarial Network (BiGAN). Unlike standard BiGANs, they use the victim model’s own internal latent representations (the layer before the softmax) as a fixed encoder.
  3. Generation Process: By taking the target image, extracting its latent vector, adding small Gaussian noise, and passing it through a trained generator, the attacker creates "crafted" versions of the image that are semantically similar but not identical.

This approach only requires training one generator model once, which can then generate subpopulations for any number of target samples almost instantly.

Experimental Evaluation

The researchers evaluated their attack on several standard image classification benchmarks, including MNIST, Fashion-MNIST (FMNIST), SVHN, CIFAR-10, and CIFAR-100, using architectures ranging from simple MLPs to ResNet20.

Key Results

The subpopulation attack matches or exceeds the AUC (Area Under the Curve) of current SOTA methods, such as Sablayrolles et al. (2019).

Comparison of attack AUC across different datasets and models, showing the proposed method's competitive performance.

As shown in the results, on CIFAR-100 with ResNet20, the attack achieved a 94.56% AUC, nearly identical to the SOTA's 95.21%. Beyond accuracy, the computational speedup is massive:

  • Training Time: On the ResNet20/CIFAR-100 task, SOTA shadow model training takes approximately 281 minutes, whereas the proposed BiGAN training requires only 46 minutes.
  • Recalibration Efficiency: Handling a new target sample requires zero additional training time for the proposed attack, compared to roughly 140 minutes for some SOTA methods.

Discussion and Future Work

The core "aha moment" of this research is that a model's behavior on a training point is an outlier compared to its behavior on semantically similar points it has not seen. By using the victim model's own latent space to define "similarity," the attacker ensures the generated subpopulation is relevant to how the victim model actually perceives the data.

While highly effective, the attack's success depends on the generator's ability to produce high-quality, semantically similar samples. Future work could explore how this approach interacts with common MIA defenses like Differential Privacy or adversarial training, as well as its performance on models with more complex or non-semantic latent spaces.

Summary updated

BibTeX
@misc{rezaei2022efficient,
  author = {Shahbaz Rezaei and Xin Liu},
  title = {{An Efficient Subpopulation-based Membership Inference Attack}},
  year = {2022},
  eprint = {2203.02080},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02080},
}
Figure