Dwork Roth 2014 - Basic Composition and Divergence Tools
Summary
Simple composition: running an -DP and an -DP algorithm yields -DP (Thm. 3.14-3.16). To prove sharper bounds the book rephrases DP via max-divergence and its -approximate version (Remark 3.2), proves their coupling characterisation (Lemma 3.17), bounds KL by (Lemma 3.18), and states Azuma’s inequality (Lemma 3.19) for the next note’s advanced composition. Chapter 3.1 collects the Chernoff, Azuma and Stirling bounds.
Overview
“The combination of two differentially private algorithms [should] be differentially private itself… Of course the parameters and will necessarily degrade”: repeatedly computing the same statistic with an -DP Laplace mechanism lets the average converge to the truth, so the guarantee must weaken with repeated use. “It is a strength of differential privacy that composition is ‘automatic,’ in that the bounds obtained hold without any special effort by the database curator.”
Main Content
Probabilistic tools (Sec. 3.1, pp. 28-29)
Theorem 3.1 - Additive Chernoff bound
independent with ; , . Then and .
Theorem 3.2 - Multiplicative Chernoff bound
Same setting. and .
Theorem 3.3 - Azuma's inequality
Let be a function of random variables , taking values in , bounded. Let be the maximum effect of on : for all , . Then .
Theorem 3.4 - Stirling's approximation
.
Basic composition (Sec. 3.5, pp. 41-43)
Theorem 3.14 - Composition of two -DP algorithms (p. 42)
Let be -DP and be -DP. Then is -differentially private.
Proof (p. 42)
Fix with and . By independence of the two mechanisms’ coins,
By symmetry the ratio is at least .
Corollary 3.15 (p. 43)
If is -DP for , then is -DP.
Theorem 3.16 - Basic composition for (p. 43)
If is -DP for , then is -differentially private. (Proof in Appendix B, due to Dwork and Lei; outside this capture.)
Divergences (Sec. 3.5.1, pp. 43-48)
Definition 3.5 - KL-divergence (p. 43)
(a fraction with zero denominator is infinite). with equality iff are identically distributed; is not symmetric, does not satisfy the triangle inequality, and can be infinite when .
Definition 3.6 - Max divergence and -approximate max divergence (pp. 43-44)
Remark 3.2 (p. 44)
is -DP iff for every two neighbours : and . is -DP iff and .
The statistical distance is ; are -close if .
Lemma 3.17 - Approximate max-divergence via coupling (pp. 44-47)
- iff there exists a random variable with and .
- Both and iff there exist with , and .
Proof sketch (pp. 44-47)
Part 1, (). For every : . (). Let ; then . Lower the mass of on down to and raise it on (there is enough room since total mass removed is at most the mass available in ) while keeping there; then and . Part 2, (). . (). On move both distributions toward each other: set , which lies in ; the mass moved on each side totals . Do the same on with total ; if the leftover of normalisation is fixed by shifting mass on points where , keeping and .
Lemma 3.18 - KL bound from max-divergence (p. 47)
If and then .
Proof (p. 47)
since both are nonnegative (log-sum inequality). That sum equals , using and . The identity used is , each term of which is at most because .
Lemma 3.19 - Azuma's inequality for martingale-difference sums (pp. 47-48)
Let be real-valued random variables with and, for every , . Then for every :
Examples
Two-hospital composition and budget split (derived). A lab runs three analyses on the same cohort with , and : by Thm. 3.16 the total is . If the total budget is and there are 10 equally important reports, each can use under basic composition.
import numpy as np
rng = np.random.default_rng(0)
# Why composition must degrade: averaging k repeated eps-DP Laplace answers of one count converges to the truth
true, eps = 100.0, 0.5
for k in (1, 10, 100, 1000):
ans = true + rng.laplace(0, 1/eps, size=k)
print(k, abs(ans.mean() - true).round(3), "total eps (basic) =", k*eps)
# Max-divergence of two Laplace outputs for a count with sensitivity 1 equals eps
z = np.linspace(80, 120, 100001)
lp = lambda mu: np.exp(-eps*np.abs(z-mu))*eps/2
print(np.log(lp(100)/lp(101)).max(), eps) # D_inf = epsConnections
- Marketing measurement. Basic composition is the accounting rule for “privacy budget” across weekly reports: a total budget over releases means each unless advanced composition is used. Because repeated releases of the same time series average away the noise, a reporting cadence is a privacy decision as well as an analytic one.
- Max-divergence is the likelihood-ratio language for the hypothesis-testing view of DP in Wasserman Zhou 2010 - Differential Privacy as a Hypothesis-Testing Constraint.
See Also
- Dwork Roth 2014 - Advanced Composition and the Gaussian Mechanism
- Dwork Roth 2014 - Sparse Vector Technique
- Dwork 2006 - Postprocessing, Composition and Group Privacy (adaptive -DP composition with a budget)