Dwork Roth 2014 - Advanced Composition and the Gaussian Mechanism
Summary
Over adaptive uses of -DP mechanisms, the privacy loss grows like rather than if one accepts a small extra : with (Thm. 3.20). The proof turns the privacy loss into a sum of bounded martingale differences and applies Azuma’s inequality. The same section introduces the Gaussian mechanism ( sensitivity, -DP) and remarks on what composition does and does not guarantee.
Overview
Basic composition is linear in ; the question is whether it can be improved, and for what kinds of composition. Two scenarios the definitions must cover (p. 48): (1) repeated use of DP algorithms on the same database (the same or different mechanisms, modular construction); (2) repeated use on different databases that may contain information about the same individual, where the adversary may even influence the makeup of the new databases. This is “fundamentally different” from repeatedly querying a fixed database.
Main Content
The composition experiment (pp. 48-49)
Let be a family of database access mechanisms and a probabilistic, stateful adversary. Experiment : for : (1) outputs two adjacent databases , a mechanism and parameters ; (2) receives . ’s view is its coin tosses and all outputs . Intuition: let hold Bob’s data and be the same with Bob deleted. Experiment 0 is the “real world” where Bob’s data is used in many releases; experiment 1 the “ideal world”. DP requires the views to be “close”.
Definition 3.7 - DP under -fold adaptive composition (p. 49)
satisfies -differential privacy under -fold adaptive composition if for every adversary , , where is the view in experiment . -DP under -fold adaptive composition instead requires .
Theorem 3.20 - Advanced composition (p. 49)
For all , the class of -differentially private mechanisms satisfies -differential privacy under -fold adaptive composition for
Proof (pp. 50-52)
Case . A view is ( = adversary’s coins). Let . If , then for every : , i.e. . The log-likelihood ratio decomposes by the chain rule: (the adversary’s coin term cancels since have the same law). Conditioning on a prefix fixes , so and . By -DP, (); by Lemma 3.18, (). Azuma (Lemma 3.19) with gives , which is the claim. (The printed proof writes for the mean bound, a notational slip for .) Case . Use Lemma 3.17 part 2 for each mechanism chosen: is -close to a variable such that conditioned on every prefix, and (triangle inequality for statistical distance). That reduces to the case: , and since is -close to , Lemma 3.17 part 1 gives and hence the stated guarantee.
Corollary 3.21 - Choosing per-mechanism (p. 52)
Given target and , to ensure cumulative privacy loss over mechanisms, it suffices that each is -DP with
Proof (p. 52). By Thm. 3.20 the composition is with (the printed proof writes the second term as , simplifying ; for one has , and the first term equals while the second is at most for and , so still holds). “When one cares about optimizing constants… can be set more tightly by appealing directly to the composition theorem.”
Example 3.7 - Bob's lifetime (p. 52)
Setup. Over a lifetime Bob is in databases, each -DP, with no coordination among administrators. Question. What keeps cumulative privacy loss at most with probability at least ? Solution as printed. Take ; then , and Theorem 3.20 “says” . Interpretation. Essentially optimal against an arbitrary adversary when there is no coordination among databases. Own check: plugging into the full formula gives , slightly above 1; solving gives . The printed keeps only the leading term. Corollary 3.21’s conservative choice is .
How many queries? For fixed , Theorem 3.20 allows close to counting queries with non-trivial accuracy (error ) on a database of size , and close to queries with noise , below the sampling error. By coordinating noise one can do dramatically better (even exponentially many queries, Ch. 4), and without coordination the advanced-composition bound is almost tight (Dwork, Naor, Vadhan).
Laplace versus Gauss (Sec. 3.5.3, pp. 53-54)
Definition 3.8 - -sensitivity (p. 53)
. The Gaussian mechanism with parameter adds zero-mean Gaussian noise with variance (the book’s wording; read as the bound below) in each of coordinates.
Theorem 3.22 - Gaussian mechanism (p. 53)
Let be arbitrary. For , the Gaussian mechanism with parameter is -differentially private. (Proved in Appendix A, outside this capture.)
Advantages of Gaussian noise: it is the same type as other noise sources; the sum of Gaussians is Gaussian, so the effect on statistical analysis is easier to understand and correct for. The two mechanisms give the same cumulative loss under composition, so although each Gaussian release has a weaker guarantee, the cumulative effects are comparable; if is sufficiently (subpolynomially) small, “in practice we will never experience the weakness of the guarantee.” Theoretical disadvantage: Report Noisy Max with Laplace noise is -DP independent of the number of candidates when all scores are equal on neighbouring databases. With Gaussian noise and a number of candidates large compared to , the max selects exactly the events with large Gaussian noise (probability less than ), far out on the tail where the guarantee no longer holds.
Remarks on composition (Sec. 3.5.4, pp. 54-55)
- Weak quantification. With the adversary choosing with Bob’s data and without, the adversary has little advantage determining . But this is weak quantification: the adversary is unlikely to distinguish reality from any given alternative, not from all alternatives simultaneously. If there are a zillion databases and Bob is in 10,000, we are not simultaneously protecting Bob’s absence from all the others (analogous to the quantification in -DP where a pair of neighbours is fixed in advance).
- Humans and ghosts. Intuitively an -DP database with few bits per record is less protective than one with the same containing our whole medical history. The composition theorems resolve this: imagine beings (humans have records in databases; ghosts have none) who otherwise behave identically. The adversary has 50 years to decide whether a 50-year-old target is a ghost or human: it can enrol patients, populate databases, expose the target to chemicals, and know every database the target would appear in. The composition theorems say the guarantee of each database, regardless of data type, complexity or sensitivity, gives comparable protection for the human/ghost bit.
Examples
Basic vs advanced composition (own computation, , ).
| per-query | basic | advanced | |
|---|---|---|---|
| 10 | 0.1 | 1.0 | 1.77 |
| 100 | 0.1 | 10.0 | 6.31 |
| 1000 | 0.1 | 100.0 | 27.1 |
| 100 | 0.01 | 1.0 | 0.54 |
| 10,000 | 0.01 | 100.0 | 6.26 |
Advanced composition is worse than basic for small or large (first row) because of the constant, and wins once with small per-query ; use the smaller of the two valid bounds.
import math
def advanced(k, eps, delta_prime):
return math.sqrt(2*k*math.log(1/delta_prime))*eps + k*eps*(math.exp(eps)-1)
def per_query_eps(k, target_eps, delta_prime, tol=1e-12):
"""Largest eps with advanced(k, eps, delta_prime) <= target_eps (bisection)."""
lo, hi = 0.0, target_eps
while hi - lo > tol:
mid = (lo+hi)/2
if advanced(k, mid, delta_prime) <= target_eps: lo = mid
else: hi = mid
return lo
k, dp = 10_000, math.exp(-32)
print(1/per_query_eps(k, 1.0, dp)) # 812.3 (Example 3.7: printed 1/801 is the leading-term approximation)
print(advanced(k, 1/801, dp)) # 1.0143
# Gaussian mechanism calibration (Thm 3.22): eps in (0,1), L2 sensitivity 1
eps, delta = 0.5, 1e-5
sigma = math.sqrt(2*math.log(1.25/delta)) / eps
print(sigma) # about 9.69Connections
- Marketing measurement. A reporting programme with many weekly or daily cuts of the same users composes. Under basic composition 365 daily reports at cost ; with advanced composition () about . The accounting method can change the usable noise level by a factor of three or more, so ask which composition theorem a platform’s stated uses.
- Gaussian noise is attractive for downstream Bayesian models because it is conjugate to Gaussian likelihoods (Gaussian Distributions and Algebra): DP noise adds a known variance term to the observation model.
- “Humans and ghosts”: the guarantee is per person across all databases, which is the relevant protection for users appearing in many advertiser and platform datasets (Identity Fragmentation and the Privacy-Era Limits of User-Level Tests).
See Also
- Dwork Roth 2014 - Basic Composition and Divergence Tools
- Dwork Roth 2014 - Sparse Vector Technique
- Dwork 2006 - Sensitivity in General Metric Spaces (original mention of sensitivity and Gaussian noise)
- Mironov 2017 - Renyi Differential Privacy - Overview and Dong Roth Su 2022 - Gaussian Differential Privacy - Overview (tighter composition accounting than Thm. 3.20)