Implementing the Exponential Mechanism with Base-2 Differential Privacy
Christina Ilvento
Abstract
Despite excellent theoretical support, Differential Privacy (DP) can still be a challenge to implement in practice. In part, this challenge is due to the concerns associated with translating arbitrary- or infinite-precision theoretical mechanisms to the reality of floating point or fixed-precision. Beginning with the troubling result of Mironov demonstrating the security issues of using floating point for implementing the Laplace mechanism, there have been many reasonable questions raised concerning the vulnerabilities of real-world implementations of DP. In this work, we examine the practicalities of implementing the exponential mechanism of McSherry and Talwar. We demonstrate that naive or malicious implementations can result in catastrophic privacy failures. To address these problems, we show that the mechanism can be implemented exactly for a rich set of utility functions and values of the privacy parameter epsilon with limited practical overhead in running time and minimal code complexity. How do we achieve this result? We employ a simple trick of switching from base-e to base 2, allowing us to perform precise base-2 arithmetic. A short, precise expression is always available for epsilon, and the only approximation error we incur is the conversion of the base-2 privacy parameter back to base-e for reporting purposes. The core base-2 arithmetic of the mechanism can be simply and efficiently implemented using open-source high precision arithmetic libraries. Furthermore, the exact nature of the implementation lends itself to simple monitoring of correctness and proofs of privacy.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Are We There Yet? Timing and Floating-Point Attacks on Differential Privacy Systems cites The Discrete Gaussian for Differential Privacy
- The Discrete Gaussian for Differential Privacy cites Permute-and-Flip: A new mechanism for differentially private selection
- Secure Multi-party Computation of Differentially Private Heavy Hitters cites Differentially Private Password Frequency Lists
- OpBoost: A Vertical Federated Tree Boosting Framework Based on Order-Preserving Desensitization cites The Discrete Gaussian for Differential Privacy
Cited by top-tier papers10
- The Discrete Gaussian for Differential PrivacyClément L. Canonne, Gautam Kamath, Thomas SteinkeNeurIPS 2020 · 355 citations
- Permute-and-Flip: A new mechanism for differentially private selectionRyan McKenna, Daniel SheldonNeurIPS 2020 · 66 citations
- Are We There Yet? Timing and Floating-Point Attacks on Differential Privacy SystemsJiankai Jin, Eleanor McMurtry, Benjamin I. P. Rubinstein, Olga OhrimenkoS&P 2022 · 57 citations
- OpBoost: A Vertical Federated Tree Boosting Framework Based on Order-Preserving DesensitizationXiaochen Li, Yuke Hu, Weiran Liu, Hanwen Feng et al.VLDB 2023 · 42 citations
- Secure Multi-party Computation of Differentially Private Heavy HittersJonas Böhler, Florian KerschbaumCCS 2021 · 34 citations
Builds on1
Related papers
- Exact Privacy Guarantees for Markov Chain Implementations of the Exponential Mechanism with Artificial AtomsJeremy Seeman, Matthew Reimherr, Aleksandra B. SlavkovicNeurIPS 2021 · 12 citations
- Verified Foundations for Differential PrivacyMarkus de Medeiros, Muhammad Naveed, Tancrède Lepoint, Temesghen Kahsai et al.PLDI 2025 · 7 citations
- Widespread Underestimation of Sensitivity in Differentially Private Libraries and How to Fix ItSílvia Casacuberta, Michael Shoemate, Salil P. Vadhan, Connor WagamanCCS 2022 · 12 citations
- Differentially Private QuantilesJennifer Gillenwater, Matthew Joseph, Alex KuleszaICML 2021 · 2 citations
- DP-Sniper: Black-Box Discovery of Differential Privacy Violations using ClassifiersBenjamin Bichsel, Samuel Steffen, Ilija Bogunovic, Martin T. VechevS&P 2021 · 53 citations
