Differential privacy #
A mechanism is a map M : D → PMF R from datasets to output distributions. It is
(ε, δ)-differentially private with respect to an adjacency relation Adj on datasets when
Pr[M x ∈ S] ≤ exp ε · Pr[M y ∈ S] + δ for every pair of adjacent datasets x, y and every
event S ⊆ R [DworkRoth2014, Definition 2.4]. Events are arbitrary sets of outputs, measured by
PMF.toOuterMeasure, so no measurable structure on R is needed.
The adjacency relation is a parameter. Dwork and Roth compare databases at ℓ₁ distance at most
one (adding or removing one record); Ghosh, Roughgarden and Sundararajan compare databases that
coincide in all but one row [GhoshRoughgardenSundararajan2012, §2.1], which is
Cslib.Privacy.HammingAdjacent in CslibFrontier.Privacy.DifferentialPrivacy.Hamming. Both are
instances. The definition quantifies over ordered pairs, so a symmetric guarantee needs a symmetric
Adj.
The pointwise characterization of pure privacy (DifferentiallyPrivate.iff_apply_le) is the
likelihood-ratio form used for mechanisms with a countable range
[GhoshRoughgardenSundararajan2012, §2.1]. It follows from the hockey-stick characterization
(DifferentiallyPrivate.iff_hockeyStick_le, via Cslib.Probability.PMF.hockeyStick): the optimal
δ for a fixed factor exp ε is the hockey-stick divergence of M x from M y at exp ε.
Main definitions #
Cslib.Privacy.DifferentiallyPrivate:(ε, δ)-differential privacy relative toAdj.
Main results #
Cslib.Privacy.DifferentiallyPrivate.iff_hockeyStick_le: the hockey-stick characterization.Cslib.Privacy.DifferentiallyPrivate.iff_apply_le: pure privacy is a pointwise ratio bound.Cslib.Privacy.DifferentiallyPrivate.bind,Cslib.Privacy.DifferentiallyPrivate.map: post-processing by an arbitrary randomized or deterministic map [DworkRoth2014, Prop. 2.1].Cslib.Privacy.DifferentiallyPrivate.trans: privacy along a composite of two adjacency relations, the inductive step of group privacy.
References #
A mechanism M is (ε, δ)-differentially private with respect to the adjacency relation
Adj when, for all adjacent datasets x, y and every event S,
Pr[M x ∈ S] ≤ exp ε · Pr[M y ∈ S] + δ [DworkRoth2014, Definition 2.4].
(ε, δ)-differential privacy bounds the hockey-stick divergence of adjacent output
distributions at factor exp ε by δ, and conversely.
Pure (ε, 0)-differential privacy is the pointwise likelihood-ratio bound
M x r ≤ exp ε · M y r [GhoshRoughgardenSundararajan2012, §2.1].
A pointwise likelihood-ratio bound gives pure differential privacy.
Differential privacy bounds expectations of [0, 1]-valued functions:
E[g (M x)] ≤ exp ε · E[g (M y)] + δ for adjacent x, y.
Differential privacy is monotone in both privacy parameters.
Differential privacy is antitone in the adjacency relation.
Post-processing: applying any randomized map K to the output of a differentially private
mechanism preserves its privacy parameters [DworkRoth2014, Proposition 2.1].
Deterministic post-processing preserves differential privacy.
Precomposing a mechanism with a map that sends Adj'-adjacent datasets to Adj-adjacent
ones preserves differential privacy.
Privacy along the composite of two adjacency relations: if M is (ε₁, δ₁)-private for
Adj₁ and (ε₂, δ₂)-private for Adj₂, it is (ε₁ + ε₂, δ₁ + exp ε₁ · δ₂)-private for
Relation.Comp Adj₁ Adj₂.