TL;DR
This paper investigates the often-overlooked impact of differential privacy (DP) on the robustness of neural networks. Surprisingly, they find that DP-trained models, while protecting privacy, can become less robust to adversarial attacks and common corruptions in certain configurations, highlighting a critical trade-off.
What Problem Does This Paper Address?
Differential privacy (DP) is a powerful framework for guaranteeing that a machine learning model doesn't reveal sensitive information about individual data points in its training set. The standard approach to achieve DP in deep learning is DP-SGD (Differentially Private Stochastic Gradient Descent), which involves adding noise and clipping gradients during training. While DP-SGD is known to incur an accuracy cost, its effect on model robustness—its ability to withstand perturbations like adversarial attacks or common corruptions—has been less understood. Standard neural networks are already known to be brittle to such perturbations. This paper aims to fill this knowledge gap by empirically studying how DP training affects this robustness.
Methods
The authors employ a range of established techniques to measure model robustness:
- Adversarial Attacks: They use Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD) to generate adversarial examples and evaluate model accuracy under these attacks.
- Distance to Decision Boundary: They measure how close data samples are to the model's decision boundaries using both L2 and L-infinity norms, as a smaller distance can indicate susceptibility to attacks like DeepFool.
- Curvature Profile: They analyze the curvature of the decision boundaries by examining the eigenvalues of the Hessian matrix, drawing on prior work suggesting that more robust models have less curved boundaries.
- Common Corruptions: They evaluate model performance on a corrupted version of the MNIST dataset (MNIST-C) to assess robustness against real-world image degradations.
Crucially, they investigate how the core components of DP-SGD—gradient clipping (C) and noise addition (σ)—influence these robustness metrics.
Datasets
- MNIST: A standard dataset for image classification, used for training and evaluating models under various robustness measures.
- MNIST-C: A corrupted version of MNIST, specifically designed as a benchmark for robustness against common corruptions.
- CIFAR-10: Another image classification dataset, used for experiments, particularly when per-example gradient computation becomes too expensive.
Key Insights and Ideas
- The Privacy-Robustness Trade-off is Real (and Sometimes Negative): The most striking finding is that DP training, in many common settings, decreases model robustness. This challenges the assumption that privacy enhancements wouldn't negatively impact security aspects.
- DP-SGD Components Matter: The specific parameters of DP-SGD, namely the noise level (σ) and gradient clipping bound (C), have a significant and sometimes counter-intuitive impact on robustness.
- Noise Amplifies Vulnerability: Increasing the noise (σ) in DP-SGD generally leads to a larger drop in accuracy under adversarial attacks, making the model more vulnerable.
- Clipping's Dual Role: While increasing the clipping bound (C) often decreases robustness, there's a surprising "plateau" effect at very high clipping values where robustness can actually improve, suggesting a complex interplay.
- Curvature as a Robustness Indicator: The paper reinforces the idea that DP-trained models tend to have more curved decision boundaries, which correlates with reduced robustness.
Key Results
- FGSM Attack: DP-SGD trained models showed a faster accuracy drop under FGSM attacks compared to standard SGD models, with the gap sometimes reaching 15.4% for a perturbation of ε = 0.12.
- PGD Attack: For PGD attacks, DP-SGD models exhibited a larger accuracy gap compared to SGD models, indicating reduced robustness.
- Distance to Decision Boundary: DP-SGD models had decision boundaries closer to data samples (e.g., ~15% drop in L-infinity distance on MNIST), making them more susceptible to DeepFool-like attacks.
- Common Corruptions (MNIST-C): The accuracy gap between clean and corrupted images significantly increased for DP-SGD models compared to SGD models, with average drops reaching ~16% and some corruptions showing gaps over 60%.
- CIFAR-10 Results: Similar trends were observed on CIFAR-10, with DP-SGD models showing closer decision boundaries and more curved profiles, suggesting reduced robustness.
- Surprising Robustness Improvement: In Figure 7, increasing the clipping bound (C) to very high values (e.g., C=3.0, 5.0, 10.0) for FGSM attacks on MNIST surprisingly led to improved robustness, even surpassing standard SGD in some cases.
Limitations and Future Work
- Settings Matter: The paper emphasizes that the observed negative impact of DP on robustness is setting-dependent. They highlight a specific scenario (large clipping bound with noise) where DP can actually improve robustness.
- Fundamental Trade-off Question: The authors pose the question of whether this trade-off is fundamental or an artifact of current DP-SGD implementations. They suggest that the interplay between clipping and noise might be key.
- Future Directions: The paper calls for further investigation into the surprising robustness improvements observed with large clipping bounds and a deeper mathematical understanding of the connection between differential privacy and robustness. Exploring how to achieve both strong privacy and strong robustness simultaneously remains an open challenge.
Summary updated