Skip to main content
QUICK REVIEW

[Paper Review] Gradient Masking and the Underestimated Robustness Threats of Differential Privacy in Deep Learning

Franziska Boenisch, Philip Sperl|arXiv (Cornell University)|May 17, 2021
Adversarial Robustness in Machine LearningComputer Science28 references8 citations
TL;DR

This paper investigates the trade-off between differential privacy (DP) and adversarial robustness in deep learning, demonstrating that DP-SGD training reduces model robustness against adversarial attacks. It reveals that DP models are more vulnerable than non-private models, and that certain DP hyperparameter choices induce gradient masking, creating a false sense of security despite increased vulnerability.

ABSTRACT

An important problem in deep learning is the privacy and security of neural networks (NNs). Both aspects have long been considered separately. To date, it is still poorly understood how privacy enhancing training affects the robustness of NNs. This paper experimentally evaluates the impact of training with Differential Privacy (DP), a standard method for privacy preservation, on model vulnerability against a broad range of adversarial attacks. The results suggest that private models are less robust than their non-private counterparts, and that adversarial examples transfer better among DP models than between non-private and private ones. Furthermore, detailed analyses of DP and non-DP models suggest significant differences between their gradients. Additionally, this work is the first to observe that an unfavorable choice of parameters in DP training can lead to gradient masking, and, thereby, results in a wrong sense of security.

Motivation & Objective

  • To evaluate the impact of differential privacy (DP) training on adversarial robustness across diverse attack types.
  • To investigate whether adversarial examples transfer more effectively between private and non-private models.
  • To analyze gradient differences between DP and non-DP models to explain robustness disparities.
  • To identify and validate conditions under which DP-SGD induces gradient masking, leading to misleading robustness assessments.
  • To provide empirical evidence that DP training may compromise model security despite privacy guarantees.

Proposed method

  • The authors train multiple deep neural network models using DP-SGD with varying noise levels and gradient clipping norms.
  • They evaluate robustness using a comprehensive suite of adversarial attacks, including gradient-based, gradient-free, and optimization-based methods.
  • Transferability of adversarial examples is measured between private and non-private models to assess cross-model attack success rates.
  • Gradients of DP and non-DP models are analyzed and compared to identify structural differences affecting robustness.
  • The study applies established criteria for gradient masking to verify its presence in specific DP hyperparameter configurations.
  • Ablation studies are conducted to isolate the effects of noise scale and clip norm on model vulnerability and gradient behavior.

Experimental results

Research questions

  • RQ1Does training with DP-SGD reduce the adversarial robustness of deep neural networks compared to non-private models?
  • RQ2How does adversarial transferability differ between private and non-private models?
  • RQ3What role do model gradients play in explaining the increased vulnerability of DP models?
  • RQ4Under what DP-SGD hyperparameter settings does gradient masking occur, and how does it mislead robustness evaluation?
  • RQ5Can gradient masking in DP models explain previously reported, seemingly positive robustness results in prior work?

Key findings

  • DP models exhibit significantly lower robustness against adversarial attacks compared to non-private models, especially under high noise levels and large clip norms.
  • Adversarial examples transfer more effectively from non-private models to private models than vice versa, indicating private models are more susceptible to transfer attacks.
  • Transferability is higher among DP models than between private and non-private models, suggesting DP models share more transferable adversarial features.
  • DP training leads to larger gradient magnitudes and a higher proportion of zero gradients compared to non-DP models, which may explain increased vulnerability.
  • Certain combinations of noise scale and clip norm in DP-SGD intentionally induce gradient masking, creating a false perception of robustness.
  • The study confirms that gradient masking is present in DP models under specific hyperparameter settings, validating its role as a confounding factor in robustness evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.