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

MIA-BAD: An Approach for Enhancing Membership Inference Attack and its Mitigation with Federated Learning

Soumya Banerjee, Sandip Roy, Sayyed Farid Ahamed, Devin Quinn, Marc Vucovich, Dhruv Nandakumar, Kevin Choi, Abdul Rahman, Edward Bowen, Sachin ShettyarXiv 2023

TL;DR

This paper introduces MIA-BAD, an enhanced Membership Inference Attack (MIA) that constructs its attack dataset using batch-wise rather than sample-wise evaluation of shadow models. Surprisingly, while batching significantly reduces the total amount of training data available to the attacker, the qualitative boost from implicit ensembling makes the attack more accurate. Crucially, the authors demonstrate that while this attack poses a serious threat to centralized models, Federated Learning (FL) naturally mitigates its effectiveness as the number of participating clients scales up.

What Problem Does This Paper Address?

Machine learning models have a natural tendency to overfit their training data, meaning they behave differently when processing data they have seen before versus entirely new samples. Membership Inference Attacks (MIAs) exploit this vulnerability to determine whether a specific data record was part of a model's private training set. This poses a massive privacy risk; for instance, confirming that a patient's clinical record was used to train a model for a specific disease inadvertently discloses their medical history.

While Federated Learning (FL)—a decentralized training paradigm where multiple clients collaboratively train a global model without sharing their raw data—is often touted as a privacy-preserving solution, it is not entirely immune to MIAs.

Fig. 1. Training procedure of an ML model, centrally vs FL. (a) Centrally or non-federated training of an ML model. (b) Training of an ML model in FL environment consisting of n clients.

The authors tackle two primary questions:

  1. Can MIAs be made more potent by changing how the attack dataset is generated?
  2. How effectively does a federated framework defend against these enhanced attacks?

Methods

In a standard black-box MIA, an attacker trains "shadow models" to mimic the target model's behavior. They evaluate these shadow models sample-by-sample on known "in-dataset" and "out-dataset" records to build a binary classifier (the attack model).

The authors propose MIA-BAD (Membership Inference Attack with Batch-wise generated Attack Dataset). Instead of evaluating data points individually, MIA-BAD processes the shadow dataset in batches and records the batch-wise loss alongside the membership labels.

Fig. 3. Training process of the proposed MIA-BAD approach. The attack model is trained from batch-wise generation of the attack dataset.

Though this batching strategy drastically reduces the number of samples available to train the attack model (e.g., dividing the dataset size by the batch size $B$), it introduces an implicit ensembling effect that qualitatively improves the attack features.

To evaluate mitigation, the authors test MIA-BAD against an EfficientNet target model trained under two paradigms:

  • Centralized Training: The baseline model trained on a single consolidated dataset.
  • Federated Learning (FedAvg): The model is trained across $n$ disjoint client subsets ($n = 2, 5, 10$) and aggregated over multiple rounds.

Datasets

The authors evaluated their approach using four standard computer vision benchmarks:

  • CIFAR10
  • CIFAR100
  • MNIST
  • FashionMNIST

All target models utilized the EfficientNet architecture. No new benchmarks were introduced, allowing direct comparison with standard privacy literature.

Key Insights and Ideas

  • Quality Over Quantity in Attack Data: Counterintuitively, shrinking the attack dataset by a factor of the batch size actually helps the attacker. The batch-wise loss captures broader distribution dynamics and acts as an ensembling mechanism, making the attack model significantly more robust.
  • Batch Size Independence: The performance boost gained by MIA-BAD remains remarkably stable regardless of the chosen batch size (tested from 8 up to 258). The marginal gains from larger batches are perfectly balanced out by the reduction in dataset size.
  • FL as an Inherent Defense: Federated Learning provides a natural defense against MIAs. Because the global model aggregates updates from multiple distinct clients, it generalizes better and reduces the localized overfitting that MIAs rely on.
  • The Client Scaling Effect: The attacker's advantage is inversely proportional to the number of federated clients. As more clients join the federation, the global model's vulnerability to MIA-BAD drops sharply.

Key Results

  • Attack Enhancement: On a centrally trained CIFAR10 model, a standard sample-wise MIA achieved 83.3% accuracy. MIA-BAD boosted this attack accuracy up to 86.9% (at batch sizes of 16 and 128).
  • FL Mitigation: When switching to a federated setup with just 2 clients, the baseline attack accuracy dropped to 72.1%, and MIA-BAD dropped to ~75.5%.
  • Complete Neutralization: As shown in the advantage curves below, when the client count was increased to 10 on the CIFAR10 dataset, the attacker's advantage from MIA-BAD actually dipped below zero, meaning the batch-wise attack became less effective than a standard sample-wise attack, completely mitigating the threat.
Attacker advantage of the MIA-BAD approach across different datasets as the number of FL clients increases.

Limitations and Future Work

While the results demonstrate a clear trend, the authors note a few areas for expansion:

  • Model Diversity: The experiments were exclusively conducted using the EfficientNet architecture. It remains to be seen if these trends hold true for other architectures like Vision Transformers (ViTs) or standard ResNets.
  • Advanced MIA Variants: MIA-BAD was evaluated against a baseline black-box attack. Future work should investigate whether batch-wise generation similarly enhances more sophisticated white-box or label-only membership inference techniques.

Summary updated

BibTeX
@misc{banerjee2023mia,
  author = {Soumya Banerjee and Sandip Roy and Sayyed Farid Ahamed and Devin Quinn and Marc Vucovich and Dhruv Nandakumar and Kevin Choi and Abdul Rahman and Edward Bowen and Sachin Shetty},
  title = {{MIA-BAD: An Approach for Enhancing Membership Inference Attack and its Mitigation with Federated Learning}},
  year = {2023},
  eprint = {2312.00051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00051},
}
Figure