Abstract
Neural network pruning is essential for deploying deep learning models on resource-constrained devices. However, the fine-tuning process required to recover accuracy often leads to over-memorization of training data. This paper investigates the privacy implications of pruning, demonstrating that pruned models are significantly more vulnerable to Membership Inference Attacks (MIAs). We propose SAMIA, a self-attention-based attack that exploits prediction confidence and sensitivity, and PPB, a defense mechanism that balances posterior distributions during fine-tuning to mitigate leakage without compromising model utility. Our results show that SAMIA outperforms state-of-the-art attacks, while PPB effectively reduces attack accuracy to near-random levels.
Introduction: The Privacy Cost of Efficiency
To run deep learning models on smartphones and IoT devices, engineers use pruning to remove redundant parameters. The standard workflow involves training a large model, pruning insignificant weights, and then fine-tuning the remaining weights on the original training data to recover accuracy.
This process introduces a hidden danger: "over-memorization." Fine-tuning a smaller model on the same data it was originally trained on causes it to behave differently when processing a "member" (training sample) versus a "non-member" (unseen data). This vulnerability is exploited by Membership Inference Attacks (MIAs), where an adversary attempts to determine if a specific individual's data was used in the training set—a critical privacy breach in sensitive domains like healthcare.
Pruning as a Privacy Magnifier
Pruning forces a model to achieve high performance with fewer parameters. This pressure causes the model to rely more heavily on memorizing the training samples it has left, significantly widening the behavioral gap between seen and unseen data.
As shown in the distributions above, pruned models exhibit a much higher "prediction sensitivity" for training data compared to test data. Sensitivity—the degree to which a model's output changes when noise is added to the input—serves as a highly effective feature for attackers that has been largely overlooked in previous research.
Proposed Methods
1. SAMIA (Self-Attention Membership Inference Attack)
Unlike traditional attacks that use simple global thresholds, SAMIA employs a self-attention mechanism to analyze two key metrics: Prediction Confidence (the probability assigned to the correct label) and Prediction Sensitivity. The self-attention module allows the attack to automatically learn class-specific thresholds, making it more effective at identifying the subtle behavioral "fingerprints" left by training data in pruned architectures.
2. PPB (Pair-based Posterior Balancing)
To counter these vulnerabilities, we introduce PPB, a defense integrated into the fine-tuning stage. PPB adds a regularization term based on KL-divergence to the loss function. This forces the model to produce similar posterior distributions for different pairs of input samples. By "smoothing out" the model's behavior, PPB narrows the gap between how it treats members and non-members, making membership inference significantly more difficult.
Key Results and Insights
- Increased Vulnerability: Pruned models are consistently more susceptible to MIAs than their original, unpruned counterparts across various architectures (ResNet, VGG, DenseNet) and datasets (CIFAR, CHMNIST, Purchase).
- Attack Superiority: SAMIA outperformed eight state-of-the-art membership inference attacks in almost all tested scenarios, particularly by capturing class-level divergence that global attacks miss.
- Defense Effectiveness: The PPB defense successfully reduced attack accuracy to near-random levels (approx. 50%) in many cases. Unlike Differential Privacy (DP), which often degrades model accuracy, PPB maintains high utility and the desired sparsity levels.
Conclusion and Future Work
While pruning is vital for model efficiency, it creates a significant privacy-utility trade-off. This work demonstrates that behavioral metrics like sensitivity are powerful indicators of membership in compressed models. Future research will explore white-box attack scenarios and aim to develop theoretical privacy guarantees for posterior balancing techniques like PPB.
Summary updated