Composition of Differential Privacy & Privacy Amplification by Subsampling

Thomas Steinke

Introduction

Our data is subject to many different uses. Many entities will have access to our data, including government agencies, healthcare providers, employers, technology companies, and financial institutions. Those entities will perform many different analyses that involve our data and those analyses will be updated repeatedly over our lifetimes. The greatest risk to privacy is that an attacker will combine multiple pieces of information from the same or different sources and that the combination of these will reveal sensitive details about us. Thus we cannot study privacy leakage in a vacuum; it is important that we can reason about the accumulated privacy leakage over multiple independent analyses.

As a concrete example to keep in mind, consider the following simple differencing attack: Suppose your employer provides healthcare benefits. The employer pays for these benefits and thus may have access to summary statistics like how many employees are currently receiving pre-natal care or currently are being treated for cancer. Your pregnancy or cancer status is highly sensitive information, but intuitively the aggregated count is not sensitive as it is not specific to you. However, this count may be updated on a regular basis and your employer may notice that the count increased on the day you were hired or on the day you took off for a medical appointment. This example shows how multiple pieces of information – the date of your hire or medical appointment, the count before that date, and the count afterwards – can be combined to reveal sensitive information about you, despite each piece of information seeming innocuous on its own. Attacks could combine many different statistics from multiple sources and hence we need to be careful to guard against such attacks, which leads us to differential privacy.

Differential privacy has strong composition properties – if multiple independent analyses are run on our data and each analysis is differentially private on its own, then the combination of these analyses is also differentially private. This property is key to the success of differential privacy. Composition enables building complex differentially private systems out of simple differentially private subroutines. Composition allows the re-use data over time without fear of a catastrophic privacy failure. And, when multiple entities use the data of the same individuals, they do not need to coordinate to prevent an attacker from learning private details of individuals by combining the information released by those entities. To prevent the above differencing attack, we could independently perturb each count to make it differentially private; then taking the difference of two counts would be sufficiently noisy to obscure your pregnancy or cancer status.

Composition is quantitative. The differential privacy guarantee of the overall system will depend on the number of analyses and the privacy parameters that they each satisfy. The exact relationship between these quantities can be complex. There are various composition theorems that give bounds on the overall parameters in terms of the parameters of the parts of the system. In this chapter, we will study several composition theorems (including the relevant proofs) and we will also look at some examples that demonstrate how to apply the composition theorems and why we need them.

Composition theorems provide privacy bounds for a given system. A system designer must use composition theorems to design systems that simultaneously give good privacy and good utility (i.e., good statistical accuracy). This process often called “privacy budgeting” or “privacy accounting.” Intuitively, the system designer has some privacy constraint (i.e., the overall system must satisfy some final privacy guarantee) which can be viewed as analogous to a monetary budget that must be divided amongst the various parts of the system. Composition theorems provide the accounting rules for this budget. Allocating more of the budget to some part of the system makes that part more accurate, but then less budget is available for other parts of the system. Thus the system designer must also make a value judgement about which parts of the system to prioritize.

Basic Composition

The simplest composition theorem is what is known as basic composition. This applies to pure ε\varepsilon-DP (although it can be extended to approximate (ε,δ)(\varepsilon,\delta)-DP). Basic composition says that, if we run kk independent ε\varepsilon-DP algorithms, then the composition of these is kεk\varepsilon-DP. More generally, we have the following result.

Let M1,M2,⋯ ,Mk:Xn→YM_{1},M_{2},\cdots,M_{k}:\mathcal{X}^{n}\to\mathcal{Y} be randomized algorithms. Suppose MjM_{j} is εj\varepsilon_{j}-DP for each j∈[k]j\in[k]. Define M:Xn→YkM:\mathcal{X}^{n}\to\mathcal{Y}^{k} by M(x)=(M1(x),M2(x),⋯ ,Mk(x))M(x)=(M_{1}(x),M_{2}(x),\cdots,M_{k}(x)), where each algorithm is run independently. Then MM is ε\varepsilon-DP for ε=∑j=1kεj\varepsilon=\sum_{j=1}^{k}\varepsilon_{j}.

If we want to release kk values each of sensitivity 11 (as above) and have the overall release be ε\varepsilon-DP, then, using basic composition, we can add Laplace(k/ε)\mathsf{Laplace}(k/\varepsilon) noise to each value. The variance of the noise for each value is 2k2/ε22k^{2}/\varepsilon^{2}, so the standard deviation is 2k/ε\sqrt{2}k/\varepsilon. In other words, the scale of the noise must grow linearly with the number of values kk if the overall privacy and each value’s sensitivity is fixed. It is natural to wonder whether the scale of the Laplace noise can be reduced by improving the basic composition result. We now show that this is not possible.

This shows that basic composition is optimal. For this example, we cannot prove a better guarantee than what is given by basic composition.

The limitation of pure ε\varepsilon-DP is that events with tiny probability – which are negligible in real-world applications – can dominate the privacy analysis. This motivates us to move to relaxed notions of differential privacy, such as approximate (ε,δ)(\varepsilon,\delta)-DP and concentrated DP, which are less sensitive to low probability events. In particular, these relaxed notions of differential privacy allow us to prove quantitatively better composition theorems. The rest of this chapter develops this direction further.

Privacy Loss Distributions

Qualitatively, an algorithm M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} is differentially private if, for all neighbouring datasets x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}, the output distributions M(x)M(x) and M(x′)M(x^{\prime}) are “indistinguishable” or “close.” The key question is how do we quantify the closeness or indistinguishability of a pair of distributions?

We could also consider the total variation distance (a.k.a. statistical distance):

Another option would be the KL divergence (a.k.a. relative entropy). Both TV distance and KL divergence turn out to give poor privacy-utility tradeoffs; that is, to rule out bad algorithms MM, we must set these parameters very small, but that also rules out all the good algorithms. Intuitively, both TV and KL are not sensitive enough to low-probability bad events (whereas pure DP is too sensitive). We need to introduce a parameter (δ\delta) to determine what level of low probability events we can ignore.

All of these options for quantifying indistinguishability can be viewed from the perspective of the privacy loss distribution. The privacy loss distribution also turns out to be essential to the analysis of composition. Approximate (ε,δ)(\varepsilon,\delta)-DP bounds are usually proved via the privacy loss distribution.

We now formally define the privacy loss distribution and relate it to the various quantities we have considered. Then (in §3.1) we will calculate the privacy loss distribution corresponding to the Gaussian mechanism, which is a particularly nice example. In the next subsection (§3.2), we explain how the privacy loss distribution arises naturally via statistical hypothesis testing. To conclude this section (§3.3), we precisely relate the privacy loss back to approximate (ε,δ)(\varepsilon,\delta)-DP. In the next section (§4), we will use the privacy loss distribution as a tool to analyze composition.

In the context of differential privacy, the distributions P=M(x)P=M(x) and Q=M(x′)Q=M(x^{\prime}) correspond to the outputs of the algorithm MM on neighbouring inputs x,x′x,x^{\prime}. Successfully distinguishing these distributions corresponds to learning some fact about an individual person’s data. The randomness of the privacy loss random variable ZZ comes from the randomness of the algorithm MM (e.g., added noise). Intuitively, the privacy loss tells us which input (xx or x′x^{\prime}) is more likely given the observed output (Y←M(⋅)Y\leftarrow M(\cdot)). If Z>0Z>0, then the hypothesis Y←P=M(x)Y\leftarrow P=M(x) explains the observed output better than the hypothesis Y←Q=M(x′)Y\leftarrow Q=M(x^{\prime}) and vice versa. The magnitude of the privacy loss ZZ indicates how strong the evidence for this conclusion is. If Z=0Z=0, both hypotheses explain the output equally well, but, if Z→∞Z\to\infty, then we can be nearly certain that the output came from PP, rather than QQ. A very negative privacy loss Z≪0Z\ll 0 means that the observed output Y←PY\leftarrow P strongly supports the wrong hypothesis (i.e., Y←QY\leftarrow Q).

As long as the privacy loss distribution is well-defined,The privacy loss distribution is not well-defined if absolute continuity fails to hold. Intuitively, this corresponds to the privacy loss being infinite. We can extend most of these definitions to allow for an infinite privacy loss. For simplicity, we do not delve into these issues. we can easily express almost all the quantities of interest in terms of it:

for all neighbouring x,x′x,x^{\prime}. (See Proposition 7.)

As an example, we will work out the privacy loss distribution corresponding to the addition of Gaussian noise to a bounded-sensitivity query. This example is particularly clean, as the privacy loss distribution is also a Gaussian, and it will turn out to be central to the story of composition.

Let P=N(μ,σ2)P=\mathcal{N}(\mu,\sigma^{2}) and Q=N(μ′,σ2)Q=\mathcal{N}(\mu^{\prime},\sigma^{2}). Then PrivLoss(P∥Q)=N(ρ,2ρ)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right)=\mathcal{N}(\rho,2\rho) for ρ=(μ−μ′)22σ2\rho=\frac{(\mu-\mu^{\prime})^{2}}{2\sigma^{2}}.

We have P(y)=12πσ2exp⁡(−(y−μ)22σ2)P(y)=\frac{1}{\sqrt{2\pi\sigma^{2}}}\exp\left(-\frac{(y-\mu)^{2}}{2\sigma^{2}}\right) and Q(y)=12πσ2exp⁡(−(y−μ′)22σ2)Q(y)=\frac{1}{\sqrt{2\pi\sigma^{2}}}\exp\left(-\frac{(y-\mu^{\prime})^{2}}{2\sigma^{2}}\right). Thus the log likelihood ratio is

The privacy loss of the Gaussian mechanism is unbounded; thus it does not satisfy pure ε\varepsilon-DP. However, the Gaussian distribution is highly concentrated, so we can say that with high probability the privacy loss is not too large. This is the basis of the privacy guarantee of the Gaussian mechanism.

2 Statistical Hypothesis Testing Perspective

To formally quantify differential privacy, we must measure the closeness or indistinguishability of the distributions P=M(x)P=M(x) and Q=M(x′)Q=M(x^{\prime}) corresponding to the outputs of the algorithm MM on neighbouring inputs x,x′x,x^{\prime}. Distinguishing a pair of distributions is precisely the problem of (simple) hypothesis testing in the field of statistical inference. Thus it is natural to look at hypothesis testing tools to quantify the (in)distinguishability of a pair of distributions.

In the language of hypothesis testing, the two distributions PP and QQ would be the null hypothesis and the alternate hypothesis, which correspond to a positive or negative example. We are given a sample YY drawn from one of the two distributions and our task is to determine which. Needless to say, there is, in general, no hypothesis test that perfectly distinguishes the two distributions and, when choosing a hypothesis test, we face a non-trivial tradeoff between false positives and false negatives. There are many different ways to measure how good a given hypothesis test is.

For example, we could measure the accuracy of the hypothesis test evenly averaged over the two distributions. In this case, given the sample YY, an optimal test chooses PP if P(Y)≥Q(Y)P(Y)\geq Q(Y) and otherwise chooses QQ; the accuracy of this test is

This measure of accuracy thus corresponds to TV distance. The greater the TV distance between the distributions, the more accurate this test is. However, as we mentioned earlier, TV distance does not yield good privacy-utility tradeoffs. Intuitively, the problem is that this hypothesis test doesn’t care about how confident we are. That is, the test only asks whether P(Y)≥Q(Y)P(Y)\geq Q(Y), but not how big the difference or ratio is. Hence we want a more refined measure of accuracy that does not count false positives and false negatives equally.

Regardless of how we measure how good the hypothesis test is, there is an optimal test statistic, namely the log likelihood ratio. This test statistic gives a real number and thresholding that value yields a binary hypothesis test; any binary hypothesis test is dominated by some value of the threshold. In other words, the tradeoff between false positives and false negatives reduces to picking a threshold. This remarkable – yet simple – fact is established by the Neyman-Pearson lemma:

How is this related to the privacy loss distribution? The test statistic Z=fP∥Q(Y)Z=f_{\left.{P}\middle\|{Q}\right.}(Y) under the hypothesis Y←PY\leftarrow P is precisely the privacy loss random variable Z←PrivLoss(P∥Q)Z\leftarrow\mathsf{PrivLoss}\left({P}\middle\|{Q}\right). Thus the Neyman-Pearson lemma tells us that the privacy loss distribution PrivLoss(P∥Q)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) captures everything we need to know about distinguishing PP from QQ.

Note that the Neyman-Pearson lemma also references the test statistic fP∥Q(Y)f_{\left.{P}\middle\|{Q}\right.}(Y) under the hypothesis Y←QY\leftarrow Q. This is fundamentally not that different from the privacy loss. There are two ways we can relate this quantity back to the usual privacy loss: First, we can relate it to PrivLoss(Q∥P)\mathsf{PrivLoss}\left({Q}\middle\|{P}\right) and this distribution is something we should be able to handle due to the symmetry of differential privacy guarantees.

Fix distributions PP and QQ on Y\mathcal{Y} such that the log likelihood ratio fP∥Q(y)=log⁡(P(y)Q(y))f_{\left.{P}\middle\|{Q}\right.}(y)=\log\left(\frac{P(y)}{Q(y)}\right) is well-defined for all y∈Yy\in\mathcal{Y}. Since fP∥Q(y)=−fQ∥P(y)f_{\left.{P}\middle\|{Q}\right.}(y)=-f_{\left.{Q}\middle\|{P}\right.}(y) for all y∈Yy\in\mathcal{Y}, if Z←PrivLoss(Q∥P)Z\leftarrow\mathsf{PrivLoss}\left({Q}\middle\|{P}\right), then −Z-Z follows the distribution of fP∥Q(Y)f_{\left.{P}\middle\|{Q}\right.}(Y) under the hypothesis Y←QY\leftarrow Q.

