Unleashing the Power of Randomization in Auditing Differentially Private ML

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

Introduction

Differential Privacy (DP) has emerged as the gold standard for protecting individual privacy in machine learning. However, the practical implementation of DP is fraught with challenges. Small errors in privacy accounting or noise calibration can lead to significant privacy leaks, rendering theoretical guarantees moot. To verify these guarantees, researchers employ privacy auditing, a process that involves training models on datasets with and without a specific "canary" data point to see if an observer can distinguish between the two.

While effective, standard auditing is computationally expensive. It relies on Bernoulli confidence intervals that scale at a rate of $1/\sqrt{n}$, where $n$ is the number of models trained. For modern large-scale machine learning, training the thousands of models required for a tight privacy estimate is often prohibitively expensive. This paper, a collaboration between researchers at Google, the University of Washington, and Northeastern University, introduces a novel framework to break this efficiency barrier.

The Multi-Canary Auditing Framework

The researchers propose a paradigm shift in auditing by moving from fixed canaries to randomized distributions. This approach is built on three core innovations:

1. Lifted Differential Privacy (LiDP)

The authors introduce Lifted Differential Privacy, a mathematical reformulation of DP that allows for randomized datasets and rejection sets. This "lifting" provides the theoretical foundation to use randomized canary distributions rather than single, static counterexamples, allowing auditors to design more flexible and efficient tests.

2. The Multi-Canary Recipe

Instead of the traditional approach of injecting a single canary per training run, the "Multi-Canary Recipe" involves injecting $K$ independent and identically distributed (i.i.d.) canaries into the training set. By utilizing a symmetric design and a "Leave-One-Out" (LOO) approach, a single trained model can be used to perform $K$ distinct hypothesis tests—one for each canary. This effectively extracts $K$ times more information from every training run.

3. Adaptive Confidence Intervals

Because the $K$ tests are performed on the same model, their results are inherently correlated. Standard statistical methods that assume independence cannot be used. To address this, the authors derived new confidence intervals based on eXchangeable Bernoulli (XBern) distributions. These intervals utilize higher-order correlations (specifically 2nd and 4th order) to adapt to the observed data. When canaries do not interfere with one another, these adaptive intervals tighten the privacy bound significantly.

Experimental Results

The methodology was rigorously tested on synthetic benchmarks and real-world datasets, including Fashion-MNIST (FMNIST) and Purchase-100, using both linear models and Multi-Layer Perceptrons (MLPs) trained with DP-SGD.

  • Significant Speedups: On Gaussian mechanisms, the LiDP approach achieved a 16x improvement in sample complexity. For instance, it reached a privacy lower bound of $\hat{\epsilon} = 0.85$ with only 4,096 trials, a result that required over 65,000 trials using standard methods.
  • Real-World Performance: On the FMNIST and Purchase-100 datasets, the method consistently provided a 2.3x to 3.0x improvement in efficiency across various settings.
  • Reliability: The "2nd-order Wilson" interval emerged as a robust default, providing substantial gains while remaining computationally simple to implement.

Key Insights and Tradeoffs

The Bias-Variance Tradeoff

Increasing the number of canaries ($K$) reduces the variance of the privacy estimate, leading to tighter intervals. However, it can also introduce "bias." If too many canaries are added, the model may become more private overall due to the cumulative noise, which can lower the empirical $\epsilon$. The authors suggest a heuristic of $K \approx \sqrt{n}$ to balance these competing factors.

Dimensionality as an Advantage

In high-dimensional machine learning tasks, random canaries are likely to be nearly orthogonal. This low correlation minimizes the "interference" between canaries, allowing the adaptive confidence intervals to be much tighter. This makes the multi-canary approach particularly well-suited for modern, high-dimensional ML models.

Conclusion and Future Work

This research provides a "plug-and-play" framework that enhances existing canary designs, making privacy auditing more accessible for large-scale applications. While the current work focuses on membership inference-style auditing, future research may explore how these randomization techniques can be applied to other privacy concerns, such as memorization in Large Language Models (LLMs). By breaking the $1/\sqrt{n}$ barrier, this work represents a significant step toward making rigorous privacy verification a standard part of the ML development lifecycle.

Summary updated

BibTeX
@inproceedings{pillutla2023unleashing,
  author = {Krishna Pillutla and Galen Andrew and Peter Kairouz and Hugh 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