Black Box Differential Privacy Auditing Using Total Variation Distance

Antti Koskela, Jafar Mohammadi

TL;DR

This paper introduces a "noise-agnostic" method for auditing Differential Privacy (DP) guarantees by using histogram-based density estimation. By measuring the hockey-stick divergence between output distributions of neighboring datasets, the researchers provide a robust way to find tighter lower bounds on privacy parameters ($\epsilon, \delta$) without needing prior knowledge of the mechanism's specific noise type or subsampling ratios.

What Problem Does This Paper Address?

Differential Privacy (DP) provides a mathematical framework to ensure that an individual's data doesn't significantly affect the output of an algorithm (like a machine learning model). However, there is often a gap between theoretical privacy guarantees and their actual implementation. Auditing—experimentally verifying these guarantees—is crucial, especially in sensitive settings like Federated Learning.

Existing auditing methods, such as threshold membership inference attacks, often struggle with two issues:

  1. Rigidity: They frequently assume the noise added to the model is Gaussian or that the auditor knows the exact subsampling rate used during training.
  2. Inaccuracy: Simple threshold attacks (which use a single "pass/fail" value to guess if a point was in the training set) often significantly underestimate the actual privacy loss, especially for complex mechanisms like the subsampled Gaussian mechanism.

Methods

The authors propose moving from a single-threshold approach to a histogram-based density estimation approach.

  1. Binning: Instead of one threshold, they divide the range of model outputs (or loss values) into multiple bins (histograms).
  2. Hockey-Stick Divergence: They estimate the probability distributions ($P$ and $Q$) of outputs from two neighboring datasets based on these histograms. They then calculate the "hockey-stick divergence," a metric that directly relates to the $(\epsilon, \delta)$ definition of DP.
  3. Total Variation (TV) Distance: For cases where the privacy profile depends on a single parameter (like the noise scale $\sigma$), they show that using the Total Variation distance (the hockey-stick divergence where $\alpha=1$) provides a highly robust and near-optimal estimator.
  4. Frequentist Confidence Intervals: The paper incorporates high-probability bounds to ensure the estimated privacy lower bounds are statistically sound.

This approach is "agnostic" because it doesn't care if the underlying noise is Gaussian, Laplace, or something else entirely—it simply looks at the empirical distribution of the results.

Datasets

The researchers evaluated their method using:

  • Synthetic Gaussian and Laplace distributions: To provide analytical proofs and baseline comparisons.
  • MNIST: A standard dataset of handwritten digits. They trained a one-hidden-layer feedforward neural network to test the auditing method in both "black-box" (access only to final model outputs/losses) and "white-box" (access to intermediate gradients) scenarios.

Key Insights and Ideas

  • Generalization of Threshold Attacks: The authors prove that traditional threshold membership inference is actually just a special case of their method using only two bins. By adding more bins, they capture more information about the distribution, leading to tighter (more accurate) privacy bounds.
  • Solving the Subsampled Gaussian Problem: Auditing the "subsampled Gaussian mechanism" (where only a random subset of data is used in each step) was previously an open problem when parameters were unknown. This histogram method successfully captures the complex "trade-off curve" of this mechanism.
  • The Power of TV Distance: They analytically demonstrate that for Gaussian-like noise, the Total Variation distance is the most stable metric to use when you want to reverse-engineer the noise parameter $\sigma$ from experimental samples.
  • White-Box Heuristics: They propose a way to estimate the "Privacy Loss Distribution" (PLD) in white-box settings, allowing them to account for the composition of privacy loss over many training steps.

Key Results

  • Tighter Bounds: In experiments on MNIST, the histogram-based method provided more accurate trade-off curves than standard $\mu$-GDP (Gaussian Differential Privacy) estimates, particularly when the underlying loss distributions deviated from a perfect Gaussian shape.
  • Convergence: The authors provide a theoretical proof (Theorem 12) showing that their hockey-stick divergence estimate converges to the true value at a rate of $O(n^{-1/3})$ as the number of samples $n$ increases.
  • Robustness: In the white-box setting, the method accurately tracked the privacy profile across multiple compositions (training iterations), matching the "ground truth" calculated by advanced numerical accountants.

Limitations and Future Work

  • Heuristic White-Box Auditing: While the black-box method has formal confidence intervals, the white-box application is currently considered "heuristic." The authors note that providing formal confidence intervals for these complex compositions remains a challenge.
  • Sample Independence: The current proofs assume that auditing scores are independent. In real-world "one-shot" auditing (where you only run the training once), this assumption might be violated.
  • Computational Efficiency: While histograms are simple, finding the optimal bin width and handling very high-dimensional outputs efficiently are areas for future optimization.

Summary updated

BibTeX
@inproceedings{koskela2025black,
  author = {Antti Koskela and Jafar Mohammadi},
  title = {{Black Box Differential Privacy Auditing Using Total Variation Distance}},
  booktitle = {SaTML},
  year = {2025},
  doi = {10.1109/satml64287.2025.00061},
}
Figure