Lune

OOPSLA2020Top-tier venue

Testing differential privacy with dual interpreters

Hengchu Zhang, Edo Roth, Andreas Haeberlen, Benjamin C. Pierce, Aaron Roth

Abstract

Applying differential privacy at scale requires convenient ways to check that programs computing with sensitive data appropriately preserve privacy. We propose here a fully automated framework for testing differential privacy, adapting a well-known "pointwise" technique from informal proofs of differential privacy. Our framework, called DPCheck, requires no programmer annotations, handles all previously verified or tested algorithms, and is the first fully automated framework to distinguish correct and buggy implementations of PrivTree, a probabilistically terminating algorithm that has not previously been mechanically checked.

We analyze the probability of DPCheck mistakenly accepting a non-private program and prove that, theoretically, the probability of false acceptance can be made exponentially small by suitable choice of test size.

We demonstrate DPCheck's utility empirically by implementing all benchmark algorithms from prior work on mechanical verification of differential privacy, plus several others and their incorrect variants, and show DPCheck accepts the correct implementations and rejects the incorrect variants.

We also demonstrate how DPCheck can be deployed in a practical workflow to test differentially privacy for the 2020 US Census Disclosure Avoidance System (DAS).

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.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Verified Foundations for Differential Privacy cites Detecting Violations of Differential Privacy
  • Verified Foundations for Differential Privacy cites Advanced Probabilistic Couplings for Differential Privacy
  • Verified Foundations for Differential Privacy cites DP-Finder: Finding Differential Privacy Violations by Sampling and Optimization
  • Testing and Understanding Deviation Behaviors in FHE-Hardened Machine Learning Models cites Detecting Violations of Differential Privacy
  • Detecting Violations of Differential Privacy cites Advanced Probabilistic Couplings for Differential Privacy
  • Eureka: A General Framework for Black-box Differential Privacy Estimators cites Detecting Violations of Differential Privacy
  • Eureka: A General Framework for Black-box Differential Privacy Estimators cites DP-Finder: Finding Differential Privacy Violations by Sampling and Optimization
  • Eureka: A General Framework for Black-box Differential Privacy Estimators cites Statistical Quantification of Differential Privacy: A Local Approach
  • Eureka: A General Framework for Black-box Differential Privacy Estimators cites DP-Sniper: Black-Box Discovery of Differential Privacy Violations using Classifiers
  • Statistical Quantification of Differential Privacy: A Local Approach cites Detecting Violations of Differential Privacy
  • Statistical Quantification of Differential Privacy: A Local Approach cites Advanced Probabilistic Couplings for Differential Privacy
  • Statistical Quantification of Differential Privacy: A Local Approach cites DP-Finder: Finding Differential Privacy Violations by Sampling and Optimization
  • Statistical Quantification of Differential Privacy: A Local Approach cites DP-Sniper: Black-Box Discovery of Differential Privacy Violations using Classifiers
  • DP-Sniper: Black-Box Discovery of Differential Privacy Violations using Classifiers cites Detecting Violations of Differential Privacy
  • DP-Sniper: Black-Box Discovery of Differential Privacy Violations using Classifiers cites Advanced Probabilistic Couplings for Differential Privacy
  • DP-Sniper: Black-Box Discovery of Differential Privacy Violations using Classifiers cites DP-Finder: Finding Differential Privacy Violations by Sampling and Optimization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. DP-Sniper: Black-Box Discovery of Differential Privacy Violations using ClassifiersBenjamin Bichsel, Samuel Steffen, Ilija Bogunovic, Martin T. VechevS&P 2021 · 53 citations
  2. Statistical Quantification of Differential Privacy: A Local ApproachÖnder Askin, Tim Kutta, Holger DetteS&P 2022 · 19 citations
  3. Eureka: A General Framework for Black-box Differential Privacy EstimatorsYun Lu, Malik Magdon-Ismail, Yu Wei, Vassilis ZikasS&P 2024 · 16 citations
  4. Verified Foundations for Differential PrivacyMarkus de Medeiros, Muhammad Naveed, Tancrède Lepoint, Temesghen Kahsai et al.PLDI 2025 · 7 citations
  5. Testing and Understanding Deviation Behaviors in FHE-Hardened Machine Learning ModelsYiteng Peng, Daoyuan Wu, Zhibo Liu, Dongwei Xiao et al.ICSE 2025 · 1 citation

Builds on4

  1. Detecting Violations of Differential PrivacyZeyu Ding, Yuxin Wang, Guanhong Wang, Danfeng Zhang et al.CCS 2018 · 156 citations
  2. DP-Finder: Finding Differential Privacy Violations by Sampling and OptimizationBenjamin Bichsel, Timon Gehr, Dana Drachsler-Cohen, Petar Tsankov et al.CCS 2018 · 82 citations
  3. Advanced Probabilistic Couplings for Differential PrivacyGilles Barthe, Noémie Fong, Marco Gaboardi, Benjamin Grégoire et al.CCS 2016 · 67 citations
  4. Free Gap Information from the Differentially Private Sparse Vector and Noisy Max MechanismsZeyu Ding, Yuxin Wang, Danfeng Zhang, Dan KiferVLDB 2020 · 14 citations

Related papers

  1. CheckDP: An Automated and Integrated Approach for Proving Differential Privacy or Finding Precise CounterexamplesYuxin Wang, Zeyu Ding, Daniel Kifer, Danfeng ZhangCCS 2020 · 31 citations
  2. DP-Auditorium: A Large-Scale Library for Auditing Differential PrivacyWilliam Kong, Andrés Muñoz Medina, Mónica Ribero, Umar SyedS&P 2024 · 14 citations
  3. Approximate Algorithms for Verifying Differential Privacy with Gaussian DistributionsBishnu Bhusal, Rohit Chadha, A. Prasad Sistla, Mahesh ViswanathanCCS 2025
  4. Group and Attack: Auditing Differential PrivacyJohan Lokna, Anouk Paradis, Dimitar I. Dimitrov, Martin T. VechevCCS 2023 · 10 citations
  5. The Importance of Being Discrete: Measuring the Impact of Discretization in End-to-End Differentially Private Synthetic DataGeorgi Ganev, Meenatchi Sundaram Muthu Selva Annamalai, Sofiane Mahiou, Emiliano De CristofaroCCS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines