Abstract
Large capacity machine learning (ML) models are prone to membership inference attacks (MIAs), which aim to infer whether the target sample is a member of the target model's training dataset. The serious privacy concerns due to the membership inference have motivated multiple defenses against MIAs, e.g., differential privacy and adversarial regularization. Unfortunately, these defenses produce ML models with unacceptably low classification performances. Our work proposes a new defense, called distillation for membership privacy (DMP), against MIAs that preserves the utility of the resulting models significantly better than prior defenses. DMP leverages knowledge distillation to train ML models with membership privacy. We provide a novel criterion to tune the data used for knowledge transfer in order to amplify the membership privacy of DMP. Our extensive evaluation shows that DMP provides significantly better tradeoffs between membership privacy and classification accuracies compared to state-of-the-art MIA defenses. For instance, DMP achieves ~100% accuracy improvement over adversarial regularization for DenseNet trained on CIFAR100, for similar membership privacy (measured using MIA risk): when the MIA risk is 53.7%, adversarially regularized DenseNet is 33.6% accurate, while DMP-trained DenseNet is 65.3% accurate.
Introduction
Machine learning models, particularly deep neural networks, often inadvertently memorize specific details of their training data. This vulnerability enables Membership Inference Attacks (MIAs), where an adversary determines if a specific data point was part of a model's private training set. Such attacks pose significant risks, especially in sensitive domains like healthcare or finance.
Existing defenses typically involve Differential Privacy (DP) or Adversarial Regularization. While DP offers strong mathematical guarantees, it often results in a prohibitive drop in model accuracy. Adversarial regularization attempts to minimize the gap between member and non-member predictions but frequently fails against "whitebox" attacks and still incurs significant utility costs. This paper introduces Distillation for Membership Privacy (DMP), a defense mechanism designed to provide robust protection without sacrificing performance.
Methodology: Distillation for Membership Privacy
The core philosophy of DMP is to isolate the sensitive training data from the final deployed model. Instead of training the final model directly on private data, DMP uses a three-phase knowledge transfer process:
- Pre-distillation: An "unprotected" teacher model ($\theta_{up}$) is trained on the private training data ($D_{tr}$) using standard cross-entropy loss.
- Distillation Phase: A set of "reference data" ($X_{ref}$), which was not part of the private training set, is identified. The teacher model generates "soft labels" (probability distributions) for this data.
- Post-distillation: The final "protected" model ($\theta_p$) is trained using only the reference data and the teacher's soft labels via KL-divergence minimization.
By ensuring the protected model never "sees" the private data, DMP naturally limits the leakage of specific member information.
The Entropy-Privacy Tradeoff
A critical innovation of DMP is the criterion for selecting reference data. The authors demonstrate that membership leakage is minimized when the reference data consists of samples where the teacher model exhibits low entropy (high confidence).
As shown in Figure 2, lower average entropy in the reference data correlates with lower membership inference risk. Intuitively, if a model is highly confident about a non-member sample, its prediction is less likely to reflect the specific "memorized" quirks of the actual training members. This allows practitioners to "tune" the privacy-utility tradeoff by filtering reference samples based on their entropy scores.
Experimental Evaluation
The authors evaluated DMP across diverse datasets, including Purchase, Texas (hospital records), CIFAR-10, and CIFAR-100. They also tested the framework using synthetic reference data generated by a DC-GAN to demonstrate its viability when unlabeled data is scarce.
Key Results
- Superior Utility: On CIFAR-100 with a DenseNet architecture, DMP achieved 65.3% accuracy at a specific privacy level, nearly doubling the 33.6% accuracy of Adversarial Regularization for the same level of protection.
- Whitebox Robustness: Unlike many blackbox-only defenses, DMP proved effective against whitebox adversaries who have full access to the model's internal parameters and gradients.
- Synthetic Data Efficacy: DMP remains effective even when using GAN-generated synthetic data for distillation, outperforming existing defenses in scenarios without external reference datasets.
Conclusion and Future Work
DMP represents a significant step forward in balancing membership privacy and model utility. By leveraging the generalization capabilities of knowledge distillation, it breaks the direct link between sensitive data and model parameters.
However, challenges remain. DMP's performance depends on the availability of a reference dataset that matches the training distribution. Furthermore, while empirically robust, DMP lacks the formal mathematical "privacy budget" provided by Differential Privacy. Future research aims to bridge this gap and develop even more sophisticated adaptive attacks to further stress-test the distillation-based approach.
Summary updated