Theoremintro
Basic composition theorem
Also called sequential composition.
If k mechanisms, each (epsilon_i, delta_i)-DP, run on the same data, even adaptively, the k outputs together are (sum of epsilon_i, sum of delta_i)-DP.
The basic composition theorem says that privacy loss adds up. If mechanisms run on the same dataset, and mechanism is -differentially private, then the tuple of all outputs is -differentially private. This holds when each mechanism may depend on the outputs of the ones before it. The theorem is the reason that differential privacy can be managed as a budget: an analyst gets a total and spends part of it on each query. The bound on is tight for a worst-case mechanism. For many queries with small the advanced composition theorem gives a much smaller total, at the cost of a small extra .
Statement
Fix a set of datasets and a symmetric neighbor relation . The theorem holds for any such relation, for example add/remove or replace, because it is a statement about one pair at a time. A randomized mechanism is -differentially private (approximate DP) if for every pair and every event of outputs,
Adaptive composition. For , let be a mechanism that reads the dataset and the earlier outputs . The composed mechanism draws , then , and so on, and outputs . The coins of the steps are independent given the earlier outputs.
Theorem (basic composition). If for each and each fixed prefix the mechanism is -DP, then is -DP.
The non-adaptive case, where each ignores the earlier outputs, is a special case. For pure DP ( for all ) the result is -DP.
In plain words
Each private answer leaks a little about each person. If you ask a second question, the second answer leaks a little more, and the two leaks add up. This stays true when you choose the second question after you see the first answer.
So a data holder can give an analyst a fixed privacy budget. Each question costs part of the budget. When the budget is spent, the data holder stops answering. The total leak about any one person is then at most the budget.
The rule is simple, and it is safe in the worst case. It can be too careful when you ask many small questions; a sharper rule exists for that case.
Proof
All probabilities below are for one fixed pair . Write and for the laws of the output under and under .
Lemma 1. If for every event , then for every measurable function with values in .
Proof. By the layer-cake formula, .
Two steps. Let be the laws of under and , and let be the laws of and . Fix an event of pairs, and write . Then
For each , the step-2 guarantee gives . A probability is also at most 1, so with . The function takes values in , so Lemma 1 applies to it with the step-1 guarantee:
Now , so . This gives
Induction on . The case is the hypothesis. For , the first steps form one mechanism with output . By the induction hypothesis it is -DP. Step is a mechanism that reads this output as its prefix, and it is -DP for each prefix. The two-step argument, with the first steps as step 1, gives the claim.
Consequences
- The privacy budget. A system can keep a running sum of the and that it has spent and refuse queries past a limit. PINQ did this. The sparse vector technique and report noisy max are ways to pay less than the sum for special query patterns.
- Building blocks. Many algorithms are a sequence of private steps, for example a Laplace mechanism per query, or one noisy gradient per step of DP-SGD. Basic composition gives a first bound for each of them. With post-processing, any function of the outputs keeps the bound.
- Parallel composition. When the mechanisms read disjoint parts of the data, the parallel composition theorem replaces the sum by the maximum. Its proof uses the theorem above for each pair of neighbors.
- Sharper rules. The advanced composition theorem and the optimal composition theorem improve the sum when is large. Renyi DP and zCDP compose by a plain sum of their own parameters, and the conversion to is done once, at the end.
- A rule of thumb, not a theorem. Splitting a budget evenly, , is common. It is a choice of the analyst. The theorem gives the same total for any split.
Tightness
The sum of the epsilons. Take randomized response with : a person with bit reports with probability and with probability . Use replace neighbors on a dataset of one person: has bit 1 and has bit 0. Run it twice with fresh coins. The outputs have probabilities under and under . At the output the ratio is . So the pair is not -DP for any , and the bound is exact. The same computation with runs gives the ratio .
The sum of the deltas. Let output the whole dataset with probability and a fixed symbol otherwise. It is -DP. Run independent copies on , and let be the event that some copy outputs . Then and . So the composition is not -DP for any when . The sum is tight up to the second-order term.
The two parts are not tight at the same time for all parameters. Kairouz, Oh and Viswanath found the exact set of pairs that k-fold composition reaches; see the optimal composition theorem.
History
The additive rule appears in the first papers on differential privacy, by Dwork, McSherry, Nissim and Smith (2006) and by Dwork, Kenthapadi, McSherry, Mironov and Naor (2006), as the way to answer several queries. McSherry (2009) named it sequential composition, together with parallel composition, and made it the privacy budget of the PINQ query system. Dwork and Roth (2014) give the pure case as Theorem 3.14 and Corollary 3.15 and the case as Theorem 3.16. Dwork, Rothblum and Vadhan (2010) set up the adaptive model, in which an adversary picks each mechanism after it sees the earlier outputs, that this page uses.
References
- 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, Theorem 3.14 (two pure mechanisms), Corollary 3.15 (k pure mechanisms) and Theorem 3.16 (k mechanisms with (epsilon_i, delta_i)); Appendix B (the proof of Theorem 3.16)
- Frank McSherry, Privacy integrated queries: an extensible platform for privacy-preserving data analysis, SIGMOD 2009, pages 19 to 30, the section on sequential and parallel composition
- 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 exact privacy region of k-fold composition, which shows when the sum of the deltas can be improved
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag RX173Z Edit this page History Report an error Markdown