Hiding Among the Clones: A Simple and Nearly Optimal Analysis of Privacy Amplification by Shuffling

Vitaly Feldman, Audra McMillan, Kunal Talwar

Introduction

We consider privacy-preserving data analysis in the local model of differential privacy augmented with a shuffler. In this model, each user sends a locally differentially private report and these reports are then anonymized and randomly shuffled. Systems based on this model were first proposed in [BEMMRLRKTS17]. The authors of [EFMRTT19] showed that random shuffling of inputs to locally private protocols amplifies the privacy guarantee. Thus, when the collection of anonymized reports is viewed in the central model, the privacy guarantees are substantially stronger than the original local privacy guarantees. A similar result was shown for the binary randomized response by \AtNextCite\AtEachCitekey\@nocounterrmaxnames [CSUZZ19] who also formalized a related shuffle model of privacy.

The analysis in [EFMRTT19] relies on a more general result referred to as privacy amplification by shuffling. This result shows that privacy is amplified when the inputs are shuffled before applying local randomizers and holds even when local randomizers are chosen sequentially and adaptively. Allowing adaptive choice of local randomizers is necessary for analyzing iterative optimization algorithms such as stochastic gradient descent.

In this paper we give a new analysis of privacy amplification by shuffling. Specifically, we show that running an adaptive sequence of arbitrary ε0{\varepsilon}_{0}-DP local randomizers on a uniformly random permutation of nn data items, yields an (ε,δ)({\varepsilon},\delta)-DP algorithm, where

When ε0>1{\varepsilon}_{0}>1, this improves the dependence on ε0{\varepsilon}_{0} from e2.5ε0e^{2.5{\varepsilon}_{0}} to asymptotically correct dependence of eε0/2e^{{\varepsilon}_{0}/2} which was previously known only for the binary randomized response [CSUZZ19]. The bound matches the existing bounds in the regime when ε0<1{\varepsilon}_{0}<1 and is asymptotically optimal in both regimes. We then extend this analysis to approximately differentially private local randomizers with essentially the same guarantees. The best previous guarantee in this case has dependence of e20ε0e^{20{\varepsilon}_{0}} given in [BKMTT20].

Importantly, our proof is also simpler than the rather delicate approaches in prior work [EFMRTT19, BBGN19]. The proof reduces the problem of analyzing the shuffling privacy guarantee of an adaptive series of local algorithms to analyzing the shuffling privacy guarantee of a simple non-adaptive local algorithm with three outputs. Intuitively, we argue that for any local randomizer A\mathcal{A} and two data points x,yx,y, A(y)\mathcal{A}(y) can be seen as sampling from the same distribution as A(x)\mathcal{A}(x) with some positive probability. That is, each data point can create a clone of the output of A(x)\mathcal{A}(x) with some probability. For the ε0>1{\varepsilon}_{0}>1 regime, the desired privacy guarantees then follow easily from the number of clones that xx has to hide among being distributed as a binomial random variable. In the small ε0{\varepsilon}_{0}-regime we also rely on the fact that a local randomizer on two inputs can be seen as the composition of binary randomized response with a post-processing step [KOV16]. Another important property of our proof is that it provides a simple and efficient method for numerically computing an amplification bound that is tighter than our closed-form bounds The resulting code is available at https://github.com/apple/ml-shuffling-amplification.. Specifically, we show that it is sufficient to analyze the appropriate notion of divergence between two specific distributions over 3 values. As in the case of binary randomised response, the constant 1/2 in the exponent arises naturally from analysing the divergence between binomial distributions. In Section 6 we show that this approach leads to numerical bounds that significantly improve on the state of the art. Our approach can be similarly used to numerically compute the privacy amplification guarantee in terms of other notions of privacy. In particular, we use it to compute the privacy amplification guarantee in terms of Rényi differential privacy. As we demonstrate in Section 6.1, this results in tighter privacy guarantees when composing shuffled mechanisms.

Our proof extends naturally to approximate differential privacy. The extension to approximate DP involves an additional technical lemma (Lemma 3.7) that states that any deletion (as opposed to replacement) (ε0,δ0)({\varepsilon}_{0},\delta_{0})-DP local randomizer A\mathcal{A} can be converted to a deletion ε0{\varepsilon}_{0}-DP local randomizer A′\mathcal{A}^{\prime} such that TV(A(x),A′(x))≤δ0{\rm TV}(\mathcal{A}(x),\mathcal{A}^{\prime}(x))\leq\delta_{0} for all xx.

Our privacy amplification result with the optimal dependence on ε0{\varepsilon}_{0} has some surprising consequences. In certain important settings, it allows us to take existing and existing LDP and immediately obtain an algorithm that achieves (nearly) optimal trade-offs between privacy and utility simultaneously in the central and the local models of privacy. While the local ε0{\varepsilon}_{0} may sometimes be large (we’ll often need ε0{\varepsilon}_{0} to grow logarithmically with nn to achieve a desired constant central ε{\varepsilon} guarantee), it provides an additional layer of protection that does not exist in the central model. Moreover, this shuffling result implies that a secure implementation of shuffling, or any function that is a post-processing of shuffling (e.g. vector summation), suffices to ensure the strong central privacy guarantee without having to assume a trusted curator. This is a considerably simpler task than using secure multiparty computation for computing the output of the central DP algorithm [DKMMN06]. Additionally, the fact that the privacy depends only on the LDP property of the local randomizer, and not on the specific noise distribution, allows us to do arbitrary post-processing (e.g. rounding, lossy compression) to the LDP responses before they are shuffled. The privacy of the aggregate relies only on the shuffling result, and we do not need to analyze the effect of the rounding/truncation as in several previous works that use distributed noise addition for a similar goal.

In Section 5.1, we show an example of such an application for the problem of building a histogram (or estimating the frequency distribution) over an alphabet of size kk. For a given level of accuracy, this algorithm simultaneously achieves nearly optimal central as well as local differential privacy bounds. The algorithm is based on applying our results to the algorithm from [ASZ19] and has low communication and server-side decoding time. We remark that getting the correct bound here requires taking ε0{\varepsilon}_{0} up to ln⁡k\ln k. Thus using the eε0/ne^{{\varepsilon}_{0}}/\sqrt{n} amplification bound from [BBGN19] would give a result that is off by a factor of k\sqrt{k} in terms of the central privacy-utility tradeoff. In particular, the correct dependence on ε0{\varepsilon}_{0} in the exponent is crucial to get this bound.

A second example in Section 5.2 relies on the fact the our results holds for an adaptive sequence of local queries. We analyze the privacy of noisy stochastic gradient descent when run on a random permutation of the data. This bridges a disconnect between the prior theoretical analyses that assumed random sampling with replacement, and the practical implementations that use permutations.

Finally, we give an alternative analysis of privacy amplification by shuffling that can be tighter for specific LDP randomizers. In particular, we can use this to give a tighter analysis of kk-ary randomized response. A closed form amplification bound tailored to kk-ary randomised response was also given in [BBGN19]. Their bound matches the bound presented in this work when k=O(eε0)k=O(e^{{\varepsilon}_{0}}) and ε0>1{\varepsilon}_{0}>1, but is worse than our bound when k=Ω(eε0)k=\Omega(e^{{\varepsilon}_{0}}). To the best of our knowledge, the bound presented in this work is the first closed form result that shows that the privacy amplification, for a fixed ε0{\varepsilon}_{0}, improves with kk. This corroborates empirical results from [BBGN19].

A natural direction for future work is to analyze privacy amplification by shuffling in terms of other notions of differential privacy, such as Rényi differential privacy (RDP) [Mir17]. RDP guarantees are particularly useful in multi-step algorithms where the composition properties of differential privacy need to be used. A bound on RDP guarantees is implied by the proof technique in [EFMRTT19] but, just as in the case of approximate DP, this bound is asymptotically suboptimal when ε0>1{\varepsilon}_{0}>1. Specifically, for sufficiently small order α\alpha, the α\alpha-RDP divergence is O(αe6ε0)O(\alpha e^{6{\varepsilon}_{0}}) in this regime.

Subsequent work of [GDDSK21], (implicitly) relies on the idea proposed in this work: it views each data point as creating a clone of the first element of the first dataset (in the given pair of datasets) and thereby reduces the problem to analysis of divergence between a pair of datasets that have just two different elements. The divergence is then analyzed using both analytic and numerical tools. Their resulting bound on the order α\alpha RDP is O(αe2ε0)O(\alpha e^{2{\varepsilon}_{0}}) (when ε0>1{\varepsilon}_{0}>1). This is a significant improvement on the results in [EFMRTT19] but is still asymptotically suboptimal.

In Section 6.1 we evaluate numerically the Rényi divergence between the pair of distributions given in our reduction and demonstrate that our approach leads to significantly better bounds The numerical evaluation has not been included in the earlier version of this work and thus not available to the authors of [GDDSK21].. We leave the computation of a closed-form bound on the Rényi divergence between the pair of distributions over three values that emerge from our reduction for future work.

Another subsequent work [KHH21] motivated by the problem of obtaining better guarantees for the composition of multiple shuffled protocols relies on a different approach to composition referred to as Fourier accountant [KJH20]. The approach requires computation of the Fast Fourier Transform of the entire privacy loss variable and [KHH21] use the pair of distributions given in our work as the input to their analysis.

Background and Preliminaries

Differential privacy (DP) is a measure of stability of a randomized algorithm. It bounds the change in the distribution on the outputs when one of the inputs is replaced with an arbitrary other element. The most common way to measure the change in the output distribution is (ε,δ)({\varepsilon},\delta)-indistinguishability. Two random variables PP and QQ over some probability space are (ε,δ)({\varepsilon},\delta)-indistinguishable if for all events EE over that probability space,

The following hockey-stick divergence can be used to characterize (ε,δ)({\varepsilon},\delta)-indistinguishability:

where we use the notation PP and QQ to refer to both the random variables and their probability density functions. So PP and QQ are (ε,δ)({\varepsilon},\delta)-indistinguishable if max⁡{Deε(P∥Q),Deε(Q∥P)}≤δ\max\{D_{e^{{\varepsilon}}}(P\|Q),D_{e^{{\varepsilon}}}(Q\|P)\}\leq\delta. We will rely on several standard properties of the hockey-stick divergence such as convexity and preservation under post-processing [DR14].

We will consider several models of differentially private data analysis. In the central model, introduced in [DMNS06], the data of the individuals is held by the curator. The curator is then trusted to perform data analysis whose output does not disclose too much about any particular individual’s data. While this model requires a higher level of trust than the local model, it is possible to design significantly more accurate algorithms. We say that two databases are neighboring if they differ on the data of a single individual.

An algorithm A:Dn→S\mathcal{A}:\mathcal{D}^{n}\to\mathcal{S} is (ε,δ)({\varepsilon},\delta)-differentially private if for all neighboring databases XX and X′X^{\prime}, A(X)\mathcal{A}(X) and A(X′)\mathcal{A}(X^{\prime}) are (ε,δ)({\varepsilon},\delta)-indistinguishable.

