Algorithm Search⌘K

Theoremadvanced

Privacy amplification by subsampling

Also called amplification by sampling.

An (epsilon, delta)-DP mechanism run on a Poisson sample with rate q is (ln(1 + q(e^epsilon - 1)), q delta)-DP under add/remove, about q(e^epsilon - 1); without replacement it holds under replace.

Privacy amplification by subsampling says that a private mechanism becomes more private when it runs on a random sample of the data that the observer does not see. If each record joins the sample independently with probability qq (Poisson sampling), and the mechanism is (ε,δ)(\varepsilon, \delta)-differentially private under add/remove neighbors, then the mechanism on the sample is (ln⁡(1+q(eε−1)),qδ)(\ln(1 + q(e^{\varepsilon} - 1)), q\delta)-DP. For small ε\varepsilon the new parameter is about q(eε−1)q(e^{\varepsilon} - 1), which is about qεq\varepsilon. A person who is probably not in the sample can lose little. The theorem is a key step in the analysis of DP-SGD, where each step uses a small random batch, and of the moments accountant. The exact bound depends on the sampling scheme and on the neighbor relation, so a page or a system that uses it must name both.

Statement

A dataset is a finite multiset of records. Under add/remove, x∼x′x \sim x' when one of them is the other plus one record. Under replace, x∼x′x \sim x' when they have the same size and differ in one record.

Poisson subsampling. Poiq(x)\mathrm{Poi}_q(x) keeps each record of xx independently with probability q∈[0,1]q \in [0, 1]. The sample stays hidden; only the output of the mechanism is released.

Sampling without replacement. For datasets of size nn and 1≤m≤n1 \le m \le n, WORm(x)\mathrm{WOR}_m(x) is a uniform random subset of mm records of xx. Write q=m/nq = m/n.

Theorem. Let ε≥0\varepsilon \ge 0, δ∈[0,1]\delta \in [0, 1], and εq=ln⁡(1+q(eε−1))\varepsilon_q = \ln(1 + q(e^{\varepsilon} - 1)).

  1. (Poisson, add/remove.) If MM is (ε,δ)(\varepsilon, \delta)-DP under add/remove, then M∘PoiqM \circ \mathrm{Poi}_q is (εq,qδ)(\varepsilon_q, q\delta)-DP under add/remove.
  2. (Without replacement, replace; Balle, Barthe and Gaboardi.) If MM is (ε,δ)(\varepsilon, \delta)-DP under replace on datasets of size mm, then M∘WORmM \circ \mathrm{WOR}_m is (εq,qδ)(\varepsilon_q, q\delta)-DP under replace on datasets of size nn.

Both bounds are tight for pure DP (δ=0\delta = 0). Since ln⁡(1+z)≤z\ln(1 + z) \le z, εq≤q(eε−1)\varepsilon_q \le q(e^{\varepsilon} - 1), and for ε≤1\varepsilon \le 1, εq≤2qε\varepsilon_q \le 2q\varepsilon.

In plain words

Suppose a survey picks each person by a coin flip, with a small chance of being picked, and keeps the list of picked people secret. Then it runs a private analysis on the picked people only.

An observer who wants to learn about you must first guess whether you were picked. Most of the time you were not, and then the result does not depend on you at all. When you were picked, you get the usual protection.

Together, this gives a much stronger protection than the analysis gives alone. When the chance of being picked is small and the analysis is already quite private, the leak shrinks by about that chance. When the analysis leaks a lot, the gain is much smaller.

Proof

The proof of part 1 is full. Part 2 is a marked sketch.

Part 1. Let x′=x∪{r}x' = x \cup \{r\}. A Poisson sample of x′x' is a Poisson sample TT of xx, with rr added with probability qq, independently of TT. Fix an event SS of outputs and write

A=ET[Pr⁡[M(T)∈S]],B=ET[Pr⁡[M(T∪{r})∈S]].A = E_T\left[\Pr[M(T) \in S]\right], \qquad B = E_T\left[\Pr[M(T \cup \{r\}) \in S]\right].

Then Pr⁡[M(Poiq(x))∈S]=A\Pr[M(\mathrm{Poi}_q(x)) \in S] = A and Pr⁡[M(Poiq(x′))∈S]=(1−q)A+qB\Pr[M(\mathrm{Poi}_q(x')) \in S] = (1-q)A + qB. For each TT, the sets TT and T∪{r}T \cup \{r\} are add/remove neighbors, so averaging the DP inequality over TT gives

B≤eεA+δandA≤eεB+δ.B \le e^{\varepsilon} A + \delta \qquad\text{and}\qquad A \le e^{\varepsilon} B + \delta.

Write u=eεu = e^{\varepsilon}, so eεq=1+q(u−1)e^{\varepsilon_q} = 1 + q(u - 1).

From x′x' to xx. (1−q)A+qB≤(1−q+qu)A+qδ=eεqA+qδ(1-q)A + qB \le (1 - q + qu)A + q\delta = e^{\varepsilon_q}A + q\delta.

From xx to x′x'. The second inequality gives B≥(A−δ)/uB \ge (A - \delta)/u, so (1−q)A+qB≥(1−q+q/u)A−qδ/u(1-q)A + qB \ge (1 - q + q/u)A - q\delta/u. The identity

(1+q(u−1))(1−q+qu)=1+q(1−q)(u−1)2u≥1(1 + q(u-1))\left(1 - q + \frac{q}{u}\right) = 1 + \frac{q(1-q)(u-1)^2}{u} \ge 1

gives 1/(1−q+q/u)≤eεq1/(1 - q + q/u) \le e^{\varepsilon_q}. Hence A≤eεq((1−q)A+qB)+eεqqδ/uA \le e^{\varepsilon_q}\left((1-q)A + qB\right) + e^{\varepsilon_q}q\delta/u. Finally eεq/u=(1+q(u−1))/u≤1e^{\varepsilon_q}/u = (1 + q(u-1))/u \le 1, so the last term is at most qδq\delta.

The case x=x′∪{r}x = x' \cup \{r\} is the same pair in the other order, and both orders are covered.

Part 2 (sketch). Let x′x' be xx with record rr replaced by r′r'. Couple the two samples: draw WORm(x)\mathrm{WOR}_m(x), and replace rr by r′r' when it is drawn. The samples differ, in one record, only when rr is drawn, which has probability m/n=qm/n = q. So the output law under x′x' is (1−q)A+qB′(1-q)A + qB' against (1−q)A+qB(1-q)A + qB under xx, where each pair of components comes from replace neighbors. Balle, Barthe and Gaboardi bound such mixtures by their advanced joint convexity of the hockey-stick divergence, which gives (εq,qδ)(\varepsilon_q, q\delta). The full proof is in their paper (NeurIPS 2018, arXiv 1807.01647), in the section on sampling without replacement. ■\blacksquare

Consequences

  • The numbers. For q=0.01q = 0.01 and ε=1\varepsilon = 1, εq=ln⁡(1+0.01(e−1))=0.017037\varepsilon_q = \ln(1 + 0.01(e - 1)) = 0.017037, close to q(e−1)=0.017183q(e - 1) = 0.017183. For q=0.01q = 0.01 and ε=5\varepsilon = 5, εq=0.9059\varepsilon_q = 0.9059, far above qε=0.05q\varepsilon = 0.05. The form "about qεq\varepsilon" is a heuristic for small ε\varepsilon only.
  • Private learning. DP-SGD runs a Gaussian mechanism on a random batch at each step. The moments accountant uses a sharper form of amplification, for the Renyi divergence of the subsampled Gaussian, and then composes the steps.
  • Other schemes. Sampling with replacement and fixed-size samples under add/remove neighbors have different bounds. Balle, Barthe and Gaboardi list them. A system must use the bound of the scheme that it runs.
  • Related amplification. Privacy amplification by shuffling is a different effect: it hides who sent each local report, not who is in the sample.

Tightness

Let a special record vv be absent from xx, and let x′=x∪{v}x' = x \cup \{v\}. Let M(T)M(T) apply randomized response with parameter ε\varepsilon to the bit "vv is in TT". This bit changes by at most 1 between add/remove neighbors, so MM is ε\varepsilon-DP. On xx, the bit is 0, and MM outputs 1 with probability 1/(1+u)1/(1 + u). On x′x', the bit is 1 with probability qq, and MM outputs 1 with probability

qu1+u+(1−q)11+u=1+q(u−1)1+u.q\frac{u}{1+u} + (1-q)\frac{1}{1+u} = \frac{1 + q(u-1)}{1+u}.

The ratio is exactly 1+q(u−1)=eεq1 + q(u - 1) = e^{\varepsilon_q}. So M∘PoiqM \circ \mathrm{Poi}_q is not ε′′\varepsilon''-DP for any ε′′<εq\varepsilon'' < \varepsilon_q, and part 1 is tight.

History

Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith used amplification by sampling in their study of what can be learned privately (FOCS 2008; SIAM Journal on Computing 2011), and the effect appears in work of Smith from the same period. Later papers stated many versions, with different sampling schemes and neighbor relations. Balle, Barthe and Gaboardi (NeurIPS 2018) gave a uniform method through couplings and divergences, and tight bounds for each scheme. Abadi et al. (2016) and Mironov, Talwar and Zhang (2019) analyzed the subsampled Gaussian mechanism directly, which is sharper than amplification followed by composition.

References

  1. Borja Balle, Gilles Barthe and Marco Gaboardi, Privacy amplification by subsampling: tight analyses via couplings and divergences, NeurIPS 2018, arXiv 1807.01647, the bounds for Poisson subsampling with add/remove neighbors and for sampling without replacement with replace neighbors, proved by couplings and advanced joint convexity
  2. Shiva Prasad Kasiviswanathan, Homin K. Lee, Kobbi Nissim, Sofya Raskhodnikova and Adam Smith, What can we learn privately?, SIAM Journal on Computing 40(3), 2011, the lemma that running a private algorithm on a random sample of the data improves its privacy parameter
  3. Ilya Mironov, Kunal Talwar and Li Zhang, Renyi differential privacy of the sampled Gaussian mechanism, arXiv 1908.10530, 2019, Definition 3 (Poisson sampling with add/remove neighbors) and Table 1 (bounds for the subsampled Gaussian under different sampling schemes)

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