Bayesian Estimation of Differential Privacy

Santiago Zanella-Béguelin, Lukas Wutschitz, Shruti Tople, Ahmed Salem, Victor Rühle +4 more
6/10/2022
cs.LGcs.CR
bayesian

Official code: microsoft/responsible-ai-toolbox-privacy (38 stars, Python, MIT, last commit 2025-08-21).

Abstract

Algorithms such as Differentially Private SGD enable training machine learning models with formal privacy guarantees. However, there is a discrepancy between the protection that such algorithms guarantee in theory and the protection they afford in practice.

Show full abstract

An emerging strand of work empirically estimates the protection afforded by differentially private training as a confidence interval for the privacy budget $\varepsilon$ spent on training a model. Existing approaches derive confidence intervals for $\varepsilon$ from confidence intervals for the false positive and false negative rates of membership inference attacks. Unfortunately, obtaining narrow high-confidence intervals for $ε$ using this method requires an impractically large sample size and training as many models as samples. We propose a novel Bayesian method that greatly reduces sample size, and adapt and validate a heuristic to draw more than one sample per trained model. Our Bayesian method exploits the hypothesis testing interpretation of differential privacy to obtain a posterior for $\varepsilon$ (not just a confidence interval) from the joint posterior of the false positive and false negative rates of membership inference attacks. For the same sample size and confidence, we derive confidence intervals for $\varepsilon$ around 40% narrower than prior work. The heuristic, which we adapt from label-only DP, can be used to further reduce the number of trained models needed to get enough samples by up to 2 orders of magnitude.

View on arXivView PDF

Code Implementations(1)

MIT

A library for statistically estimating the privacy of ML pipelines from membership inference attacks

3810Python, ShellAug 3, 20221 years agoMIT
machine-learningprivacy-preserving-machine-learning

Similar Papers

Cite this paper

@article{zanellabguelin2022bayesian,
  title  = {Bayesian Estimation of Differential Privacy},
  author = {Santiago Zanella-Béguelin and Lukas Wutschitz and Shruti Tople and Ahmed Salem and Victor Rühle and Andrew Paverd and Mohammad Naseri and Boris Köpf and Daniel Jones},
  year   = {2022},
  eprint = {2206.05199},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.05199}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.05199.svg)](https://codeofpaper.com/paper/2206.05199)

Discussion