Second, if we need to compute an expectation of some function gg of fP∥Q(Y)f_{\left.{P}\middle\|{Q}\right.}(Y) under the hypothesis Y←QY\leftarrow Q, then we can still express this in terms of the privacy loss PrivLoss(P∥Q)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right):

3 Approximate DP & the Privacy Loss Distribution

So far, in this section, we have defined the privacy loss distribution, given an example, and illustrated that it is a natural quantity to consider that captures essentially everything we need to know about the (in)distinguishability of two distributions. To wrap up this section, we will relate the privacy loss distribution back to the definition of approximate (ε,δ)(\varepsilon,\delta)-DP:

Let PP and QQ be two probability distributions on Y\mathcal{Y} such that the privacy loss distribution PrivLoss(P∥Q)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) is well-defined. Fix ε≥0\varepsilon\geq 0 and define

For any measurable S⊂YS\subset\mathcal{Y}, we have

This gives the first expression in the result:

The expression δ=sup⁡S⊂YP(S)−eε⋅Q(S)\delta=\sup_{S\subset\mathcal{Y}}P(S)-e^{\varepsilon}\cdot Q(S) in Proposition 7 is known as the “hockey stick divergence” and it determines the smallest δ\delta for a given ε\varepsilon such that P(S)≤eεQ(S)+δP(S)\leq e^{\varepsilon}Q(S)+\delta for all S⊂YS\subset\mathcal{Y}. If P=M(x)P=M(x) and Q=M(x′)Q=M(x^{\prime}) for arbitrary neighbouring datasets x,x′x,x^{\prime}, then this expression gives the best approximate (ε,δ)(\varepsilon,\delta)-DP guarantee.

Proposition 7 gives us three equivalent ways to calculate δ\delta, each of which will be useful in different circumstances. To illustrate how to use Proposition 7, we combine it with Proposition 3 to prove a tight approximate differential privacy guarantee for Gaussian noise addition:

Furthermore, this guarantee is optimal – for every ε≥0\varepsilon\geq 0, there is no δ′<δ\delta^{\prime}<\delta such that MM is (ε,δ′)(\varepsilon,\delta^{\prime})-DP for general qq.

Fix arbitrary neighbouring datasets x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n} and S⊂YS\subset\mathcal{Y}. Let μ=q(x)\mu=q(x) and μ′=q(x′)\mu^{\prime}=q(x^{\prime}). Let P=M(x)=N(μ,σ2)P=M(x)=\mathcal{N}(\mu,\sigma^{2}) and Q=M(x′)=N(μ′,σ2)Q=M(x^{\prime})=\mathcal{N}(\mu^{\prime},\sigma^{2}). We must show P(S)≤eε⋅Q(S)+δP(S)\leq e^{\varepsilon}\cdot Q(S)+\delta for arbitrary ε≥0\varepsilon\geq 0 and the value δ\delta given in the result.

By Proposition 3, PrivLoss(P∥Q)=PrivLoss(Q∥P)=N(ρ,2ρ)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right)=\mathsf{PrivLoss}\left({Q}\middle\|{P}\right)=\mathcal{N}(\rho,2\rho), where ρ=(μ−μ′)22σ2≤ρ∗=Δ22σ2\rho=\frac{(\mu-\mu^{\prime})^{2}}{2\sigma^{2}}\leq\rho_{*}=\frac{\Delta^{2}}{2\sigma^{2}}.

By Proposition 7, we have P(S)≤eε⋅Q(S)+δP(S)\leq e^{\varepsilon}\cdot Q(S)+\delta, where

Since ρ≤ρ∗\rho\leq\rho_{*} and the above expression is increasing in ρ\rho, we can substitute in ρ∗\rho_{*} as an upper bound.

Optimality follows from the fact that both Propositions 3 and 7 give exact characterizations. Note that we must assume that there exist neighbouring x,x′x,x^{\prime} such that ρ=ρ∗\rho=\rho_{*}. ∎

The guarantee of Corollary 8 is exact, but it is somewhat hard to interpret. We can easily obtain a more interpretable upper bound:

Composition via the Privacy Loss Distribution

The privacy loss distribution captures essentially everything about the (in)distinguishability of a pair of distributions. It is also the key to understanding composition. Suppose we run multiple differentially private algorithms on the same dataset and each has a well-defined privacy loss distribution. The composition of these algorithms corresponds to the convolution of the privacy loss distributions. That is, the privacy loss random variable corresponding to running all of the algorithms independently is equal to the sum of the independent privacy loss random variables of each of the algorithms:

For each j∈[k]j\in[k], let PjP_{j} and QjQ_{j} be distributions on Yj\mathcal{Y}_{j} and assume PrivLoss(Pj∥Qj)\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right) is well defined. Let P=P1×P2×⋯×PkP=P_{1}\times P_{2}\times\cdots\times P_{k} denote the product distribution on Y=Y1×Y2×⋯×Yk\mathcal{Y}=\mathcal{Y}_{1}\times\mathcal{Y}_{2}\times\cdots\times\mathcal{Y}_{k} obtained by sampling independently from each PjP_{j}. Similarly, let Q=Q1×Q2×⋯×QkQ=Q_{1}\times Q_{2}\times\cdots\times Q_{k} denote the product distribution on Y\mathcal{Y} obtained by sampling independently from each QjQ_{j}. Then PrivLoss(P∥Q)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) is the convolution of the distributions PrivLoss(Pj∥Qj)\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right) for all j∈[k]j\in[k]. That is, sampling Z←PrivLoss(P∥Q)Z\leftarrow\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) is equivalent to Z=∑j=1kZjZ=\sum_{j=1}^{k}Z_{j} when Zj←PrivLoss(Pj∥Qj)Z_{j}\leftarrow\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right) independently for each j∈[k]j\in[k].

For all y∈Yy\in\mathcal{Y}, the log likelihood ratio (Definition 2) satisfies

Since PP is a product distribution, sampling Y←PY\leftarrow P is equivalent to sampling Y1←P1Y_{1}\leftarrow P_{1}, Y2←P2Y_{2}\leftarrow P_{2}, ⋯\cdots, Yk←PkY_{k}\leftarrow P_{k} independently.

A sample from the privacy loss distribution Z←PrivLoss(P∥Q)Z\leftarrow\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) is given by Z=fP∥Q(Y)Z=f_{\left.{P}\middle\|{Q}\right.}(Y) for Y←PY\leftarrow P. By the above two facts, this is equivalent to Z=fP1∥Q1(Y1)+fP2∥Q2(Y2)+⋯+fPk∥Qk(Yk)Z=f_{\left.{P_{1}}\middle\|{Q_{1}}\right.}(Y_{1})+f_{\left.{P_{2}}\middle\|{Q_{2}}\right.}(Y_{2})+\cdots+f_{\left.{P_{k}}\middle\|{Q_{k}}\right.}(Y_{k}) for Y1←P1Y_{1}\leftarrow P_{1}, Y2←P2Y_{2}\leftarrow P_{2}, ⋯\cdots, Yk←PkY_{k}\leftarrow P_{k} independently. For each j∈[k]j\in[k], sampling Zj←PrivLoss(Pj∥Qj)Z_{j}\leftarrow\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right) is given by Zj=fPj∥Qj(Yj)Z_{j}=f_{\left.{P_{j}}\middle\|{Q_{j}}\right.}(Y_{j}) for Yj←PjY_{j}\leftarrow P_{j}. Thus sampling Z←PrivLoss(P∥Q)Z\leftarrow\mathsf{PrivLoss}\left({P}\middle\|{Q}\right) is equivalent to Z=Z1+Z2+⋯+ZkZ=Z_{1}+Z_{2}+\cdots+Z_{k} where Z1←PrivLoss(P1∥Q1)Z_{1}\leftarrow\mathsf{PrivLoss}\left({P_{1}}\middle\|{Q_{1}}\right), Z2←PrivLoss(P2∥Q2)Z_{2}\leftarrow\mathsf{PrivLoss}\left({P_{2}}\middle\|{Q_{2}}\right), ⋯\cdots, Zk←PrivLoss(Pk∥Qk)Z_{k}\leftarrow\mathsf{PrivLoss}\left({P_{k}}\middle\|{Q_{k}}\right) are independent. ∎

Theorem 9 is the key to understanding composition of differential privacy. More concretely, we should think of a pair of neighbouring inputs x,x′x,x^{\prime} and kk algorithms M1,⋯ ,MkM_{1},\cdots,M_{k}. Suppose MM is the composition of M1,⋯ ,MkM_{1},\cdots,M_{k}. Then the the differential privacy of MM can be expressed in terms of the privacy loss distribution PrivLoss(M(x)∥M(x′))\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right). Theorem 9 allows us to decompose this privacy loss as the sum/convolution of the privacy losses of the constituent algorithms PrivLoss(Mj(x)∥Mj(x′))\mathsf{PrivLoss}\left({M_{j}(x)}\middle\|{M_{j}(x^{\prime})}\right) for j∈[k]j\in[k]. Thus if we have differential privacy guarantees for each MjM_{j}, this allows us to prove differential privacy guarantees for MM.

Intuitively, we will apply the central limit theorem. The privacy loss random variable of the composed algorithm MM can be expressed as the sum of independent bounded random variables. That means the privacy loss distribution PrivLoss(M(x)∥M(x′))\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) is well-approximated by a Gaussian, which is the information we need to prove a composition theorem. What is left to do is to obtain bounds on the mean and variance of the summands and make this Gaussian approximation precise.

Gaussian Composition:

It is instructive to look at composition when each constituent algorithm MjM_{j} is the Gaussian noise addition mechanism. In this case the privacy loss distribution is exactly Gaussian and convolutions of Gaussians are also Gaussian. This is the ideal case and our general composition theorem will be an approximation to this ideal.

Specifically, we can prove a multivariate analog of Corollary 8:

Furthermore, this guarantee is optimal – for every ε≥0\varepsilon\geq 0, there is no δ′<δ\delta^{\prime}<\delta such that MM is (ε,δ′)(\varepsilon,\delta^{\prime})-DP for general qq.

Now both PP and QQ are product distributions: For j∈[d]j\in[d], let Pj=N(μj,σ2)P_{j}=\mathcal{N}(\mu_{j},\sigma^{2}) and Qj=N(μj′,σ2)Q_{j}=\mathcal{N}(\mu^{\prime}_{j},\sigma^{2}). Then P=P1×P2×⋯PdP=P_{1}\times P_{2}\times\cdots P_{d} and Q=Q1×Q2×⋯×QdQ=Q_{1}\times Q_{2}\times\cdots\times Q_{d}.

By Theorem 9, PrivLoss(P∥Q)=∑j=1dPrivLoss(Pj∥Qj)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right)=\sum_{j=1}^{d}\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right) and PrivLoss(Q∥P)=∑j=1dPrivLoss(Qj∥Pj)\mathsf{PrivLoss}\left({Q}\middle\|{P}\right)=\sum_{j=1}^{d}\mathsf{PrivLoss}\left({Q_{j}}\middle\|{P_{j}}\right).

By Proposition 3, PrivLoss(Pj∥Qj)=PrivLoss(Qj∥Pj)=N(ρj,2ρj)\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right)=\mathsf{PrivLoss}\left({Q_{j}}\middle\|{P_{j}}\right)=\mathcal{N}(\rho_{j},2\rho_{j}), where ρj=(μj−μj′)22σ2\rho_{j}=\frac{(\mu_{j}-\mu^{\prime}_{j})^{2}}{2\sigma^{2}} for all j∈[d]j\in[d].

Thus PrivLoss(P∥Q)=PrivLoss(Q∥P)=∑j=1dN(ρj,2ρj)=N(ρ,2ρ)\mathsf{PrivLoss}\left({P}\middle\|{Q}\right)=\mathsf{PrivLoss}\left({Q}\middle\|{P}\right)=\sum_{j=1}^{d}\mathcal{N}(\rho_{j},2\rho_{j})=\mathcal{N}(\rho,2\rho), where ρ=∑j=1dρj=∥μ−μ′∥222σ2≤ρ∗=Δ22σ2\rho=\sum_{j=1}^{d}\rho_{j}=\frac{\|\mu-\mu^{\prime}\|_{2}^{2}}{2\sigma^{2}}\leq\rho_{*}=\frac{\Delta^{2}}{2\sigma^{2}}.

By Proposition 7, we have P(S)≤eε⋅Q(S)+δP(S)\leq e^{\varepsilon}\cdot Q(S)+\delta, where

Since ρ≤ρ∗\rho\leq\rho_{*} and the above expression is increasing in ρ\rho, we can substitute in ρ∗\rho_{*} as an upper bound.

Optimality follows from the fact that Propositions 3 and 7 and Theorem 9 give exact characterizations. Note that we must assume that there exist neighbouring x,x′x,x^{\prime} such that ρ=ρ∗\rho=\rho_{*}. ∎

The key to the analysis of Gaussian composition in the proof of Corollary 10 is that sums of Gaussians are Gaussian. In general, the privacy loss of each component is not Gaussian, but the sum still behaves much like a Gaussian and this observation is the basis for improving the composition analysis.

Composition via Gaussian Approximation:

