Auditing Differentially Private Machine Learning: How Private is Private SGD?

Matthew Jagielski, Jonathan R. Ullman, Alina Oprea

Abstract

Differential Privacy (DP) provides theoretical upper bounds on privacy leakage, but these bounds are often perceived as overly pessimistic. This paper introduces ClipBKD, a novel clipping-aware poisoning attack designed to audit Differentially Private Stochastic Gradient Descent (DP-SGD). By targeting directions of least variance in the data distribution, ClipBKD produces empirical privacy lower bounds up to 1500x stronger than previous membership inference methods. Our results demonstrate that modern DP-SGD analysis is becoming increasingly tight, with empirical leakage approaching within an order of magnitude of theoretical guarantees.

Introduction

Differential Privacy (DP) is the gold standard for protecting individual data in machine learning, quantified by the privacy parameter $\epsilon$ (epsilon). A smaller $\epsilon$ indicates stronger privacy, but often at the cost of model accuracy. However, a persistent "pessimism gap" exists: the $\epsilon$ calculated by theorists is a worst-case upper bound. In practice, a model might be significantly more private than its theoretical $\epsilon$ suggests. If the theory guarantees $\epsilon=10$ (allowing high theoretical leakage) but the most sophisticated attack fails to distinguish data membership, the bound is too loose to be practically informative. This paper addresses this gap by asking: How tight is the privacy of DP-SGD?

Methods

The authors frame privacy auditing as a statistical optimization problem, aiming to find the most effective attack to prove a rigorous lower bound on $\epsilon$.

Statistical Auditing Framework

The researchers utilize a Monte Carlo approach, training models hundreds of times on a "clean" dataset $D_0$ and a "poisoned" dataset $D_1$. By measuring how effectively a binary classifier can distinguish between the resulting models, they apply Clopper-Pearson confidence intervals to statistically guarantee an empirical lower bound for $\epsilon$.

ClipBKD: Clipping-Aware Backdoors

The core technical innovation is ClipBKD. Standard data poisoning attacks typically rely on high-magnitude gradients to influence a model's behavior. However, DP-SGD employs gradient clipping, which effectively neuters these "loud" gradients.

Comparison of ClipBKD and standard backdoor attacks. ClipBKD targets low-variance directions (minor axis of the distribution) to maximize influence while remaining within the clipping threshold (dashed circle).

Instead of increasing magnitude, ClipBKD targets the "quietest" directions in the data—specifically, the directions of least variance identified via Singular Value Decomposition (SVD). By injecting poisoning points that move the model along these low-variance dimensions, the attack remains effective even under heavy clipping and noise, as shown in the figure above.

Experimental Setup and Datasets

The study evaluates these attacks across three distinct benchmarks to ensure generalizability:

  • Fashion-MNIST (FMNIST): A binary classification task (T-shirts vs. Trousers) used for initial validation.
  • CIFAR10: A complex image dataset (Airplanes vs. Automobiles) utilizing transfer learning from models pre-trained on CIFAR100.
  • Purchase-100: A non-image dataset of customer purchase records, representing the tabular data common in privacy-sensitive industrial applications.

Key Results

  • Superiority over Membership Inference (MI): ClipBKD outperformed standard MI attacks by factors ranging from 2.5x to 1500x in terms of the $\epsilon$ lower bound it could verify.
  • Closing the Gap: On the Purchase-100 dataset with a theoretical $\epsilon=4$, ClipBKD proved an empirical lower bound of $\epsilon=0.46$. While a 10x gap remains, this is a massive improvement over prior work which often yielded trivial bounds near zero.
  • The Role of Initialization: The authors discovered that randomness in initial neural network weights provides a significant "privacy boost" in practice, even though it is rarely accounted for in formal DP proofs. Fixing the initialization significantly increased empirical privacy leakage.

Discussion and Future Work

This research suggests that theoretical DP-SGD bounds are becoming increasingly representative of practical privacy limits. The remaining 10x gap between theory and attack-proven lower bounds may stem from remaining slack in the mathematical analysis or the potential for even more sophisticated attacks yet to be discovered.

Furthermore, the "least variance" strategy highlights that the most effective way to bypass privacy defenses is to be "smarter," not "stronger." Future work should investigate how realistic these worst-case poisoning instances are and whether "average-case" privacy for typical users is significantly higher than these audited limits suggest.

Summary updated

BibTeX
@inproceedings{jagielski2020auditing,
  author = {Matthew Jagielski and Jonathan R. Ullman and Alina Oprea},
  title = {{Auditing Differentially Private Machine Learning: How Private is Private SGD?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure