Unleashing the Power of Randomization in Auditing Differentially Private ML

Krishna Pillutla, Galen Andrew, Peter Kairouz, H. Brendan McMahan, Alina Oprea, Sewoong Oh

TL;DR

Auditing differentially private (DP) machine learning is notoriously expensive, often requiring the training of thousands of models to produce a single privacy lower bound. This paper introduces Lifted Differential Privacy (LiDP) and a novel "randomized canary" recipe that allows researchers to extract multiple statistical tests from a single training run, achieving up to a 16x improvement in sample complexity.

What Problem Does This Paper Address?

Differential Privacy (DP) provides a mathematical guarantee of individual privacy, but implementing it correctly is difficult. Bugs in sensitivity analysis or privacy accounting can lead to "privacy leakage" far beyond what is claimed. To catch these errors, researchers "audit" algorithms by injecting a canary (a specific data point) into a dataset and seeing if they can detect its presence in the resulting model.

The standard auditing recipe is limited by a fundamental statistical barrier: to get a high-confidence lower bound on the privacy parameter $\epsilon$, you need to estimate the probability of a model behaving differently with and without the canary. This estimation relies on Bernoulli confidence intervals, which converge slowly (at a rate of $1/\sqrt{n}$, where $n$ is the number of trained models). For large-scale ML, training thousands of models just to verify a privacy claim is computationally prohibitive.

Methods

The authors break the $1/\sqrt{n}$ barrier using three key innovations:

  1. Lifted Differential Privacy (LiDP): The authors expand the standard definition of DP to handle randomized datasets. This theoretical "lift" justifies the use of random canaries rather than fixed, deterministic ones.
  2. Multiple Random Canaries: Instead of injecting one canary, they inject $K$ i.i.d. (independent and identically distributed) random canaries. By using a "leave-one-out" (LOO) approach, they can test for the presence of each of the $K$ canaries within a single trained model. This allows them to reuse each expensive training run $K$ times.
  3. Adaptive Confidence Intervals (XBern): Because the $K$ test statistics come from the same model, they are correlated. Standard statistical tests assume independence and would fail here. The authors introduce the eXchangeable Bernoulli (XBern) distribution and derive new higher-order confidence intervals (based on Bernstein and Wilson intervals) that adapt to these empirical correlations to maintain rigorous bounds.
Bias illustration: Adding a random canary $c$ introduces additional randomness, which can lead to a smaller effective privacy parameter $\epsilon$, effectively "biasing" the audit toward higher privacy.

Datasets

The framework was evaluated using:

  • Synthetic Gaussian Mechanism: A simple sum query over a $d$-dimensional unit sphere to establish theoretical baselines.
  • FMNIST (Fashion-MNIST): A 10-class image classification task using both Linear and Multi-Layer Perceptron (MLP) models.
  • Purchase-100: A sparse dataset of shopping histories with 100 classes, used with an MLP model.

Key Insights and Ideas

  • Randomization as a Tool: While DP uses randomization to protect privacy, this paper uses randomization in the auditing process to improve statistical efficiency.
  • The Bias-Variance Tradeoff: Adding more canaries ($K$) provides more data points, which reduces the variance of the estimate. However, each additional canary makes the dataset "noisier" and the model more private, which introduces a bias that can lower the empirical $\epsilon$. The authors found that setting $K \approx \sqrt{n}$ is a reliable heuristic for balancing these effects.
  • Dimension is Your Friend: In higher dimensions, random canaries are more likely to be nearly orthogonal. This reduces the correlation between their test statistics, allowing the adaptive confidence intervals to become much tighter.
The empirical lower bound $\hat{\epsilon}$ improves significantly as the number of trials $n$ increases (left). The middle plot shows the bias-variance tradeoff as $K$ increases, while the right plot shows how increasing dimension $d$ helps the audit.

Key Results

  • 16x Sample Efficiency: On Gaussian mechanisms, the LiDP approach reached the same privacy lower bound as the standard baseline using 16 times fewer model training runs (e.g., $n=4,096$ vs $n=65,536$).
  • Real-World Gains: On FMNIST and Purchase-100, the method consistently outperformed standard auditing. For example, using random gradient canaries on FMNIST with a linear model, they achieved a 3.0x average improvement in sample complexity across various privacy levels.
  • Robustness: The higher-order Wilson intervals proved robust across different datasets and model architectures, showing that the theoretical gains of LiDP translate well to complex ML pipelines.

Limitations and Future Work

  • Computational Overhead: While the number of training runs is reduced, calculating higher-order moments for the confidence intervals adds some minor computational cost, though this is negligible compared to model training.
  • White-box vs. Black-box: Some canary designs (like random gradients) require "gray-box" access to the training process, which might not always be available to an external auditor.
  • Generalization: The authors note it is not yet clear how to adapt this randomization framework to other popular auditing approaches, such as those specifically measuring data memorization rather than membership inference. Future work could explore "lifting" these other definitions of privacy.

Summary updated

BibTeX
@inproceedings{pillutla2023unleashing,
  author = {Krishna Pillutla and Galen Andrew and Peter Kairouz and H. Brendan McMahan and Alina Oprea and Sewoong Oh},
  title = {{Unleashing the Power of Randomization in Auditing Differentially Private ML}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=mlbes5TAAg},
}
Figure