After analyzing Gaussian composition, our next step is to analyze the composition of kk independent ε\varepsilon-DP algorithms. We will use the same tools as we did for Gaussian composition and we will develop a new tool, which is called concentrated differential privacy.

Let M1,⋯ ,Mk:Xn→YM_{1},\cdots,M_{k}:\mathcal{X}^{n}\to\mathcal{Y} each be ε\varepsilon-DP and let M:Xn→YkM:\mathcal{X}^{n}\to\mathcal{Y}^{k} be the composition of these algorithms. Let x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n} be neighbouring datasets. For notational convenience, let Pj=Mj(x)P_{j}=M_{j}(x) and Qj=Mj(x′)Q_{j}=M_{j}(x^{\prime}) for all j∈[k]j\in[k] and let P=M(x)=P1×P2×⋯×PkP=M(x)=P_{1}\times P_{2}\times\cdots\times P_{k} and Q=M(x′)=Q1×Q2×⋯×QkQ=M(x^{\prime})=Q_{1}\times Q_{2}\times\cdots\times Q_{k}.

Our goal is to understand the privacy loss Z←PrivLoss(P∥Q)=PrivLoss(M(x)∥M(x′))Z\leftarrow\mathsf{PrivLoss}\left({P}\middle\|{Q}\right)=\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) of the composed algorithm. Theorem 9 tells us that this is the convolution of the constituent privacy losses. That is, we can write Z=∑j=1kZjZ=\sum_{j=1}^{k}Z_{j} where Zj←PrivLoss(Pj∥Qj)=PrivLoss(Mj(x)∥Mj(x′))Z_{j}\leftarrow\mathsf{PrivLoss}\left({P_{j}}\middle\|{Q_{j}}\right)=\mathsf{PrivLoss}\left({M_{j}(x)}\middle\|{M_{j}(x^{\prime})}\right) independently for each j∈[k]j\in[k].

Since ZZ can be written as the sum of independent bounded random variables, the central limit theorem tells us that it is well approximated by a Gaussian – i.e.,

Are we done? Can we substitute this approximation into Proposition 7 to complete the proof of a better composition theorem? We must make this approximation precise. Unfortunately, the approximation guarantee of the quantitative central limit theorem (a.k.a., the Berry-Esseen Theorem) is not quite strong enough. To be precise, converting the guarantee to approximate (ε,δ)(\varepsilon,\delta)-DP would incur an error of δ≥Ω(1/k)\delta\geq\Omega(1/\sqrt{k}), which is larger than we want.

Our approach is to look at the moment generating function – i.e., the expectation of an exponential function – of the privacy loss distribution. To be precise, we will show that, for all t≥0t\geq 0,

To formalize this approach, we next introduce concentrated differential privacy.

1 Concentrated Differential Privacy

Concentrated differential privacy [DR16, BS16] is a variant of differential privacy (like pure DP and approximate DP). The main advantage of concentrated DP is that it composes well. Thus we will use it as a tool to prove better composition results.

Let M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} be a randomized algorithm. We say that MM satisfies ρ\rho-concentrated differential privacy (ρ\rho-zCDP) if, for all neighbouring inputs x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}, the privacy loss distribution PrivLoss(M(x)∥M(x′))\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) is well-defined (see Definition 2) and

To contextualize this definition, we begin by showing that the Gaussian mechanism satisfies it.

To analyze the composition of kk independent ε\varepsilon-DP algorithms, we will prove three results: (i) Pure ε\varepsilon-DP implies 12ε2\frac{1}{2}\varepsilon^{2}-zCDP. (ii) The composition of kk independent 12ε2\frac{1}{2}\varepsilon^{2}-zCDP algorithms satisfies 12ε2k\frac{1}{2}\varepsilon^{2}k-zCDP. (iii) 12ε2k\frac{1}{2}\varepsilon^{2}k-zCDP implies approximate (ε′,δ)(\varepsilon^{\prime},\delta)-DP with δ∈(0,1)\delta\in(0,1) arbitrary and ε′=ε⋅2klog⁡(1/δ)+12ε2k\varepsilon^{\prime}=\varepsilon\cdot\sqrt{2k\log(1/\delta)}+\frac{1}{2}\varepsilon^{2}k. We begin with composition, as this is the raison d’être for concentrated DP:

Let M1,M2,⋯ ,Mk:Xn→YM_{1},M_{2},\cdots,M_{k}:\mathcal{X}^{n}\to\mathcal{Y} be randomized algorithms. Suppose MjM_{j} is ρj\rho_{j}-zCDP for each j∈[k]j\in[k]. Define M:Xn→YkM:\mathcal{X}^{n}\to\mathcal{Y}^{k} by M(x)=(M1(x),M2(x),⋯ ,Mk(x))M(x)=(M_{1}(x),M_{2}(x),\cdots,M_{k}(x)), where each algorithm is run independently. Then MM is ρ\rho-zCDP for ρ=∑j=1kρj\rho=\sum_{j=1}^{k}\rho_{j}.

Fix neighbouring inputs x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}. By our assumption that each algorithm MjM_{j} is ρj\rho_{j}-zCDP,

By Theorem 9, Z←PrivLoss(M(x)∥M(x′))Z\leftarrow\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) can be written as Z=∑j=1kZjZ=\sum_{j=1}^{k}Z_{j}, where Zj←PrivLoss(Mj(x)∥Mj(x′))Z_{j}\leftarrow\mathsf{PrivLoss}\left({M_{j}(x)}\middle\|{M_{j}(x^{\prime})}\right) independently for each j∈[k]j\in[k].

Since xx and x′x^{\prime} were arbitrary, this proves that MM satisfies ρ\rho-zCDP, as required. ∎

Next we show how to convert from concentrated DP to approximate DP, which applies the tools we developed earlier. (This conversion is fairly tight, but not completely optimal; Asoodeh, Liao, Calmon, Kosut, and Sankar [ALCKS20] give an optimal conversion.)

For any M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} and any ε,t≥0\varepsilon,t\geq 0, MM satisfies (ε,δ)(\varepsilon,\delta)-DP with

In particular, if MM satisfies ρ\rho-zCDP, then MM satisfies (ε,δ)(\varepsilon,\delta)-DP for any ε≥ρ\varepsilon\geq\rho with

Let Z←PrivLoss(M(x)∥M(x′))Z\leftarrow\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right). By Proposition 7, it suffices to show

for the value of δ\delta given in the statement above.

Let c>0c>0 be a constant such that, with probability 1,

We trivially have 0≤c⋅exp⁡(tZ)0\leq c\cdot\exp(tZ) as long as c>0c>0. Thus we only need to ensure 1−exp⁡(ε−Z)≤c⋅exp⁡(tZ)1-\exp(\varepsilon-Z)\leq c\cdot\exp(tZ). That is, for any value of t>0t>0, we can set

which immediately yields the equality in the second part of the statement.

To obtain the inequality in the second part of the statement, we observe that

whence c≤exp⁡(−εt)c\leq\exp(-\varepsilon t). Substituting in this upper bound on cc and setting t=(ε−ρ)/2ρt=(\varepsilon-\rho)/2\rho completes the proof ∎

Proposition 14 shows that ρ\rho-zCDP implies (ε,δ=exp⁡(−(ε−ρ)2/4ρ))(\varepsilon,\delta=\exp(-(\varepsilon-\rho)^{2}/4\rho))-DP for all ε≥ρ\varepsilon\geq\rho. Equivalently, ρ\rho-zCDP implies (ε=ρ+2ρ⋅log⁡(1/δ),δ)(\varepsilon=\rho+2\sqrt{\rho\cdot\log(1/\delta)},\delta)-DP for all δ>0\delta>0. Also, to obtain a given a target (ε,δ)(\varepsilon,\delta)-DP guarantee, it suffices to have ρ\rho-zCDP with

This gives a sufficient condition; tighter bounds can be obtained from Proposition 14. For example, if we add N(0,σ2)\mathcal{N}(0,\sigma^{2}) to a query of sensitivity 1, then, by Lemma 12, to ensure (ε,δ)(\varepsilon,\delta)-DP it suffices to set σ2=2ε2⋅(log⁡(1/δ)+ε)\sigma^{2}=\frac{2}{\varepsilon^{2}}\cdot\left(\log(1/\delta)+\varepsilon\right).

The final piece of the puzzle is the conversion from pure DP to concentrated DP.

Suppose MM satisfies ε\varepsilon-DP, then MM satisfies 12ε2\frac{1}{2}\varepsilon^{2}-zCDP.

The key additional fact is the following consequence of Lemma 6

We can write this out as an integral to make it clear:

The final line sets x=p⋅e2tε1−p+p⋅e2tεx=\frac{p\cdot e^{2t\varepsilon}}{1-p+p\cdot e^{2t\varepsilon}} and uses the fact that the function x⋅(1−x)x\cdot(1-x) is maximized at x=12.x=\frac{1}{2}.

If we substitute t=−1t=-1 into Lemma 17, we have

Substituting this bound on the expectation back into Lemma 17 yields the result: For all t>0t>0, we have

Combining these three results lets us prove what is known as the advanced composition theorem where we start with each individual algorithm satisfying pure DP [DRV10]:

Let M1,M2,⋯ ,Mk:Xn→YM_{1},M_{2},\cdots,M_{k}:\mathcal{X}^{n}\to\mathcal{Y} be randomized algorithms. Suppose MjM_{j} is εj\varepsilon_{j}-DP for each j∈[k]j\in[k]. Define M:Xn→YkM:\mathcal{X}^{n}\to\mathcal{Y}^{k} by M(x)=(M1(x),M2(x),⋯ ,Mk(x))M(x)=(M_{1}(x),M_{2}(x),\cdots,M_{k}(x)), where each algorithm is run independently. Then MM is (ε,δ)(\varepsilon,\delta)-DP for any δ>0\delta>0 with

By Proposition 16, for each j∈[k]j\in[k], MjM_{j} satisfies ρj\rho_{j}-zCDP with ρj=12εj2\rho_{j}=\frac{1}{2}\varepsilon_{j}^{2}. By composition of concentrated DP (Theorem 13), MM satisfies ρ\rho-zCDP with ρ=∑j=1kρj\rho=\sum_{j=1}^{k}\rho_{j}. Finally, Proposition 14 can convert this concentrated DP guarantee to approximate DP: MM satisfies (ε,δ)(\varepsilon,\delta)-DP for all ε≥ρ\varepsilon\geq\rho and δ=exp⁡(−(ε−ρ)2/4ρ)\delta=\exp(-(\varepsilon-\rho)^{2}/4\rho). We can rearrange this so that δ>0\delta>0 is arbitrary and ε=ρ+4ρlog⁡(1/δ)\varepsilon=\rho+\sqrt{4\rho\log(1/\delta)}. ∎

Recall that the basic composition theorem (Theorem 1) gives δ=0\delta=0 and ε=∑j=1kεj\varepsilon=\sum_{j=1}^{k}\varepsilon_{j}. That is, basic composition scales with the 1-norm of the vector (ε1,ε2,⋯ ,εk)(\varepsilon_{1},\varepsilon_{2},\cdots,\varepsilon_{k}), whereas advanced composition scales with the 2-norm of this vector (and the squared 2-norm). Neither bound strictly dominates the other. However, asymptotically (in a sense we will make precise in the next paragraph) advanced composition dominates basic composition.

Suppose we have a fixed (ε,δ)(\varepsilon,\delta)-DP guarantee for the entire system and we must answer kk queries of sensitivity 11. Using basic composition, we can answer each query by adding Laplace(k/ε)\mathsf{Laplace}(k/\varepsilon) noise to each answer. However, using advanced composition, we can answer each query by adding Laplace(k/2ρ)\mathsf{Laplace}(\sqrt{k/2\rho}) noise to each answer, where

(per Remark 15). If the privacy parameters ε,δ>0\varepsilon,\delta>0 are fixed (which implies ρ\rho is fixed) and k→∞k\to\infty, we can see that asymptotically advanced composition gives noise per query scaling as Θ(k)\Theta(\sqrt{k}), while basic composition results in noise scaling as Θ(k)\Theta(k).

2 Adaptive Composition & Postprocessing

Thus far we have only considered non-adaptive composition. That is, we assume that the algorithms M1,M2,⋯ ,MkM_{1},M_{2},\cdots,M_{k} being composed are independent. More generally, adaptive composition considers the possibility that MjM_{j} can depend on the outputs of M1,⋯ ,Mj−1M_{1},\cdots,M_{j-1}. This kind of dependence arises very often, either in an iterative algorithm, or an interactive system where a human chooses analyses to perform sequentially. Fortunately, adaptive composition is easy to deal with.

Let M1:Xn→Y1M_{1}:\mathcal{X}^{n}\to\mathcal{Y}_{1} be ρ1\rho_{1}-zCDP. Let M2:Xn×Y1→Y2M_{2}:\mathcal{X}^{n}\times\mathcal{Y}_{1}\to\mathcal{Y}_{2} be such that, for all y1∈Y1y_{1}\in\mathcal{Y}_{1}, the algorithm x↦M(x,y1)x\mapsto M(x,y_{1}) is ρ2\rho_{2}-zCDP. That is, M2M_{2} is ρ2\rho_{2}-zCDP in terms of its first argument for any fixed value of the second argument. Define M:Xn→Y2M:\mathcal{X}^{n}\to\mathcal{Y}_{2} by M(x)=M2(x,M1(x))M(x)=M_{2}(x,M_{1}(x)). Then MM is (ρ1+ρ2)(\rho_{1}+\rho_{2})-zCDP.

