Composition of differentially private mechanisms #
Running a (ε₁, δ₁)-private mechanism and then a mechanism chosen from its output, which is
(ε₂, δ₂)-private for each choice, and releasing both outputs, is (ε₁ + ε₂, δ₁ + δ₂)-private
(DifferentiallyPrivate.bind_pair) [DworkRoth2014, Theorem B.1]. The source states the case
ε₁ = ε₂, δ₁ = δ₂; its proof, followed here, bounds the second-stage probability by
min 1 (exp ε₂ · Pr[…]) + δ₂ and applies the first-stage guarantee to the [0, 1]-valued
function min 1 (exp ε₂ · Pr[…]). Releasing two independent
mechanisms (DifferentiallyPrivate.prod) is the non-adaptive special case
[DworkRoth2014, Theorem 3.16].
adaptiveComposition M k runs k rounds; round i runs M history, where history lists the
outputs of the previous rounds, most recent first. If every round with i previous outputs is
(ε i, δ i)-private, the whole transcript is (∑ i < k, ε i, ∑ i < k, δ i)-private
(DifferentiallyPrivate.adaptiveComposition) [DworkRoth2014, Corollary B.2]. The source fixes
one pair (ε, δ) for every round; here the parameters may depend on the round. A mechanism
that ignores its history gives non-adaptive k-fold composition.
Main definitions #
Cslib.Privacy.adaptiveComposition:krounds of adaptively chosen mechanisms.
Main results #
Cslib.Privacy.DifferentiallyPrivate.bind_pair: adaptive composition of two mechanisms.Cslib.Privacy.DifferentiallyPrivate.prod: composition of two independent mechanisms.Cslib.Privacy.DifferentiallyPrivate.adaptiveComposition:k-fold adaptive composition.
References #
Adaptive composition when the second stage is private only after first-stage outputs
satisfying P, and the first stage produces only such outputs.
Adaptive composition: if M₁ is (ε₁, δ₁)-private and M₂ r₁ is (ε₂, δ₂)-private for
every first output r₁, then releasing both outputs is (ε₁ + ε₂, δ₁ + δ₂)-private
[DworkRoth2014, Theorem B.1].
Releasing the outputs of two independent mechanisms, which are (ε₁, δ₁)- and
(ε₂, δ₂)-private, is (ε₁ + ε₂, δ₁ + δ₂)-private [DworkRoth2014, Theorem 3.16].
k rounds of adaptive composition. Round i runs M history, where history lists the
outputs of the previous i rounds with the most recent first; the result lists all k outputs
in the same order.
k-fold adaptive composition: if the mechanism run after i previous rounds is
(ε i, δ i)-private for every history, then the transcript of k rounds is
(∑ i < k, ε i, ∑ i < k, δ i)-private [DworkRoth2014, Corollary B.2].