In the local model, formally introduced in [KLNRS08], each individual (or client) randomizes their data before sending it to data curator (or server). This means that individuals are not required to trust the curator. Due to this minimal trust model, most current industrial deployments of differential privacy rely on local differential privacy [EPK14, App17, DKY17, EFMRSTT20]. More formally, in the general model of local DP clients holding their data can communicate with the server in an arbitrary order with multiple rounds of interaction. The protocol is said to satisfy local (ε,δ)({\varepsilon},\delta)-differential privacy if the transcripts of the protocol on any pair of neighboring datasets are (ε,δ)({\varepsilon},\delta)-indistinguishable. We will not require this general definition as we will only be considering protocols in which each client receives at most one message from the server and sends a single message to the server (which may depend on the message from the server). In this setting, the condition reduces to requiring that the algorithm the client uses to respond to the server satisfies differential privacy with respect to the input of the client, such an algorithm is often referred to as a local randomizer.

An algorithm R ⁣:D→S\mathcal{R}\colon\mathcal{D}\to\mathcal{S} is (ε,δ)({\varepsilon},\delta)-DP local randomizer if for all pairs x,x′∈Dx,x^{\prime}\in\mathcal{D}, R(x)\mathcal{R}(x) and R(x′)\mathcal{R}(x^{\prime}) are (ε,δ)({\varepsilon},\delta)-indistinguishable.

Let D\mathcal{D} denote the domain. A single pass ε0{\varepsilon}_{0}-DP local protocol can be equivalently described as a sequence of algorithms R(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{R}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\to\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of R(i)\mathcal{R}^{(i)}) where the ii-th client returns zi=R(i)(z1:i−1,xi)z_{i}=\mathcal{R}^{(i)}(z_{1:i-1},x_{i}), and R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is an (ε,δ)({\varepsilon},\delta)-DP local randomizer for all values of auxiliary inputs z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. The dependence on z1:i−1z_{1:i-1} models the fact that the server can communicate to the client ii any information based on the messages from clients 1,…,i−11,\ldots,i-1.

The shuffle model of privacy is a distributed model of computation in which, as in the local model, clients hold their data and a server communicates with the clients to perform data analysis. In addition, the model includes a shuffler (also referred to as a mixnet). The shuffler collects all the reports sent by clients and anonymizes them by applying a random permutation to all the reports. The shuffled reports are then released to the server. Note that the reports are typically encrypted in a way that they can be decrypted by the server but not by the shuffler (a more detailed discussion of the trust assumptions can be found in [EFMRSTT20]). A server can also communicate back to the clients and the protocol may consist of multiple rounds of communication via a shuffler. Such a protocol is said to satisfy (ε,δ)({\varepsilon},\delta)-differential privacy in the shuffle model if the outputs of the shuffler on any pair of neighboring datasets are (ε,δ)({\varepsilon},\delta)-indistinguishable. We remark, that such protocols do not necessarily satisfy local differential privacy.

The anonymization of local reports to improve differential privacy was proposed in [BEMMRLRKTS17], who designed and implemented a principled systems architecture for shuffling. The intuition was formalized in [EFMRTT19, CSUZZ19]. [EFMRTT19] showed that for arbitrary ε0{\varepsilon}_{0}-DP local randomizers random shuffling of reports amplifies the privacy guarantees. [CSUZZ19] formally defined the shuffle model of computation and analyzed the privacy guarantees of the binary randomized response in this model. It is important to note that, as in [EFMRTT19], we analyze privacy amplification that results from shuffling of the data before applying local randomizers. In contrast, in the shuffle model the shuffler is applied to reports from the clients. To apply our analysis to the shuffle model, it suffices to observe that for a fixed local randomizer, shuffling of the randomized responses is distributed in the same way as randomized reports on shuffled data. In particular, it enjoys the privacy guarantees that we establish.

In all models, if δ=0\delta=0 then we will refer to an algorithm as ε{\varepsilon}-differentially private. Further, we will occasionally refer to δ=0\delta=0 as pure differentially private and δ>0\delta>0 as approximate differential privacy.

Subsampling is a well known technique for amplifying privacy guarantees [KLNRS08]. That is, suppose that A\mathcal{A} is an (ε,δ)({\varepsilon},\delta)-DP algorithm over datasets of size mm and define an algorithm A′\mathcal{A}^{\prime} over a dataset XX of size n>mn>m by picking a random and uniform subset of mm elements from XX and running A\mathcal{A} on the resulting dataset. Privacy amplification by subsampling states that A′\mathcal{A}^{\prime} is \mathopen{}\mathclose{{}\left(\log(1+\frac{m}{n}(e^{{\varepsilon}}-1)),\frac{m}{n}\delta}\right)-DP [KLNRS08, BBG20]. The following lemma is a slightly more general and abstract version of this result.

Let PP and QQ be distributions satisfying P=(1−q)P0+qP1P=(1-q)P_{0}+qP_{1} and Q=(1−q)P0+qQ1Q=(1-q)P_{0}+qQ_{1} for some q∈q\in and distributions P0,P1P_{0},P_{1} and Q1Q_{1}. Given α≥1\alpha\geq 1, let α′=1+q(α−1)\alpha^{\prime}=1+q(\alpha-1) and θ=α′/α\theta=\alpha^{\prime}/\alpha. Then the following holds

In particular, for any ε>0{\varepsilon}>0, if ε′=log⁡(1+q(eε−1)){\varepsilon}^{\prime}=\log(1+q(e^{{\varepsilon}}-1)) then

Improved Guarantees for Privacy Amplification by Shuffling

In this section we present our main theorem, an improved upper bound for privacy amplification via shuffling for adaptive ε0{\varepsilon}_{0}-DP randomizers. Theorem 3.1 provides a clean statement of our improved privacy amplification guarantee, improving on previous bounds in the high ε0{\varepsilon}_{0} regime. The main technical statement is contained in Theorem 3.1.

For any domain D\mathcal{D}, let R(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{R}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\to\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of R(i)\mathcal{R}^{(i)}) be a sequence of algorithms such that R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is an ε0{\varepsilon}_{0}-DP local randomizer for all values of auxiliary inputs z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. Let As:Dn→S(1)×⋯×S(n)\mathcal{A}_{\rm s}:\mathcal{D}^{n}\to\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset x1:n∈Dnx_{1:n}\in\mathcal{D}^{n}, samples a uniform random permutation π\pi over [n][n], then sequentially computes zi=R(i)(z1:i−1,xπ(i))z_{i}=\mathcal{R}^{(i)}(z_{1:i-1},x_{\pi(i)}) for i∈[n]i\in[n] and outputs z1:nz_{1:n}. Then for any δ∈\delta\in such that ε0≤log⁡(n16log⁡(2/δ)){\varepsilon}_{0}\leq\log(\frac{n}{16\log(2/\delta)}), As\mathcal{A}_{\rm s} is (ε,δ)({\varepsilon},\delta)-DP, where

Note that when ε0>1{\varepsilon}_{0}>1, {\varepsilon}=O\mathopen{}\mathclose{{}\left(\frac{\sqrt{e^{{\varepsilon}_{0}}\log(1/\delta)}}{\sqrt{n}}}\right) and when ε0≤1{\varepsilon}_{0}\leq 1, {\varepsilon}=O\mathopen{}\mathclose{{}\left({\varepsilon}_{0}\frac{\sqrt{\log(1/\delta)}}{\sqrt{n}}}\right).

A natural question is whether the given bound also holds when ε0>log⁡(n16log⁡(2/δ)){\varepsilon}_{0}>\log(\frac{n}{16\log(2/\delta)}) or, equivalently, log⁡(2/δ)≤neϵ016\log(2/\delta)\leq\frac{ne^{\epsilon_{0}}}{16}. In Appendix B we give numerical evidence that there is no privacy amplification when log⁡(1/δ)=Ω(ne−ϵ0)\log(1/\delta)=\Omega(ne^{-\epsilon_{0}}).

Our proof relies on a more general result showing that in order to analyze the privacy amplification by shuffling it suffices to upper bound divergence between a specific pair of distributions.

In addition to giving our closed-form upper bound, Theorem 3.2, provides an efficient method for numerically computing a tighter upper bound. We describe this numerical approach in Section 6.

Now let us turn to the proof of Theorems 3.1 and 3.2. As mentioned earlier, our proof involves reducing the problem of analyzing the privacy guarantee of an adaptive series of local randomizers applied to shuffled data to analyzing the privacy guarantee of a simple non-adaptive local algorithm with three outputs. Suppose that X0X_{0} and X1X_{1} are neighbouring databases that differ on the first datapoint, x10≠x11x_{1}^{0}\neq x_{1}^{1}. The reduction is outlined in Figure 1, which shows the behavior of the simpler algorithm on data set X0X_{0}. The key observation is that for any ε0{\varepsilon}_{0}-DP local randomizer R\mathcal{R} and data point xx, R(x)\mathcal{R}(x) can be seen as sampling from the same distribution as R(x10)\mathcal{R}(x_{1}^{0}) with probability at least e−ε0/2e^{-{\varepsilon}_{0}}/2 and sampling from the same distribution as R(x11)\mathcal{R}(x_{1}^{1}) with probability at least e−ε0/2e^{-{\varepsilon}_{0}}/2. That is, with probability e−ε0e^{-{\varepsilon}_{0}} each data point can create a clone of the output of R(x10)\mathcal{R}(x_{1}^{0}) or a clone of R(x11)\mathcal{R}(x_{1}^{1}) with equal probability. Thus n−1n-1 data elements effectively produce a random number of clones of both x10x_{1}^{0} and x11x_{1}^{1}. These clones make distinguishing whether the original data set contains x10x_{1}^{0} or x11x_{1}^{1} as its first element much harder.

The proof of Theorem 3.1 will require an additional step where we observe that if R\mathcal{R} is ε0{\varepsilon}_{0}-DP then R(x10)\mathcal{R}(x_{1}^{0}) and R(x11)\mathcal{R}(x_{1}^{1}) are similar, and thus privacy is further amplified. Let us start by proving Lemma 3.3, which captures just the privacy amplification due to the generation of clones. The following lemma analyses the divergence between the distributions on the number of clones that result from this reduction.

For notational brevity, we will frequently use the same symbol to refer to both a random variable and it’s probability density function. In particular, if XX and YY are random variables and α∈\alpha\in then Z=αX+(1−α)YZ=\alpha X+(1-\alpha)Y denotes the random variable that samples from XX with probability α\alpha and YY with probability 1−α1-\alpha. Consequently, for a randomized algorithm A\mathcal{A} and input xx, we treat the output A(x)\mathcal{A}(x) as a random variable and also use A(x)\mathcal{A}(x) to refer to the probability density function of this random variable.

Lemma 3.3 describes our reduction from the original problem to analysis of shuffling for a simple non-adaptive protocol. Specifically, it shows that if each local randomizer R\mathcal{R} we apply can be decomposed into a mixture of R(x10)\mathcal{R}(x_{1}^{0}), R(x11)\mathcal{R}(x_{1}^{1}) and some “left-over” distribution LO(x)\textup{{LO}}(x) then we can apply our reduction. We will then conclude the proof of Theorem 3.1 by observing that that every differentially private randomizer has this property.

