Algorithm Search⌘K

Theoremresearch

Optimal composition theorem

Also called Kairouz-Oh-Viswanath composition.

Gives the exact set of (epsilon', delta') that k-fold adaptive composition of (epsilon, delta)-DP mechanisms satisfies, through a hypothesis testing view and one worst-case mechanism.

The optimal composition theorem gives the exact privacy of kk private steps. For kk mechanisms that are each (ε,δ)(\varepsilon, \delta)-differentially private, chosen adaptively, Kairouz, Oh and Viswanath found the full set of pairs (ε′,δ′)(\varepsilon', \delta') for which the composition is (ε′,δ′)(\varepsilon', \delta')-DP, and showed that no smaller set is true. The key idea is the hypothesis testing view of privacy: a mechanism is (ε,δ)(\varepsilon, \delta)-DP exactly when no test that tries to tell two neighbors apart from the output does too well, as in the Neyman-Pearson lemma. One simple mechanism, a four-output version of randomized response, is the worst case for this test, so the composition of kk copies of it gives the exact answer. The basic and advanced composition theorems are upper bounds on this exact value.

Statement

Fix a symmetric neighbor relation, and use the kk-fold adaptive composition experiment of the advanced composition page, in which an adversary picks each pair of neighbors and each mechanism after it sees the earlier outputs.

The worst-case pair. For ε≥0\varepsilon \ge 0 and δ∈[0,1]\delta \in [0, 1], let P~ε,δ\tilde P_{\varepsilon,\delta} and Q~ε,δ\tilde Q_{\varepsilon,\delta} be the laws on the outputs {0,1,2,3}\{0, 1, 2, 3\} with

P~=(δ, (1−δ)eε1+eε, 1−δ1+eε, 0),Q~=(0, 1−δ1+eε, (1−δ)eε1+eε, δ).\tilde P = \left(\delta,\ \frac{(1-\delta)e^{\varepsilon}}{1+e^{\varepsilon}},\ \frac{1-\delta}{1+e^{\varepsilon}},\ 0\right), \qquad \tilde Q = \left(0,\ \frac{1-\delta}{1+e^{\varepsilon}},\ \frac{(1-\delta)e^{\varepsilon}}{1+e^{\varepsilon}},\ \delta\right).

Theorem (Kairouz, Oh and Viswanath). For all ε≥0\varepsilon \ge 0, δ∈[0,1]\delta \in [0, 1], k≥1k \ge 1 and ε′≥0\varepsilon' \ge 0, the class of (ε,δ)(\varepsilon, \delta)-DP mechanisms is (ε′,δ′)(\varepsilon', \delta')-DP under kk-fold adaptive composition if and only if δ′≥δk(ε′)\delta' \ge \delta_k(\varepsilon'), where

δk(ε′)=1−(1−δ)k+(1−δ)k(1+eε)k∑a=0k(ka)max⁡(0, eaε−eε′e(k−a)ε).\delta_k(\varepsilon') = 1 - (1-\delta)^k + \frac{(1-\delta)^k}{(1+e^{\varepsilon})^k}\sum_{a=0}^{k}\binom{k}{a}\max\left(0,\ e^{a\varepsilon} - e^{\varepsilon'}e^{(k-a)\varepsilon}\right).

At the points ε′=(k−2i)ε\varepsilon' = (k - 2i)\varepsilon, for i=0,1,…,⌊k/2⌋i = 0, 1, \ldots, \lfloor k/2 \rfloor, the sum is ∑l=0i−1(kl)(e(k−l)ε−e(k−2i+l)ε)\sum_{l=0}^{i-1}\binom{k}{l}\left(e^{(k-l)\varepsilon} - e^{(k-2i+l)\varepsilon}\right), which is the form in the paper. The bound is reached by kk independent copies of the pair (P~,Q~)(\tilde P, \tilde Q).

