Deep Learning with Data Privacy via Residual Perturbation

Wenqi Tao, Huaming Ling, Zuoqiang Shi, Bao WangOpenReview 2020

TL;DR

This paper introduces "residual perturbation," a novel method for enhancing data privacy in deep learning models, particularly ResNets. By injecting Gaussian noise into the residual blocks of these networks, the authors demonstrate that their approach can achieve differential privacy and reduce the generalization gap, outperforming existing methods like DPSGD in both privacy and utility.

What Problem Does This Paper Address?

Deep learning models, while powerful, have a significant privacy problem: they can inadvertently memorize and leak sensitive information from their training data. This can lead to privacy breaches through attacks like membership inference, where an adversary tries to determine if a specific data point was part of the training set. Existing privacy-preserving techniques, such as Differentially Private Stochastic Gradient Descent (DPSGD), often come at a steep cost, leading to substantial degradation in model accuracy and requiring computationally intensive per-sample gradient calculations. The authors aim to bridge this gap by developing a privacy-preserving method that maintains high model utility and is computationally efficient.

Methods

The core innovation is "residual perturbation," which leverages the architecture of Residual Networks (ResNets). Instead of perturbing the entire model or its output, the authors inject Gaussian noise directly into each residual mapping within the ResNet. This is theoretically motivated by stochastic differential equations (SDEs). They propose two strategies:

  • Strategy I (Additive Noise): Injects Gaussian noise into each residual mapping. This is formulated as an SDE and then discretized for practical implementation.
  • Strategy II (Multiplicative Noise): Uses multiplicative noise in the residual mappings, also formulated and discretized via SDEs.

The theoretical underpinnings involve proving differential privacy (DP) guarantees for these methods, particularly using Rényi Differential Privacy (RDP) and then converting it to standard (ε, δ)-DP. They also theoretically show that this perturbation can reduce the generalization gap by analyzing Rademacher complexity. Empirically, they evaluate the effectiveness of these methods against membership inference attacks and compare their performance to DPSGD. They also explore the benefit of ensembling multiple perturbed ResNets.

Datasets

The authors evaluated their methods on several standard datasets:

  • MNIST: A dataset of handwritten digits.
  • CIFAR10/CIFAR100: Datasets of small color images.
  • Invasive Ductal Carcinoma (IDC) dataset: A medical imaging dataset for breast cancer detection.

They also describe a specific data splitting strategy (Dshadow, Dtarget, Dtrain, Dshadow, Dout shadow, Dtarget, Dout target) to facilitate membership inference attacks for evaluation.

Key Insights and Ideas

  • Privacy via Residual Blocks: Injecting noise directly into the residual blocks of ResNets is a surprisingly effective way to achieve differential privacy without drastically harming model performance. This targets a specific architectural component, offering a more granular approach than global perturbations.
  • SDEs as a Theoretical Foundation: Using the theory of stochastic differential equations provides a strong mathematical basis for understanding why this noise injection works and for deriving DP guarantees.
  • Improved Utility: Contrary to many DP methods that sacrifice accuracy, residual perturbation can improve classification accuracy, especially when ensembled. This is a significant finding, as it directly addresses the utility degradation problem.
  • Computational Efficiency: Compared to DPSGD, which requires expensive per-sample gradient computations, residual perturbation is computationally much more efficient, making it more practical for large-scale deep learning.
  • Skip Connections are Crucial: The effectiveness of residual perturbation is strongly linked to the presence of skip connections in ResNets, which allow gradients to flow more easily and enable the noise to be effectively integrated into the learning process.

Key Results

  • Membership Privacy: Residual perturbation significantly reduces the AUC of membership inference attacks, bringing it closer to the random guess baseline (AUC = 0.5), indicating strong privacy protection. For example, on the IDC dataset, En5ResNet8 achieved an AUC of 0.495, compared to 0.563 for the baseline ResNet8.
  • Classification Accuracy: The method not only protects privacy but also often improves classification accuracy, especially when using ensembles. For instance, on the IDC dataset, residual perturbation achieved 85.7% accuracy, outperforming DPSGD's 82.8%. On CIFAR10, En5ResNet8 achieved 67.5% accuracy with noise, compared to 66.9% for the non-private baseline.
  • Comparison to DPSGD: Residual perturbation consistently outperformed DPSGD in maintaining model utility (accuracy) while providing comparable or better membership privacy protection across various datasets (MNIST, CIFAR10, CIFAR100, IDC).
  • Generalization Gap Reduction: Theoretical analysis and empirical results suggest that residual perturbation reduces the generalization gap, leading to less overfitting.

Limitations and Future Work

  • Loose DP Guarantees: The authors acknowledge that their theoretical DP guarantees (especially for Strategy I) are quite loose. The gap between theoretical and empirical DP budgets is significant, and developing tighter analytical tools for DP guarantees is a key area for future work.
  • Hyperparameter Tuning: While the method has fewer hyperparameters than DPSGD, tuning the noise coefficient (γ) and ensemble size is still necessary to optimize the privacy-utility tradeoff.
  • Strategy II DP Guarantees: While Strategy II is proposed and evaluated, theoretical DP guarantees for it are left for future work.
  • Understanding the Mechanism: Further research is needed to fully understand the complex interactions between noise injection, skip connections, and the learning process that lead to both privacy and utility improvements.

Summary updated

Abstract

Protecting data privacy in deep learning (DL) is at its urgency. Several celebrated privacy notions have been established and used for privacy-preserving DL. However, many of the existing mechanisms achieve data privacy at the cost of significant utility degradation. In this paper, we propose a stochastic differential equation principled \emph{residual perturbation} for privacy-preserving DL, which injects Gaussian noise into each residual mapping of ResNets. Theoretically, we prove that residual perturbation guarantees differential privacy (DP) and reduces the generalization gap for DL. Empirically, we show that residual perturbation outperforms the state-of-the-art DP stochastic gradient descent (DPSGD) in both membership privacy protection and maintaining the DL models' utility. For instance, in the process of training ResNet8 for the IDC dataset classification, residual perturbation obtains an accuracy of 85.7\% and protects the perfect membership privacy; in contrast, DPSGD achieves an accuracy of 82.8\% and protects worse membership privacy.
BibTeX
@misc{tao2020deep,
  author = {Wenqi Tao and Huaming Ling and Zuoqiang Shi and Bao Wang},
  title = {{Deep Learning with Data Privacy via Residual Perturbation}},
  year = {2020},
  url = {https://openreview.net/forum?id=eNSpdJeR_J},
  howpublished = {OpenReview},
}
Figure