For a domain D\mathcal{D}, let R(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{R}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\to\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of R(i)\mathcal{R}^{(i)}) be a sequence of algorithms such that R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is an ε0{\varepsilon}_{0}-DP local randomizer for all values of auxiliary inputs z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. Let As:Dn→S(1)×⋯×S(n)\mathcal{A}_{\rm s}:\mathcal{D}^{n}\to\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset x1:n∈Dnx_{1:n}\in\mathcal{D}^{n}, samples a permutation π\pi uniformly at random, then sequentially computes zi=R(i)(z1:i−1,xπ(i))z_{i}=\mathcal{R}^{(i)}(z_{1:i-1},x_{\pi(i)}) for i∈[n]i\in[n] and outputs z1:nz_{1:n}. Let X0=(x10,x2,…,xn)X_{0}=(x^{0}_{1},x_{2},\ldots,x_{n}) and X1=(x11,x2,…,xn)X_{1}=(x^{1}_{1},x_{2},\ldots,x_{n}) be two neighboring datasets such that for all j≠1j\neq 1, xj∉{x10,x11}x_{j}\notin\{x_{1}^{0},x_{1}^{1}\}. Suppose that there exists a positive value p∈(0,1]p\in(0,1] such that for all i∈[n]i\in[n], x∈D∖{x10,x11}x\in\mathcal{D}\setminus\{x_{1}^{0},x_{1}^{1}\} and z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}, there exists a distribution LO(i)(z1:i−1,x)\textup{{LO}}^{(i)}(z_{1:i-1},x) such that

Then there exists a randomized postprocessing algorithm ff such that As(X0)\mathcal{A}_{\rm s}(X_{0}) is distributed identically to f(A+1,C−A)f(A+1,C-A) and As(X1)\mathcal{A}_{\rm s}(X_{1}) is distributed identically to f(A,C−A+1)f(A,C-A+1), where C∼Bin(n−1,p)C\sim{\rm Bin}(n-1,p), A∼Bin(C,1/2)A\sim{\rm Bin}(C,1/2).

The proof of the above lemma relies on a decomposition of the algorithm that shuffles the data and then applies the local randomizers, to an algorithm in which each client first reports which component of the mixture it will sample from, then applies shuffling to these reports and finally applies a post-processing step in which randomizers are applied according to the shuffled mixture component indices.

Formally, define a random variable YY as follows

Given a dataset XbX_{b} for b∈{0,1}b\in\{0,1\} we generate nn samples from {0,1,2}\{0,1,2\} in the following way. Client number one (holding the first element of the dataset) reports bb. Clients 2,…,n2,\ldots,n each report an independent sample from YY. We then shuffle the reports randomly. Let ρb\rho_{b} denote the resulting distribution over {0,1,2}n\{0,1,2\}^{n}.

We claim that there exists a post-processing function ff (that depends on x10,x11,x2,…,xnx^{0}_{1},x^{1}_{1},x_{2},\ldots,x_{n}) such that for yy sampled from ρb\rho_{b}, f(y)f(y) is distributed identically to As(Xb)\mathcal{A}_{\rm s}(X_{b}). To see this, consider the following process that takes a b∈{0,1}b\in\{0,1\} as an input and defines a jointly distributed pair of random variables (z,y)(z,y) over S×{0,1,2}n\mathcal{S}\times\{0,1,2\}^{n}, where S=S(1)×⋯×S(n)\mathcal{S}=\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} is the output space of As\mathcal{A}_{\rm s}. Let π\pi be a randomly and uniformly chosen permutation of [n][n]. For every i∈[n]i\in[n], if π(i)≠1\pi(i)\neq 1 then we first sample yiy_{i} according to YY, and if i=1i=1, we set yi=by_{i}=b. We then use the yiy_{i}’s to generate ziz_{i}’s. Specifically,

By our assumption, this produces a sample ziz_{i} from R(i)(z1:i−1,xπ(i))\mathcal{R}^{(i)}(z_{1:i-1},x_{\pi(i)}). It is easy to see that the resulting random variable (z,y)(z,y) has the property that for input b∈{0,1}b\in\{0,1\} its marginal distribution over S\mathcal{S} is the same as As(Xb)\mathcal{A}_{\rm s}(X_{b}) and marginal distribution over {0,1,2}n\{0,1,2\}^{n} is ρb\rho_{b}.

We can now show that for every fixed value v∈{0,1,2}nv\in\{0,1,2\}^{n} and b∈{0,1}b\in\{0,1\}, one can generate a sample from the distribution of zz conditioned on y=vy=v without knowing bb from which the pair (z,y)(z,y) was generated. First observe that the above construction of (y,z,π)(y,z,\pi) has the property that for any permutation σ\sigma, conditioned on (y=v,π=σ)(y=v,\pi=\sigma), the random variable zz does not depend on bb. A natural approach to sample from z∣y=vz|_{y=v} would be to sample a permutation σ\sigma from the distribution of π\pi conditioned on y=vy=v, and then sample z∣(y,π)=(v,σ)z|_{(y,\pi)=(v,\sigma)}. The conditional distribution of π∣y=v\pi|_{y=v} however is not independent of bb. Let T=π({i:yi=2})T=\pi(\{i:y_{i}=2\}) be the indices corresponding to vi=2v_{i}=2. First observe that T∣y=vT|_{y=v} is independent of bb, since this distribution is uniform over subsets of {2,…,n}\{2,\ldots,n\} of the appropriate size. Finally, note that the sampling of zz given yy only needs TT. Thus we can sample from z∣(y,T)=(v,J)z|_{(y,T)=(v,J)} without knowing bb. This conditional sampling is exactly the post-processing step that we claimed. We include a formal description of the post-processing step in Algorithm 1.

We now analyze the divergence between ρ0\rho_{0} and ρ1\rho_{1}. First, the shuffling step implies that ρ0\rho_{0} and ρ1\rho_{1} are symmetric. That is, the probability of any sequence y∈{0,1,2}ny\in\{0,1,2\}^{n} depends only on the total number of 0s and 1s in the sequence. This implies that the divergence between ρ0\rho_{0} and ρ1\rho_{1} is equal to the divergence between the distribution of the counts of 0’s and 1’s. Let (c0,c1)=(∑i∈[n]\mathds1yi=0,∑i∈[n]\mathds1yi=1(c_{0},c_{1})=(\sum_{i\in[n]}\mathds{1}_{y_{i}=0},\sum_{i\in[n]}\mathds{1}_{y_{i}=1}). It now suffices to observe that, if C∼Bin(n−1,p)C\sim{\rm Bin}(n-1,p) and A∼Bin(C,1/2)A\sim{\rm Bin}(C,1/2), then the counts for y∼ρ0y\sim\rho_{0} are distributed as (1+A,C−A)(1+A,C-A) and the count for y∼ρ1y\sim\rho_{1} is distributed as (A,C−A+1)(A,C-A+1).

We can now complete the proof of Theorem 3.1. To do this we will use privacy amplification provided by the clones (Lemma 3.3) together with the observation that for any ε0{\varepsilon}_{0}-DP randomizer R\mathcal{R}, R(x10)\mathcal{R}(x^{0}_{1}) and R(x11)\mathcal{R}(x^{1}_{1}) are ε0{\varepsilon}_{0}-indistinguishable. To fit this into our analysis we will use the fact that R(x10)\mathcal{R}(x^{0}_{1}) and R(x11)\mathcal{R}(x^{1}_{1}) can be viewed as post-processing of a binary randomized response with parameter ε0{\varepsilon}_{0} [KOV15] (see also [MV16]).

Let R ⁣:D→S\mathcal{R}\colon\mathcal{D}\to\mathcal{S} be an ε0{\varepsilon}_{0}-DP local randomizer and x0,x1∈Dx_{0},x_{1}\in\mathcal{D}. Then there exists a randomized algorithm Q ⁣:{0,1}→S\mathcal{Q}\colon\{0,1\}\to\mathcal{S} such that R(x0)=eε0eε0+1Q(0)+1eε0+1Q(1)\mathcal{R}(x_{0})=\frac{e^{{\varepsilon}_{0}}}{e^{{\varepsilon}_{0}}+1}\mathcal{Q}(0)+\frac{1}{e^{{\varepsilon}_{0}}+1}\mathcal{Q}(1) and R(x1)=1eε0+1Q(0)+eε0eε0+1Q(1)\mathcal{R}(x_{1})=\frac{1}{e^{{\varepsilon}_{0}}+1}\mathcal{Q}(0)+\frac{e^{{\varepsilon}_{0}}}{e^{{\varepsilon}_{0}}+1}\mathcal{Q}(1).

Binary randomized response can be seen as an algorithm that outputs its input with probability eε0−1eε0+1\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+1} and outputs an unbiased coin flip with probability 2eε0+1\frac{2}{e^{{\varepsilon}_{0}}+1}. Thus it can be seen as providing privacy amplification by subsampling with probability eε0−1eε0+1\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+1}. Note that for ε0<1{\varepsilon}_{0}<1 this probability is O(ε0)O({\varepsilon}_{0}). This will ensure that our bound is accurate in the regime ε0<1{\varepsilon}_{0}<1.

Let X0X_{0} and X1X_{1} be neighboring datasets. We can assume without loss of generality that X0=(x10,x2,…,xn)X_{0}=(x^{0}_{1},x_{2},\ldots,x_{n}) and X1=(x11,x2,…,xn)X_{1}=(x^{1}_{1},x_{2},\ldots,x_{n}) for x10≠x11x_{1}^{0}\neq x_{1}^{1} (since the shuffler applies a random permutation). Further, we can assume without loss of generality that for all j≠1j\neq 1, xj∉{x10,x11}x_{j}\notin\{x_{1}^{0},x_{1}^{1}\}. This true since we can add elements x′10{x^{\prime}}_{1}^{0} and x′11{x^{\prime}}_{1}^{1} to the domain D\mathcal{D} and define R(i)\mathcal{R}^{(i)} on them in the same way as on x10x_{1}^{0} and x11x_{1}^{1}, respectively. With this definition, for b∈{0,1}b\in\{0,1\}, the output distribution of As(x′1b,x2,…,xn)\mathcal{A}_{\rm s}({x^{\prime}}_{1}^{b},x_{2},\ldots,x_{n}) is identical to that of As(Xb)\mathcal{A}_{\rm s}(X_{b}).

By Lemma 3.4 we have that for every ii and value of auxiliary input z1:i−1z_{1:i-1} there exists a randomized algorithm Q(i)(z1:i−1,⋅) ⁣:{x10,x11}→S(i)\mathcal{Q}^{(i)}(z_{1:i-1},\cdot)\colon\{x_{1}^{0},x_{1}^{1}\}\to\mathcal{S}^{(i)} such that

where again for notational brevity we use the same notation for a random variable and its probability density function.

Next we observe that the definition of ε0{\varepsilon}_{0}-DP directly implies that for an ε0{\varepsilon}_{0}-DP randomizer R ⁣:D→S\mathcal{R}\colon\mathcal{D}\to\mathcal{S} and any input x0∈Dx_{0}\in\mathcal{D}, there exists a randomized algorithm LO ⁣:D→S\textup{{LO}}\colon\mathcal{D}\to\mathcal{S} such that R(x)\mathcal{R}(x) can be decomposed as

Applying this argument twice we obtain that, for any pair of inputs x0,x1∈Dx_{0},x_{1}\in\mathcal{D} there exists a decomposition

Applying this observation to R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot), for all i∈[n]i\in[n] and values of z1:i−1z_{1:i-1}, we have that there exists a randomized algorithm LO(i)\textup{{LO}}^{(i)} such that for p=e−ε0p=e^{-{\varepsilon}_{0}} we have:

