Documentation

CslibFrontier.Privacy.DifferentialPrivacy.PrivacyLoss

Privacy-loss bounds on Rényi moments and Rényi divergence #

For mass functions p, q on a countable type, the order-α Rényi moment Probability.renyiMoment α p q = ∑ r, p r · (p r / q r) ^ (α - 1) is the moment generating function E_{r ∼ p}[exp ((α - 1) · L(r))] of the privacy loss L(r) = ln (p r / q r) [DworkRoth2014, §2.3; Mironov2017, Definition 3]. When the likelihood ratio lies in [e^{-ε}, e^ε], convexity of x ↦ x ^ α bounds the moment by cosh (ε (α - 1)) + tanh (ε / 2) · sinh (ε (α - 1)) per unit of mass (renyiMoment_le_of_le_mul), hence by exp (tanh (ε / 2) · ε (α - 1) + (ε (α - 1))² / 2) (renyiMoment_le_exp). Taking logarithms gives the privacy-loss refinement D_α(p ‖ q) ≤ ε tanh (ε / 2) + (α - 1) ε² / 2 (renyiDiv_le_of_le_mul), which yields both the quadratic pure-DP to Rényi divergence bound α ε² / 2 of [BunSteinke2016, Proposition 3.3] (cited in [Mironov2017, Section V]) and the per-round step of advanced composition.

Main results #

References #

theorem Cslib.Privacy.renyiMoment_le_of_le_mul {R : Type u} {p q : R → ENNReal} {ε α : ℝ} (hε : 0 ≤ ε) (hα : 1 ≤ α) (hpq : ∀ (r : R), p r ≤ ENNReal.ofReal (Real.exp ε) * q r) (hqp : ∀ (r : R), q r ≤ ENNReal.ofReal (Real.exp ε) * p r) (hsum : ∑' (r : R), p r ≤ ∑' (r : R), q r) (hfin : ∑' (r : R), q r ≠ ⊤) :
Probability.renyiMoment α p q ≤ ENNReal.ofReal (Real.cosh (ε * (α - 1)) + Real.tanh (ε / 2) * Real.sinh (ε * (α - 1))) * ∑' (r : R), p r

The Rényi moment bound for one round: if the likelihood ratio of p and q lies in [e^{-ε}, e^ε] and p has at most the mass of q, then for 1 ≤ α, renyiMoment α p q ≤ (cosh (ε (α - 1)) + tanh (ε / 2) · sinh (ε (α - 1))) · ∑ p. The bound comes from the chord of the convex function x ↦ x ^ α between e^{-ε} and e^ε, and is attained by two-point distributions whose likelihood ratio takes only the values e^{±ε}.

theorem Cslib.Privacy.renyiMoment_le_exp {R : Type u} {p q : R → ENNReal} {ε α : ℝ} (hε : 0 ≤ ε) (hα : 1 ≤ α) (hpq : ∀ (r : R), p r ≤ ENNReal.ofReal (Real.exp ε) * q r) (hqp : ∀ (r : R), q r ≤ ENNReal.ofReal (Real.exp ε) * p r) (hsum : ∑' (r : R), p r ≤ ∑' (r : R), q r) (hfin : ∑' (r : R), q r ≠ ⊤) :
Probability.renyiMoment α p q ≤ ENNReal.ofReal (Real.exp (Real.tanh (ε / 2) * (ε * (α - 1)) + (ε * (α - 1)) ^ 2 / 2)) * ∑' (r : R), p r

The Rényi moment bound in exponential form: with s = ε (α - 1), renyiMoment α p q ≤ exp (tanh (ε / 2) · s + s² / 2) · ∑ p.

theorem Cslib.Privacy.renyiDiv_le_of_le_mul {R : Type u} {p q : PMF R} {ε α : ℝ} (hε : 0 ≤ ε) (hα : 1 < α) (hpq : ∀ (r : R), p r ≤ ENNReal.ofReal (Real.exp ε) * q r) (hqp : ∀ (r : R), q r ≤ ENNReal.ofReal (Real.exp ε) * p r) :
Probability.PMF.renyiDiv α p q ≤ ENNReal.ofReal (ε * Real.tanh (ε / 2) + (α - 1) * ε ^ 2 / 2)

For 1 < α, if two discrete distributions p, q : PMF R have likelihood ratio in [e^{-ε}, e^ε], their order-α Rényi divergence is at most ε tanh (ε / 2) + (α - 1) ε² / 2.