Algorithm Search⌘K

Theoremcore

Group privacy

Also called group privacy theorem.

An epsilon-DP mechanism protects any group of k records with parameter k times epsilon; with delta the additive term grows to about k e^((k-1) epsilon) delta.

The group privacy theorem extends a guarantee for one record to a group of records. If a mechanism is ε\varepsilon-differentially private, then for two datasets that differ in kk records, the probability of every set of outputs changes by at most the factor ekεe^{k\varepsilon}. So a family, a household or one person with kk records is protected with parameter kεk\varepsilon. For (ε,δ)(\varepsilon, \delta)-DP the multiplicative part also becomes kεk\varepsilon, but the additive part grows faster, to δ(ekε−1)/(eε−1)\delta(e^{k\varepsilon} - 1)/(e^{\varepsilon} - 1), which is at most ke(k−1)εδk e^{(k-1)\varepsilon}\delta. Dwork and Roth (2014) state the pure form as Theorem 2.2 and the form with δ\delta in a footnote to it. Both bounds can be reached, so they cannot be improved in general.

Statement

Fix a neighbor relation ∼\sim (add/remove or replace). The distance d(x,x′)d(x, x') between two datasets is the smallest kk such that there is a chain x=x0∼x1∼⋯∼xk=x′x = x_0 \sim x_1 \sim \cdots \sim x_k = x'. Under add/remove on histograms it is ∥x−x′∥1\lVert x - x' \rVert_1 (Dwork-Roth Definition 2.3); under replace on datasets of the same size it is the Hamming distance.

Theorem (group privacy). Let MM be (ε,δ)(\varepsilon, \delta)-DP under ∼\sim, and let k≥1k \ge 1 be an integer.

(a) (Dwork-Roth Theorem 2.2.) If δ=0\delta = 0, then for all x,x′x, x' with d(x,x′)≤kd(x, x') \le k and all sets SS of outputs,