Next we consider the algorithm AQ\mathcal{A}_{\mathcal{Q}} which is defined in the same way as As\mathcal{A}_{\rm s}, except R(i)(z1:i−1,x1b)\mathcal{R}^{(i)}(z_{1:i-1},x_{1}^{b}) is replaced with Q(i)(z1:i−1,x1b)\mathcal{Q}^{(i)}(z_{1:i-1},x_{1}^{b}). Formally, we define a randomizer RQ(i)\mathcal{R}_{\mathcal{Q}}^{(i)} as follows: For all x∈Dx\in\mathcal{D}, i∈[n]i\in[n] and values of z1:i−1z_{1:i-1} we let

Let AQ\mathcal{A}_{\mathcal{Q}} be defined in the same way as As\mathcal{A}_{\rm s}, except R(i)\mathcal{R}^{(i)} is replaced with RQ(i)\mathcal{R}_{\mathcal{Q}}^{(i)}.

Equations (3) and (4), allow us to decompose As(X0)\mathcal{A}_{\rm s}(X_{0}) and As(X1)\mathcal{A}_{\rm s}(X_{1}) into the mixture of two components as follows:

Note that by eq. (5), for all x∉{x10,x11}x\notin\{x_{1}^{0},x_{1}^{1}\},

To complete the proof of Theorem 3.1, all we need is the following lemma on the hockey-stick divergence between the distributions resulting from Theorem 3.2 and the post-processing inequality for the hockey-stick divergence.

Our bound is based on a simpler and stronger reduction of this type that was also independently shown in [CU20]. Its tightest form is best stated in the add/delete variant of differential privacy which was defined for local randomizers in [EFMRSTT20].

An algorithm R ⁣:D→S\mathcal{R}\colon\mathcal{D}\to\mathcal{S} is a deletion (ε,δ)({\varepsilon},\delta)-DP local randomizer if there exists a reference distribution ρ\rho such that for all data points x∈Dx\in\mathcal{D}, R(x)\mathcal{R}(x) and ρ\rho are (ε,δ)({\varepsilon},\delta)-indistinguishable.

We will occasionally refer to a function that satisfies Definition 2.2 as a replacement (ε,δ)({\varepsilon},\delta)-DP local randomizer. It is easy to show that a replacement (ε,δ)({\varepsilon},\delta)-DP algorithm is also a deletion (ε,δ)({\varepsilon},\delta)-DP algorithm, and that a deletion (ε,δ)({\varepsilon},\delta)-DP algorithm is also a replacement (2ε,2δ)(2{\varepsilon},2\delta)-DP algorithm. The following Lemma allows us to convert (ε,δ)({\varepsilon},\delta)-DP local randomizers to ε{\varepsilon}-DP local randomizers that are within δ\delta in total variation distance.

Suppose R\mathcal{R} is a deletion (ε,δ)({\varepsilon},\delta)-DP local randomizer with reference distribution ρ\rho. Then there exists a randomizer R′\mathcal{R}^{\prime} that is a deletion ε{\varepsilon}-DP local randomizer with reference distribution ρ\rho, and for all inputs xx, TV(R(x),R′(x))≤δ{\rm TV}(\mathcal{R}(x),\mathcal{R}^{\prime}(x))\leq\delta. In particular, R′\mathcal{R}^{\prime} is a (replacement) 2ε2{\varepsilon}-DP local randomizer.

The proof can be found in Appendix C. We note that when this transformation is applied to an (ε,δ)({\varepsilon},\delta)-DP local randomizer that is also deletion (ε/2,δ)({\varepsilon}/2,\delta)-DP (such as, for example, addition of isotropic Gaussian noise to a vector from a Euclidean ball of bounded radius) then the extra factor 22 can be avoided. To avoid incurring this factor of 22 in our amplification by shuffling bound, we apply the core observation from the proof of Lemma 3.7 directly in our proof of the amplification bound. This leads to the following resulting bound which we prove in Appendix C.

For a domain D\mathcal{D}, let R(i) ⁣:f×D→S(i)\mathcal{R}^{(i)}\colon f\times\mathcal{D}\to\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of R(i)\mathcal{R}^{(i)}) be a sequence of algorithms such that R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is a (ε0,δ0)({\varepsilon}_{0},\delta_{0})-DP local randomizer for all values of auxiliary inputs z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. Let As ⁣:Dn→S(1)×⋯×S(n)\mathcal{A}_{\rm s}\colon\mathcal{D}^{n}\to\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset x1:n∈Dnx_{1:n}\in\mathcal{D}^{n}, samples a uniformly random permutation π\pi, then sequentially computes zi=R(i)(z1:i−1,xπ(i))z_{i}=\mathcal{R}^{(i)}(z_{1:i-1},x_{\pi(i)}) for i∈[n]i\in[n] and outputs z1:nz_{1:n}. Then for any δ∈\delta\in such that ε0≤log⁡(n16log⁡(2/δ)){\varepsilon}_{0}\leq\log(\frac{n}{16\log(2/\delta)}), As\mathcal{A}_{\rm s} is (ε,δ+(eε+1)(1+e−ε0/2)nδ0)({\varepsilon},\delta+(e^{{\varepsilon}}+1)(1+e^{-{\varepsilon}_{0}}/2)n\delta_{0})-DP, where ε{\varepsilon} is as in Equation (1).

Notice that the bound on ε{\varepsilon} in Theorem 3.8 matches the bound in Theorem 3.1. A natural question is if the dependence of δ\delta on nn and ε0{\varepsilon}_{0} is optimal. We leave this question for future work.

A Tighter Analysis for Specific Randomizers

In this section we give a more refined analysis of the amplification by shuffling that can exploit additional properties of the local randomizer and lead to improved privacy amplification results for specific randomizers. In particular, Theorem 4.1 will immediately imply a privacy amplification by shuffling result for kk randomized response (kRR). To our knowledge, this is the first theoretical result that shows that privacy amplification improves as kk increases, corroborating empirical results from [BBGN19]. As with Theorem 3.1, Theorem 4.1 also gives us a method for empirically computing the privacy guarantee.

We will show the amplification bound is stronger if, in addition, R(i)(z1:i−1,x10)\mathcal{R}^{(i)}(z_{1:i-1},x_{1}^{0}) and R(i)(z1:i−1,x11)\mathcal{R}^{(i)}(z_{1:i-1},x_{1}^{1}) are close in total variation distance, specifically when the total variation distance is less than 2/(eε0+1)2/(e^{{\varepsilon}_{0}}+1) (which is implied by R(i)\mathcal{R}^{(i)} being ε0{\varepsilon}_{0}-DP).

We first state the most general form of this amplification theorem. We will use MultNom(n;p1,…,pk){\rm MultNom}(n;p_{1},\ldots,p_{k}) to denote the multinomial distribution over kk-tuples with nn samples and probabilities of each of the outcomes being p1,…,pkp_{1},\ldots,p_{k} (where ∑i∈[k]pk=1)\sum_{i\in[k]}p_{k}=1).

For a domain D\mathcal{D}, let R(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{R}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\to\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of R(i)\mathcal{R}^{(i)}) be a sequence of algorithms such that R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is a ε0{\varepsilon}_{0}-DP local randomizer for all values of auxiliary inputs z1,i−1∈S(1)×⋯×S(i−1)z_{1,i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. Let As:Dn→S(1)×⋯×S(n)\mathcal{A}_{\rm s}:\mathcal{D}^{n}\to\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset x1:n∈Dnx_{1:n}\in\mathcal{D}^{n}, samples a uniformly random permutation π\pi, then sequentially computes zi=R(i)(z1:i−1,xπ(i))z_{i}=\mathcal{R}^{(i)}(z_{1:i-1},x_{\pi(i)}) for i∈[n]i\in[n] and outputs z1:nz_{1:n}. Let X0=(x10,x2,…,xn)X_{0}=(x^{0}_{1},x_{2},\ldots,x_{n}) and X1=(x11,x2,…,xn)X_{1}=(x^{1}_{1},x_{2},\ldots,x_{n}) be two neighboring datasets such that for all j≠1j\neq 1, xj∉{x10,x11}x_{j}\notin\{x_{1}^{0},x_{1}^{1}\}. Suppose that there exist positive values p∈(0,1/3]p\in(0,1/3] and q∈(0,1)q\in(0,1) such that for all i∈[n]i\in[n] and z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}, there exists distributions Q0(i)(z1:i−1),Q1(i)(z1:i−1,x10)\mathcal{Q}^{(i)}_{0}(z_{1:i-1}),\mathcal{Q}^{(i)}_{1}(z_{1:i-1},x_{1}^{0}) and Q1(i)(z1:i−1,x11)\mathcal{Q}^{(i)}_{1}(z_{1:i-1},x_{1}^{1}) such that for all b∈{0,1}b\in\{0,1\},

and for all x∈D∖{x10,x11}x\in\mathcal{D}\setminus\{x_{1}^{0},x_{1}^{1}\}, there exists a distribution LO(i)(z1:i−1,x)\textup{{LO}}{(i)}(z_{1:i-1},x) such that

The reduction to analysis of the divergence between a pair of multinomial distributions in the proof of Theorem 4.1 is achieved using the same argument as the one we used to prove Theorem 3.2. The analysis of the resulting divergence relies on decomposing each of the resulting multinomial distributions into a mixture of two distributions. We then show that distributions we analyzed when proving Lemma 3.5 can be postprocessed into pairs of components of these mixtures. This allows us to show that all components of these mixtures are (ε′,δ′)({\varepsilon}^{\prime},\delta^{\prime})-indistinguishable. Joint convexity can then be used to obtain the bound. The details of the proof appear in Appendix D.

The main strength of Theorem 4.1 is that it allows us to prove tighter bounds than Theorem 3.1 for specific local randomizers. In the next section, we will show how Theorem 4.1 can be used to provide a tighter analysis of kk randomized response. However, we can also use it to rederive the bound from Theorem 3.1, although with a slightly worse constant factor. The decomposition in Lemma 3.4 implies that for any ε0{\varepsilon}_{0}-DP local randomizer Equation (8) holds with q=eε0−1eε0+1q=\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+1}. That is, given a sequence of R(i)\mathcal{R}^{(i)} of ε0{\varepsilon}_{0}-DP local randomizers, and neighbouring datasets X0X_{0} and X1X_{1} such that x00≠x11x_{0}^{0}\neq x_{1}^{1}, there exist distributions Q(i)(z1:i−1,x10)\mathcal{Q}^{(i)}(z_{1:i-1},x_{1}^{0}) and Q(i)(z1:i−1,x11)\mathcal{Q}^{(i)}(z_{1:i-1},x_{1}^{1}) that satisfy equations (3) and (4). Thus, by setting

we get that for b∈{0,1}b\in\{0,1\} and q=eε0−1eε0+1q=\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+1},

Further, Equation (5) implies that for any x∈Dx\in\mathcal{D} and b∈{0,1}b\in\{0,1\},

Letting q=eε0−1eε0+1q=\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+1} and p=e−ε0/3p=e^{-{\varepsilon}_{0}}/3 and assuming {\varepsilon}_{0}\leq\ln\mathopen{}\mathclose{{}\left(\frac{n}{24\ln(2/\delta)}}\right) (which implies p≥8ln⁡(2/δ)np\geq\frac{8\ln(2/\delta)}{n}), Equation (10) gives the bound