Proposition 19 only considers the composition of two algorithms, but it can be extended to kk algorithms by induction.

For now, we make a simplifying technical assumption (which we will justify later): We assume that, given y2=M(x,y1)y_{2}=M(x,y_{1}), we can determine y1y_{1}. This means we can decompose fM(x)∥M(x′)(y2)=fM1(x)∥M1(x′)(y1)+fM2(x,y1)∥M2(x′,y1)(y2)f_{\left.{M(x)}\middle\|{M(x^{\prime})}\right.}(y_{2})=f_{\left.{M_{1}(x)}\middle\|{M_{1}(x^{\prime})}\right.}(y_{1})+f_{\left.{M_{2}(x,y_{1})}\middle\|{M_{2}(x^{\prime},y_{1})}\right.}(y_{2}). Thus

as required. All that remains is to justify our simplifying technical assumption. We can perforce ensure this assumption holds by defining M^:Xn→Y1×Y2\hat{M}:\mathcal{X}^{n}\to\mathcal{Y}_{1}\times\mathcal{Y}_{2} by M^(x)=(y1,y2)\hat{M}(x)=(y_{1},y_{2}) where y1=M1(x)y_{1}=M_{1}(x) and y2=M2(x,y1)y_{2}=M_{2}(x,y_{1}) and proving the theorem for M^\hat{M} in lieu of MM. Since the output of M^\hat{M} includes both outputs, rather than just the last output, the above decomposition works. The result holds in general because MM is a postprocessing of M^\hat{M}. That is, we can obtain M(x)M(x) by running M^(x)\hat{M}(x) and discarding the first part of the output. Intuitively, discarding part of the output cannot hurt privacy. Formally, this is the postprocessing property of concentrated DP, which we prove in Lemma 20 and Corollary 21. ∎

Let P^\hat{P} and Q^\hat{Q} be distributions on Y^\hat{\mathcal{Y}} and let g:Y^→Yg:\hat{\mathcal{Y}}\to\mathcal{Y} be an arbitrary function. Define P=g(P^)P=g(\hat{P}) and Q=g(Q^)Q=g(\hat{Q}) to be the distributions on Y\mathcal{Y} obtained by applying gg to a function from P^\hat{P} and Q^\hat{Q} respectively. Then, for all t≥0t\geq 0,

To generate a sample from Y←QY\leftarrow Q, we sample Y^←Q^\hat{Y}\leftarrow\hat{Q} and set Y=g(Y^)Y=g(\hat{Y}). We consider the reverse process: Given y∈Yy\in\mathcal{Y}, define Q^y\hat{Q}_{y} to be the conditional distribution of Y^←Q^\hat{Y}\leftarrow\hat{Q} conditioned on g(Y^)=yg(\hat{Y})=y. That is, Q^y\hat{Q}_{y} is a distribution such that we can generate a sample Y^←Q^\hat{Y}\leftarrow\hat{Q} by first sampling Y←QY\leftarrow Q and then sampling Y^←Q^Y\hat{Y}\leftarrow\hat{Q}_{Y}. Note that if gg is an injective function, then Q^y\hat{Q}_{y} is a point mass.

We have the following key identity. Formally, this relates the Radon-Nikodym derivative of the postprocessed distributions (PP with respect to QQ) to the Radon-Nikodym derivative of the original distributions (P^\hat{P} with respect to Q^\hat{Q}) via the conditional distribution Q^y\hat{Q}_{y}.

To see where this identity comes from, write

where the inequality follows from Jensen’s inequality and the convexity of the function v↦vt+1v\mapsto v^{t+1}. ∎

Let M^:Xn→Y^\hat{M}:\mathcal{X}^{n}\to\hat{\mathcal{Y}} satisfy ρ\rho-zCDP. Let g:Y^→Yg:\hat{\mathcal{Y}}\to\mathcal{Y} be an arbitrary function. Define M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} by M(x)=g(M^(x))M(x)=g(\hat{M}(x)). Then MM is also ρ\rho-zCDP.

Fix neighbouring inputs x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}. Let P=M(x)P=M(x), Q=M(x′)Q=M(x^{\prime}), P^=M^(x)\hat{P}=\hat{M}(x), and Q^=M^(x′)\hat{Q}=\hat{M}(x^{\prime}). By Lemma 20 and the assumption that M^\hat{M} is ρ\rho-zCDP, for all t≥0t\geq 0,

which implies that MM is also ρ\rho-zCDP. ∎

3 Composition of Approximate (ε,δ)𝜀𝛿(\varepsilon,\delta)-DP

Thus far we have only considered the composition of pure DP mechanisms (Theorems 1 & 18) and the Gaussian mechanism (Corollary 10). What about approximate (ε,δ)(\varepsilon,\delta)-DP?

We have the following result which extends Theorems 1 & 18 to approximate DP and to adaptive composition.

For j∈[k]j\in[k], let Mj:Xn×Yj−1→YjM_{j}:\mathcal{X}^{n}\times\mathcal{Y}_{j-1}\to\mathcal{Y}_{j} be randomized algorithms. Suppose MjM_{j} is (εj,δj)(\varepsilon_{j},\delta_{j})-DP for each j∈[k]j\in[k]. For j∈[k]j\in[k], inductively define M1⋯j:Xn→YjM_{1\cdots j}:\mathcal{X}^{n}\to\mathcal{Y}_{j} by M1⋯j(x)=Mj(x,M1⋯(j−1)(x))M_{1\cdots j}(x)=M_{j}(x,M_{1\cdots(j-1)}(x)), where each algorithm is run independently and M1⋯0(x)=y0M_{1\cdots 0}(x)=y_{0} for some fixed y0∈Y0y_{0}\in\mathcal{Y}_{0}. Then M1⋯kM_{1\cdots k} is (ε,δ)(\varepsilon,\delta)-DP for any δ>∑j=1kδj\delta>\sum_{j=1}^{k}\delta_{j} with

where δ′=δ−∑j=1kδj\delta^{\prime}=\delta-\sum_{j=1}^{k}\delta_{j}.

Intuitively, if you consider the privacy loss PrivLoss(M(x)∥M(x′))\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) (where x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n} are arbitrary neighbouring inputs), then MM being (ε,δ)(\varepsilon,\delta)-DP is equivalent to the privacy loss being in [−ε,+ε][-\varepsilon,+\varepsilon] with probability at least 1−δ1-\delta; otherwise the privacy loss can be arbitrary (including possibly infinite). Informally, the proof of Theorem 22 uses a union bound to show that with probability at least 1−∑j=1kδj1-\sum_{j=1}^{k}\delta_{j} all of the privacy losses of the kk algorithms are bounded by their respective εj\varepsilon_{j}s. Once we condition on this event, the proof proceeds as before.

Formally, rather than reasoning about possibly infinite privacy losses, we use the following decomposition result.

Let PP and QQ be probability distributions over Y\mathcal{Y}. Fix ε,δ≥0\varepsilon,\delta\geq 0. Suppose that, for all measurable S⊂YS\subset\mathcal{Y}, we have P(S)≤eε⋅Q(S)+δP(S)\leq e^{\varepsilon}\cdot Q(S)+\delta and Q(S)≤eεP(S)+δQ(S)\leq e^{\varepsilon}P(S)+\delta.

Then there exist distributions P′,Q′,P′′,Q′′P^{\prime},Q^{\prime},P^{\prime\prime},Q^{\prime\prime} over Y\mathcal{Y} with the following properties. We can express PP and QQ as convex combinations of these distributions, namely P=(1−δ)P′+δP′′P=(1-\delta)P^{\prime}+\delta P^{\prime\prime} and Q=(1−δ)Q′+δQ′′Q=(1-\delta)Q^{\prime}+\delta Q^{\prime\prime}. And, for every measurable S⊂YS\subset\mathcal{Y}, we have e−ε⋅Q′(S)≤P′(S)≤eε⋅Q′(S)e^{-\varepsilon}\cdot Q^{\prime}(S)\leq P^{\prime}(S)\leq e^{\varepsilon}\cdot Q^{\prime}(S).

Fix ε1,ε2∈[0,ε]\varepsilon_{1},\varepsilon_{2}\in[0,\varepsilon] to be determined later. Define distributions P′P^{\prime}, P′′P^{\prime\prime}, Q′Q^{\prime}, and Q′′Q^{\prime\prime} as follows.Formally, P(y)P(y), P′(y)P^{\prime}(y), P′′(y)P^{\prime\prime}(y), Q(y)Q(y), Q′(y)Q^{\prime}(y), and Q′′(y)Q^{\prime\prime}(y) denote the Radon-Nikodym derivative of these distributions with respect to some base measure – usually either the counting measure (in which case these quantities are probability mass functions) or Lebesgue measure (in which case these quantities are probability density functions) – in any case, we can take P+QP+Q to be the base measure. For all points y∈Yy\in\mathcal{Y},

where δ1\delta_{1} and δ2\delta_{2} are appropriate normalizing constants.

By construction, (1−δ1)P′+δ1P′′=P(1-\delta_{1})P^{\prime}+\delta_{1}P^{\prime\prime}=P and (1−δ2)Q′+δ2Q′′=Q(1-\delta_{2})Q^{\prime}+\delta_{2}Q^{\prime\prime}=Q.

If δ1=δ2=δ\delta_{1}=\delta_{2}=\delta, then we have the appropriate decomposition and, for all y∈Yy\in\mathcal{Y}, we have

as required. If δ1=δ2<δ\delta_{1}=\delta_{2}<\delta, we can change the decomposition to

and likewise for QQ, which also yields the result.

It only remains to show that we can ensure that δ1=δ2≤δ\delta_{1}=\delta_{2}\leq\delta by appropriately setting ε1,ε2∈[0,ε]\varepsilon_{1},\varepsilon_{2}\in[0,\varepsilon]. We have

We can extend Lemma 23 to show that any pair of distributions staisfying the (ε,δ)(\varepsilon,\delta)-DP guarantee can be represented as a postprocessing of (ε,δ)(\varepsilon,\delta)-DP randomized response:

Let PP and QQ be probability distributions over Y\mathcal{Y}. Fix ε,δ≥0\varepsilon,\delta\geq 0. Suppose that, for all measurable S⊂YS\subset\mathcal{Y}, we have P(S)≤eε⋅Q(S)+δP(S)\leq e^{\varepsilon}\cdot Q(S)+\delta and Q(S)≤eεP(S)+δQ(S)\leq e^{\varepsilon}P(S)+\delta.

Then there exist distributions AA, BB, P′′P^{\prime\prime}, and Q′′Q^{\prime\prime} over Y\mathcal{Y} such that

By Lemma 23, there exist distributions P′,Q′,P′′,Q′′P^{\prime},Q^{\prime},P^{\prime\prime},Q^{\prime\prime} over Y\mathcal{Y} such that P=(1−δ)P′+δP′′P=(1-\delta)P^{\prime}+\delta P^{\prime\prime} and Q=(1−δ)Q′+δQ′′Q=(1-\delta)Q^{\prime}+\delta Q^{\prime\prime} and, for every measurable S⊂YS\subset\mathcal{Y}, we have e−ε⋅Q′(S)≤P′(S)≤eε⋅Q′(S)e^{-\varepsilon}\cdot Q^{\prime}(S)\leq P^{\prime}(S)\leq e^{\varepsilon}\cdot Q^{\prime}(S).

If ε=0\varepsilon=0, let A=B=P′=Q′A=B=P^{\prime}=Q^{\prime}. Otherwise, let

We can verify that AA and BB are probability distributions, since, for all SS, we have e−ε⋅Q′(S)≤P′(S)≤eε⋅Q′(S)e^{-\varepsilon}\cdot Q^{\prime}(S)\leq P^{\prime}(S)\leq e^{\varepsilon}\cdot Q^{\prime}(S), which implies A(S)≥0A(S)\geq 0 and B(S)≥0B(S)\geq 0. Also A(Y)=B(Y)=1A(\mathcal{Y})=B(\mathcal{Y})=1. And we have eεeε+1A+1eε+1B=P′\frac{e^{\varepsilon}}{e^{\varepsilon}+1}A+\frac{1}{e^{\varepsilon}+1}B=P^{\prime} and eεeε+1B+1eε+1A=Q′\frac{e^{\varepsilon}}{e^{\varepsilon}+1}B+\frac{1}{e^{\varepsilon}+1}A=Q^{\prime}, as required ∎

The proof of Theorem 22 is, unfortunately, quite technical. Most of the steps are the same as we have seen in the pure DP case. The only novelty is applying the decomposition of Lemma 23 inductively; this requires cumbersome notation, but is otherwise straightforward.

Fix neighbouring datasets x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}. We inductively define distributions PjP_{j} and QjQ_{j} on Y0×Y1×⋯×Yj\mathcal{Y}_{0}\times\mathcal{Y}_{1}\times\cdots\times\mathcal{Y}_{j} as follows. For j∈[k]j\in[k], Pj=(Y0,Y1,⋯ ,Yj−1,Mj(x,Yj−1))P_{j}=(Y_{0},Y_{1},\cdots,Y_{j-1},M_{j}(x,Y_{j-1})), where (Y1,⋯ ,Yj−1)←Pj−1(Y_{1},\cdots,Y_{j-1})\leftarrow P_{j-1}, and Qj=(Y0,Y1,⋯ ,Yj−1,Mj(x′,Yj−1))Q_{j}=(Y_{0},Y_{1},\cdots,Y_{j-1},M_{j}(x^{\prime},Y_{j-1})), where (Y1,⋯ ,Yj−1)←Qj−1(Y_{1},\cdots,Y_{j-1})\leftarrow Q_{j-1}. We define P0=Q0P_{0}=Q_{0} to be the point mass on y0y_{0}.

