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 private steps. For mechanisms that are each -differentially private, chosen adaptively, Kairouz, Oh and Viswanath found the full set of pairs for which the composition is -DP, and showed that no smaller set is true. The key idea is the hypothesis testing view of privacy: a mechanism is -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 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 -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 and , let and be the laws on the outputs with
Theorem (Kairouz, Oh and Viswanath). For all , , and , the class of -DP mechanisms is -DP under -fold adaptive composition if and only if , where
At the points , for , the sum is , which is the form in the paper. The bound is reached by independent copies of the pair .
Different parameters (Murtagh and Vadhan). For steps with parameters , the exact value is . 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 answers reveal in the worst case, you only need to study 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 and , the smallest with for all is , the maximum being reached at . So a pair is -DP if and only if is at most in both orders.
Step 1 (worst case, sketch). A pair is -DP if and only if every test of against with type I error has type II error at least , as defined on the page on type I and type II errors. The pair reaches this bound for every . By Blackwell's theorem on the comparison of experiments, every -DP pair is then the image of 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 independent copies of under one randomized map. A randomized map cannot increase the hockey-stick divergence (it is a post-processing). So the view is -DP whenever the -fold product of is.
Step 3 (the computation). Let be the -fold products. Split the outputs in three groups.
- has a 0. Then , and adds to . These outputs have total mass under .
- has no 0 and has a 3. Then , and adds nothing.
- with ones. Then and . There are such .
The sum of the three groups is . The pair is symmetric under the swap , , so the other order gives the same value. Thus the product is -DP if and only if . With Step 2, is enough for every adaptive composition.
Necessity. The pair is -DP: on outputs 1 and 2 the ratio is at most , and outputs 0 and 3 hold mass . A mechanism that outputs on a dataset and on a neighbor , run times, has a view whose is exactly by Step 3. So no smaller is true for the class.
Consequences
- Exact numbers. For , , and , the exact value is . Advanced composition gives , and basic composition gives 10. The value comes from a bisection on , since decreases in . 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 and randomized response with (), the sum has terms . This gives , and .
- 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 . 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 is close to Gaussian DP.
- A link to privacy loss. is for the privacy loss of the -fold worst-case pair. The loss is with binomial, plus the value with probability .
Tightness
The theorem is its own tightness statement: the -fold worst-case pair reaches for every , as shown in the last part of the proof. The exact region holds for the class of all -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
- 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
- Peter Kairouz, Sewoong Oh and Pramod Viswanath, The composition theorem for differential privacy, ICML 2015, PMLR 37, the conference version of the same results
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag D8BAGQ Edit this page History Report an error Markdown