which matches the bound stated in Equation (1) of Theorem 3.1 up to a factor of 3/2\sqrt{3/2}.

where U[k]\mathcal{U}_{[k]} is the uniform distribution over [k][k]. That is, with probability eε0−1eε0+k−1\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+k-1} the true data point is reported, and otherwise a random value is reported.

Notice that when kk is small, this bound matches that given in Theorem 3.1, but when kk and ε0{\varepsilon}_{0} are large, ε{\varepsilon} scales like eε0kn\frac{e^{{\varepsilon}_{0}}}{\sqrt{kn}}. The proof of Corollary 4.2 can be found in Appendix E. The key observation is that if we let ν\nu be the uniform distribution on [k][k], then for any x∈[k]x\in[k],

where \mathds1x\mathds{1}_{x} is the distribution that always outputs xx.

Applications

where the expectation is over the randomness of samples and the algorithm.

and therefore an algorithm for frequency estimation implies an algorithm for distribution estimation with error larger by at most 1/n1/\sqrt{n}.

A number of algorithms for frequency and distribution estimation in the local model have been developed [HKR12, EPK14a, BS15, KBR16, WHWNXYLQ16, WBLJ17, YB18, ASZ19, AS19, BNS19, BNST20, CKÖ20, FT21]. Recent work focuses on achieving (asymptotically) optimal accuracy in the ε0>1{\varepsilon}_{0}>1 regime and low communication. In particular, [ASZ19] give an efficient, low communication (log⁡k+2\log k+2 bits per user) ε0{\varepsilon}_{0}-DP local algorithm that is asymptotically optimal for all ε0{\varepsilon}_{0} (their result is stated for the distribution estimation problem but also applies to the frequency estimation problem). A related algorithm with similar theoretical guarantees but somewhat better empirical performance is given in [CKÖ20].

For every positive integer kk and ε0>0{\varepsilon}_{0}>0, there exists an ε0{\varepsilon}_{0}-LDP protocol for frequency estimation that outputs a vector of frequencies p^\hat{p} such that for every dataset X∈[k]nX\in[k]^{n},

The bounds achieved by this algorithm are asymptotically optimal for LDP [YB18] when ε0≤log⁡k{\varepsilon}_{0}\leq\log k. (A different setting of parameters can be used to achieve optimality in the regime when ε0>log⁡k{\varepsilon}_{0}>\log k but we omit this regime as it does not appear to be practically relevant.) The best accuracy for low-communication protocols, specifically

is achieved by an algorithm in a recent work of [FT21] albeit at the expense of slower server-side decoding time.

Using the fact that our amplification bound has optimal dependence on ε0{\varepsilon}_{0}, we are able to leverage any of the asymptotically optimal results for local DP to immediately obtain a low communication, single round algorithm in the shuffle model whose error matches the optimal error for distribution estimation in the central model up to a O(log⁡(1/δ))O(\sqrt{\log(1/\delta)}) factor. For frequency estimation the error in the central model is optimal up to the 1/n1/\sqrt{n} additive term (that is comparable to the statistical error) which is known to be necessary for algorithms in the single message shuffle model [GGKPV19].

For every positive integer kk and ε,δ∈(0,1){\varepsilon},\delta\in(0,1), there exists an (ε,δ)({\varepsilon},\delta)-DP protocol for frequency estimation that outputs a vector of frequencies p^\hat{p} such that for every dataset X∈[k]nX\in[k]^{n},

For a local randomizer Aldp{\mathcal{A}_{\rm ldp}}, let As(Aldp)\mathcal{A}_{\rm s}({\mathcal{A}_{\rm ldp}}) be the algorithm that given a data set x1:n∈Dnx_{1:n}\in\mathcal{D}^{n}, samples a uniform random permutation π\pi over [n][n], then outputs (Aldp(xπ(1)),⋯ ,Aldp(xπ(n)))({\mathcal{A}_{\rm ldp}}(x_{\pi(1)}),\cdots,{\mathcal{A}_{\rm ldp}}(x_{\pi(n)})).

ensure that for a local randomizer Aldp{\mathcal{A}_{\rm ldp}} that is ε0\varepsilon_{0}-DP, the shuffled output As(Aldp)\mathcal{A}_{\rm s}({\mathcal{A}_{\rm ldp}}) is (ε,δ)(\varepsilon,\delta)-DP.

According to Theorem 5.1, there exists an ε0{\varepsilon}_{0}-DP local randomizer Aldp{\mathcal{A}_{\rm ldp}} and algorithm ff such that f∘Aldpf\circ{\mathcal{A}_{\rm ldp}} has error

Substituting the value of ε0{\varepsilon}_{0} gives the claimed result. ∎

We note that for the frequency estimation problem in the shuffle model the first algorithm that achieves communication cost that is o(k)o(k) while being asymptotically nearly optimal for the central model was given in [GGKPV19]. Their relatively involved multi-message protocol has communication cost of O(log⁡k⋅log⁡n⋅log⁡(1/(εδ))/ε2)O(\log k\cdot\log n\cdot\log(1/({\varepsilon}\delta))/{\varepsilon}^{2}). It also does not have local DP guarantees and is relatively inefficient computationally.

2 Privacy Analysis of Private Stochastic Gradient Descent

For any δ∈\delta\in such that ε0≤log⁡(n16log⁡(2/δ)){\varepsilon}_{0}\leq\log(\frac{n}{16\log(2/\delta)}), Algorithm 2 is (ε,δ+O(eεδ0n))({\varepsilon},\delta+O(e^{{\varepsilon}}\delta_{0}n))-DP where

then the output of Algorithm 2 can be obtained by post-processing of the shuffled output As(X)\mathcal{A}_{\rm s}(X). Since each R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot) is a (ε0,δ0)({\varepsilon}_{0},\delta_{0})-DP local randomizer and ε0≤log⁡(n16log⁡(2/δ)){\varepsilon}_{0}\leq\log(\frac{n}{16\log(2/\delta)}), Theorem 3.8 implies that Algorithm 2 is (ε,δ+(eε+1)(1+e−ε0/2)nδ0)({\varepsilon},\delta+(e^{{\varepsilon}}+1)(1+e^{-{\varepsilon}_{0}}/2)n\delta_{0})-DP, where ε{\varepsilon} is as given in Equation (12). ∎

For a single pass over the data and ε0>1{\varepsilon}_{0}>1, the privacy analysis in Proposition 5.3 is tighter than that given by [BST14], who analyse sampling with replacement. For any δ>0\delta>0, their analysis, which relies on privacy amplification by subsampling and advanced composition of differentially private algorithms, gives a privacy guarantee of (ε,nδ+δ0n)({\varepsilon},n\delta+\frac{\delta_{0}}{n}) where

For large ε0{\varepsilon}_{0}, our result above (Proposition 5.3) improves on this by a factor of Θ(eε0)\Theta(\sqrt{e^{{\varepsilon}_{0}}}). We note that for multiple passes over the data, our analysis suffers an extra log⁡(1/δ)\sqrt{\log(1/\delta)} factor in the privacy loss compared to Equation (13). Work subsequent to [BST14] has improved the privacy analysis for multiple passes using concentrated differential privacy to shave an additional log⁡(1/δ)\sqrt{\log(1/\delta)} [ACGMMTZ16, WBK21]. Our analysis technique for Algorithm 2 is also the basis of the analysis of the optimization algorithms in [BKMTT20]. We also note that Proposition 5.3 can be easily extended to the batched version of SGD by viewing each batch of size bb as a single data element in Db\mathcal{D}^{b}.

Numerical Results

Theorem 3.2 provides an efficient method for numerically computing an amplification bound that is tighter than our closed-form bound. Our implementation is outlined in Appendix F, but the main component is numerically computing the indistinguishability bound for multinomial random variables from Lemma 3.5. In this section, we provide numerical evaluations of the privacy amplification bound in a variety of parameter regimes. In Figure 2, Clones, Theoretical is the bound presented in Theorem 3.1 and Clones is the numerical version derived from Theorem 3.2. Also, BBGN’19 is the privacy amplification bound for general algorithms given in [BBGN19]BBGN’19 curves were produced using open source code released by \AtNextCite\AtEachCitekey\@nocounterrmaxnames [BBGN19], they correspond to the curve (Bennett, Generic) in [BBGN19]. and BKMTT’20 is the bound proven in [BKMTT20]. Finally, CSUZZ’19, 2RR is the closed form amplification bound for binary randomized response proved in [CSUZZ19] and 2RR, lower bound is a lower bound on the shuffling privacy guarantee of binary randomized response that we compute directly. A description of our implementation of 2RR, lower bound is found in Appendix G. We do not include the bounds from [EFMRTT19] in the comparison since [BKMTT20] gives a tighter bound for the same analysis.

In all parameter regimes tested, Clones gives a tighter bound compared to BBGN’19 as well as BKMTT’20. We can see in Figure 2(c) that this effect is particularly pronounced when ε0{\varepsilon}_{0} is large, which is the parameter regime where our closed-form bounds asymptotically improve over prior work. Being a lower bound for a particular algorithm, 2RR, lower bound provides a lower bound on any general privacy amplification result. We can see in Figure 2(c) that for large nn, Clones closely tracks 2RR, lower bound, particularly for small ε0{\varepsilon}_{0}. We note in all three graphs in Figure 2, Clones should be monotone. The slight non-monotonicity results from some optimizations that speed up the computation at the cost of slightly looser upper bound. We defer details to Appendix F.

Indistinguishability of random variables is only one way of several possible ways to measure to similarity in the output distributions of neighboring datasets. The Rényi divergence, that captures the moment generating function of the privacy loss random variable, is an alternate measure resulting in Rényi differential privacy [DR16, ACGMMTZ16, Mir17, BS16].

For two random variables PP and QQ, the Rényi divergence of PP and QQ of order α>1\alpha>1 is

For α>1\alpha>1, an algorithm A:Dn→S\mathcal{A}:\mathcal{D}^{n}\to\mathcal{S} is (ε(α),α)({\varepsilon}(\alpha),\alpha)-Rényi differentially private (RDP) if for all neighboring databases XX and X′X^{\prime}, Dα(A(X)∥A(X′))≤ε(α)D^{\alpha}(\mathcal{A}(X)\|\mathcal{A}(X^{\prime}))\leq{\varepsilon}(\alpha).

Theorem 3.2 implies that to bound the RDP guarantees of As\mathcal{A}_{\rm s} it suffices to compute the Rényi divergence between the two multinomial distributions (A+Δ,C−A+1−Δ)(A+\Delta,C-A+1-\Delta) and (A+1−Δ,C−A+Δ)(A+1-\Delta,C-A+\Delta). Below we evaluate this approach numerically in Section 6.1.

In Figure 3 we plot the Rényi privacy parameter for shuffling nn ε0{\varepsilon}_{0}-DP local randomizers as a function of the RDP order α\alpha. Clones is computed by directly computing the Rényi divergence between the two multinomial distributions (A+1−Δ,C−A+Δ)(A+1-\Delta,C-A+\Delta) and (A+Δ,C−A+1−Δ)(A+\Delta,C-A+1-\Delta), providing an upper bound on the privacy amplification by shuffling for RDP. For comparison, we include a bound computed using Theorem 1 from [GDDSK21] which we label as GDDSK’21. (We remark that the results in this subsection were not included in the earlier version of our work.) 2RR, lower bound provides a lower bound on the shuffling privacy guarantee of binary randomized response, and hence a lower bound on any general amplification result for RDP. Figure 3(a) shows that privacy amplification is achieved for small/moderate moments, but the Rényi DP parameter ε(α){\varepsilon}(\alpha) approaches ε0{\varepsilon}_{0} as α\alpha increases.

