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

NeuGuard: Lightweight Neuron-Guided Defense against Membership Inference Attacks

Nuo Xu, Binghui Wang, Ran Ran, Wujie Wen, Parv Venkitasubramaniam · DOI

TL;DR

Membership Inference Attacks (MIAs) pose a significant privacy threat to machine learning models by revealing if a specific data point was used in training. This paper introduces NeuGuard, a novel defense mechanism that uses fine-grained neuron-level regularization to make the model's output distributions for training and testing data nearly indistinguishable, effectively thwarting MIAs with minimal impact on model accuracy and efficiency.

What Problem Does This Paper Address?

Machine learning models are increasingly used in sensitive domains like healthcare and finance, making them targets for privacy attacks. One such attack, Membership Inference Attacks (MIAs), aims to determine if a particular data sample was part of the model's training set. This is problematic because it can expose confidential information about individuals whose data was used for training. Existing defenses against MIAs often struggle with a trade-off between privacy and model utility (accuracy), can be computationally expensive, or lack generality against different types of MIA. This paper addresses the need for a defense that is effective, generalizable across various MIA types, maintains high model utility, and is computationally efficient.

Methods

NeuGuard employs a novel "neuron-guided" approach to defense. Instead of broadly regularizing all model parameters or adding noise at inference time, NeuGuard focuses on fine-grained control of neuron activations. The core of NeuGuard consists of two regularization techniques:

  • Class-wise Variance Minimization ($L_{var}$): This technique aims to minimize the variance of output confidence scores for each class. By forcing the scores to be close to their mean, it restricts the output distribution space, making it harder for attackers to distinguish between training and testing data.
  • Layer-wise Balanced Output Control ($L_{boc}$): This method regularizes the intermediate neuron outputs within each layer. It balances the activations within groups of neurons to prevent any single neuron from dominating the prediction, leading to more stable and balanced intermediate representations.

These two regularization terms are integrated into the model's loss function during training, alongside the standard classification loss. The paper also explores a feature map amplification technique during training and inference to further enhance defense effectiveness and utility.

Datasets

The authors evaluated NeuGuard on three benchmark datasets:

  • Texas100: A dataset derived from hospital discharge data, containing information on patient stays and medical procedures, clustered into 100 classes.
  • CIFAR10: A widely used dataset of 32x32 color images from 10 classes.
  • CIFAR100: A dataset of 32x32 color images from 100 classes.

Key Insights and Ideas

  • The "Distribution Gap" is Key: The fundamental insight is that MIAs exploit the subtle differences in model output distributions between training and testing data. NeuGuard directly targets and minimizes this "gap."
  • Fine-grained Neuron Control is Powerful: Unlike coarse-grained defenses, NeuGuard's focus on individual neuron behavior and intermediate layer outputs allows for more precise control over the model's decision-making process, leading to better privacy without sacrificing accuracy.
  • Generality is Crucial: The paper highlights that many existing defenses are effective against one type of MIA but fail against others (e.g., sorted vs. unsorted NN attacks). NeuGuard's approach demonstrates strong generality across various MIA types.
  • Metric-Based MIAs Have an Upper Bound: The authors show that metric-based MIAs, particularly those relying on prediction correctness, are inherently limited by the model's accuracy gap between training and testing data. NeuGuard's ability to minimize this gap is crucial for its effectiveness.

Key Results

  • Superior Utility-Privacy Trade-off: NeuGuard consistently achieved the best utility-privacy trade-off across all tested datasets and MIA types, significantly outperforming existing methods like AdvReg and MemGuard.
  • High Defense Effectiveness: NeuGuard reduced MIA accuracy to near random guessing (around 50%) for unsorted NSH attacks and significantly lowered it for sorted NN attacks.
  • Minimal Utility Loss: The testing accuracy of models protected by NeuGuard was very close to that of unprotected baseline models, indicating minimal impact on model performance.
  • Low Overhead: Compared to other defenses, NeuGuard incurred significantly lower training and inference overhead, especially compared to MemGuard's high inference cost.
  • Generalizability: NeuGuard demonstrated effectiveness against both neural network-based MIAs and a range of strong metric-based MIAs, including the label-only attack.

Limitations and Future Work

  • Hyperparameter Tuning: While the paper provides guidelines, tuning the hyperparameters ($\alpha$ and $\beta$) for NeuGuard can still require careful consideration to achieve the optimal balance between defense and utility.
  • Integration with Other Defenses: The authors note that directly integrating NeuGuard into models with different goals (e.g., pruned models, federated learning) can be challenging, suggesting this as an area for future research.
  • Exploring Novel MIAs: The paper mentions that future work could involve exploring NeuGuard's effectiveness against other emerging MIA techniques and defending against MIAs in more complex model architectures.

Summary updated

BibTeX
@inproceedings{xu2022neuguard,
  author = {Nuo Xu and Binghui Wang and Ran Ran and Wujie Wen and Parv Venkitasubramaniam},
  title = {{NeuGuard: Lightweight Neuron-Guided Defense against Membership Inference Attacks}},
  booktitle = {ACSAC},
  year = {2022},
  doi = {10.1145/3564625.3567986},
}
Figure