Nearly Tight Black-Box Auditing of Differentially Private Machine Learning

Meenatchi Sundaram Muthu Selva Annamalai, Emiliano De Cristofaro

TL;DR

Researchers have developed a new "black-box" auditing method for Differentially Private Stochastic Gradient Descent (DP-SGD) that is significantly more accurate than previous attempts. By strategically choosing the starting weights of a model—rather than using random ones—they can detect privacy leakage that was previously hidden, bringing empirical privacy estimates much closer to theoretical bounds without needing internal access to the model's gradients.

The Gap Between Theory and Practice

Differential Privacy (DP) is the gold standard for training machine learning models with privacy guarantees, usually quantified by a parameter called epsilon ($\varepsilon$). A smaller $\varepsilon$ means better privacy. However, there is often a massive gap between the theoretical $\varepsilon$ promised by an algorithm and the empirical $\varepsilon$ we can actually measure through attacks.

If the measured privacy leakage is much lower than the theoretical limit, the audit is "loose." This looseness makes it nearly impossible to tell if a system has a subtle bug or if the mathematical analysis is just overly conservative. Until now, "tight" audits (where measured leakage nearly matches the theory) usually required "white-box" access, meaning the auditor could see and manipulate internal gradients during training. This paper asks: Can we achieve a tight audit in a "black-box" setting, where we only see the final trained model?

Crafting Worst-Case Initializations

The authors introduce a novel auditing procedure based on a clever observation: the mathematical proofs for DP-SGD's privacy hold true regardless of the model's initial parameters ($\theta_0$).

Standard audits use random initialization, which often "masks" the influence of any single data point. To strip away this mask, the authors craft worst-case initial parameters. They pre-train the model on an auxiliary dataset (similar to the target data) to minimize the gradients of "normal" samples.

Effect of pre-training on gradient norm and empirical epsilon

When the actual DP-SGD training begins from this specific starting point, the "normal" data points produce very small gradients, while a "canary" (the target sample being audited) produces a much larger, more distinguishable gradient. This increases the "signal-to-noise ratio" of the privacy leakage, allowing a simple membership inference attack (based on the model's loss) to be much more effective.

Key Insights and Results

The study utilizes standard benchmarks like MNIST and CIFAR-10, alongside auxiliary datasets (CIFAR-100, ImageNet-32) for the non-private pre-training phase.

  • Initialization is Key: Random initialization acts as a defense-in-depth that makes auditing harder. By choosing weights that "quiet down" the rest of the dataset, the auditor can make the canary sample stand out.
  • The Signal-to-Noise Tradeoff: The tightness of an audit is heavily influenced by the gradient clipping norm and the dataset size. Smaller datasets and smaller clipping norms lead to tighter audits because there is less "noise" from other samples to drown out the canary.
  • Fine-tuning is Highly Vulnerable: Auditing is significantly tighter when only the last layer of a model is fine-tuned. In this scenario, the empirical leakage almost perfectly matches the theoretical bound.

For a theoretical privacy budget of $\varepsilon = 10.0$, the worst-case initialization strategy yields dramatic improvements over average-case (random) initialization:

Comparison of empirical epsilon using average-case vs. worst-case initialization across MNIST and CIFAR10
  • MNIST: The audit achieved an empirical $\varepsilon_{emp} = 7.21$ (on a 1,000-record sample), compared to prior black-box methods that often struggled to exceed $\varepsilon_{emp} \approx 3.0$. On the full dataset, it reached 6.48.
  • CIFAR-10: The audit reached $\varepsilon_{emp} = 6.95$ (on 1,000 records) and 4.96 on the full dataset.
  • Last-Layer Fine-tuning: This yielded the tightest result of all, with an $\varepsilon_{emp} = 8.30$, proving that black-box audits can indeed get very close to the theoretical ceiling.

Limitations and Future Work

The primary limitation is computational cost. To get these estimates, the authors had to train hundreds of models (200 to 1,000) for every single data point in their plots. This is feasible for research on shallow CNNs but becomes prohibitively expensive for massive LLMs or complex architectures.

Additionally, the current work focuses on full-batch gradient descent (where the batch size equals the dataset size). Auditing DP-SGD with sub-sampling (using smaller batches) remains a difficult open challenge, as sub-sampling introduces a "privacy amplification" effect that is currently hard to capture tightly in a black-box setting. Future work will likely look for ways to achieve these tight results with fewer training runs.

Summary updated

BibTeX
@inproceedings{annamalai2024nearly,
  author = {Meenatchi Sundaram Muthu Selva Annamalai and Emiliano De Cristofaro},
  title = {{Nearly Tight Black-Box Auditing of Differentially Private Machine Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=cCDMXXiamP},
}
Figure