A key property of differentially private algorithms is that the composition of differentially private algorithms is differentially private. The advanced composition theorem quantifies the privacy guarantee after composing TT (ε,δ)({\varepsilon},\delta)-DP algorithms. When composing a large number of algorithms, [ACGMMTZ16] showed that tighter privacy guarantees can be obtained by computing the composition guarantees in terms of RDP and then converting back to approximate differential privacy. In Figure 3, we plot the privacy guarantee for TT adaptively composed outputs of a shuffler with each shuffler operating on nn, ε0{\varepsilon}_{0}-DP local randomizers as defined as in Theorem 3.1. We compare two methods for computing the resulting privacy guarantee. Clones, via Approximate DP computes the privacy guarantee of As\mathcal{A}_{\rm s} numerically in terms of approximate differential privacy, then used advanced composition [KOV15, Theorem 4.3] to compute the privacy guarantee of the composition. Clones, via RDP computes the privacy guarantee of As\mathcal{A}_{\rm s} numerically in terms of Rényi differential privacy, computes the privacy guarantee of the composition using the composition theorem for Rényi DP [Mir17], then converts to an approximate DP guarantee [CKS20, Proposition 12]. We also compare to the latter approach performed using the RDP privacy amplification result presented in [GDDSK21] (with parameters chosen as in [GDDSK21]). As can be seen from the results, our technique provides a significantly tighter upper bound.

References

Appendix A Proof of Lemma 3.5

See 3.5 To prove Lemma 3.5 we first upper bound the divergence between a pair of slightly simpler distributions.

Consider the process where we sample C∼Bin(n−1,p)C\sim{\rm Bin}(n-1,p) and A∼Bin(C,1/2)A\sim{\rm Bin}(C,1/2). Let P=(A+1,C−A)P=(A+1,C-A) and Q=(A,C−A+1)Q=(A,C-A+1), then

In particular, PP and QQ are (ε,δ)({\varepsilon},\delta)- indistinguishable.

Using a Chernoff bound and Hoeffding’s inequality, with probability δ\delta since p≥3log⁡(4/δ)np\geq\frac{3\log(4/\delta)}{n} both

Now, note that p≥16ln⁡(4/δ)np\geq\frac{16\ln(4/\delta)}{n} implies that 3pnlog⁡(4/δ)≤pn/2\sqrt{3pn\log(4/\delta)}\leq pn/2 and, C2log⁡(4/δ)≤C/4\sqrt{\frac{C}{2}\log(4/\delta)}\leq C/4. Given a specific output (a,b)(a,b),

Now, if AA and CC satisfy equation (14) then

Therefore, setting ε=log⁡(1+64log⁡(4/δ)pn+8pn){\varepsilon}=\log(1+\frac{\sqrt{64\log(4/\delta)}}{\sqrt{pn}}+\frac{8}{pn}) gives that PP and QQ are (ε,δ)({\varepsilon},\delta) indistinguishable.

We can now complete the proof of Lemma 3.5 by using the advanced joint convexity of the hockey-stick divergence.

Let P0=(A+1,C−A)P_{0}=(A+1,C-A) and Q0=(A,C−A+1)Q_{0}=(A,C-A+1) and let ρ0\rho_{0} and ρ1\rho_{1} denote their respective probability distributions. Then, by Lemma A.1 for p=e−ε0p=e^{-{\varepsilon}_{0}},

Now, note that if we let T=12(P0+Q0)T=\frac{1}{2}(P_{0}+Q_{0}) then we obtain that

Further, for any ε>0{\varepsilon}>0, by the convexity of the hockey-stick divergence,

Thus, by Lemma 2.3, PP and QQ are (ε,pδ)({\varepsilon},p\delta)-indistinguishable where

Appendix B Tails of the Privacy Loss

Recall from Theorem 3.1 that the closed form bound for privacy amplification by shuffling was only valid when log⁡(2/δ)≤neε016\log(2/\delta)\leq\frac{ne^{{\varepsilon}_{0}}}{16}. This condition arises in the proof when obtaining concentration bounds for the binomial, so a natural question is whether it is an artifact of the proof, or inherent. That is, do we get amplification when log⁡(2/δ)≥neε016\log(2/\delta)\geq\frac{ne^{{\varepsilon}_{0}}}{16}? In Figure 4, we show the tail of privacy loss as δ\delta varies. The solid lines show the exact computation of the ε{\varepsilon} for shuffled binary randomised response. The dashed lines show the general upper bound obtained through the numerical computation derived from Theorem 3.2, as in Section 6. The horizontal, dotted lines mark log⁡(1/δ)=ne−ε02\log(1/\delta)=\frac{ne^{-{\varepsilon}_{0}}}{2}. Notice that in all three settings of ε0{\varepsilon}_{0}, the shuffled privacy loss undergoes a sharp transition from ε<ε0{\varepsilon}<{\varepsilon}_{0} to ε=ε0{\varepsilon}={\varepsilon}_{0}. Further, this transition point closely aligns with log⁡(1/δ)=ne−ε02\log(1/\delta)=\frac{ne^{-{\varepsilon}_{0}}}{2}, indicating that amplification is not achieved when log⁡(1/δ)=Ω(ne−ε0)\log(1/\delta)=\Omega(ne^{-{\varepsilon}_{0}}).

Appendix C Proof of Proposition 3.8

Further, by the definition of (ε,δ)({\varepsilon},\delta)-indistinguishability,

Now, ρx′\rho_{x}^{\prime} is not necessarily a distribution since ∫yρx′(y)dy\int_{y}\rho_{x}^{\prime}(y)dy is not necessarily 1. Thus, our goal is to define a distribution ρx′′\rho_{x}^{\prime\prime} that preserves Equations (18) and (19). Let τ=∫ymax⁡{ρx(y)−ρx′(y),0}dy\tau=\int_{y}\max\{\rho_{x}(y)-\rho_{x}^{\prime}(y),0\}dy and τ′=∫ymax⁡{ρx′(y)−ρx(y),0}dy\tau^{\prime}=\int_{y}\max\{\rho_{x}^{\prime}(y)-\rho_{x}(y),0\}dy, as in Figure 5. Note that τ=τ′\tau=\tau^{\prime} if and only if ∫yρx′(y)dy=1\int_{y}\rho_{x}^{\prime}(y)dy=1. Thus there are two ways that ρx′\rho_{x}^{\prime} can fail to be a distribution.

Suppose first that τ>τ′\tau>\tau^{\prime}, then intuitively, we can convert ρx′\rho_{x}^{\prime} into a distribution by moving ρx′\rho_{x}^{\prime} closer to ρ\rho only in the region where ρ>ρx\rho>\rho_{x}. That is, for all z>0z>0, define

Now, f(ε)=τ′<τf({\varepsilon})=\tau^{\prime}<\tau and f(0)=TV(ρ,ρx)≥τf(0)={\rm TV}(\rho,\rho_{x})\geq\tau. Since ff is continuous in zz, by the intermediate value theorem, there exists 0≤ε′<ε0\leq{\varepsilon}^{\prime}<{\varepsilon} such that f(ε′)=τf({\varepsilon}^{\prime})=\tau. Since the distributions ρx′\rho_{x}^{\prime} and ρxε′\rho_{x}^{{\varepsilon}^{\prime}} agree on the region where ρx>ρx′>ρ\rho_{x}>\rho_{x}^{\prime}>\rho, we have

This implies that ρxε′\rho_{x}^{{\varepsilon}^{\prime}} is a distribution. Equation (18) still holds with ρxε′\rho_{x}^{{\varepsilon}^{\prime}} in place of ρx′\rho_{x}^{\prime} since ε′≤ε{\varepsilon}^{\prime}\leq{\varepsilon}, and

We can perform a similar operation if τ<τ′\tau<\tau^{\prime}. Now, we let the output of R′(x)\mathcal{R}^{\prime}(x) be distributed according to ρxε′\rho_{x}^{{\varepsilon}^{\prime}}. ∎

For the proof of Theorem 3.8 we will need the following simple lemma about the hockey-stick divergence.

[DR14, Lemma 3.17] Given random variables PP, QQ, P′P^{\prime} and Q′Q^{\prime}, if Deε(P′,Q′)≤δD_{e^{{\varepsilon}}}(P^{\prime},Q^{\prime})\leq\delta, TV(P,P′)≤δ′{\rm TV}(P,P^{\prime})\leq\delta^{\prime} and TV(Q,Q′)≤δ′{\rm TV}(Q,Q^{\prime})\leq\delta^{\prime} then Deε(P,Q)≤δ+(eε+1)δ′D_{e^{{\varepsilon}}}(P,Q)\leq\delta+(e^{{\varepsilon}}+1)\delta^{\prime}.

Let X0X_{0} and X1X_{1} be neighboring datasets of size nn such that x10≠x11x^{0}_{1}\neq x_{1}^{1}. As in the proof of Theorem 3.2, we can assume without loss of generality that for all j∈[2:n]j\in[2:n], xj∉{x10,x11}x_{j}\not\in\{x_{1}^{0},x_{1}^{1}\}.

Now fixing i∈[n]i\in[n] and auxiliary input z1:i−1z_{1:i-1}, for x∈Dx\in\mathcal{D}, let R(x) = R(i)(z1:i−1,x)\mathcal{R}(x)~{}=~{}\mathcal{R}^{(i)}(z_{1:i-1},x). If we define ρ=R(x10)\rho=\mathcal{R}(x_{1}^{0}) then R\mathcal{R} is a deletion (ε0,δ0)({\varepsilon}_{0},\delta_{0})-DP local randomizer with reference distribution ρ\rho. By Lemma 3.7, there exists a randomizer R′\mathcal{R}^{\prime} that is a deletion ε0{\varepsilon}_{0}-DP local randomizer with the same reference distribution. In particular, R(x10)\mathcal{R}(x_{1}^{0}) and R′(x11)\mathcal{R}^{\prime}(x_{1}^{1}) are ε0{\varepsilon}_{0}-indistinguishable, and TV(R(x11),R′(x11))≤δ0{\rm TV}(\mathcal{R}(x_{1}^{1}),\mathcal{R}^{\prime}(x_{1}^{1}))\leq\delta_{0}. Now, by Lemma 3.4, there exist distributions Q(x10)\mathcal{Q}(x_{1}^{0}) and Q(x11)\mathcal{Q}(x_{1}^{1}) so that

