Algorithm Search⌘K

Theoremcore

Advanced composition theorem

Also called strong composition theorem, Dwork-Rothblum-Vadhan composition.

k-fold adaptive composition of (epsilon, delta)-DP mechanisms is (epsilon', k delta + delta')-DP with epsilon' = epsilon sqrt(2k ln(1/delta')) + k epsilon (e^epsilon - 1), so loss grows as sqrt(k).

The advanced composition theorem shows that the privacy loss of many private steps grows like the square root of their number, not linearly, if you accept a small failure probability. For kk mechanisms that are each (ε,δ)(\varepsilon, \delta)-differentially private, chosen adaptively, and for any δ′>0\delta' > 0, the composition is (ε′,kδ+δ′)(\varepsilon', k\delta + \delta')-DP with

ε′=2kln⁡(1/δ′) ε+kε(eε−1).\varepsilon' = \sqrt{2k \ln(1/\delta')}\,\varepsilon + k\varepsilon(e^{\varepsilon} - 1).

For small ε\varepsilon the second term is about kε2k\varepsilon^2, and ε′\varepsilon' is about ε2kln⁡(1/δ′)\varepsilon\sqrt{2k\ln(1/\delta')}. The basic composition theorem gives kεk\varepsilon instead. With k=100k = 100 steps of ε=0.1\varepsilon = 0.1 and δ′=10−6\delta' = 10^{-6}, the bound is 6.30826.3082 against 10. The proof views the total privacy loss as a sum of bounded terms with a small mean and applies the Azuma inequality.

Statement

Fix a symmetric neighbor relation. The k-fold adaptive composition experiment for a class F\mathcal F of mechanisms and an adversary AA runs, for a bit b∈{0,1}b \in \{0, 1\}, the steps i=1,…,ki = 1, \ldots, k:

  1. AA picks two neighboring datasets xi0∼xi1x_i^0 \sim x_i^1 and a mechanism Mi∈FM_i \in \mathcal F, as a function of its coins and of the outputs y1,…,yi−1y_1, \ldots, y_{i-1}.
  2. AA receives yi∼Mi(xib)y_i \sim M_i(x_i^b), with fresh coins.

Let VbV^b be the view of AA (its coins and y1,…,yky_1, \ldots, y_k) in experiment bb. The class F\mathcal F is (ε′,δ′)(\varepsilon', \delta')-DP under kk-fold adaptive composition if for every adversary AA and every event SS, Pr⁡[V0∈S]≤eε′Pr⁡[V1∈S]+δ′\Pr[V^0 \in S] \le e^{\varepsilon'} \Pr[V^1 \in S] + \delta', and the same with 00 and 11 swapped. The case xib=xbx_i^b = x^b for all ii is the plain composition of kk mechanisms on one pair of neighbors.

Theorem (Dwork, Rothblum and Vadhan 2010; Dwork-Roth Theorem 3.20). For all ε,δ,δ′≥0\varepsilon, \delta, \delta' \ge 0, the class of (ε,δ)(\varepsilon, \delta)-DP mechanisms is (ε′,kδ+δ′)(\varepsilon', k\delta + \delta')-DP under kk-fold adaptive composition, where

ε′=2kln⁡(1/δ′) ε+kε(eε−1).\varepsilon' = \sqrt{2k\ln(1/\delta')}\,\varepsilon + k\varepsilon(e^{\varepsilon} - 1).

Corollary (Dwork-Roth Corollary 3.21). For 0<ε′<10 < \varepsilon' < 1 and δ′>0\delta' > 0, it is enough that each step is (ε,δ)(\varepsilon, \delta)-DP with ε=ε′/(22kln⁡(1/δ′))\varepsilon = \varepsilon' / (2\sqrt{2k\ln(1/\delta')}) to get (ε′,kδ+δ′)(\varepsilon', k\delta + \delta')-DP in total.

In plain words

Each private answer moves the odds about one person up or down by a small amount. Basic composition assumes that every answer pushes the odds in the same direction by the full amount. That can happen, but it is very unlikely when there are many answers.

Most answers push the odds only a little, and some push them the other way. The pushes add up like the steps of a random walk. A random walk of many small steps usually ends near where its average drift takes it, plus a spread that grows like the square root of the number of steps.

So, except with a small probability that you choose, the total push stays far below the worst case. You pay for that small probability in the second privacy parameter.

Proof

The proof below is full for δ=0\delta = 0. The extension to δ>0\delta > 0 is a marked sketch with the exact locator.

Lemma 1 (KL bound). Let P,QP, Q have densities p,qp, q with ∣ln⁡(p/q)∣≤ε|\ln(p/q)| \le \varepsilon everywhere. Then the KL divergence satisfies D(P∥Q)≤ε(eε−1)D(P \| Q) \le \varepsilon(e^{\varepsilon} - 1).