Pr⁡[M(x)∈S]≤ekεPr⁡[M(x′)∈S].\Pr[M(x) \in S] \le e^{k\varepsilon}\Pr[M(x') \in S].

(b) In general, for all x,x′x, x' with d(x,x′)≤kd(x, x') \le k and all SS,

Pr⁡[M(x)∈S]≤ekεPr⁡[M(x′)∈S]+δk,δk=δ∑i=0k−1eiε=δ ekε−1eε−1≤ke(k−1)εδ,\Pr[M(x) \in S] \le e^{k\varepsilon}\Pr[M(x') \in S] + \delta_k, \qquad \delta_k = \delta\sum_{i=0}^{k-1} e^{i\varepsilon} = \delta\,\frac{e^{k\varepsilon} - 1}{e^{\varepsilon} - 1} \le k e^{(k-1)\varepsilon}\delta,

where the fraction is read as kδk\delta when ε=0\varepsilon = 0. The last bound is the form in the footnote to Dwork-Roth Theorem 2.2.

In plain words

Change the kk records one at a time. Each step changes the probability of any output set by at most the factor eεe^{\varepsilon}, so kk steps change it by at most eεe^{\varepsilon} multiplied kk times. With δ\delta, each step also adds δ\delta, but the δ\delta added at an early step is then multiplied by the factors of the later steps. That is why the additive part grows like ekεe^{k\varepsilon} and not like kk.

Proof

Let d(x,x′)=j≤kd(x, x') = j \le k and take a chain x=x0∼x1∼⋯∼xj=x′x = x_0 \sim x_1 \sim \cdots \sim x_j = x'. Write Pi(S)=Pr⁡[M(xi)∈S]P_i(S) = \Pr[M(x_i) \in S] and fix SS. We show by induction on ii that

P0(S)≤eiεPi(S)+δifor i=0,1,…,j,δi=δ∑l=0i−1elε,δ0=0.P_0(S) \le e^{i\varepsilon}P_i(S) + \delta_i \quad \text{for } i = 0, 1, \ldots, j, \qquad \delta_i = \delta\sum_{l=0}^{i-1} e^{l\varepsilon}, \quad \delta_0 = 0.

The case i=0i = 0 is P0(S)≤P0(S)P_0(S) \le P_0(S). For the step, xi−1∼xix_{i-1} \sim x_i, so the definition gives Pi−1(S)≤eεPi(S)+δP_{i-1}(S) \le e^{\varepsilon}P_i(S) + \delta. With the hypothesis for i−1i - 1,

P0(S)≤e(i−1)εPi−1(S)+δi−1≤e(i−1)ε(eεPi(S)+δ)+δi−1=eiεPi(S)+δi−1+e(i−1)εδ,P_0(S) \le e^{(i-1)\varepsilon}P_{i-1}(S) + \delta_{i-1} \le e^{(i-1)\varepsilon}\big(e^{\varepsilon}P_i(S) + \delta\big) + \delta_{i-1} = e^{i\varepsilon}P_i(S) + \delta_{i-1} + e^{(i-1)\varepsilon}\delta,

and δi−1+e(i−1)εδ=δi\delta_{i-1} + e^{(i-1)\varepsilon}\delta = \delta_i. At i=ji = j this gives P0(S)≤ejεPr⁡[M(x′)∈S]+δjP_0(S) \le e^{j\varepsilon}\Pr[M(x') \in S] + \delta_j. Both ejε≤ekεe^{j\varepsilon} \le e^{k\varepsilon} and δj≤δk\delta_j \le \delta_k hold because j≤kj \le k, which proves (b). The sum of the geometric series gives the closed form, and each of its kk terms is at most e(k−1)εe^{(k-1)\varepsilon}, which gives δk≤ke(k−1)εδ\delta_k \le k e^{(k-1)\varepsilon}\delta. Part (a) is the case δ=0\delta = 0, where every δi\delta_i is 0. □\square

Consequences

  • From add/remove to replace. A replace step is a removal and then an addition, so two datasets that are neighbors under replace are at distance 2 under add/remove. So ε\varepsilon-DP under add/remove gives 2ε2\varepsilon-DP under replace, and (ε,δ)(\varepsilon, \delta)-DP gives (2ε,(1+eε)δ)(2\varepsilon, (1 + e^{\varepsilon})\delta)-DP.
  • Households and repeated records. If one person can contribute up to kk records, the person is protected with kεk\varepsilon. To get ε\varepsilon for each person, either run the mechanism with ε/k\varepsilon/k, or bound the contribution of each person so that the unit of privacy is the person.
  • A numeric example. With ε=0.1\varepsilon = 0.1, δ=10−6\delta = 10^{-6} and k=10k = 10, a group gets kε=1k\varepsilon = 1 and δ10=10−6(e−1)/(e0.1−1)=1.6338×10−5\delta_{10} = 10^{-6}(e - 1)/(e^{0.1} - 1) = 1.6338 \times 10^{-5}. The looser form gives 10e0.9×10−6=2.4596×10−510e^{0.9} \times 10^{-6} = 2.4596 \times 10^{-5}. Both are about 16 to 25 times δ\delta, so δ\delta must be small enough to survive this growth.
  • Lower bounds. The theorem is the main tool of the packing lower bound: an ε\varepsilon-DP mechanism must give every one of many datasets at distance kk from a fixed one a probability of at least e−kεe^{-k\varepsilon} times its own, which limits how accurate it can be.
  • A direct analysis can be better. For a mechanism with a known form, the group of kk is often analysed better by hand. The Gaussian mechanism with sensitivity Δ\Delta is, for a group of kk, a Gaussian mechanism for a query with sensitivity kΔk\Delta, and its exact profile follows from Balle and Wang (2018, Theorem 8). With Δ=1\Delta = 1 and σ=3.730632\sigma = 3.730632, which gives (1,10−5)(1, 10^{-5})-DP, the exact value for k=10k = 10 at ε=10\varepsilon = 10 is δ=0.0040547\delta = 0.0040547, while part (b) gives 0.128180.12818 and the looser form gives 0.810310.81031. In the language of Gaussian DP, μ\mu-GDP gives kμk\mu-GDP for groups of kk.
  • Post-processing and composition. The group bound is a bound on MM itself, so it survives post-processing, and the group bounds of mechanisms run in sequence add up as in the sequential composition theorem.

Tightness

Part (a) is exact. The Laplace mechanism on a count with noise Lap(1/ε)\mathrm{Lap}(1/\varepsilon) is ε\varepsilon-DP. Two datasets whose counts differ by kk give densities ε2e−ε∣y−c∣\frac{\varepsilon}{2}e^{-\varepsilon|y - c|} and ε2e−ε∣y−c−k∣\frac{\varepsilon}{2}e^{-\varepsilon|y - c - k|}. For every y≤cy \le c the ratio of the densities is exactly ekεe^{k\varepsilon}, so the set S=(−∞,c]S = (-\infty, c] reaches the bound of (a).

Part (b) is exact. Let each record be a bit, let c(x)=min⁡(k,number of ones in x)c(x) = \min(k, \text{number of ones in } x), and note that one add/remove or replace step changes cc by at most 1. Let M(x)M(x) output the symbol ss with probability δk−c(x)\delta_{k - c(x)} and the symbol tt otherwise, and assume δk+δk−1≤1\delta_k + \delta_{k-1} \le 1. Write a=δk−c−1a = \delta_{k-c-1} and b=δk−c=eεa+δb = \delta_{k-c} = e^{\varepsilon}a + \delta for the probabilities of ss at the counts c+1c + 1 and cc.

  • From count cc to count c+1c + 1, the excess on ss is b−eεa=δb - e^{\varepsilon}a = \delta, and on tt it is (1−b)−eε(1−a)≤0(1 - b) - e^{\varepsilon}(1 - a) \le 0 because 1−b≤1−a1 - b \le 1 - a.
  • From count c+1c + 1 to count cc, the excess on ss is a−eεb≤0a - e^{\varepsilon}b \le 0. On tt it is (1−a)−eε(1−b)(1 - a) - e^{\varepsilon}(1 - b), which is at most δ\delta exactly when a(eε+1)+δ≤1a(e^{\varepsilon} + 1) + \delta \le 1 (for ε>0\varepsilon > 0, divide by eε−1e^{\varepsilon} - 1). This holds because a(eε+1)+δ≤δk−1(eε+1)+δ=δk+δk−1≤1a(e^{\varepsilon} + 1) + \delta \le \delta_{k-1}(e^{\varepsilon} + 1) + \delta = \delta_k + \delta_{k-1} \le 1.

So MM is (ε,δ)(\varepsilon, \delta)-DP under both relations. For a dataset xx with no ones and a dataset x′x' with kk ones, at distance kk, take S={s}S = \{s\}: then Pr⁡[M(x)∈S]=δk\Pr[M(x) \in S] = \delta_k and Pr⁡[M(x′)∈S]=δ0=0\Pr[M(x') \in S] = \delta_0 = 0, so the additive part must be at least δk\delta_k, and part (b) holds with equality. With ε=0.1\varepsilon = 0.1, δ=10−6\delta = 10^{-6} and k=10k = 10, every pair of neighbors has the hockey-stick divergence 10−610^{-6} and the pair at distance 10 has 1.6338×10−51.6338 \times 10^{-5}.

So the bound ke(k−1)εδk e^{(k-1)\varepsilon}\delta of Dwork and Roth is not tight, but the sum δk\delta_k is. For ε=0\varepsilon = 0 the bound is kδk\delta, and a mechanism that publishes each record with probability δ\delta reveals some member of a group of kk with probability 1−(1−δ)k1 - (1 - \delta)^k, which is close to kδk\delta when kδk\delta is small; for δ=10−5\delta = 10^{-5} and k=10k = 10 it is 9.9996×10−59.9996 \times 10^{-5}.

History

Group privacy follows directly from the first definition of differential privacy, by Dwork, McSherry, Nissim and Smith (2006): a bound for one row gives a bound for datasets that differ in more rows by a chain of neighbors. Dwork and Roth (2014) state it as Theorem 2.2 for δ=0\delta = 0, with the proof by a chain of neighbors, and give the form ke(k−1)εδk e^{(k-1)\varepsilon}\delta for (ε,δ)(\varepsilon, \delta)-DP in a footnote. The exact sum δ(ekε−1)/(eε−1)\delta(e^{k\varepsilon} - 1)/(e^{\varepsilon} - 1) is what the same induction gives when the terms are not bounded one by one.

References

  1. Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, Foundations and Trends in Theoretical Computer Science 9(3-4), 2014, pages 211 to 407, Section 2.3, Definition 2.3 (distance between databases), Theorem 2.2 (group privacy for delta = 0) with its proof, and the footnote to Theorem 2.2 (the form with delta)
  2. Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith, Calibrating noise to sensitivity in private data analysis, TCC 2006, LNCS 3876, pages 265 to 284, the original definition for datasets that differ in one row, from which the group bound follows by a chain of neighbors
  3. Borja Balle and Yu-Xiang Wang, Improving the Gaussian mechanism for differential privacy: analytical calibration and optimal denoising, ICML 2018, PMLR 80, Theorem 8 (the exact privacy profile of the Gaussian mechanism), used here for a group as a query with k times the sensitivity

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/WQMH2F/text.yaml