Documentation

CslibFrontier.Privacy.DifferentialPrivacy.Renyi

Rényi differential privacy #

A randomized mechanism M : D → PMF R satisfies (α, ε)-Rényi differential privacy (RDP) relative to an adjacency relation Adj when 1 < α, 0 ≤ ε, and D_α(M x ‖ M y) ≤ ε for every adjacent pair (x, y) (RenyiDifferentiallyPrivate, [Mironov2017, Definition 4]). Enforcing 1 < α and 0 ≤ ε in the predicate avoids both the α = 1 collapse of the finite-order ratio formula log M / (α - 1) to 0 (where [Mironov2017, Definition 3] takes the α → 1 Kullback–Leibler limit) and the ENNReal.ofReal truncation of negative budgets ε < 0 to 0.

Rényi differential privacy enjoys post-processing (RenyiDifferentiallyPrivate.bind, RenyiDifferentiallyPrivate.map, [Mironov2017, Section III]), additive sequential composition under adaptive mechanism choice (RenyiDifferentiallyPrivate.bind_pair, RenyiDifferentiallyPrivate.adaptiveComposition, [Mironov2017, Proposition 1]), coordinatewise parallel composition for local randomizers under Hamming adjacency (RenyiDifferentiallyPrivate.pi), conversion to (ε + log (1 / δ) / (α - 1), δ)-differential privacy (RenyiDifferentiallyPrivate.differentiallyPrivate, [Mironov2017, Proposition 3]), a tanh privacy-loss refinement from pure (ε, 0)-differential privacy (DifferentiallyPrivate.renyiDifferentiallyPrivate_tanh), and the quadratic (α, α ε² / 2)-RDP bound (DifferentiallyPrivate.renyiDifferentiallyPrivate_of_pure, [BunSteinke2016, Proposition 3.3], cited in [Mironov2017, Section V]).

Main definitions #

Main results #

References #

def Cslib.Privacy.RenyiDifferentiallyPrivate {D : Type u} {R : Type v} (Adj : D → D → Prop) (M : D → PMF R) (α ε : ℝ) :

A mechanism M : D → PMF R is (α, ε)-Rényi differentially private relative to Adj when 1 < α, 0 ≤ ε, and renyiDiv α (M x) (M y) ≤ ofReal ε for all Adj x y [Mironov2017, Definition 4].

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.mono {D : Type u} {R : Type v} {Adj : D → D → Prop} {M : D → PMF R} {α ε ε' : ℝ} (h : RenyiDifferentiallyPrivate Adj M α ε) (hε : ε ≤ ε') :

Rényi differential privacy is monotone in the privacy budget ε.

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.bind {D : Type u} {R : Type v} {R' : Type w} {Adj : D → D → Prop} {M : D → PMF R} {α ε : ℝ} (h : RenyiDifferentiallyPrivate Adj M α ε) (K : R → PMF R') :
RenyiDifferentiallyPrivate Adj (fun (x : D) => (M x).bind K) α ε

Post-processing [Mironov2017, Section III]: applying a Markov kernel K preserves (α, ε)-Rényi differential privacy.

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.map {D : Type u} {R : Type v} {R' : Type w} {Adj : D → D → Prop} {M : D → PMF R} {α ε : ℝ} (h : RenyiDifferentiallyPrivate Adj M α ε) (f : R → R') :
RenyiDifferentiallyPrivate Adj (fun (x : D) => PMF.map f (M x)) α ε

Deterministic post-processing preserves (α, ε)-Rényi differential privacy [Mironov2017, Section III].

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.differentiallyPrivate {D : Type u} {R : Type v} {Adj : D → D → Prop} {M : D → PMF R} {α ε δ : ℝ} (hδ : 0 < δ) (h : RenyiDifferentiallyPrivate Adj M α ε) :
DifferentiallyPrivate Adj M (ε + Real.log (1 / δ) / (α - 1)) (ENNReal.ofReal δ)