Different parameters (Murtagh and Vadhan). For steps with parameters (εi,δi)(\varepsilon_i, \delta_i), the exact value is 1−∏i(1−δi)(1−1∏i(1+eεi)∑S⊆[k]max⁡(0,e∑i∈Sεi−eε′e∑i∉Sεi))1 - \prod_i(1-\delta_i)\left(1 - \frac{1}{\prod_i(1+e^{\varepsilon_i})}\sum_{S \subseteq [k]}\max\left(0, e^{\sum_{i \in S}\varepsilon_i} - e^{\varepsilon'}e^{\sum_{i \notin S}\varepsilon_i}\right)\right). Computing it exactly is #P-complete, and it can be approximated to any accuracy in polynomial time.

In plain words

Think of an observer who sees all the outputs and must guess which of two neighboring datasets was used. A private mechanism is one for which every guessing rule makes many mistakes of one kind or the other.

Among all mechanisms with the same privacy level, one simple mechanism is the easiest to guess from. It sometimes tells the truth outright, and otherwise answers with a biased coin. Any other mechanism with the same level gives the observer less help than this one.

So, to know how much kk answers reveal in the worst case, you only need to study kk copies of this simple mechanism. Its outputs can be counted exactly, and the count gives the exact privacy of the combination.

Proof

The proof has three steps. Step 3, the computation, is full. Steps 1 and 2 are a sketch, and the full proof is in Kairouz, Oh and Viswanath (IEEE Transactions on Information Theory 2017), in the proof of the composition theorem through the hypothesis testing view.

The hockey-stick form. For laws P,QP, Q and ε′≥0\varepsilon' \ge 0, the smallest δ′\delta' with P(S)≤eε′Q(S)+δ′P(S) \le e^{\varepsilon'}Q(S) + \delta' for all SS is Hε′(P∥Q)=∑vmax⁡(0,P(v)−eε′Q(v))H_{\varepsilon'}(P\|Q) = \sum_v \max(0, P(v) - e^{\varepsilon'}Q(v)), the maximum being reached at S={v:P(v)>eε′Q(v)}S = \{v : P(v) > e^{\varepsilon'}Q(v)\}. So a pair is (ε′,δ′)(\varepsilon', \delta')-DP if and only if Hε′H_{\varepsilon'} is at most δ′\delta' in both orders.

Step 1 (worst case, sketch). A pair (P,Q)(P, Q) is (ε,δ)(\varepsilon, \delta)-DP if and only if every test of PP against QQ with type I error aa has type II error at least max⁡(0,1−δ−eεa,e−ε(1−δ−a))\max(0, 1 - \delta - e^{\varepsilon}a, e^{-\varepsilon}(1 - \delta - a)), as defined on the page on type I and type II errors. The pair (P~,Q~)(\tilde P, \tilde Q) reaches this bound for every aa. By Blackwell's theorem on the comparison of experiments, every (ε,δ)(\varepsilon, \delta)-DP pair is then the image of (P~,Q~)(\tilde P, \tilde Q) under one randomized map, applied to both.

Step 2 (composition, sketch). Apply Step 1 to each step of the experiment, given the prefix. The adaptive view in both experiments is then the image of kk independent copies of (P~,Q~)(\tilde P, \tilde Q) under one randomized map. A randomized map cannot increase the hockey-stick divergence (it is a post-processing). So the view is (ε′,δ′)(\varepsilon', \delta')-DP whenever the kk-fold product of (P~,Q~)(\tilde P, \tilde Q) is.

Step 3 (the computation). Let Pk,QkP^k, Q^k be the kk-fold products. Split the outputs v∈{0,1,2,3}kv \in \{0, 1, 2, 3\}^k in three groups.

  1. vv has a 0. Then Qk(v)=0Q^k(v) = 0, and vv adds Pk(v)P^k(v) to Hε′H_{\varepsilon'}. These outputs have total mass 1−(1−δ)k1 - (1-\delta)^k under PkP^k.
  2. vv has no 0 and has a 3. Then Pk(v)=0P^k(v) = 0, and vv adds nothing.
  3. v∈{1,2}kv \in \{1, 2\}^k with aa ones. Then Pk(v)=(1−δ)keaε/(1+eε)kP^k(v) = (1-\delta)^k e^{a\varepsilon}/(1+e^{\varepsilon})^k and Qk(v)=(1−δ)ke(k−a)ε/(1+eε)kQ^k(v) = (1-\delta)^k e^{(k-a)\varepsilon}/(1+e^{\varepsilon})^k. There are (ka)\binom{k}{a} such vv.

The sum of the three groups is δk(ε′)\delta_k(\varepsilon'). The pair is symmetric under the swap 0↔30 \leftrightarrow 3, 1↔21 \leftrightarrow 2, so the other order gives the same value. Thus the product is (ε′,δ′)(\varepsilon', \delta')-DP if and only if δ′≥δk(ε′)\delta' \ge \delta_k(\varepsilon'). With Step 2, δk(ε′)\delta_k(\varepsilon') is enough for every adaptive composition.

Necessity. The pair (P~,Q~)(\tilde P, \tilde Q) is (ε,δ)(\varepsilon, \delta)-DP: on outputs 1 and 2 the ratio is at most eεe^{\varepsilon}, and outputs 0 and 3 hold mass δ\delta. A mechanism that outputs P~\tilde P on a dataset xx and Q~\tilde Q on a neighbor x′x', run kk times, has a view whose Hε′H_{\varepsilon'} is exactly δk(ε′)\delta_k(\varepsilon') by Step 3. So no smaller δ′\delta' is true for the class. ■\blacksquare

Consequences

  • Exact numbers. For k=100k = 100, ε=0.1\varepsilon = 0.1, δ=0\delta = 0 and δ′=10−6\delta' = 10^{-6}, the exact value is ε′=4.7746\varepsilon' = 4.7746. Advanced composition gives 6.30826.3082, and basic composition gives 10. The value comes from a bisection on ε′\varepsilon', since δk\delta_k decreases in ε′\varepsilon'. This short script checks it:
from math import comb, exp

def delta_k(k, eps, delta, eps_total):
    p = 1 / (1 + exp(eps))
    s = sum(comb(k, a) * max(0.0, exp(a * eps) - exp(eps_total + (k - a) * eps)) for a in range(k + 1))
    return 1 - (1 - delta) ** k + (1 - delta) ** k * s * p ** k

lo, hi = 0.0, 10.0
for _ in range(100):
    mid = (lo + hi) / 2
    lo, hi = (mid, hi) if delta_k(100, 0.1, 0.0, mid) > 1e-6 else (lo, mid)
print(round(hi, 4))  # 4.7746
  • A small hand example. With k=2k = 2 and randomized response with ε=ln⁡3\varepsilon = \ln 3 (δ=0\delta = 0), the sum has terms (2a)max⁡(0,3a−eε′32−a)/16\binom{2}{a}\max(0, 3^a - e^{\varepsilon'}3^{2-a})/16. This gives δ2(0)=8/16=1/2\delta_2(0) = 8/16 = 1/2, δ2(ln⁡3)=6/16=3/8\delta_2(\ln 3) = 6/16 = 3/8 and δ2(2ln⁡3)=0\delta_2(2\ln 3) = 0.
  • Hardness for different steps. Murtagh and Vadhan reduce a #P-complete counting problem, close to counting the solutions of a knapsack problem, to the formula with different εi\varepsilon_i. Their approximation algorithm is based on approximate counting for knapsack. In practice, numerical accountants compute such values to a stated accuracy.
  • The trade-off view. The test bound in Step 1 is the trade-off function of f-DP. Dong, Roth and Su build on it, and their central limit theorem says that the composition of many steps with small ε\varepsilon is close to Gaussian DP.
  • A link to privacy loss. δk(ε′)\delta_k(\varepsilon') is E[max⁡(0,1−eε′−L)]E[\max(0, 1 - e^{\varepsilon' - L})] for the privacy loss LL of the kk-fold worst-case pair. The loss is ε(2A−k)\varepsilon(2A - k) with AA binomial, plus the value +∞+\infty with probability 1−(1−δ)k1 - (1-\delta)^k.

Tightness

The theorem is its own tightness statement: the kk-fold worst-case pair reaches δk(ε′)\delta_k(\varepsilon') for every ε′\varepsilon', as shown in the last part of the proof. The exact region holds for the class of all (ε,δ)(\varepsilon, \delta)-DP mechanisms. A given mechanism, such as the Gaussian mechanism, can have a smaller region; an accountant that uses the exact output laws of that mechanism gets the smaller value.

History

Kairouz, Oh and Viswanath presented the theorem at ICML 2015, and the journal version appeared in IEEE Transactions on Information Theory in 2017. They took the hypothesis testing view of privacy from earlier work of Wasserman and Zhou (2010) and used Blackwell's theorem to reduce composition to one worst-case mechanism. Murtagh and Vadhan (TCC 2016) treated different parameters for each step, proved the #P-completeness of the exact value and gave an approximation algorithm. Dong, Roth and Su (2022) turned the testing view into the definition of f-DP.

References

  1. 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 hypothesis testing view of DP, the worst-case mechanism and the optimal composition theorem; this page relies on the journal version
  2. Peter Kairouz, Sewoong Oh and Pramod Viswanath, The composition theorem for differential privacy, ICML 2015, PMLR 37, the conference version of the same results
  3. Jack Murtagh and Salil Vadhan, The complexity of computing the optimal composition of differential privacy, TCC 2016-A, LNCS 9562, pages 157 to 175, the formula for different (epsilon_i, delta_i), the #P-completeness result and the polynomial time approximation
  4. 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.2, Definition 3.7 (k-fold adaptive composition), which this page uses

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/D8BAGQ/text.yaml