TL;DR
This paper introduces MEMBERSHIP-DOCTOR, a comprehensive framework for evaluating membership inference attacks and defenses. It provides a large-scale benchmark, revealing that common assumptions about the adversary's knowledge are often unnecessary and that data augmentation is a surprisingly effective defense, though it also enables more potent attacks.
What Problem Does This Paper Address?
Machine learning models, especially deep learning ones, have a tendency to "memorize" parts of their training data. This memorization makes them vulnerable to membership inference attacks (MIAs), where an adversary tries to determine if a specific data point was part of the model's training set. This has significant privacy implications, as it could reveal sensitive information about individuals whose data was used for training. While many MIAs and defenses have been proposed, they are often evaluated in isolation, using different datasets, model architectures, and threat models. This lack of a standardized, comprehensive benchmark makes it difficult to understand the true strengths and weaknesses of existing methods, hindering progress and practical application. This paper aims to fill this gap by providing a systematic and extensive evaluation.
Methods
The core contribution is the MEMBERSHIP-DOCTOR framework, a modular system designed to integrate and evaluate various MIAs and defenses. The authors systematically study:
- Nine state-of-the-art MIAs: These attacks leverage different information, including prediction posteriors, ground truth labels, and query-based methods.
- Six defense mechanisms: These include training-time defenses like label smoothing, adversarial regularization, MixupMMD, DP-SGD, and data augmentation, as well as an inference-time defense (MemGuard).
- Comprehensive Evaluation: They couple these attacks and defenses with six benchmark datasets and four popular model architectures, creating a vast experimental space (1,296 attack scenarios).
- Threat Model Analysis: They investigate the impact of various adversary assumptions, such as knowledge of the target model's architecture and the distribution of the shadow dataset.
- Adaptive Attacks: They propose and evaluate an adaptive attack that leverages data augmentation to train more effective shadow and attack models.
Datasets
The study utilizes six benchmark image datasets:
- CIFAR10
- CIFAR100
- Place20, Place40, Place60, Place80: Derived from the Places365 dataset, these offer varying numbers of scene categories.
Additionally, they introduce a "WildCIFAR100" dataset, collected from the internet, to simulate a more realistic scenario where the adversary's shadow dataset is not curated from the same source as the target model's training data.
Key Insights and Ideas
- Relaxed Threat Model Assumptions: The paper demonstrates that many common assumptions in MIA research, such as the shadow model having the same architecture and the shadow dataset coming from the same distribution as the target, are unnecessary for effective attacks. This suggests that the threat of MIAs might be underestimated in current research.
- Data Augmentation as a Dual-Edged Sword: Data augmentation, a common technique to improve model utility, is found to be a strong defense against MIAs. However, it also enables the development of more potent adaptive attacks that specifically target augmented models.
- Beyond Overfitting: The commonly held belief that overfitting is the primary driver of MIA success is challenged. While correlated, the Jensen-Shannon (JS) distance of entropy/cross-entropy between member and non-member samples proves to be a much stronger and more general predictor of attack performance. This offers a novel way to estimate MIA risks without actually running an attack.
Key Results
- Best Attack: The NN-normal+label attack consistently achieves the highest performance, leveraging both prediction posteriors and ground truth labels. Metric-based attacks offer comparable performance with lower computational costs.
- Best Defense: MixupMMD and DP-SGD show the best defense effectiveness, significantly reducing attack performance. However, MixupMMD better preserves the target model's utility.
- Real-World Threat: Attacks remain highly effective even when using a shadow dataset collected from the internet (WildCIFAR100), achieving accuracies above 0.950 on CIFAR100.
- Predictive Power of JS Distance: The JS distance of entropy/cross-entropy shows a high correlation (up to 0.991) with attack performance, allowing for accurate prediction of MIA success with less than 1% bias.
- Data Augmentation Impact: Models trained with data augmentation see a significant drop in MIA accuracy (e.g., from 0.828 to 0.599 with random augmentation on CIFAR10), while utility often improves. However, an adaptive attack leveraging augmentation can partially recover attack performance.
Limitations and Future Work
- Focus on Image Classification: The study primarily focuses on image classification tasks. The authors suggest extending the framework to other ML paradigms like contrastive learning and graph neural networks in future work.
- Adaptive Attack Scope: While an adaptive attack leveraging data augmentation is proposed, the authors note that it primarily benefits from augmented views of samples, and further research could explore more sophisticated adaptive strategies.
- Generalizability of JS Distance: While the JS distance correlation is shown to be model and dataset agnostic, further validation across a wider range of ML models and data types would be beneficial.
Summary updated