Our next goal is to decompose R(x)\mathcal{R}(x) in terms of Q(x10)\mathcal{Q}(x_{1}^{0}) and Q(x11)\mathcal{Q}(x_{1}^{1}) for all x∈Dx\in\mathcal{D}. By convexity of the hockey-stick divergence, for any x∈Dx\in\mathcal{D}, R(x)\mathcal{R}(x) is (ε0,δ0)({\varepsilon}_{0},\delta_{0})-indistinguishable from 12(R(x10)+R(x11))\frac{1}{2}(\mathcal{R}(x_{1}^{0})+\mathcal{R}(x_{1}^{1})). That is, R\mathcal{R} is a (ε0,δ0)({\varepsilon}_{0},\delta_{0}) deletion DP local randomizer with reference distribution 12(R(x10)+R(x11))\frac{1}{2}(\mathcal{R}(x_{1}^{0})+\mathcal{R}(x_{1}^{1})). Therefore, by Lemma 3.7, we can define R′′\mathcal{R}^{\prime\prime} such that for all x∈Dx\in\mathcal{D}, R′′(x)\mathcal{R}^{\prime\prime}(x) and 12(R(x10)+R(x11))\frac{1}{2}(\mathcal{R}(x_{1}^{0})+\mathcal{R}(x_{1}^{1})) are ε0{\varepsilon}_{0}-indistinguishable and TV(R′′(x),R(x))≤δ0{\rm TV}(\mathcal{R}^{\prime\prime}(x),\mathcal{R}(x))\leq\delta_{0}. This implies that there exists a randomized algorithm LO ⁣:D→S\textup{{LO}}\colon\mathcal{D}\to\mathcal{S} such that we can decompose R′′(x)\mathcal{R}^{\prime\prime}(x) as

Next we define a randomizer L\mathcal{L} by L(x10)=R(x10)\mathcal{L}(x_{1}^{0})=\mathcal{R}(x_{1}^{0}), L(x11)=R′(x11)\mathcal{L}(x_{1}^{1})=\mathcal{R}^{\prime}(x_{1}^{1}) and for other x∈Dx\in\mathcal{D},

Note that TV(R(x10),L(x10))=0{\rm TV}(\mathcal{R}(x_{1}^{0}),\mathcal{L}(x_{1}^{0}))=0, TV(R(x11),L(x11))≤δ0{\rm TV}(\mathcal{R}(x_{1}^{1}),\mathcal{L}(x_{1}^{1}))\leq\delta_{0} and for all x∈D∖{x10,x11}x\in\mathcal{D}\setminus\{x_{1}^{0},x_{1}^{1}\},

For all i∈[n]i\in[n] and z1:i−1∈S(1)×⋯×S(i−1)z_{1:i-1}\in\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}, let L(i)(z1:i−1,⋅)\mathcal{L}^{(i)}(z_{1:i-1},\cdot), Q(i)(z1:i−1,⋅)\mathcal{Q}^{(i)}(z_{1:i-1},\cdot) and LO(i)(z1:i−1,⋅)\textup{{LO}}^{(i)}(z_{1:i-1},\cdot) denote the result of this transformation applied to R(i)(z1:i−1,⋅)\mathcal{R}^{(i)}(z_{1:i-1},\cdot). Let AL{\mathcal{A}}_{\mathcal{L}} be the same algorithm as As\mathcal{A}_{\rm s} except R(i)(z1:i−1,x)\mathcal{R}^{(i)}(z_{1:i-1},x) is replaced by L(i)(z1:i−1,x)\mathcal{L}^{(i)}(z_{1:i-1},x). Note that, As\mathcal{A}_{\rm s} applies each randomizer exactly once and hence, by the union bound,

Thus, by Lemma C.1, for any ε>0{\varepsilon}>0, if AL(X0)\mathcal{A}_{\mathcal{L}}(X_{0}) and AL(X1)\mathcal{A}_{\mathcal{L}}(X_{1}) are (ε,δ)({\varepsilon},\delta)-indistinguishable then As(X0)\mathcal{A}_{\rm s}(X_{0}) and As(X1)\mathcal{A}_{\rm s}(X_{1}) are (ε,δ+(eε+1)(1+e−ε0/2)nδ0)({\varepsilon},\delta+(e^{{\varepsilon}}+1)(1+e^{-{\varepsilon}_{0}}/2)n\delta_{0})-indistinguishable. So, all we need is to analyze the hockey-stick divergence between AL(X0)\mathcal{A}_{\mathcal{L}}(X_{0}) and AL(X1)\mathcal{A}_{\mathcal{L}}(X_{1}).

Equations (20), (21), and (22) mirror Equations (3), (4) and (5) in the proof of Theorem 3.2, so the proof will proceed similarly. We define a randomizer LQ(i)\mathcal{L}_{\mathcal{Q}}^{(i)} as follows: For all x∈Dx\in\mathcal{D}, i∈[n]i\in[n] and values of z1:i−1z_{1:i-1} we let

Let AQ\mathcal{A}_{\mathcal{Q}} be defined in the same way as As\mathcal{A}_{\rm s}, except R(i)\mathcal{R}^{(i)} is replaced with LQ(i)\mathcal{L}_{\mathcal{Q}}^{(i)}. Equations (20) and (21), allow us to decompose AL(X0)\mathcal{A}_{\mathcal{L}}(X_{0}) and AL(X1)\mathcal{A}_{\mathcal{L}}(X_{1}) into the mixture of two components as follows:

To compute the divergence between AQ(X0)\mathcal{A}_{\mathcal{Q}}(X_{0}) and AQ(X1)\mathcal{A}_{\mathcal{Q}}(X_{1}) we note that by Equation (22), for all x∉{x10,x11}x\notin\{x_{1}^{0},x_{1}^{1}\},

Therefore, by Lemma 3.3, AQ(X0)\mathcal{A}_{\mathcal{Q}}(X_{0}) and AQ(X1)\mathcal{A}_{\mathcal{Q}}(X_{1}) can be seen as postprocessing of random variables (A+1,C−A)(A+1,C-A) and (A,C−A+1)(A,C-A+1), respectively, where C∼Bin(n−1,e−ε0)C\sim{\rm Bin}(n-1,e^{-{\varepsilon}_{0}}) and A∼Bin(C,1/2)A\sim{\rm Bin}(C,1/2).

Appendix D Proof of Theorem 4.1

The proof follows the proof of Theorem 3.1 with a modification to handle an additional mixture component. Define a random variable YY as follows

We claim that there exists a post-processing function Φ\Phi such that for yy sampled from ρb\rho_{b}, Φ(y)\Phi(y) is distributed identically to As(Xb)\mathcal{A}_{\rm s}(X_{b}). The argument is essentially identical to the argument we used in Lemma 3.3 with the postprocessing done as described in Algorithm 3.

We now analyze the hockey-stick divergence between the distribution of (A+Γ,B,C+1−Γ)(A+\Gamma,B,C+1-\Gamma) and the distribution of (A,B+Γ,C+1−Γ)(A,B+\Gamma,C+1-\Gamma) which we denote by τ0\tau_{0} and τ1\tau_{1}, respectively. We let κ0\kappa_{0} be the distribution of (A,B,C+1)(A,B,C+1) for (A,B,C,D)∼MultNom(n−1;p,p,p,1−3p)(A,B,C,D)\sim{\rm MultNom}(n-1;p,p,p,1-3p), κ10\kappa_{1}^{0} be the distribution of (A+1,B,C)(A+1,B,C) and κ11\kappa_{1}^{1} be the distribution of (A,B+1,C)(A,B+1,C). Then by definition we have that for b∈{0,1}b\in\{0,1\},

Given a sample (a,b)∈[n]×[n](a,b)\in[n]\times[n] we postprocess it by sampling c∼Bin⁡(n−a−b,p/(1−2p))c\sim\operatorname{Bin}(n-a-b,p/(1-2p)) and outputting (a,b,c)(a,b,c). This postprocesses a sample from PP into a sample from κ10\kappa_{1}^{0} and a sample from QQ into a sample from κ11\kappa_{1}^{1}. By the postprocessing property of the hockey-stick divergence and Lemma A.1, we get that κ10\kappa_{1}^{0} and κ11\kappa_{1}^{1} are

By sampling cc as before and outputting (a,c,b)(a,c,b) we can postprocess from PP and QQ to the pair κ10\kappa_{1}^{0} and κ0\kappa_{0}. Similarly, by outputting (c,a,b)(c,a,b) we can postprocess PP and QQ to the pair κ11\kappa_{1}^{1} and κ0\kappa_{0}. Thus we obtain that for b∈{0,1}b\in\{0,1\}, κ0\kappa_{0} and κ1b\kappa_{1}^{b} are

Now, Equation (24) and advanced joint convexity of the hockey-stick divergence (Lemma 2.3) imply that As(X0)\mathcal{A}_{\rm s}(X_{0}) and As(X1)\mathcal{A}_{\rm s}(X_{1}) are

Appendix E Proof of Corollary 4.2

To show that As\mathcal{A}_{\rm s} is (ε,δ)({\varepsilon},\delta)-DP, it is sufficient to show that for any pair of neighboring datasets X0X_{0} and X1X_{1}, As(X0)\mathcal{A}_{\rm s}(X_{0}) and As(X1)\mathcal{A}_{\rm s}(X_{1}) are (ε,δ)({\varepsilon},\delta)-indistinguishable. Let X0X_{0} and X1X_{1} be a pair of neighboring datasets with x10≠x11x_{1}^{0}\neq x_{1}^{1}. Let Q0(i)(z1:i−1)\mathcal{Q}^{(i)}_{0}(z_{1:i-1}) be the uniform distribution on [k][k], and for any j∈[k]j\in[k], let \mathds1j\mathds{1}_{j} is the distribution that always outputs jj. So for any x∈Dx\in\mathcal{D},

Let p=k(k+1)(eε0+k−1)p=\frac{k}{(k+1)(e^{{\varepsilon}_{0}}+k-1)}. Now, note that Q0(i)(z1:i−1)=1k+1Q0(i)(z1:i−1)+1k+1∑j=1k\mathds1j.\mathcal{Q}^{(i)}_{0}(z_{1:i-1})=\frac{1}{k+1}\mathcal{Q}^{(i)}_{0}(z_{1:i-1})+\frac{1}{k+1}\sum_{j=1}^{k}\mathds{1}_{j}. So, for any xx, if we let

Therefore, R(i)(z1:i−1,x)\mathcal{R}^{(i)}(z_{1:i-1},x) satisfies the conditions of Theorem 4.1 with q=eε0−1eε0+k−1q=\frac{e^{{\varepsilon}_{0}}-1}{e^{{\varepsilon}_{0}}+k-1} and p=k(k+1)(eε0+k−1)p=\frac{k}{(k+1)(e^{{\varepsilon}_{0}}+k-1)}. Note that {\varepsilon}_{0}\leq\ln\mathopen{}\mathclose{{}\left(\frac{n}{16\log(2/\delta)}}\right) implies that p≥8ln⁡(2/δ)np\geq\frac{8\ln(2/\delta)}{n} so by Theorem 4.1, As(X0)\mathcal{A}_{\rm s}(X_{0}) and As(X1)\mathcal{A}_{\rm s}(X_{1}) are (ε,δ)({\varepsilon},\delta)-indistinguishable where

Appendix F Implementation of Clones, empirical

In this section we outline our implementation of the proof of Theorem 3.1 to compute the amplification bound for general local randomizers. Let q=eε0eε0+1q=\frac{e^{{\varepsilon}_{0}}}{e^{{\varepsilon}_{0}}+1} and p=e−ε0p=e^{-{\varepsilon}_{0}}. Recall that the shuffled ε{\varepsilon} is upper bounded by the divergence between the random variables