Proof. Since D(Q∥P)≥0D(Q \| P) \ge 0, we have D(P∥Q)≤D(P∥Q)+D(Q∥P)=∫(p−q)ln⁡(p/q)≤ε∫∣p−q∣D(P \| Q) \le D(P\|Q) + D(Q\|P) = \int (p - q)\ln(p/q) \le \varepsilon \int |p - q|. Let S={p>q}S = \{p > q\}, a=P(S)a = P(S), b=Q(S)b = Q(S) and t=a−bt = a - b, so ∫∣p−q∣=2t\int|p - q| = 2t. The bound on the ratio gives a≤eεba \le e^{\varepsilon} b and 1−b≤eε(1−a)1 - b \le e^{\varepsilon}(1 - a). These say t≤(eε−1)bt \le (e^{\varepsilon} - 1)b and eεt≤(eε−1)(1−b)e^{\varepsilon} t \le (e^{\varepsilon} - 1)(1 - b). Adding them gives t≤(eε−1)/(eε+1)t \le (e^{\varepsilon} - 1)/(e^{\varepsilon} + 1), which is the total variation bound. So ε∫∣p−q∣≤2ε(eε−1)/(eε+1)≤ε(eε−1)\varepsilon \int |p - q| \le 2\varepsilon(e^{\varepsilon} - 1)/(e^{\varepsilon} + 1) \le \varepsilon(e^{\varepsilon} - 1).

