On the (Im)Possibility of Estimating Various Notions of Differential Privacy (short paper)

Daniele Gorla, Louis Jalouzot, Federica Granese, Catuscia Palamidessi, Pablo Piantanida

TL;DR

This paper explores whether a user can verify the privacy level ($\epsilon$) of a "black-box" data obfuscation mechanism just by looking at its outputs. The authors prove that while a general-purpose privacy estimator is theoretically impossible, provable estimation is achievable if we assume the mechanism is "smooth" (Lipschitz continuous), providing a practical histogram-based algorithm to do just that.

What Problem Does This Paper Address?

Differential Privacy (DP) has become the gold standard for data protection, used by tech giants like Apple and Google. However, there is a significant "trust gap": users are told their data is protected by a specific privacy parameter ($\epsilon$), but they usually have no way to verify this. They are faced with a black-box scenario—they can see the obfuscated data coming out, but they don't know the internal math of the mechanism.

The authors set out to answer a fundamental question: Is it possible to build an algorithm that takes samples from an unknown mechanism and accurately estimates its privacy level? They specifically look at two modern flavors of privacy: Local Differential Privacy (LDP), where data is scrambled before it even leaves the user's device, and Rényi Differential Privacy (LRDP), a more flexible mathematical relaxation of DP.

Methods

The paper approaches the problem through two lenses: theoretical impossibility and algorithmic possibility.

  1. The Impossibility Proof: The authors first prove a "no-go" theorem. They show that without any prior assumptions about the underlying probability distributions, no algorithm can exist that provides a guaranteed estimate of $\epsilon$ with a finite number of samples. Essentially, a malicious black box could always hide a "privacy leak" in a tiny, unsampled corner of the distribution.
  2. The Histogram-Based Estimator: To bypass this impossibility, the authors introduce a reasonable assumption: Lipschitzness. If we assume the probability densities of the mechanism don't change too abruptly (i.e., they are "smooth"), estimation becomes possible.
  3. Algorithm Design: They propose a two-step approach:
  4. Algorithm 1: Estimates the privacy loss for a specific pair of input values by dividing the output space into sub-intervals (histograms), counting samples in each, and calculating their ratio.
  5. Algorithm 2: Scales this up to estimate the overall privacy of the mechanism by bucketing the entire input space and running the pairwise estimator across the mid-points of these buckets.

Datasets

The paper does not use traditional "real-world" datasets (like census or medical data). Instead, it uses synthetic data generated from standard DP mechanisms to validate the theory. Specifically, they test their estimator against:

  • Laplacian Mechanisms: The classic noise-addition method for DP.
  • Gaussian Mechanisms: Frequently used in machine learning contexts.

These serve as benchmarks because their true $\epsilon$ values are known, allowing the authors to measure the accuracy of their "black-box" estimates.

Key Insights and Ideas

  • The "Smoothness" Requirement: The most critical insight is that Lipschitz continuity is the "key" that unlocks the black box. Most standard privacy mechanisms (like Laplace and Gaussian) naturally satisfy this property, making the authors' approach widely applicable in the real world.
  • Adaptive Sampling: The impossibility result (Theorem 1) is particularly strong because it holds even if the estimator is "adaptive"—meaning even if the algorithm can decide to keep sampling based on what it has already seen, it still can't guarantee a correct answer without assumptions.
  • LDP vs. LRDP: While Rényi DP (LRDP) is mathematically more complex because it involves averaging over distributions rather than taking a pointwise maximum, the authors successfully adapted their histogram method to provide guarantees for it as well.

Key Results

  • Provable Guarantees: The authors provide explicit formulas (Theorems 2 and 3) for the number of samples ($n$) and the number of histogram bins ($m$) required to reach a desired level of precision and confidence.
  • Theory vs. Practice Gap: One of the most striking findings is the massive gap between mathematical bounds and practical performance.
  • For LDP, the number of samples needed in practice to get a good estimate was about 400 times lower than the theoretical requirement.
  • For LRDP, the practical requirement was a staggering $10^5$ times smaller than the theoretical bound.
  • Validation: The experiments confirmed that the estimator consistently converges to the true $\epsilon$ as the number of samples increases, validating the histogram approach for both Laplacian and Gaussian noise.

Limitations and Future Work

  • Dependency on the Lipschitz Constant: The algorithm requires knowing (or assuming) the Lipschitz constant $C$. If a user underestimates how "jumpy" the mechanism is, the privacy estimate could be dangerously over-optimistic.
  • Continuous vs. Discrete: The possibility results focus on continuous output spaces. While many mechanisms are continuous, extending this with the same level of rigor to purely discrete settings remains an area for further detail.
  • Computational Complexity: As the dimensionality of the data increases, the number of "buckets" required for the input and output spaces could grow significantly, potentially leading to a "curse of dimensionality" for the estimator.

Reference: Gorla, D., Jalouzot, L., Granese, F., Palamidessi, C., & Piantanida, P. (2023). On the (Im)Possibility of Estimating Various Notions of Differential Privacy. ICTCS 2023.

Summary updated

BibTeX
@inproceedings{gorla2023im,
  author = {Daniele Gorla and Louis Jalouzot and Federica Granese and Catuscia Palamidessi and Pablo Piantanida},
  title = {{On the (Im)Possibility of Estimating Various Notions of Differential Privacy (short paper)}},
  booktitle = {ICTCS},
  year = {2023},
  url = {https://openreview.net/forum?id=doCMaK5uXE},
}
Figure