Algorithm Search⌘K

Definitionadvanced

Privacy loss random variable

Also called privacy loss, privacy loss distribution.

The log ratio ln(p(Y)/q(Y)) of the output laws of a mechanism on two neighbors, at an output Y drawn on the first. Its law gives the exact delta for each epsilon.

The privacy loss random variable measures how much one output of a mechanism tells about which of two neighboring datasets was used. For a mechanism MM and neighbors x∼x′x \sim x', it is the log ratio ln⁡(p(Y)/q(Y))\ln(p(Y)/q(Y)) of the probabilities of the output YY under xx and under x′x', where YY is drawn from M(x)M(x). A large positive value is an output that strongly points to xx. The whole law of this variable, the privacy loss distribution, fixes every privacy guarantee of the pair: pure DP is a bound on its absolute value, the tight δ\delta for each ε\varepsilon is one expectation of it, Renyi DP and zCDP are bounds on its moment generating function, and numerical accountants compose mechanisms by convolving its law. It is the log likelihood ratio of the Neyman-Pearson lemma, so it is also the best statistic for a test that tries to tell xx from x′x'.

Definition

Let MM be a randomized mechanism and x∼x′x \sim x' neighbors under a stated relation (add/remove or replace). Let PP and QQ be the laws of M(x)M(x) and M(x′)M(x'), with densities pp and qq with respect to a common measure (for discrete outputs, the probability mass functions).

The privacy loss function of the ordered pair (P,Q)(P, Q) is

ℓ(y)=ln⁡p(y)q(y),\ell(y) = \ln\frac{p(y)}{q(y)},

with ℓ(y)=+∞\ell(y) = +\infty when q(y)=0<p(y)q(y) = 0 < p(y). The privacy loss random variable is L=ℓ(Y)L = \ell(Y) with Y∼PY \sim P. Its law, a distribution on R∪{+∞}\mathbb R \cup \{+\infty\}, is the privacy loss distribution of the pair. The pair (Q,P)(Q, P) has its own privacy loss, and both orders matter.

These facts follow from the definition. The function max⁡(0,⋅)\max(0, \cdot) is written (⋅)+(\cdot)_+.

  1. Exact delta. For each ε≥0\varepsilon \ge 0, the smallest δ\delta with P(S)≤eεQ(S)+δP(S) \le e^{\varepsilon}Q(S) + \delta for all events SS is
δP∥Q(ε)=∫(p−eεq)+=E[(1−eε−L)+],\delta_{P\|Q}(\varepsilon) = \int (p - e^{\varepsilon}q)_+ = E\left[\left(1 - e^{\varepsilon - L}\right)_+\right],

where the term is 1 on the event L=+∞L = +\infty. The first form is the hockey-stick divergence, reached at S={ℓ>ε}S = \{\ell > \varepsilon\}. The second form follows from (p−eεq)+=p (1−eεq/p)+(p - e^{\varepsilon}q)_+ = p\,(1 - e^{\varepsilon}q/p)_+. So MM is (ε,δ)(\varepsilon, \delta)-DP if and only if δP∥Q(ε)≤δ\delta_{P\|Q}(\varepsilon) \le \delta for every ordered pair of neighbors. 2. Pure DP. MM is ε\varepsilon-DP if and only if ∣L∣≤ε|L| \le \varepsilon with probability 1 for every ordered pair of neighbors. 3. A sufficient tail condition. Pr⁡[L>ε]≤δ\Pr[L > \varepsilon] \le \delta for every ordered pair implies (ε,δ)(\varepsilon, \delta)-DP, because (1−eε−L)+≤1[L>ε](1 - e^{\varepsilon - L})_+ \le \mathbf 1[L > \varepsilon]. The converse is false. 4. Moments. E[L]E[L] is the KL divergence D(P∥Q)D(P\|Q), and for λ>1\lambda > 1, E[e(λ−1)L]=e(λ−1)Dλ(P∥Q)E[e^{(\lambda - 1)L}] = e^{(\lambda - 1)D_\lambda(P\|Q)}, where DλD_\lambda is the Renyi divergence. So the moment generating function of LL holds the Renyi divergences of all orders. 5. Composition. If two mechanisms run with independent coins, the privacy loss of the pair of outputs is the sum of the two privacy losses, and the two terms are independent. So the privacy loss distribution of a composition is the convolution of the distributions of its steps.

Examples and non-examples