We will prove by induction that, for each j∈[k]j\in[k], there exist distributions Pj′P_{j}^{\prime}, Pj′′P_{j}^{\prime\prime}, Qj′Q_{j}^{\prime}, and Qj′′Q_{j}^{\prime\prime} on Y0×Y1×⋯×Yj\mathcal{Y}_{0}\times\mathcal{Y}_{1}\times\cdots\times\mathcal{Y}_{j} such that

where the final inequality holds for the case ε=12∑j=1kεj2+2log⁡(1/δ′)∑j=1kεj2\varepsilon=\frac{1}{2}\sum_{j=1}^{k}\varepsilon_{j}^{2}+\sqrt{2\log(1/\delta^{\prime})\sum_{j=1}^{k}\varepsilon_{j}^{2}} and requires setting t=ε∑j=1kεj2−12=2log⁡(1/δ′)∑j=1kεj2t=\frac{\varepsilon}{\sum_{j=1}^{k}\varepsilon_{j}^{2}}-\frac{1}{2}=\sqrt{\frac{2\log(1/\delta^{\prime})}{\sum_{j=1}^{k}\varepsilon_{j}^{2}}}.

It only remains for us to perform the induction. The base case (j=0j=0) is trivial.

Fix j∈[k]j\in[k] and assume the induction hypothesis holds for j−1j-1. The distribution PjP_{j} is defined as a mixture (i.e., convex combination) of Pj∣YP_{j}|_{Y} for Y←Pj−1Y\leftarrow P_{j-1}, where Pj∣Y:=(Y,Mj(x,Yj−1))P_{j}|_{Y}:=(Y,M_{j}(x,Y_{j-1})). For every yy, we apply Lemma 23 to the conditional distribution Pj∣yP_{j}|_{y} and then we take the convex combination of these decompositions to obtain a decomposition of PjP_{j}. Of course, we must also decompose QjQ_{j} at the same time.

For each y∈Y0×Y1×⋯Yj−1y\in\mathcal{Y}_{0}\times\mathcal{Y}_{1}\times\cdots\mathcal{Y}_{j-1}, the conditional distributions satisfy ∀S  Pj∣y(S)≤eεjQj∣y(S)+δj\forall S~{}~{}P_{j}|_{y}(S)\leq e^{\varepsilon_{j}}Q_{j}|_{y}(S)+\delta_{j} and vice versa. Thus Lemma 23 allows us to decompose the conditional distributions Pj∣yP_{j}|_{y} and Qj∣yQ_{j}|_{y} as Pj∣y=(1−δj)Pj′∣y+δjPj′′∣yP_{j}|_{y}=(1-\delta_{j})P_{j}^{\prime}|_{y}+\delta_{j}P_{j}^{\prime\prime}|_{y} and Qj∣y=(1−δj)Qj′∣y+δjQj′′∣yQ_{j}|_{y}=(1-\delta_{j})Q_{j}^{\prime}|_{y}+\delta_{j}Q_{j}^{\prime\prime}|_{y} where e−εj⋅Qj′∣y(S)≤Pj′∣y(S)≤eεj⋅Qj′∣y(S)e^{-\varepsilon_{j}}\cdot Q_{j}^{\prime}|_{y}(S)\leq P_{j}^{\prime}|_{y}(S)\leq e^{\varepsilon_{j}}\cdot Q_{j}^{\prime}|_{y}(S) for all SS. This gives us the desired decomposition:

Asymptotic Optimality of Composition

Is the advanced composition theorem optimal? That is, could we prove a result that is stronger? This is an important question, but we first need to think about what optimality even means. Recall that, in Section 2.1, we proved that basic composition is optimal, but then we showed that we could do better by relaxing the requirement from pure DP to approximate DP or concentrated DP. To prove asymptotic optimality of advanced composition, we will show that no algorithm can provide better accuracy than advanced composition gives (except for constant factors) subject to approximate DP. Furthermore, we will see that the analysis is not specific to approximate DP.

Combining advanced composition (Theorem 18 or 22) with Laplace noise addition shows that we can answer kk bounded sensitivity queries (e.g., counting queries) with noise scale Θ(k/ρ)\Theta(\sqrt{k/\rho}) for each query, where ρ\rho only depends on the privacy parameters, e.g., ρ=Θ(ε2/log⁡(1/δ))\rho=\Theta(\varepsilon^{2}/\log(1/\delta)) for (ε,δ)(\varepsilon,\delta)-DP. (Gaussian noise addition also gives the same asymptotics, per Corollary 10.)

We can prove that this asymptotics – average error per query Ω(k)\Omega(\sqrt{k}) – is optimal. Formally, we have the following result.

Let X={0,1}k\mathcal{X}=\{0,1\}^{k} and Y=k\mathcal{Y}=^{k}. Let M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} satisfy (ε,δ)(\varepsilon,\delta)-DP. If δ≤1/100n\delta\leq 1/100n and k≥200(eε−1)2nk\geq 200(e^{\varepsilon}-1)^{2}n, then there exists some x∈Xnx\in\mathcal{X}^{n} such that

where x‾=1n∑i=1nxi∈k\overline{x}=\frac{1}{n}\sum_{i=1}^{n}x_{i}\in^{k} is the mean of input dataset.

Theorem 25 shows that any DP algorithm answering kk queries must have error per query scaling with Ω(k)\Omega(\sqrt{k}), which matches the guarantees of the advanced composition theorem. We briefly remark on some of the properties of this theorem:

First, MM could just output 12\frac{1}{2} for each coordinate; this is trivially private and has root mean square error at most 12\frac{1}{2}. The theorem must apply to such an algorithm too, which is the fundamental reason why the lower bound in the conclusion of Theorem 25 cannot be larger than a constant 110\frac{1}{10}.

Third, the assumption k≥200(eε−1)2nk\geq 200(e^{\varepsilon}-1)^{2}n is not really necessary; it is an artifact of our analysis. If k≪ε2nk\ll\varepsilon^{2}n, then the privacy error is lower than the sampling error (if we think of xx as consisting of nn samples from some distribution). A different analysis is possible in this case.

Fourth, Theorem 25 has eε−1e^{\varepsilon}-1 in the denominator, where our positive results have ε\varepsilon. For small ε\varepsilon, we have eε−1≈εe^{\varepsilon}-1\approx\varepsilon. But, for large ε\varepsilon, there is an exponential difference. Surprisingly, this is inherent; by using discrete noise [CKS20] in place of continuous Laplace noise it is possible to improve the positive results to yield this asymptotic behaviour. However, we are generally not interested in the large ε\varepsilon setting.

Finally, fifth, this theorem is not merely an esoteric impossibility result. It corresponds to realistic attacks, which are known as “tracing attacks” [DSSU17] or “membership inference attacks” [SSSS17].

The theorem guarantees that there exists a specific input xx on which MM has high error. In general, xx must depend on MM. To prove this we show that, for a random input from a carefully chosen distribution, any MM must have high error. It follows that for each specific MM there must exist some fixed input with high error.

For p∈kp\in^{k}, let Dp\mathcal{D}_{p} be the product distribution over {0,1}k\{0,1\}^{k} with mean pp. Our random input X∈XnX\in\mathcal{X}^{n} will consist of nn independent draws from Dp\mathcal{D}_{p}. Furthermore, we select the mean parameter randomly too. That is, P∈dP\in^{d} is uniformly random and XX consists of nn conditionally independent draws from DP\mathcal{D}_{P}.

The punchline of the proof is that we show that differential privacy means the correlation must be small, which conflicts with the fact that we have proven it must be large. Ergo, we will obtain the desired impossibility result.

so that Z=∑i=1nZiZ=\sum_{i=1}^{n}Z_{i}. Let X0X_{0} be a fresh sample from DP\mathcal{D}_{P} that is (conditionally) independent from X1,⋯ ,XnX_{1},\cdots,X_{n}. Let M(X0,X−i)M(X_{0},X_{-i}) denote running MM on the dataset XX where XiX_{i} has been replaced by X0X_{0} and define

If α≤1/10\alpha\leq 1/10 and δ≤1/100n\delta\leq 1/100n, then 16−2α2−4nδ≥110\frac{1}{6}-2\alpha^{2}-4n\delta\geq\frac{1}{10}. If k≥200(eε−1)2nk\geq 200(e^{\varepsilon}-1)^{2}n, then (110)2⋅k2n2(eε−1)2≥1n\left(\frac{1}{10}\right)^{2}\cdot\frac{k}{2n^{2}(e^{\varepsilon}-1)^{2}}\geq\frac{1}{n}. If all three of these conditions hold, then

Hence, if δ≤1/100n\delta\leq 1/100n and k≥200(eε−1)2nk\geq 200(e^{\varepsilon}-1)^{2}n, then either α>1/10\alpha>1/10 or α≥k/16n(eε−1)\alpha\geq\sqrt{k}/16n(e^{\varepsilon}-1), as required. ∎

Now we prove the two lemmata that were used to prove Theorem 25. We begin with the lemma showing that the correlation ZZ must be large if MM is accurate.

The lemma only contemplates one coordinate and then we sum over the kk coordinates in the proof of Theorem 25. That is, the function ff in the theorem is simply one coordinate of MM and we average out the randomness of MM and the other coordinates.

To gain some intuition for the lemma statement, suppose f(x)=x‾=1n∑i=1nxif(x)=\overline{x}=\frac{1}{n}\sum_{i=1}^{n}x_{i}. Then

Now we apply integration by parts to this derivative:

as 1−e−ε≤eε−11-e^{-\varepsilon}\leq e^{\varepsilon}-1 and 1+e−ε≤21+e^{-\varepsilon}\leq 2. ∎

The only part of the proof of Theorem 25 that uses differential privacy is Lemma 27. Thus, if we were to consider a different definition of differential privacy, as long as an analog of Lemma 27 holds for this alternative definition, an analog of Theorem 25 would still apply. That is to say, this negative result is robust to our choice of privacy definition (unlike the the negative result in Section 2.1).

Privacy Amplification by Subsampling

Thus far we have considered the composition of Gaussian mechanisms, and generic mechanisms satisfying pure or approximate DP. We now turn our attention to subsampled privacy mechanisms. These mechanisms introduce some additional quirks into the picture, which will force us to develop new tools.

The premise of privacy amplification by subsampling is that we run a DP algorithm on some random subset of the data. The subset introduces additional uncertainty, which benefits privacy. In particular, there is some probability that your data is not included in the analysis, which can only enhance your privacy. Furthermore, a potential attacker does not know whether or not your data was dropped; this uncertainty can benefit your privacy even when your data is included. Privacy amplification by subsampling theorems make this intuition precise.

Subsampling arises naturally. We often would like to collect the data of the entire population, but this is impractical. Thus we collect the data of a subset of the population and use statistical methods to generalize from this sample to the entire population. In particular, in deep learning applications, we will use stochastic gradient descent. That is, we choose a random subset of our training data (called a minibatch) and compute the gradient of the loss function with respect to this subset, rather than the entire dataset. This method reduces the computational cost for training. If we want to make deep learning differentially private, then we will add noise to the gradients and we should exploit privacy amplification by subsampling to analyze the privacy properties of this algorithm.

In this section we will analyze subsampling precisely and we will show how it interacts with composition.

We begin by analyzing privacy amplification by subsampling under pure or approximate differential privacy. This is a relatively simple result, but it will be instructive as we later attempt to derive more precise bounds.

Let U⊂[n]U\subset[n] be a random subset. For a dataset x∈Xnx\in\mathcal{X}^{n}, let xU∈Xnx_{U}\in\mathcal{X}^{n} denote the entries of xx indexed by UU. That is, (xU)i=xi(x_{U})_{i}=x_{i} if i∈Ui\in U and (xU)i=⊥(x_{U})_{i}=\bot if i∉Ui\notin U, where ⊥∈X\bot\in\mathcal{X} is some null value.

Assume that, for all i∈[n]i\in[n], we can define U−i⊂[n]∖{i}U_{-i}\subset[n]\setminus\{i\} such that the following two conditions hold.

For all x∈Xnx\in\mathcal{X}^{n} and i∈[d]i\in[d], xUx_{U} and xU−ix_{U_{-i}} are always neighbouring datasets.

For all i∈[n]i\in[n], the marginal distribution of U−iU_{-i} conditioned on i∈Ui\in U is equal to the marginal distribution of UU conditioned on i∉Ui\notin U.

Let M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} satisfy (ε,δ)(\varepsilon,\delta)-DP. Define MU:Xn→YM^{U}:\mathcal{X}^{n}\to\mathcal{Y} by MU(x)=M(xU)M^{U}(x)=M(x_{U}).

For small values of ε\varepsilon, we have ε′=log⁡(1+p(eε−1))≈p⋅ε\varepsilon^{\prime}=\log(1+p(e^{\varepsilon}-1))\approx p\cdot\varepsilon. More precisely, ε′=log⁡(1+p(eε−1))≤p⋅(eε−1)\varepsilon^{\prime}=\log(1+p(e^{\varepsilon}-1))\leq p\cdot(e^{\varepsilon}-1) and, for ε≤1\varepsilon\leq 1, we have eε−1≤ε+ε2≤2εe^{\varepsilon}-1\leq\varepsilon+\varepsilon^{2}\leq 2\varepsilon.