Lemma 2 (tail to DP). Let L(v)=ln⁡(Pr⁡[V0=v]/Pr⁡[V1=v])L(v) = \ln(\Pr[V^0 = v]/\Pr[V^1 = v]). If Pr⁡[L(V0)>ε′]≤δ′\Pr[L(V^0) > \varepsilon'] \le \delta', then Pr⁡[V0∈S]≤eε′Pr⁡[V1∈S]+δ′\Pr[V^0 \in S] \le e^{\varepsilon'}\Pr[V^1 \in S] + \delta' for every SS.

Proof. Let B={v:L(v)>ε′}B = \{v : L(v) > \varepsilon'\}. Then Pr⁡[V0∈S]≤Pr⁡[V0∈S∖B]+Pr⁡[V0∈B]≤eε′Pr⁡[V1∈S∖B]+δ′\Pr[V^0 \in S] \le \Pr[V^0 \in S \setminus B] + \Pr[V^0 \in B] \le e^{\varepsilon'}\Pr[V^1 \in S \setminus B] + \delta'.

The case δ=0\delta = 0. Fix an adversary. The coins rr of AA have the same law in both experiments. Given rr and a prefix y1,…,yi−1y_1, \ldots, y_{i-1}, the adversary's choices xi0,xi1,Mix_i^0, x_i^1, M_i are fixed. So the log ratio splits into a sum:

L(r,y1,…,yk)=∑i=1kci,ci=ln⁡Pr⁡[Mi(xi0)=yi]Pr⁡[Mi(xi1)=yi].L(r, y_1, \ldots, y_k) = \sum_{i=1}^k c_i, \qquad c_i = \ln\frac{\Pr[M_i(x_i^0) = y_i]}{\Pr[M_i(x_i^1) = y_i]}.

Run experiment 0 and condition on rr and the prefix. Then ∣ci∣≤ε|c_i| \le \varepsilon, because MiM_i is ε\varepsilon-DP, and E[ci∣past]=D(Mi(xi0)∥Mi(xi1))≤βE[c_i \mid \text{past}] = D(M_i(x_i^0) \| M_i(x_i^1)) \le \beta with β=ε(eε−1)\beta = \varepsilon(e^{\varepsilon} - 1), by Lemma 1. Let Zi=ci−E[ci∣past]Z_i = c_i - E[c_i \mid \text{past}]. The ZiZ_i form a martingale difference sequence, and given the past, ZiZ_i lies in an interval of length 2ε2\varepsilon. The Azuma-Hoeffding inequality gives Pr⁡[∑iZi≥t]≤exp⁡(−2t2/(k(2ε)2))\Pr[\sum_i Z_i \ge t] \le \exp(-2t^2/(k(2\varepsilon)^2)). Take t=ε2kln⁡(1/δ′)t = \varepsilon\sqrt{2k\ln(1/\delta')}. Then the bound is δ′\delta', and since ∑ici≤kβ+∑iZi\sum_i c_i \le k\beta + \sum_i Z_i,

Pr⁡[L>kε(eε−1)+ε2kln⁡(1/δ′)]≤δ′.\Pr\left[L > k\varepsilon(e^{\varepsilon} - 1) + \varepsilon\sqrt{2k\ln(1/\delta')}\right] \le \delta'.

Lemma 2 gives the inequality from experiment 0 to experiment 1. The class is closed under the swap of xi0x_i^0 and xi1x_i^1, so the same argument gives the other direction.

The case δ>0\delta > 0 (sketch). By Dwork-Roth Lemma 3.17, an (ε,δ)(\varepsilon, \delta)-DP pair of output laws is within statistical distance δ\delta of a pair of laws whose log ratio is bounded by ε\varepsilon. Replace each step by such a pair. By the triangle inequality for statistical distance, the view changes by at most kδk\delta. The δ=0\delta = 0 argument applies to the replaced experiment and gives (ε′,δ′)(\varepsilon', \delta'), and the change of the view adds kδk\delta. The full proof is in Dwork and Roth, Section 3.5.2, in the proof of Theorem 3.20. ■\blacksquare

Consequences

  • More queries for the same budget. With a fixed total budget, each of kk queries can get noise for ε≈ε′/k\varepsilon \approx \varepsilon'/\sqrt{k} instead of ε′/k\varepsilon'/k. Dwork and Roth use this to answer close to n2n^2 counting queries with error o(n)o(n) on a dataset of size nn.
  • Crossover with basic composition. For ε=0.1\varepsilon = 0.1 and δ′=10−6\delta' = 10^{-6} the bound is below kεk\varepsilon only for k≥35k \ge 35:
kk basic, kεk\varepsilon advanced, ε′\varepsilon'
10 1.0 1.7674
20 2.0 2.5611
50 5.0 4.2428
100 10.0 6.3082
1000 100.0 27.1397
  • The first sqrt(k) accountant. The analysis of private learning by many noisy steps, for example DP-SGD, first used this theorem. Abadi et al. (2016) showed that tracking the moments of the privacy loss gives much less; see the moments accountant.
  • A heuristic, not a theorem. The simple form "εk\varepsilon\sqrt{k}" is only a guide. It drops the factor 2ln⁡(1/δ′)\sqrt{2\ln(1/\delta')} and the term kε(eε−1)k\varepsilon(e^{\varepsilon} - 1), and it is wrong when ε\varepsilon is not small.

Tightness

The square root growth cannot be removed. Take kk runs of randomized response with parameter ε\varepsilon. The privacy loss is ε(2A−k)\varepsilon(2A - k) with AA binomial with kk trials and success probability eε/(1+eε)e^{\varepsilon}/(1 + e^{\varepsilon}). Its mean is kεtanh⁡(ε/2)≈kε2/2k\varepsilon\tanh(\varepsilon/2) \approx k\varepsilon^2/2, and its standard deviation is about εk\varepsilon\sqrt{k}. By the central limit theorem, the ε′\varepsilon' needed for a fixed small δ′\delta' grows like εk\varepsilon\sqrt{k} times a factor that grows with ln⁡(1/δ′)\ln(1/\delta').

The constants are not exact. For k=100k = 100, ε=0.1\varepsilon = 0.1 and total δ=10−6\delta = 10^{-6}, the exact optimum of Kairouz, Oh and Viswanath is ε′=4.7746\varepsilon' = 4.7746, against the bound 6.30826.3082. The optimal composition theorem gives the exact value for every kk. The term kδk\delta is needed up to second-order terms: the example in the Tightness section of the basic composition page loses 1−(1−δ)k1 - (1 - \delta)^k.

History

Dwork, Rothblum and Vadhan (2010) proved the theorem in a paper on boosting for queries. They also set up the adaptive experiment above, in which an adversary picks the datasets and the mechanisms one step at a time, and showed that the bound holds there. Dwork and Roth (2014) give it as Theorem 3.20, with the proof through the KL bound and Azuma's inequality. Kairouz, Oh and Viswanath (2015) found the exact optimum for identical steps, and Murtagh and Vadhan (2016) showed that the exact optimum for different steps is hard to compute. Later work moved to divergences that compose by a plain sum, such as Renyi DP and zCDP, and to numerical accountants.

References

  1. Cynthia Dwork, Guy N. Rothblum and Salil Vadhan, Boosting and differential privacy, FOCS 2010, pages 51 to 60, the k-fold adaptive composition experiment and the composition theorem
  2. Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), pages 211 to 407, 2014, Section 3.5.1, Lemma 3.17 (approximate max divergence as a statistical distance plus a max divergence), Lemma 3.18 (the KL bound) and Lemma 3.19 (Azuma); Section 3.5.2, Definition 3.7, Theorem 3.20 and its proof, and Corollary 3.21
  3. Peter Kairouz, Sewoong Oh and Pramod Viswanath, The composition theorem for differential privacy, IEEE Transactions on Information Theory 63(6), pages 4037 to 4049, 2017, the optimal composition theorem, which shows how far the bound is from exact

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/0CAVYC/text.yaml