where C∼Bin⁡(n−1,p)C\sim\operatorname{Bin}(n-1,p) and A∼Bin⁡(C,1/2)A\sim\operatorname{Bin}(C,1/2). For a given δ\delta, our goal is to compute an approximately minimal ε{\varepsilon} such that PP and QQ are (ε,δ)({\varepsilon},\delta)-indistinguishable. It is computationally easier to compute an approximately minimal δ\delta for a given ε{\varepsilon} than the converse, so for a given δ\delta we’ll use binary search to find such an ε{\varepsilon}. Algorithm 4 takes as input a function MM that computes an approximation to the smallest δ\delta such that PP and QQ are (ε,δ)({\varepsilon},\delta)-indistinguishable for a given ε{\varepsilon}.

Next, we need to design the algorithm MM. Note that for a given ε{\varepsilon}, the minimal δ\delta is given by the equation

where for ease of notation we use PP and QQ for both the random variables and their probability density functions (pdf). We present an algorithm MM that upper bounds this integral. Let us first look at an important subroutine: for a given cc, Algorithm 5 computes ∫amax⁡{0,P(a,c)−eεQ(a,c)}da\int_{a}\max\{0,P(a,c)-e^{{\varepsilon}}Q(a,c)\}da if b=+b=+ and ∫amax⁡{0,Q(a,c)−eεP(a,c)}da\int_{a}\max\{0,Q(a,c)-e^{{\varepsilon}}P(a,c)\}da if b=−b=-.

First, let us characterize when P(a,c)−eεQ(a,c)>0P(a,c)-e^{{\varepsilon}}Q(a,c)>0. We will let CC denote both the random variable Bin⁡(n−1,p)\operatorname{Bin}(n-1,p) and its pdf. Similarly, AcA_{c} denotes the random variable Bin⁡(c,1/2)\operatorname{Bin}(c,1/2) and its pdf.

Now, if ε<ε0{\varepsilon}<{\varepsilon}_{0} then q−eε(1−q)>0q-e^{{\varepsilon}}(1-q)>0. Let {\varepsilon}_{q,{\varepsilon}}=\ln\mathopen{}\mathclose{{}\left(\frac{e^{{\varepsilon}}q-(1-q)}{q-e^{{\varepsilon}}(1-q)}}\right). So,

If b=+b=+ then τ=c+1eεq,ε+1\tau=\frac{c+1}{e^{{\varepsilon}_{q,{\varepsilon}}}+1} so P(a,c)−eεQ(a,c)>0  ⟺  a<τP(a,c)-e^{{\varepsilon}}Q(a,c)>0\iff a<\tau. Note that γP=Pr⁡(P≤τ)\gamma_{P}=\Pr(P\leq\tau) and γQ=Pr⁡(Q≤τ)\gamma_{Q}=\Pr(Q\leq\tau). Therefore,

For any ε{\varepsilon}, (1−q)−eεq<0(1-q)-e^{{\varepsilon}}q<0 so,

If b=−b=- then τ=c+1e−εq,ε+1\tau=\frac{c+1}{e^{-{\varepsilon}_{q,{\varepsilon}}}+1} so Q(a,c)−eεP(a,c)>0  ⟺  a>τQ(a,c)-e^{{\varepsilon}}P(a,c)>0\iff a>\tau. Noting that 1−γP=Pr⁡(P≥τ)1-\gamma_{P}=\Pr(P\geq\tau) and 1−γQ=Pr⁡(Q≥τ)1-\gamma_{Q}=\Pr(Q\geq\tau) we have,

Lemma F.1 shows that for a fixed cc, B\mathcal{B} computes the integral B(c,ε,ε0,+)=∫amax⁡{0,P(a,c)−eεQ(a,c)}da\mathcal{B}(c,{\varepsilon},{\varepsilon}_{0},+)=\int_{a}\max\{0,P(a,c)-e^{{\varepsilon}}Q(a,c)\}da. Recall, our goal is to estimate

We could compute B(c,ε,ε0,+)\mathcal{B}(c,{\varepsilon},{\varepsilon}_{0},+) for every cc, but in order to make the computation more efficient, instead of computing B(c,ε,ε0,+)\mathcal{B}(c,{\varepsilon},{\varepsilon}_{0},+) for every cc, Algorithm 6 defines a parameter SS, and only computes it for every SSth value of cc. For values between cc and c+Sc+S, we can leverage the fact that B(c,ε,ε0,+)\mathcal{B}(c,{\varepsilon},{\varepsilon}_{0},+) is monotone to bound their contribution to the integral.

For any ε<ε0{\varepsilon}<{\varepsilon}_{0} and b∈{+,−}b\in\{+,-\}, if c>c′c>c^{\prime} then B(c,ε,ε0,b)<B(c′,ε,ε0,b)\mathcal{B}(c,{\varepsilon},{\varepsilon}_{0},b)<\mathcal{B}(c^{\prime},{\varepsilon},{\varepsilon}_{0},b).

Let us prove the result for b=+b=+, the proof for b=−b=- is identical. Recall q=eε0eε0+1q=\frac{e^{{\varepsilon}_{0}}}{e^{{\varepsilon}_{0}}+1} and c>0c>0, let

Additionally, the algorithm takes in a value δU\delta^{U} (set to be the target δ\delta when called from binary search) so that if the current guess for ε{\varepsilon} is too small, then we may save on computation by aborting as soon as we have established that δ<δU\delta<\delta^{U}. We remark that while we have stated the algorithm as iterating over the values of tt starting at zero, the proof does not require that the values {0,…,T}\{0,\ldots,T\} be processed in increasing order. In an actual implementation, we process these in increasing order of ∣t−T/2∣|t-T/2| so as to process the cc’s which have large probability mass first.

Note that since PP and QQ are (ε0,δ)({\varepsilon}_{0},\delta)-indistinguishable and Algorithm 4 outputs the largest value inside the final range [εL,εR],[{\varepsilon}_{L},{\varepsilon}_{R}], it suffices to show that at each iteration,

That is, that Algorithm 4 makes conservative choices at each iteration. Let us then focus on showing that for any choices of n,ε0,ε,δU,Sn,{\varepsilon}_{0},{\varepsilon},\delta^{U},S such that ε0>ε{\varepsilon}_{0}>{\varepsilon},

Let t∈{0,⋯ ,T}t\in\{0,\cdots,T\} and Bt=t∗SB^{t}=t*S. Since B(⋅,ε,ε0,b)\mathcal{B}(\cdot,{\varepsilon},{\varepsilon}_{0},b) is monotone, B(Bt,ε,ε0,b)≥B(D,ε,ε0,b)\mathcal{B}(B^{t},{\varepsilon},{\varepsilon}_{0},b)\geq\mathcal{B}(D,{\varepsilon},{\varepsilon}_{0},b) for any D∈[Bt,Bt+S)D\in[B^{t},B^{t}+S). Thus,

Let RCt=[0,Bt)\mathcal{R}_{C}^{t}=[0,B^{t}) be the range of values of CC that have already been covered by the first t−1t-1 iterations. So, the above equations imply that we always have

Now, there are three ways Algorithm 6 can terminate.

Case 1: If at round tt, max⁡{δPt,δQt}>δU\max\{\delta_{P}^{t},\delta_{Q}^{t}\}>\delta^{U} then M1(n,ε0,δ,S,εt)=δUM_{1}(n,{\varepsilon}_{0},\delta,S,{\varepsilon}_{t})=\delta^{U} and Equation (26) holds.

Case 2: If at round tt, 1−ζCt<δPt1-\zeta_{C}^{t}<\delta_{P}^{t} and 1−ζCt<δQt1-\zeta_{C}^{t}<\delta_{Q}^{t} then

Since M1(n,ε0,δ,S,εt)=max⁡{δPt+1−ζCt,δQt+1−ζCt}M_{1}(n,{\varepsilon}_{0},\delta,S,{\varepsilon}_{t})=\max\{\delta_{P}^{t}+1-\zeta_{C}^{t},\delta_{Q}^{t}+1-\zeta_{C}^{t}\}, this implies Equation (26) holds.

Since M1(n,ε0,δ,S,εt)=max⁡{δPT+1,δQT+1}M_{1}(n,{\varepsilon}_{0},\delta,S,{\varepsilon}_{t})=\max\{\delta_{P}^{T+1},\delta_{Q}^{T+1}\} this implies Equation (26) holds. ∎

Appendix G Implementation of 2RR, lower bound

For any ε0>0{\varepsilon}_{0}>0, binary randomized response 2RR ⁣:{0,1}→{0,1}\texttt{2RR}\colon\{0,1\}\to\{0,1\} is defined as

Let As:{0,1}n→{0,1}n\mathcal{A}_{\rm s}:\{0,1\}^{n}\to\{0,1\}^{n} be the algorithm that given a dataset x1:n∈{0,1}nx_{1:n}\in\{0,1\}^{n}, samples a uniformly random permutation π\pi, computes zi=2RR(xπ(i))z_{i}=\texttt{2RR}(x_{\pi(i)}) for all i∈[n]i\in[n], then outputs z1:nz_{1:n}. That is, each client simply reports their value using 2RR, and the reports are permuted.

For any δ∈\delta\in, and random variables PP and QQ, let D∞δ(P,Q)D_{\infty}^{\delta}(P,Q) be the minimal ε{\varepsilon} such that PP and QQ are (ε,δ)({\varepsilon},\delta)-indistinguishable. Let εδ{\varepsilon}_{\delta} be the minimal ε{\varepsilon} such that As\mathcal{A}_{\rm s} is (ε,δ)({\varepsilon},\delta)-DP so

where the maximum is over all possible pairs of neigboring datasets X0,X1∈{0,1}nX_{0},X_{1}\in\{0,1\}^{n}. In the implementation of 2RR, lower bound, we set

and compute a lower bound on D∞δ(As(X0),As(X1))D_{\infty}^{\delta}(\mathcal{A}_{\rm s}(X_{0}),\mathcal{A}_{\rm s}(X_{1})), which in turn, gives a lower bound on εδ{\varepsilon}_{\delta}.

Again, since it is computationally easier to compute the minimal δ\delta for a given ε{\varepsilon}, we use binary search to find a lower bound on the minimal ε{\varepsilon} for a given δ\delta. Since we want a lower bound, we use Algorithm 7, which is the same as Algorithm 4, except at the final stage it outputs εL{\varepsilon}_{L} rather than εR{\varepsilon}_{R}. The final component we need to describe is the function MM, which given ε{\varepsilon}, computes Deε(As(X0),As(X1))D_{e^{{\varepsilon}}}(\mathcal{A}_{\rm s}(X_{0}),\mathcal{A}_{\rm s}(X_{1})). Note that the output of As\mathcal{A}_{\rm s} is characterized by simply the number of 0s and 1s in the local reports. Thus, the divergence between As(X0)=z1:n0\mathcal{A}_{\rm s}(X_{0})=z_{1:n}^{0} and As(X1)=z1:n1\mathcal{A}_{\rm s}(X_{1})=z_{1:n}^{1} is the same as the divergence between

by explicitly computing the pdfs of c0c^{0} and c1c^{1}. Now, since this computation is exact (up to numerical precision), for all t∈[T]t\in[T], Algorithm 7 moves in the right direction at every iterate. This implies that for the duration of the algorithm D∞δ(c0,c1)∈[εL,εR]D_{\infty}^{\delta}(c_{0},c_{1})\in[{\varepsilon}^{L},{\varepsilon}^{R}], before finally outputting the lower bound εL{\varepsilon}^{L}.