The technical assumption about UU in the theorem statement is satisfied by many natural subsampling distributions: If UU is a uniformly random subset of [n][n] of a fixed size mm, then U−iU_{-i} can be obtained by replacing ii with a a uniformly random element that is not in UU. If UU is Poisson subsamplied – i.e., each i∈[n]i\in[n] is independently included in UU with probability pp – then, by independence, we can simply remove ii, namely U−i=U∖{i}U_{-i}=U\setminus\{i\}.

However, this inequality alone is not sufficient to prove the claim. We also need to show that b≤eε⋅a+δb\leq e^{\varepsilon}\cdot a+\delta. Using our technical assumption, we have

Now we can complete the proof: For any λ∈\lambda\in,

Set λ=pi+(1−pi)⋅e−ε\lambda=p_{i}+(1-p_{i})\cdot e^{-\varepsilon} to obtain

Let U⊂[n]U\subset[n] be random and let MU:{0,1}n→{0,1}M^{U}:\{0,1\}^{n}\to\{0,1\} be as in Theorem 29. Consider neighbouring datasets x=(0,0,⋯ ,0)x=(0,0,\cdots,0) and x′=(1,0,0,⋯ ,0)x^{\prime}=(1,0,0,\cdots,0). We have

2 Addition or Removal versus Replacement for Neighbouring Datasets

For this discussion of subsampling, we need to be careful about what it means for datasets to be neighbouring. There are three common definitions of what qualifies as neighbouring datasets: (i) addition or removal of one person’s data, (ii) replacement of one person’s data, or (iii) both. Each of these three options is a reasonable choice. Work on differential privacy often glosses over this choice – often the choice is irrelevant. But it becomes relevant if we want sharp analyses of privacy amplification by subsampling.

For the discussion of composition so far in this chapter, it does not matter at all how we define neighbouring datasets, as long as we are consistent. In general, it only matters slightly which we choose: A replacement can be accomplished by a combination of a removal and an addition. Thus, by group privacy, if the algorithm is (ε,δ)(\varepsilon,\delta)-DP with respect to addition or removal, then it is (2ε,(1+eε)δ)(2\varepsilon,(1+e^{\varepsilon})\delta)-DP with respect to replacement. Conversely, we can simulate a removal or addition by replacing the record with a “null” value (⊥\bot in the formalism of Theorem 29). Thus DP with respect to replacement entails DP with respect to addition or removal with the same parameters, unless the semantics of the algorithm forbids null values.

This subtlety already arises in Theorem 29. Let’s take a close look at the technical assumption: Theorem 29 assumes that, for all i∈[n]i\in[n], we can define U−i⊂[n]∖{i}U_{-i}\subset[n]\setminus\{i\} such that the following two conditions hold.

For all x∈Xnx\in\mathcal{X}^{n} and i∈[d]i\in[d], xUx_{U} and xU−ix_{U_{-i}} are always neighbouring datasets.

For all i∈[n]i\in[n], the marginal distribution of U−iU_{-i} conditioned on i∈Ui\in U is equal to the marginal distribution of UU conditioned on i∉Ui\notin U.

Suppose U⊂[n]U\subset[n] is a uniformly random subset of a fixed size ∣U∣=m|U|=m. Then we would define U−iU_{-i} to be UU with ii replaced by a uniformly random element that is not already in UU. Thus, for xUx_{U} and xU−ix_{U_{-i}} to be neighbouring datasets, our neighbouring relation must allow replacement, not just addition or removal.

However, if UU corresponds to Poisson subsampling (i.e., each i∈[n]i\in[n] is included in UU independently with probability pp), then U−iU_{-i} would just correspond to removing ii. In that case, for xUx_{U} and xU−ix_{U_{-i}} to be neighbouring datasets, our neighbouring relation must allow addition and removal.

It turns out to be easier to work with Poisson subsampling and assuming the neighbouring relation is addition or removal. In this case, the proof of Theorem 29 simplifies to the following.

Let U⊂[n]U\subset[n] independently include each element with probability pp. Let x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n} be neighbouring datasets in terms of addition or removal. Without loss of generality, assume x′x^{\prime} is xx with xix_{i} removed (or, rather, replaced by xi′=⊥x^{\prime}_{i}=\bot).To be formal, we assume ⊥∈X\bot\in\mathcal{X} is a null value that is equivalent to removing the item. In particular, for x∈Xnx\in\mathcal{X}^{n} and U⊂[n]U\subset[n] we can define xU∈Xnx_{U}\in\mathcal{X}^{n} such that (xU)i=xi(x_{U})_{i}=x_{i} if i∈Ui\in U and (xU)i=⊥(x_{U})_{i}=\bot if i∈[n]∖Ui\in[n]\setminus U. For any measurable S⊂YS\subset\mathcal{Y},

For the rest of this section, we will restrict our attention to Poisson subsampling and assume that the neighbouring relation corresponds to addition or removal of one individual’s data.

3 Subsampling & Composition

How does composition work with subsampling? Of course, we can combine the advanced composition theorem (Theorem 22) with our privacy amplification by subsampling result (Theorem 29). However, it turns out this is not the best way to analyze many realistic systems.

This algorithm interleaves composition with privacy amplification by subsampling. That is, we combine multivariate Gaussian noise addition (which is a form of composition over the dd coordinates) with subsampling and then we compose over the TT iterations.

We can use Corollary 10 to show that releasing N(qt(x),σ2Id)\mathcal{N}(q_{t}(x),\sigma^{2}I_{d}) satisfies (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP for ε0=O(Δ22σ2log⁡(1/δ0))\varepsilon_{0}=O\left(\sqrt{\frac{\Delta_{2}^{2}}{\sigma^{2}}\log(1/\delta_{0})}\right), where Δ2=sup⁡x,x′∈Xnneighbouring∥qt(x)−qt(x′)∥2\Delta_{2}=\sup_{x,x^{\prime}\in\mathcal{X}^{n}\atop\text{neighbouring}}\|q_{t}(x)-q_{t}(x^{\prime})\|_{2} is the sensitivity of qtq_{t}. Then we can use Theorem 29 to show that, if UtU_{t} is a Poisson sample which contains each element with probability pp, then N(qt(xUt),σ2Id)\mathcal{N}(q_{t}(x_{U_{t}}),\sigma^{2}I_{d}) is (ε1,δ1)(\varepsilon_{1},\delta_{1})-DP where ε1=log⁡(1+p⋅(eε0−1))=O(p⋅ε0)\varepsilon_{1}=\log(1+p\cdot(e^{\varepsilon_{0}}-1))=O(p\cdot\varepsilon_{0}) and δ1=p⋅δ0\delta_{1}=p\cdot\delta_{0}. Finally, Theorem 22 tells us that the composition over TT iterations satisfies (ε,δ)(\varepsilon,\delta)-DP with ε=O(ε1⋅Tlog⁡(1/δ2)))\varepsilon=O\left(\varepsilon_{1}\cdot\sqrt{T\log(1/\delta_{2})})\right) and δ=δ2+T⋅δ1\delta=\delta_{2}+T\cdot\delta_{1}. Overall, we have

This result is asymptotically suboptimal because we have picked up two log⁡(1/δ)\sqrt{\log(1/\delta)} terms. We obtained one from the Gaussian noise addition (Corollary 10) and another from the composition (Theorem 22). Both arise from bounding the tails of the privacy loss distribution. This is redundant; we should only need to bound the tails of the privacy loss distribution once.

Intuitively, we started with a Gaussian privacy loss; then we applied a tail bound to obtain a (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP guarantee to which we applied the subsampling theorem; and then we converted this back into a concentrated DP guarantee to apply advanced composition and finally we applied a tail bound to convert this back to (ε,δ)(\varepsilon,\delta)-DP.

We are going to avoid this redundancy by analyzing privacy amplification by subsampling directly in terms of the privacy loss distribution, rather than needing to go via approximate DP. To do so, we need to introduce a new tool.

4 Rényi Differential Privacy

Rényi differential privacy was introduced by [Mir17] and was motivated by analyzing privacy amplification by subsampling interleaved with composition, which arises in differentially private deep learning [ACGMMTZ16].

Let M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} be a randomized algorithm. We say that MM satisfies (α,ε)(\alpha,\varepsilon)-Rényi differential privacy ((α,ε)(\alpha,\varepsilon)-RDP) if, for all neighbouring inputs x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}, the privacy loss distribution PrivLoss(M(x)∥M(x′))\mathsf{PrivLoss}\left({M(x)}\middle\|{M(x^{\prime})}\right) is well-defined (see Definition 2) and

Rényi DP is closely related to concentrated DP (Definition 11). Specifically, ρ\rho-zCDP is equivalent to satisfying (α,α⋅ρ)(\alpha,\alpha\cdot\rho)-RDP for all α∈(1,∞)\alpha\in(1,\infty). Rényi DP inherits the nice composition properties of concentrated DP:

Let M1:Xn→Y1M_{1}:\mathcal{X}^{n}\to\mathcal{Y}_{1} be (α,ε1)(\alpha,\varepsilon_{1})-RDP. Let M2:Xn×Y1→Y2M_{2}:\mathcal{X}^{n}\times\mathcal{Y}_{1}\to\mathcal{Y}_{2} be such that, for all y1∈Y1y_{1}\in\mathcal{Y}_{1}, the algorithm x↦M(x,y1)x\mapsto M(x,y_{1}) is (α,ε2)(\alpha,\varepsilon_{2})-RDP. Define M:Xn→Y2M:\mathcal{X}^{n}\to\mathcal{Y}_{2} by M(x)=M2(x,M1(x))M(x)=M_{2}(x,M_{1}(x)). Then MM is (α,ε1+ε2)(\alpha,\varepsilon_{1}+\varepsilon_{2})-RDP.

The proof of Lemma 31 is identical to that of Proposition 19. Note that, while the ε\varepsilon parameter adds up, the α\alpha parameter does not change. More generally, composing an (α1,ε1)(\alpha_{1},\varepsilon_{1})-RDP algorithm with an (α2,ε2)(\alpha_{2},\varepsilon_{2})-RDP algorithm yields (min⁡{α1,α2},ε1+ε2)(\min\{\alpha_{1},\alpha_{2}\},\varepsilon_{1}+\varepsilon_{2})-RDP.

It is helpful to think of ε\varepsilon in (α,ε)(\alpha,\varepsilon)-RDP as a function of α\alpha, rather than a single number. This function can encode a rich variety of privacy guarantees. (Concentrated DP corresponds to a linear function.) In particular, it allows us to more precisely represent the kinds of guarantees obtained by subsampling.

Rényi DP is typically formulated in terms of Rényi divergences [Rén61], which were studied in the information theory literature long before differential privacy was discovered.

We now state several key properties of Rényi divergences; most of these are properties we have proved earlier, but we now restate them in a new language.

Let P,QP,Q be probability distributions over Y\mathcal{Y} with a common sigma-algebra such that PP is absolutely continuous with respect to QQ.

Pure DP to Concentrated DP: For all α∈[1,∞)\alpha\in[1,\infty),

Quasi-convexity: Let P′P^{\prime} and Q′Q^{\prime} be probability distributions over Y\mathcal{Y} such that P′P^{\prime} is absolutely continuous with respect to Q′Q^{\prime}. For s∈s\in, let (1−s)⋅P+s⋅P′(1-s)\cdot P+s\cdot P^{\prime} denote the convex combination of the distributions PP and P′P^{\prime} with weighting ss. For all α∈(1,∞)\alpha\in(1,\infty) and all s∈s\in,

Triangle-like inequality (a.k.a. group privacy): Let RR be a distribution on Y\mathcal{Y} and assume that QQ is absolutely continuous with respect to RR. For all 1<α<α′<∞1<\alpha<\alpha^{\prime}<\infty,

Postprocessing (a.k.a. data processing inequality) & non-negativity: See Lemma 20. Non-negativity follows from setting ff to be a constant function and noting that the divergence between two point masses is zero.

Monotonicity: Let 1<α≤α′<∞1<\alpha\leq\alpha^{\prime}<\infty. (The cases where α=1\alpha=1 and α′=∞\alpha^{\prime}=\infty follow from continuity.) Let f(x)=xα′−1α−1f(x)=x^{\frac{\alpha^{\prime}-1}{\alpha-1}}. Then ff is convex and, by Jensen’s inequality,

Pure DP to Concentrated DP: See Proposition 16.

Quasi-convexity: See Lemma B.6 of [BS16].

Triangle-like inequality (a.k.a. group privacy): Let α∈(1,∞)\alpha\in(1,\infty). Let p,q∈(1,∞)p,q\in(1,\infty) satisfy 1p+1q=1\frac{1}{p}+\frac{1}{q}=1. By Hölder’s inequality,

where the final equality sets p=α′−1α′−αp=\frac{\alpha^{\prime}-1}{\alpha^{\prime}-\alpha} and q=α′−1α−1q=\frac{\alpha^{\prime}-1}{\alpha-1}

Conversion to approximate DP: See Proposition 14.

5 Sharp Privacy Amplification by Poisson Subsampling for Rényi DP

Now we analyze privacy amplification by subsampling under Rényi DP. We start with a Rényi DP guarantee and we obtain an amplified Rényi DP guarantee. The goal is to obtain a sharp analysis that avoids converting to approximate DP and back.

