Abstract
Membership Inference Attacks (MIAs) pose a significant threat to data privacy in deep learning by identifying whether specific data points were used during model training. This paper introduces DIFFENCE, a novel "pre-inference" defense mechanism that utilizes diffusion models to re-generate input samples before they reach a target classifier. By slightly noising and then denoising inputs, DIFFENCE effectively "washes away" unique signatures exploited by MIAs while preserving semantic content and model accuracy. Experimental results across various datasets and architectures demonstrate that DIFFENCE significantly reduces MIA success rates and can be cascaded with existing defenses for enhanced privacy protection without compromising output calibration.
Introduction
Deep learning models often exhibit distinct behavioral patterns when processing training data (members) versus unseen data (non-members). Membership Inference Attacks (MIAs) exploit these discrepancies—such as higher confidence or lower loss on training samples—to compromise individual privacy. Existing defenses typically involve training-time modifications (e.g., Differential Privacy), which often degrade accuracy, or post-inference modifications (e.g., MemGuard), which can distort confidence scores. DIFFENCE addresses this gap by providing a plug-and-play defense that operates solely on input data, requiring no changes to model weights or output distributions.
Methods
DIFFENCE operates as a "pre-inference" fence. Every input image is passed through a Denoising Diffusion Probabilistic Model (DDPM) before classification. The process involves two primary steps:
- Sample Reconstruction: The input is subjected to a forward diffusion process (adding noise) followed by a reverse denoising process. This preserves the semantic category (e.g., "car" or "dog") while altering the fine-grained, non-essential details that MIAs rely on.
- Strategic Sample Selection: To maintain model accuracy, DIFFENCE generates $N$ candidate reconstructions and selects those that yield the same predicted label as the original image.
The defense can be deployed in three scenarios depending on the defender's access to membership data, ranging from optimal interval selection (Scenario 1) to random selection from valid candidates (Scenario 3).
Key Results
The researchers evaluated DIFFENCE on standard (CIFAR-10/100, SVHN) and high-resolution (CelebA, UTKFace) datasets across multiple architectures (ResNet, DenseNet, VGG, and ViT). Key findings include:
- MIA Mitigation: DIFFENCE reduced MIA attack accuracy by an average of 15.8% and AUC by 14.0% against undefended models.
- Synergy with Existing Defenses: When layered with the state-of-the-art SELENA defense, it provided an additional 9.3% reduction in attack accuracy.
- Utility Preservation: The selection mechanism ensures 100% preservation of the original model's accuracy. Furthermore, DIFFENCE maintains the Expected Calibration Error (ECE), ensuring that confidence scores remain meaningful for downstream tasks.
- Efficiency: The defense adds a modest overhead of approximately 57ms per sample, making it viable for many real-time applications.
Conclusion
DIFFENCE provides a robust, flexible, and efficient defense against Membership Inference Attacks. By operating at the pre-inference stage, it offers a "plug-and-play" solution that can be applied to already-deployed models and combined with other privacy-preserving techniques. While its effectiveness is naturally higher when some membership information is available for calibration, its ability to preserve both accuracy and calibration makes it a compelling tool for privacy-conscious machine learning. Future work may explore the use of more powerful diffusion models to further push the boundaries of the privacy-utility trade-off.
Summary updated