Conversion from RDP to approximate DP [Mironov2017, Proposition 3]: if M is (α, ε)-Rényi differentially private, then for every 0 < δ, M is (ε + log (1 / δ) / (α - 1), ofReal δ)-differentially private.

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.bind_pair {D : Type u} {R₁ R₂ : Type v} {Adj : D → D → Prop} {α ε₁ ε₂ : ℝ} {M₁ : D → PMF R₁} {M₂ : R₁ → D → PMF R₂} (hε₂ : 0 ≤ ε₂) (h₁ : RenyiDifferentiallyPrivate Adj M₁ α ε₁) (h₂ : ∀ (r₁ : R₁), RenyiDifferentiallyPrivate Adj (M₂ r₁) α ε₂) :
RenyiDifferentiallyPrivate Adj (fun (x : D) => do let r₁ ← M₁ x let r₂ ← M₂ r₁ x pure (r₁, r₂)) α (ε₁ + ε₂)

Adaptive sequential composition [Mironov2017, Proposition 1]: running an (α, ε₁)-RDP mechanism M₁ followed by an adaptively chosen (α, ε₂)-RDP mechanism M₂ r₁ (0 ≤ ε₂) and releasing both outputs is (α, ε₁ + ε₂)-RDP.

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.adaptiveComposition {D : Type u} {R : Type v} {Adj : D → D → Prop} {α : ℝ} {M : List R → D → PMF R} {ε : ℕ → ℝ} (hα : 1 < α) (k : ℕ) (hε : ∀ i < k, 0 ≤ ε i) (h : ∀ (history : List R), history.length < k → RenyiDifferentiallyPrivate Adj (M history) α (ε history.length)) :

k-fold adaptive sequential composition [Mironov2017, Proposition 1]: if 1 < α and round i < k is (α, ε i)-RDP for every history of length i, the k-round transcript is (α, ∑ i < k, ε i)-RDP.

theorem Cslib.Privacy.RenyiDifferentiallyPrivate.pi {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [Fintype ι] [Finite Y] {M : ι → X → PMF Y} {α ε : ℝ} (hα : 1 < α) (hε : 0 ≤ ε) (h : ∀ (i : ι), RenyiDifferentiallyPrivate (fun (x x_1 : X) => True) (M i) α ε) :
RenyiDifferentiallyPrivate HammingAdjacent (fun (x : ι → X) => Probability.PMF.pi fun (i : ι) => M i (x i)) α ε

Products of local randomizers under HammingAdjacent: if 1 < α, 0 ≤ ε, and each coordinate randomizer M i is (α, ε)-RDP against arbitrary changes of its own input, their independent product is (α, ε)-RDP for HammingAdjacent.

theorem Cslib.Privacy.DifferentiallyPrivate.renyiDifferentiallyPrivate_tanh {D : Type u} {R : Type v} {Adj : D → D → Prop} {M : D → PMF R} {ε α : ℝ} (hAdj : ∀ ⦃x y : D⦄, Adj x y → Adj y x) (hε : 0 ≤ ε) (hα : 1 < α) (h : DifferentiallyPrivate Adj M ε 0) :
RenyiDifferentiallyPrivate Adj M α (ε * Real.tanh (ε / 2) + (α - 1) * ε ^ 2 / 2)

Privacy-loss refinement for pure (ε, 0)-differential privacy: any (ε, 0)-differentially private mechanism for a symmetric adjacency relation satisfies (α, ε tanh (ε / 2) + (α - 1) ε² / 2)-Rényi differential privacy for all 1 < α.

theorem Cslib.Privacy.DifferentiallyPrivate.renyiDifferentiallyPrivate_of_pure {D : Type u} {R : Type v} {Adj : D → D → Prop} {M : D → PMF R} {ε α : ℝ} (hAdj : ∀ ⦃x y : D⦄, Adj x y → Adj y x) (hε : 0 ≤ ε) (hα : 1 < α) (h : DifferentiallyPrivate Adj M ε 0) :
RenyiDifferentiallyPrivate Adj M α (α * ε ^ 2 / 2)

Pure-DP to RDP conversion [BunSteinke2016, Proposition 3.3] (cited in [Mironov2017, Section V], where Lemma 1 proves 2 α ε²): any pure (ε, 0)-differentially private mechanism for a symmetric adjacency relation satisfies (α, α ε² / 2)-Rényi differential privacy for all 1 < α.