For mathematical simplicity, we restrict our attention to Poisson subsampling and assume that neighbouring datasets correspond to addition or removal of one person’s data.

Let U⊂[n]U\subset[n] be a random set that contains each element independently with probability pp. For x∈Xnx\in\mathcal{X}^{n} let xU∈Xnx_{U}\in\mathcal{X}^{n} be given by (xU)i=xi(x_{U})_{i}=x_{i} if i∈Ui\in U and (xU)i=⊥(x_{U})_{i}=\bot if i∉Ui\notin U, where ⊥∈X\bot\in\mathcal{X} is some fixed value.

Note that (1−p)α−1(1+(α−1)p)≤1(1-p)^{\alpha-1}(1+(\alpha-1)p)\leq 1. It is easy to see from the proof that this analysis is tight. That is, if the assumption that MM satisfies (α,ε(α))(\alpha,\varepsilon(\alpha))-RDP for all α\alpha is tight for some fixed pair of neighbouring inputs, then the conclusion that MUM^{U} satisfies (α,εp′(α))(\alpha,\varepsilon^{\prime}_{p}(\alpha))-RDP is also tight.

Fix neighbouring datasets x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}. Without loss of generality, assume that x′x^{\prime} is xx with one element removed – i.e., ∃i∈[n]  (xi′=⊥)∧(∀j∈[n]∖{i}  xj=xj′)\exists i\in[n]~{}~{}(x^{\prime}_{i}=\bot)\wedge(\forall j\in[n]\setminus\{i\}~{}~{}x_{j}=x^{\prime}_{j}). Fix this ii.

Let Q=M(xU′)=MU(x′)Q=M(x^{\prime}_{U})=M^{U}(x^{\prime}). Let P=M(xU)∣i∈UP=M(x_{U})|_{i\in U} be the conditional distribution of M(xU)M(x_{U}) with i∈Ui\in U. Note that M(xU)∣i∉U=QM(x_{U})|_{i\notin U}=Q because xU=xU′x_{U}=x^{\prime}_{U} when i∉Ui\notin U and the event i∈Ui\in U is independent from U∖{i}U\setminus\{i\}. (This is where we use the Poisson subsampling assumption.)

Note that (1−p)α−1(1+(α−1)p)≤(e−p)α−1e(α−1)p=1(1-p)^{\alpha-1}(1+(\alpha-1)p)\leq(e^{-p})^{\alpha-1}e^{(\alpha-1)p}=1.

The following result shows that, in terms of subsampling for Rényi DP, it suffices to analyze one side of the add/remove neighbouring relation.

Let PP and QQ be probability distributions that are absolutely continuous with respect to each other. Let p∈p\in and α∈(1,∞)\alpha\in(1,\infty). Set λ=(2α−1)p(2α−1)p+3(1−p)\lambda=\frac{(2\alpha-1)p}{(2\alpha-1)p+3(1-p)}. Then

It only remains to prove that ff is convex. We have, for all x>0x>0,

We now give the auxiliary lemmata used in the proof of Theorem 35.

Let f(t)=t+1/tf(t)=t+1/t. Then f′(t)=1−1/t2f^{\prime}(t)=1-1/t^{2} and f′′(t)=2/t3>0f^{\prime\prime}(t)=2/t^{3}>0 for all t>0t>0. Thus f′(t)=0  ⟺  t=1f^{\prime}(t)=0\iff t=1 and f(x)≥f(1)=2f(x)\geq f(1)=2. Now

For all v≥1v\geq 1, p∈p\in, and x∈(0,∞)x\in(0,\infty),

Our goal is to prove that f(x)≥f(1)=3(1−p)+vpf(x)\geq f(1)=3(1-p)+vp for all x∈(0,∞)x\in(0,\infty). It suffices to prove that ff is convex and that f′(1)=0f^{\prime}(1)=0. We have

From these expressions, it is easy to see that f′(1)=0f^{\prime}(1)=0 and f′′(x)≥0f^{\prime\prime}(x)\geq 0 for all x∈(0,∞)x\in(0,\infty). ∎

6 Analytic Rényi DP Bound for Privacy Amplification by Poisson Subsampling

Theorem 34 gives a tight RDP bound for privacy amplification by Poisson subsampling. However, the bound is in the form of a series. This is adequate for numerical purposes, but it is helpful for our understanding to have a simpler closed-form expression.

In this subsection we will provide a simpler expression and attempt to build some understanding of how privacy amplification by subsampling applies to Rényi DP.

Let p∈[0,1/2]p\in[0,1/2] and ρ∈(0,1]\rho\in(0,1]. Define ω=min⁡{log⁡(1/p)4ρ,1+p−1/4}\omega=\min\left\{\frac{\log(1/p)}{4\rho},1+p^{-1/4}\right\}. Assume ω≥3+2log⁡(1/ρ)log⁡(1/p)\omega\geq 3+2\frac{\log(1/\rho)}{\log(1/p)}.

Let M:Xn→YM:\mathcal{X}^{n}\to\mathcal{Y} satisfy ρ\rho-zCDP with respect to addition or removal.I.e., x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n} are neighbouring if, for some i∈[n]i\in[n], we have xi=⊥x_{i}=\bot or xi′=⊥x^{\prime}_{i}=\bot, and ∀j≠i  xj=xj′\forall j\neq i~{}~{}x_{j}=x^{\prime}_{j}, where ⊥∈X\bot\in\mathcal{X} is some fixed value.

Define MU:Xn→YM^{U}:\mathcal{X}^{n}\to\mathcal{Y} by MU(x)=M(xU)M^{U}(x)=M(x_{U}), where U⊂[n]U\subset[n] be a random set that contains each element independently with probability pp and, for x∈Xnx\in\mathcal{X}^{n}, xU∈Xnx_{U}\in\mathcal{X}^{n} is given by (xU)i=xi(x_{U})_{i}=x_{i} if i∈Ui\in U and (xU)i=⊥(x_{U})_{i}=\bot if i∉Ui\notin U.

Then MUM^{U} satisfies (α,10p2ρα)(\alpha,10p^{2}\rho\alpha)-RDP for all α∈(1,ω)\alpha\in(1,\omega).

There are many caveats in the statement of Theorem 38, but the high level message is that Poisson subsampling a pp fraction of the dataset amplifies ρ\rho-zCDP to something like O(p2⋅ρ)O(p^{2}\cdot\rho)-zCDP. We will discuss these caveats in a moment, but, ignoring these caveats and the constant factor in the guarantee, this is exactly the kind of guarantee we would hope for.

Consider the following example, which illustrates what kind guarantee we would hope for. Suppose we have a query q:X→q:\mathcal{X}\to and a sensitive dataset x∈Xnx\in\mathcal{X}^{n} and our goal is to estimate q(x):=1n∑inq(xi)q(x):=\frac{1}{n}\sum_{i}^{n}q(x_{i}). We could release a sample from N(q(x),σ2)\mathcal{N}(q(x),\sigma^{2}), which satisfies 12n2σ2\frac{1}{2n^{2}\sigma^{2}}-zCDP and has mean squared error σ2\sigma^{2}. However, perhaps due to computational constraints, we might instead select a random pp fraction U⊂[n]U\subset[n] and instead release a sample from MU(x)=N(1pn∑i∈Uq(xi),σ2)M^{U}(x)=\mathcal{N}\left(\frac{1}{pn}\sum_{i\in U}q(x_{i}),\sigma^{2}\right). We can calculate that the mean squared error of this algorithm is at most σ2+1−ppn\sigma^{2}+\frac{1-p}{pn}. Without amplification this satisfies (ρ=12p2n2σ2)(\rho=\frac{1}{2p^{2}n^{2}\sigma^{2}})-zCDP. With amplification, Theorem 38 tells us that this satisfies (α,O(p2⋅ρ))(\alpha,O(p^{2}\cdot\rho))-RDP for α\alpha not too large. Now p2⋅ρ=12n2σ2p^{2}\cdot\rho=\frac{1}{2n^{2}\sigma^{2}} is exactly the guarantee that we obtained by simply evaluating qq on the entire dataset and avoiding subsampling. We cannot hope to do better than this.

The constant factor of 10 in the theorem can be improved, but a constant factor loss is the price we pay for having a simpler expression; if we want tight constants we should apply Theorem 34.

The main caveat in Theorem 38 is the requirement that α≤ω≤log⁡(1/p)4ρ\alpha\leq\omega\leq\frac{\log(1/p)}{4\rho}. This is necessary, as the (α,ε(α))(\alpha,\varepsilon(\alpha))-RDP guarantee qualitatively changes when α≥O(log⁡(1/p)/ρ)\alpha\geq O(\log(1/p)/\rho). It changes from ε(α)=O(p2ρα)\varepsilon(\alpha)=O(p^{2}\rho\alpha) to ε(α)=ρα−O(log⁡(1/p))\varepsilon(\alpha)=\rho\alpha-O(\log(1/p)). To see why this is inherent, consider the following lower bound. For all p∈p\in, all α∈(1,∞)\alpha\in(1,\infty), and all absolutely continuous probability distributions PP and QQ, we have

Let α∈(1,∞)\alpha\in(1,\infty), p∈[0,1−e−1]p\in\left[0,1-e^{-1}\right], and x∈[0,∞)x\in\left[0,\infty\right). If either α≤2\alpha\leq 2 or α>2\alpha>2 and px≤max⁡{p,1−pα−2}px\leq\max\left\{p,\frac{1-p}{\alpha-2}\right\}, then

We assume p>0p>0. Otherwise the result is trivial.

By Taylor’s theorem, for all x∈[0,∞)x\in\left[0,\infty\right), there exists ξx∈[min⁡{1,x},max⁡{1,x}]\xi_{x}\in\left[\min\{1,x\},\max\{1,x\}\right] such that

To complete the proof is suffices to show that f′′(ξ)≤e⋅α(α−1)p2f^{\prime\prime}(\xi)\leq e\cdot\alpha(\alpha-1)p^{2} in two cases: First, for all ξ∈[0,∞)\xi\in[0,\infty) assuming α≤2\alpha\leq 2. Second, for all ξ∈[0,max⁡{1,1−pp1α−2}]\xi\in\left[0,\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}\right] assuming α>2\alpha>2. (Note that, ξx∈[0,max⁡{1,1−pp1α−2}]\xi_{x}\in\left[0,\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}\right] is implied by the assumptions px≤max⁡{p,1−pα−2}px\leq\max\left\{p,\frac{1-p}{\alpha-2}\right\} and p>0p>0.)

First, suppose α≤2\alpha\leq 2. Then f′′′(x)≤0f^{\prime\prime\prime}(x)\leq 0 for all x∈[0,∞)x\in[0,\infty). Thus f′′f^{\prime\prime} is decreasing (or constant) and, for all ξ∈[0,∞)\xi\in\left[0,\infty\right), we have

Second, assume α>2\alpha>2 and px≤max⁡{p,1−pα−2}px\leq\max\left\{p,\frac{1-p}{\alpha-2}\right\}, which implies ξx≤max⁡{1,1−pp1α−2}\xi_{x}\leq\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}.

We have f′′′(x)>0f^{\prime\prime\prime}(x)>0 for all x∈[0,∞)x\in[0,\infty). Thus f′′f^{\prime\prime} is increasing and, for all ξ∈[0,max⁡{1,1−pp1α−2}]\xi\in\left[0,\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}\right], we have

Let α,ω∈(1,∞)\alpha,\omega\in(1,\infty) with α≤ω\alpha\leq\omega, p∈[0,1−e−1]p\in\left[0,1-e^{-1}\right], and x∈[0,∞)x\in\left[0,\infty\right). Then

We can assume p>0p>0, as otherwise the result is trivial.

If α≤2\alpha\leq 2 or if α>2\alpha>2 and x≤max⁡{1,1−pp1α−2}x\leq\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}, then the result follows from Lemma 39, as \big{(}(\alpha-1)px\big{)}^{\omega}\geq 0.

Thus we assume α>2\alpha>2 and x≥max⁡{1,1−pp1α−2}x\geq\max\left\{1,\frac{1-p}{p}\frac{1}{\alpha-2}\right\}.

Since x≥1x\geq 1, we have αp(x−1)+e2α(α−1)p2(x−1)2≥0\alpha p(x-1)+\frac{e}{2}\alpha(\alpha-1)p^{2}(x-1)^{2}\geq 0. Therefore it suffices to prove that (1−p+px)α≤((α−1)px)ω(1-p+px)^{\alpha}\leq((\alpha-1)px)^{\omega}.

The assumption x≥1x\geq 1 implies 1−p+px≥11-p+px\geq 1 and, hence, that (1−p+px)α≤(1−p+px)ω(1-p+px)^{\alpha}\leq(1-p+px)^{\omega}, as we have α≤ω\alpha\leq\omega. The assumption x≥1−pp1α−2x\geq\frac{1-p}{p}\frac{1}{\alpha-2} rearranges to 1−p≤px(α−2)1-p\leq px(\alpha-2), which implies 1−p+px≤(α−1)px1-p+px\leq(\alpha-1)px and, hence, (1−p+px)ω≤((α−1)px)ω(1-p+px)^{\omega}\leq((\alpha-1)px)^{\omega}, as required. ∎

Let PP and QQ be probability distributions with PP absolutely continuous with respect to QQ. Let p∈[0,1−e−1]p\in\left[0,1-e^{-1}\right] and α,ω∈(1,∞)\alpha,\omega\in(1,\infty) with α≤ω\alpha\leq\omega. Then