Gaussian mechanism. Let M(x)=f(x)+N(0,σ2)M(x) = f(x) + N(0, \sigma^2) with ∣f(x)−f(x′)∣=Δ|f(x) - f(x')| = \Delta, and let μ=Δ/σ\mu = \Delta/\sigma. With Y=f(x)+σZY = f(x) + \sigma Z and ZZ standard normal, a direct computation gives ℓ(Y)=μZ+μ2/2\ell(Y) = \mu Z + \mu^2/2. So L∼N(μ2/2,μ2)L \sim N(\mu^2/2, \mu^2), and fact 1 gives the analytic formula of Balle and Wang:

δ(ε)=Φ(−εμ+μ2)−eεΦ(−εμ−μ2).\delta(\varepsilon) = \Phi\left(-\frac{\varepsilon}{\mu} + \frac{\mu}{2}\right) - e^{\varepsilon}\Phi\left(-\frac{\varepsilon}{\mu} - \frac{\mu}{2}\right).

For μ=1\mu = 1 and ε=1\varepsilon = 1 this is 0.1269370.126937; for μ=1/2\mu = 1/2 it is 0.00682960.0068296. The law of LL has no bound, so the Gaussian mechanism is not ε\varepsilon-DP for any ε\varepsilon, by fact 2. The tail condition of fact 3 at μ=1\mu = 1, ε=1\varepsilon = 1 gives only Pr⁡[L>1]=Pr⁡[Z>1/2]=0.3085\Pr[L > 1] = \Pr[Z > 1/2] = 0.3085, more than twice the exact value.

Laplace mechanism. Let M(x)=f(x)+Lap(b)M(x) = f(x) + \mathrm{Lap}(b) with f(x)=0f(x) = 0, f(x′)=1f(x') = 1 and ε0=1/b\varepsilon_0 = 1/b. Then ℓ(y)=ε0(∣y−1∣−∣y∣)\ell(y) = \varepsilon_0(|y - 1| - |y|). So L=ε0L = \varepsilon_0 with probability 1/21/2 (outputs y≤0y \le 0), L=−ε0L = -\varepsilon_0 with probability e−ε0/2e^{-\varepsilon_0}/2 (outputs y≥1y \ge 1), and the rest of the mass is spread over the open interval (−ε0,ε0)(-\varepsilon_0, \varepsilon_0). Since ∣L∣≤ε0|L| \le \varepsilon_0, the Laplace mechanism is ε0\varepsilon_0-DP. Fact 1 gives δ(ε)=1−e(ε−ε0)/2\delta(\varepsilon) = 1 - e^{(\varepsilon - \varepsilon_0)/2} for 0≤ε≤ε00 \le \varepsilon \le \varepsilon_0; for ε0=1\varepsilon_0 = 1 and ε=0.5\varepsilon = 0.5 this is 0.22120.2212.

Randomized response. With parameter ε0=ln⁡3\varepsilon_0 = \ln 3, randomized response reports the true bit with probability 3/43/4. For neighbors with bits 1 and 0, L=ln⁡3L = \ln 3 with probability 3/43/4 and L=−ln⁡3L = -\ln 3 with probability 1/41/4. Then E[L]=(ln⁡3)/2=0.5493E[L] = (\ln 3)/2 = 0.5493, the KL divergence of the pair.

The value +∞+\infty. A mechanism that outputs the whole dataset with probability δ\delta, and a fixed symbol otherwise, has L=+∞L = +\infty with probability δ\delta and L=0L = 0 otherwise. Fact 1 gives δ(ε)=δ\delta(\varepsilon) = \delta for every ε\varepsilon. It is (0,δ)(0, \delta)-DP and not ε\varepsilon-DP for any ε\varepsilon.

Non-example: one order is not enough. Let P=(1/2,1/2)P = (1/2, 1/2) and Q=(1/4,3/4)Q = (1/4, 3/4) on two outputs. At ε=ln⁡1.2\varepsilon = \ln 1.2, δP∥Q=0.2\delta_{P\|Q} = 0.2 but δQ∥P=0.15\delta_{Q\|P} = 0.15. A guarantee needs the larger value, so a page or a program that tracks only ℓ\ell for (P,Q)(P, Q) can be wrong.

Non-example: a small mean is not privacy. A small KL divergence E[L]E[L] does not bound the tail of LL. Two laws can have E[L]E[L] close to 0 while LL is large on a rare output. This is why accountants track the full law, or all moments, and not only the mean.

References

  1. Mark Bun and Thomas Steinke, Concentrated differential privacy: simplifications, extensions, and lower bounds, TCC 2016-B, LNCS 9985, pages 635 to 658, Definition 1.2 (privacy loss random variable) and the statement of zCDP through it
  2. Clement L. Canonne, Gautam Kamath and Thomas Steinke, The discrete Gaussian for differential privacy, NeurIPS 2020, arXiv 2004.00010, Definition 8 (privacy loss random variable) and the characterization of approximate DP by the privacy loss after it, which cites Meiser and Mohammadi (CCS 2018, Lemma 1)
  3. 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, the definition of the privacy loss of an outcome in Chapter 2, and Section 3.5 (its use in the proof of advanced composition)
  4. Cynthia Dwork, Guy N. Rothblum and Salil Vadhan, Boosting and differential privacy, FOCS 2010, pages 51 to 60, the privacy loss as a sum of bounded terms in the proof of the composition theorem

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/XCQTAN/text.yaml