The second inequality in the result follows from the fact that log⁡(1+u)≤u\log(1+u)\leq u for all u>−1u>-1. ∎

We also have the following simpler result that provides better bounds when the Rényi order α\alpha is large.

Let PP and QQ be probability distributions with PP absolutely continuous with respect to QQ. Let p∈[0,1]p\in\left[0,1\right] and α∈(1,∞)\alpha\in(1,\infty). Then

We assume 0<p<10<p<1, as the result is immediate otherwise. By Jensen’s inequality and the convexity of v↦vαv\mapsto v^{\alpha}, for all x∈[0,∞)x\in[0,\infty) and all λ∈(0,1)\lambda\in(0,1),

Fix neighbouring inputs x,x′∈Xnx,x^{\prime}\in\mathcal{X}^{n}. Fix some α∈(1,ω)\alpha\in(1,\omega) with ω=min⁡{log⁡(1/p)4ρ,1+p−1/4}≥3+2log⁡(1/ρ)log⁡(1/p)\omega=\min\left\{\frac{\log(1/p)}{4\rho},1+p^{-1/4}\right\}\geq 3+2\frac{\log(1/\rho)}{\log(1/p)}.

Without loss of generality x′x^{\prime} is xx with some element removed. That is, we can fix some i∈[n]i\in[n] such that xi′=⊥x^{\prime}_{i}=\bot and xj′=xjx^{\prime}_{j}=x_{j} for all j≠ij\neq i.

Let P=M(xU)∣i∈UP=M(x_{U})|_{i\in U} and let Q=M(xU)∣i∉UQ=M(x_{U})|_{i\notin U}. Then MU(x)=M(xU)=pP+(1−p)QM^{U}(x)=M(x_{U})=pP+(1-p)Q. Also M(x′)=QM(x^{\prime})=Q

7 How to Use Privacy Amplification by Subsampling

The addition of Gaussian noise satisfies concentrated DP. Specifically, Lemma 12 shows that releasing N(qt(x),σ2Id)\mathcal{N}(q_{t}(x),\sigma^{2}I_{d}) satisfies Δ222σ2\frac{\Delta_{2}^{2}}{2\sigma^{2}}-zCDP, where Δ2=sup⁡x,x′∈Xnneighbouring∥qt(x)−qt(x′)∥2\Delta_{2}=\sup_{x,x^{\prime}\in\mathcal{X}^{n}\atop\text{neighbouring}}\|q_{t}(x)-q_{t}(x^{\prime})\|_{2} is the sensitivity of qtq_{t}. We can thus apply Theorem 34 to obtain a tight Rényi DP guarantee for N(qt(xUt),σ2Id)\mathcal{N}(q_{t}(x_{U_{t}}),\sigma^{2}I_{d}), where UtU_{t} is a Poisson sample. Finally, we can apply the composition property of Rényi DP (Lemma 31) over the TT rounds and we can convert this final Rényi DP guarantee to approximate DP using Proposition 14. This is how differentially private deep learning is analyzed in practice by libraries such as TensorFlow Privacy [Goo18, MAECMPK18].

We can also obtain an asymptotic analysis: Theorem 38 shows that N(qt(xUt),σ2Id)\mathcal{N}(q_{t}(x_{U_{t}}),\sigma^{2}I_{d}) with Ut⊂[n]U_{t}\subset[n] including each element independently with probability pp satisfies (α,5αp2Δ22/σ2)\left(\alpha,5\alpha p^{2}\Delta_{2}^{2}/\sigma^{2}\right)-RDP for all α∈(1,ω)\alpha\in(1,\omega). Composition over TT rounds yields (α,5αTp2Δ22/σ2)\left(\alpha,5\alpha Tp^{2}\Delta_{2}^{2}/\sigma^{2}\right)-RDP for all α∈(1,ω)\alpha\in(1,\omega), which implies (ε,δ)(\varepsilon,\delta)-DP for all δ>0\delta>0 and

This bound is directly comparable to the bound from Section 6.3, which was derived by converting back and forth between concentrated DP and approximate DP. The difference is that here we have a log⁡(1/δ)\sqrt{\log(1/\delta)} whereas there we had a log⁡(T/δ)\log(T/\delta) term. This is the asymptotic improvement obtained by keeping the analysis within RDP. This asymptotic improvement also translates into a significant improvement in practice.

Using group privacy does not yield the tightest bounds, but it suffices to show that, up to small constant factors, sampling a fixed size subset is the same as Poisson subsampling.

Historical Notes & Further Reading

Differential privacy (specifically, pure DP) was introduced by Dwork, McSherry, Nissim, and Smith [DMNS06].The name “differential privacy” does not appear in the original paper. It is attributed to Michael Schroeder [DMNS17] and first appeared in a talk by Dwork [Dwo06]. The original paper gives a form of basic composition (Theorem 1), but does not state it in full generality; rather it states a result specific to Laplace noise addition. Approximate DP was introduced by Dwork, Kenthapadi, McSherry, Mironov, and Naor [DKMMN06] and this work gave a more general statement of the basic composition result, as well as an analysis of the Gaussian mechanism (although not as tight as Corollary 8). The tight analysis of the Gaussian mechanism (Corollaries 8 & 10) is due to Balle and Wang [BW18].

The advanced composition theorem (Theorem 22) was proved by Dwork, Rothblum, and Vadhan [DRV10].The original proof showed that the kk-fold composition of (ε,δ)(\varepsilon,\delta)-DP algorithms satisfies (ε′,kδ+δ′)(\varepsilon^{\prime},k\delta+\delta^{\prime})-DP with δ′>0\delta^{\prime}>0 arbitrary and ε′=kε(eε−1)+ε⋅2klog⁡(1/δ′)\varepsilon^{\prime}=k\varepsilon(e^{\varepsilon}-1)+\varepsilon\cdot\sqrt{2k\log(1/\delta^{\prime})}. The first term kε(eε−1)k\varepsilon(e^{\varepsilon}-1) is slightly worse than Theorem 22, which gives 12kε2\frac{1}{2}k\varepsilon^{2} instead. The key concepts of privacy loss distributions and concentrated DP were implicit in this proof, but they were only made explicit in a separate paper by Dwork and Rothblum [DR16]. Bun and Steinke [BS16] refined the notion of concentrated DP and presented the definition that we use here (Definition 11).

Kairouz, Oh, and Viswanath [KOV15] proved an optimal composition theorem for approximate differential privacy. Specifically, the kk-fold composition of (ε,δ)(\varepsilon,\delta)-differential privacy satisfies (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-differential privacy if and only if

where ZZ is the privacy loss of the kk-fold composition of the worst-case (ε,δ)(\varepsilon,\delta)-DP mechanism. Applying Proposition 7 to this distribution yields the expression for the optimal composition theorem.

Kairouz, Oh, and Viswanath [KOV15] also considered heterogeneous optimal composition. That is, the composition of kk mechanisms where each mechanism j∈[k]j\in[k] has a different (εj,δj)(\varepsilon_{j},\delta_{j})-DP guarantee. However, the expression becomes more complicated. Intuitively, this is because the privacy loss distribution can be supported on 2k2^{k} points in the heterogeneous case, whereas, in the homogeneous case, it is supported on only k+1k+1 points. Thus it takes exponential time to compute the privacy loss distribution. To be precise, Murtagh and Vadhan [MV16] showed that exactly computing the optimal composition is #P-complete, even if δj=0\delta_{j}=0 for each j∈[k]j\in[k]. However, Murtagh and Vadhan also showed that the optimal composition theorem could be approximated to arbitrary precision in polynomial time.

Although these composition results [KOV15, MV16] are optimal, they are limited in that they begin by assuming some (εj,δj)(\varepsilon_{j},\delta_{j})-DP guarantees about the algorithms being composed. However, we usually know more about the algorithms being composed than simply these two parameters. For example, we may know that the algorithms being composed are Gaussian noise addition. Incorporating this additional information allows us to prove even better bounds than optimal composition. This was the main impetus for the development of concentrated DP and Rényi DP, which we have discussed.

The optimality of advanced composition (Theorem 25) is due to Bun, Ullman, and Vadhan [BUV14]. We present the analysis following Kamath and Ullman [KU20].

The composition results we have presented all assume that the privacy parameters of the algorithms being composed (i.e., (εj,δj)(\varepsilon_{j},\delta_{j}) for j∈[k]j\in[k] in the language of Theorem 22) are fixed. It is natural to consider the setting where these parameters are chosen adaptively [RRUV16] – i.e., (εj,δj)(\varepsilon_{j},\delta_{j}) could depend on the output of Mj−1M_{j-1}. For the most part, the composition results carry over seamlessly to the setting of adaptively-chosen privacy parameters. In particular, for Concentrated or Rényi DP, as long as the sum of the adaptively-chosen privacy parameters remains bounded, we attain privacy with that bound [FZ21]. Another extension is “concurrent composition” [VW21], which applies when an adversary may simultaneously access multiple interactive DP systems. Fortunately, the standard composition results readily extend to this setting [VZ22, Lyu22].

Privacy Amplification by Subsampling.

The first explicit statement of differential privacy amplification by subsampling was in a blog post by Smith [Smi09], although it appeared implicitly earlier [KLNRS11] and the privacy effects of sampling on its own had also been studied [CM06].

For approximate DP, Balle, Barthe, and Gaborardi [BBG18] provide a thorough analysis of privacy amplification by subsampling (cf. Theorem 29). They present tight results for Poisson sampling (i.e., including each element independently), sampling a subset of a fixed size (without replacement), and also sampling with replacement, which means a person’s data may appear multiple times in the subsampled dataset.

As discussed in Sections 6.3 and 6.7, subsampling arises in differentially private versions of stochastic gradient descent [CMS11, BST14]. Abadi, Chu, Goodfellow, McMahan, Mironov, Talwar, and Zhang [ACGMMTZ16] applied this in the context of deep learning. To obtain better analyses, they developed the “Moments Accountant” – i.e., Rényi DP (although the connection to Rényi divergences was only made later [Mir17, BS16]).

Abadi et al. [ACGMMTZ16] obtained asymptotic Rényi DP bounds for the Poisson subsampled Gaussian mechanism, but they used numerical integration for their implementation. Mironov, Talwar, and Zhang [MTZ19] improved these asymptotic results and gave a better numerical method for exact computation (cf. Theorem 34); our presentation in Section 6.5 largely follows theirs. Bun, Dwork, Rothblum, and Steinke [BDRS18] prove asymptotic Rényi DP bounds for Poisson subsampling applied to a concentrated DP mechanism (cf. Theorem 38). Zhu and Wang [ZW19] gave generic Rényi DP bounds for Poisson subsampling.Mironov, Talwar, and Zhang [MTZ19] and Zhu and Wang [ZW19] both provide analogs of Theorem 35. However, to the best of our knowledge, Theorem 35 is novel.

Moving away from Poisson subsampling, Wang, Balle, and Kasiviswanathan [WBK19] provide Rényi DP results for sampling a fixed-size set without replacement.

Koskela, Jälkö, and Honkela [KJH20] provide expressions for the privacy loss distribution of the subsampled Gaussian (under both Poisson subsampling and sampling a fixed size set with or without replacement) which can be numerically integrated to obtain optimal composition results.

Closely related to privacy amplification by subsampling is privacy amplification by shuffling [BEMMRLRKTS17, EFMRTT19, CSUZZ19, BBGN19, FMT21, FMT22]. Privacy amplification by shuffling is usually presented in terms of local differential privacy [KLNRS11]. That is, there are nn individuals who independently generate random messages that satisfy local ε\varepsilon-DP. Those messages are then “shuffled” so that the potential adversary/attacker cannot identify which message originated from which individual. The additional randomness of the shuffling amplifies the privacy to (O(ε⋅log⁡(1/δ)n),δ)\left(O\left(\varepsilon\cdot\sqrt{\frac{\log(1/\delta)}{n}}\right),\delta\right)-DP.

Intuitively, shuffling is similar to subsampling with composition. Suppose we repeatedly sample one individual uniformly at random and perform an ε\varepsilon-DP computation on their data and the number of repetitions is equal to the number of individuals nn. We can analyze this as subsampling a 1/n1/n fraction (fixed size set) composed nn times. Privacy amplification by subsampling (Theorem 29) says each repetition is ε′\varepsilon^{\prime}-DP for ε′=log⁡(1+1n(eε−1))=O(ε/n)\varepsilon^{\prime}=\log(1+\frac{1}{n}(e^{\varepsilon}-1))=O(\varepsilon/n). Advanced composition (Theorem 18) over the nn repetitions yields (ε′′,δ)(\varepsilon^{\prime\prime},\delta)-DP for ε′′=O(nlog⁡(1/δ)⋅ε′)=O(ε⋅log⁡(1/δ)n)\varepsilon^{\prime\prime}=O(\sqrt{n\log(1/\delta)}\cdot\varepsilon^{\prime})=O\left(\varepsilon\cdot\sqrt{\frac{\log(1/\delta)}{n}}\right).

In contrast, for shuffling, we sample without replacement, so no individual is sampled more than once. This means the samples are not independent, so we cannot appeal to the subsampling plus composition analysis. Nevertheless, this intuition leads to the correct result.

Acknowledgements

We thank Ferdinando Fioretto for soliciting this chapter and we thank Clément Canonne, Sewoong Oh, Adam Sealfon, and Yu-Xiang Wang for comments on the draft.

References