Privacy Amplification via Random Check-Ins

Borja Balle, Peter Kairouz, H. Brendan McMahan, Om Thakkar, Abhradeep Thakurta

Introduction

Modern mobile devices and web services benefit significantly from large-scale machine learning, often involving training on user (client) data. When such data is sensitive, steps must be taken to ensure privacy, and a formal guarantee of differential privacy (DP) is the gold standard. For this reason, DP has been adopted by companies including Google , Apple , Microsoft , and LinkedIn , as well as the US Census Bureau .

Other privacy-enhancing techniques can be combined with DP to obtain additional benefits. In particular, cross-device federated learning (FL) allows model training while keeping client data decentralized (each participating device keeps its own local dataset, and only sends model updates or gradients to the coordinating server). However, existing approaches to combining FL and DP make a number of assumptions that are unrealistic in real-world FL deployments such as . To highlight these challenges, we must first review the state-of-the-art in centralized DP training, where differentially private stochastic gradient descent (DP-SGD) is ubiquitous. It achieves optimal error for convex problems , and can also be applied to non-convex problems, including deep learning, where the privacy amplification offered by randomly subsampling data to form batches is critical for obtaining meaningful DP guarantees .

Attempts to combine FL and the above lines of DP research have been made previously; notably, extended the approach of to FL and user-level DP. However, these works and others in the area sidestep a critical issue: the DP guarantees require very specific sampling or shuffling schemes assuming, for example, that each client participates in each iteration with a fixed probability. While possible in theory, such schemes are incompatible with the practical constraints and design goals of cross-device FL protocols ; to quote , a comprehensive recent FL survey, “such a sampling procedure is nearly impossible in practice.”In cross-silo FL applications , an enumerated set of addressable institutions or data-silos participate in FL, and so explicit server-mediated subsampling or shuffling using existing techniques may be feasible. The fundamental challenge is that clients decide when they will be available for training and when they will check in to the server, and by design the server cannot index specific clients. In fact, it may not even know the size of the participating population.

Our work targets these challenges. Our primary goal is to provide strong central DP guarantees for the final model released by FL-like protocols, under the assumption of a trustedNotably, our guarantees are obtained by amplifying the privacy provided by local DP randomizers; we treat this use of local DP as an implementation detail in accomplishing the primary goal of central DP. As a byproduct, our approach offers (weaker) local DP guarantees even in the presence of an untrusted server. orchestrating server. This is accomplished by building upon recent work on amplification by shuffling and combining it with new analysis techniques targeting FL-specific challenges (e.g., client-initiated communications, non-addressable global population, and constrained client availability).

We propose the first privacy amplification analysis specifically tailored for distributed learning frameworks. At the heart of our result is a novel technique, called random check-in, that relies only on randomness independently generated by each individual client participating in the training procedure. We show that distributed learning protocols based on random check-ins can attain privacy gains similar to privacy amplification by subsampling/shuffling (see Table 1 for a comparison), while requiring minimal coordination from the server. While we restrict our exposition to distributed DP-SGD within the FL framework for clarity and concreteness (see Figure 1 for a schematic of one of our protocols), we note that the techniques used in our analyses are broadly applicable to any distributed iterative method and might be of interest in other applicationsIn particular, the Federated Averaging algorithm, which computes an update based on multiple local SGD steps rather than a single gradient, can immediately be plugged into our framework..

𝑖1\theta_{i+1} (or gradient accumulator if using minibatches). Contributions The main contributions of this paper can be summarized as follows:

We propose random check-ins, the first privacy amplification technique for distributed systems with minimal server-side overhead. We also instantiate three distributed learning protocols that use random check-ins, each addressing different natural constraints that arise in applications.

We provide formal privacy guarantees for our protocols, and show that random check-ins attain similar rates of privacy amplification as subsampling and shuffling while reducing the need for server-side orchestration. We also provide utility guarantees for one of our protocols in the convex case that match the optimal privacy/accuracy trade-offs for DP-SGD in the central setting .

As a byproduct of our analysis, we improve privacy amplification by shuffling on two fronts. For the case of ε0\varepsilon_{0}-DP local randomizers, we improve the dependency of the final central DP ε\varepsilon by a factor of O(e0.5ε0)O(e^{0.5\varepsilon_{0}}). Figure 2 provides a numerical comparison of the bound from with our bound; for typical parameter values this improvement allows us to provide similar privacy guarantees while reducing the number of required users by one order of magnitude. We also extend the analysis to the case of (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP local randomizers, including Gaussian randomizers that are widely used in practice.

Related work

Our work considers the paradigm of federated learning as a stylized example throughout the paper. We refer the reader to for an excellent overview of the state-of-the-art in federated learning, along with a suite of interesting open problems. There is a rich literature on studying differentially private ERM via DP-SGD . However, constraints such as limited availability in distributed settings restrict direct applications of existing techniques. There is also a growing line of works on privacy amplification by shuffling that focus on various ways in which protocols can be designed using trusted shuffling primitives. Lastly, privacy amplification by iteration is another recent advancement that can be applied in an iterative distributed setting, but it is limited to convex objectives.

Background and Problem Formulation

To formally introduce our notion of privacy, we first define neighboring data sets. We will refer to a pair of data sets D,D′∈DnD,D^{\prime}\in\mathcal{D}^{n} as neighbors if D′D^{\prime} can be obtained from DD by modifying one sample di∈Dd_{i}\in D for some i∈[n]i\in[n].

A randomized algorithm A:Dn→S\mathcal{A}:\mathcal{D}^{n}\to\mathcal{S} is (ε,δ)(\varepsilon,\delta)-differentially private if, for any pair of neighboring data sets D,D′∈DnD,D^{\prime}\in\mathcal{D}^{n}, and for all events S⊆SS\subseteq\mathcal{S} in the output range of A\mathcal{A}, we have Pr[A(D)∈S]≤eε⋅Pr[A(D′)∈S]+δ\mathop{\mathbf{Pr}}[\mathcal{A}(D)\in S]\leq e^{\varepsilon}\cdot\mathop{\mathbf{Pr}}[\mathcal{A}(D^{\prime})\in S]+\delta.

For meaningful central DP guarantees (i.e., when n>1n>1), ε\varepsilon is assumed to be a small constant, and δ≪1/n\delta\ll 1/n. The case δ=0\delta=0 is often referred to as pure DP (in which case, we just write ε\varepsilon-DP). We shall also use the term approximate DP when δ>0\delta>0.

Adaptive differentially private mechanisms occur naturally when constructing complex DP algorithms, for e.g., DP-SGD. In addition to the dataset DD, adaptive mechanisms also receive as input the output of other differentially private mechanisms. Formally, we say that an adaptive mechanism A:S′×Dn→S\mathcal{A}:\mathcal{S}^{\prime}\times\mathcal{D}^{n}\to\mathcal{S} is (ε,δ)(\varepsilon,\delta)-DP if the mechanism A(s′,∙)\mathcal{A}(s^{\prime},\bullet) is (ε,δ)(\varepsilon,\delta)-DP for every s′∈S′s^{\prime}\in\mathcal{S}^{\prime}.

Specializing Definition 2.1 to the case n=1n=1 gives what we call a local randomizer, which provides a local DP guarantee. Local randomizers are the typical building blocks of local DP protocols where individuals privatize their data before sending it to an aggregator for analysis .

Problem Setup

Our results consider three different setups inspired by practical applications : (1) The server uses m≪nm\ll n time slots, where at most one user’s update is used in each slot, for a total of m/bm/b minibatch SGD iterations. It is assumed all nn users are available for the duration of the protocol, but the server does not have enough bandwidth to process updates from every user (Section 3.1); (2) The server uses m≈n/bm\approx n/b time slots, and all nn users are available for the duration of the protocol (Section 4.1). On average, bb users contribute updates to each time slot, and so, we take mm minibatch SGD steps; (3) As with (2), but each user is only available during a small window of time relative to the duration of the protocol (Section 4.2).

Distributed Learning with Random Check-Ins

This section presents the random check-ins technique for privacy amplification in the context of distributed learning. We formally define the random check-ins procedure, describe a fully distributed DP-SGD protocol with random check-ins, and analyze its privacy and utility guarantees.

Consider the distributed learning setup described in Section 2 where each client is willing to participate in the training procedure as long as their data remains private. To boost the privacy guarantees provided by the local randomizer Aldp\mathcal{A}_{ldp}, we will let clients volunteer their updates at a random time slot of their choosing. This randomization has a similar effect on the uncertainty about the use of an individual’s data on a particular update as the one provided by uniform subsampling or shuffling. We formalize this concept using the notion of random check-in, which can be informally expressed as a client in a distributed iterative learning framework randomizing their instant of participation, and determining with some probability whether to participate in the process at all.

Let A\mathcal{A} be a distributed learning protocol with mm check-in time slots. For a set Rj⊆[m]R_{j}\subseteq[m] and probability pj∈p_{j}\in, client jj performs an (Rj,pj)(R_{j},p_{j})-check-in in the protocol if with probability pjp_{j} she requests the server to participate in A\mathcal{A} at time step I←u.a.r.RjI\xleftarrow{u.a.r.}R_{j}, and otherwise abstains from participating. If pj=1p_{j}=1, we alternatively denote it as an RjR_{j}-check-in.

2 Privacy Analysis

From a privacy standpoint, Algorithm 1 shares an important pattern with DP-SGD: each model update uses noisy gradients obtained from a random subset of the population. However, there exist two key factors that make the privacy analysis of our protocol more challenging than the existing analysis based on subsampling and shuffling. First, unlike in the case of uniform sampling where the randomness in each update is independent, here there is a correlation induced by the fact that clients that check-in into one step cannot check-in into a different step. Second, in shuffling there is also a similar correlation between updates, but there we can ensure each update uses the same number of datapoints, while here the server does not control the number of clients that will check-in into each individual step. Nonetheless, the following result shows that random check-ins provides a factor of privacy amplification comparable to these techniques.

Suppose Aldp\mathcal{A}_{ldp} is an ε0\varepsilon_{0}-DP local randomizer. Let Afix:Dn→Θm\mathcal{A}_{fix}:\mathcal{D}^{n}\rightarrow\Theta^{m} be the protocol from Algorithm 1 with check-in probability pj=p0p_{j}=p_{0} and check-in window Rj=[m]R_{j}=[m] for each client j∈[n]j\in[n]. For any δ∈(0,1)\delta\in(0,1), algorithm Afix\mathcal{A}_{fix} is (ε,δ)\left(\varepsilon,\delta\right)-DP with ε=p0(eε0−1)2eε0log⁡(1/δ)m+p02eε0(eε0−1)22m\varepsilon=p_{0}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2e^{\varepsilon_{0}}\log{(1/\delta)}}{m}}+\frac{p_{0}^{2}e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2m}. In particular, for ε0≤1\varepsilon_{0}\leq 1 and δ≤1/100\delta\leq 1/100, we get ε≤7p0ε0log⁡(1/δ)m\varepsilon\leq 7p_{0}\varepsilon_{0}\sqrt{\frac{\log(1/\delta)}{m}}. Furthermore, if Aldp\mathcal{A}_{ldp} is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP with δ0≤(1−e−ε0)δ14eε0(2+ln⁡(2/δ1)ln⁡(1/(1−e−5ε0)))\delta_{0}\leq\frac{(1-e^{-\varepsilon_{0}})\delta_{1}}{4e^{\varepsilon_{0}}\left(2+\frac{\ln(2/\delta_{1})}{\ln(1/(1-e^{-5\varepsilon_{0}}))}\right)}, then Afix\mathcal{A}_{fix} is (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-DP with ε′=p02e8ε0(e8ε0−1)22m+p0(e8ε0−1)2e8ε0log⁡(1/δ)m\varepsilon^{\prime}=\frac{p_{0}^{2}e^{8\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)^{2}}{2m}+p_{0}(e^{8\varepsilon_{0}}-1)\sqrt{\frac{2e^{8\varepsilon_{0}}\log{(1/\delta)}}{m}} and δ′=δ+m(eε′+1)δ1\delta^{\prime}=\delta+m(e^{\varepsilon^{\prime}}+1)\delta_{1}.

We can always increase privacy in the above statement by decreasing p0p_{0}. However, this will also increase the number of dummy updates, which suggests choosing p0=Θ(m/n)p_{0}=\Theta(m/n). With such a choice, we obtain an amplification factor of m/n\sqrt{m}/n. Critically, however, exact knowledge of the population size is not required to have a precise DP guarantee above.

Remark 2

At first look, the amplification factor of m/n\sqrt{m}/n may appear stronger than the typical 1/n1/\sqrt{n} factor obtained via uniform subsampling/shuffling. Note that one run of our technique provides mm updates (as opposed to nn updates via the other methods). When the server has sufficient capacity, we can set m=nm=n to recover a 1/n1/\sqrt{n} amplification. The primary advantage of our approach is that we can benefit from amplification in terms of nn even if only a much smaller number of updates are actually processed. We can also extend our approach to recover the 1/n1/\sqrt{n} amplification even when the server is rate limited (p0=m/np_{0}=m/n), by repeating the protocol Afix\mathcal{A}_{fix} adaptively n/mn/m times to get Corollary 3.3 from Theorem 3.2 and applying advanced composition for DP .

Comparison to Existing Privacy Amplification Techniques

Table 1 provides a comparison of the bound in Corollary 3.3 to other existing techniques, for performing one epoch of training (i.e., use one update from each client). Note that for this comparison, we assume that ε0>1\varepsilon_{0}>1, since for ε0≤1\varepsilon_{0}\leq 1 all the shown amplification bounds can be written as O(ε0/n)O\left(\varepsilon_{0}/\sqrt{n}\right). “None” denotes a naïve scheme (with no privacy amplification) where each client is used exactly once in any arbitrary order. Also, note that in general, the guarantees via privacy amplification by subsampling/shuffling apply only under the assumption of complete participation availabilityBy a complete participation availability for a client, we mean that the client should be available to participate when requested by the server for any time step(s) of training. of each client. Thus, they define the upper limits of achieving such amplifications. Also, note that even though the bound in Corollary 3.3 appears better than amplification via shuffling, our technique does include dummy updates which do not occur in the other techniques. For linear optimization problems, it is easy to see that our technique will add a factor of ee more noise as compared to the other two privacy amplification techniques at the same privacy level.

Proof Sketch for Theorem 3.2

3 Utility Analysis

For algorithm Afix:Dn→Θm\mathcal{A}_{fix}:\mathcal{D}^{n}\rightarrow\Theta^{m} described in Theorem 3.2, the expected number of dummy updates performed by the server is at most (m(1−p0m)n)\left(m\left(1-\frac{p_{0}}{m}\right)^{n}\right). For c>0c>0 if p0=cmnp_{0}=\frac{cm}{n}, we get at most mec\frac{m}{e^{c}} expected dummy updates.

We now instantiate our amplification theorem (Theorem 3.2) in the context of differentially private empirical risk minimization (ERM). For convex ERMs, we will show that DP-SGD in conjunction with our privacy amplification theorem (Theorem 3.2) is capable of achieving the optimal privacy/accuracy trade-offs .

Remark 3

Note that as m→nm\to n, it is easy to see for p0=Ω(mn)p_{0}=\Omega\left(\frac{m}{n}\right) that Theorem 3.5 achieves the optimal population risk trade-off .

Variations: Thrifty Updates, and Sliding Windows

This section presents two variants of the main protocol from the previous section. The first variant makes a better use of the updates provided by each user at the expense of a small increase in the privacy cost. The second variant allows users to check-in into a sliding window to model the case where different users might be available during different time windows.

Now, we present a variant of Algorithm 1 which, at the expense of a mild increase in the privacy cost, removes the need for dummy updates, and for discarding all but one of the clients checked-in at every time step. The server-side protocol of this version is given in Algorithm 2 (the client-side protocol is identical as Algorithm 1). Note that here, if no client checked-in at some step i∈[m]i\in[m], the server simply skips the update. Furthermore, if at some step multiple clients checked in, the server requests gradients from all the clients, and performs a model update using the average of the submitted noisy gradients.

These changes have the obvious advantage of reducing the noise in the model coming from dummy updates, and increasing the algorithm’s data efficiency by utilizing gradients provided by all available clients. The corresponding privacy analysis becomes more challenging because (1) the adversary gains information about the time steps where no clients checked-in, and (2) the server uses the potentially non-private count ∣Si∣|S_{i}| of clients checked-in at time ii when performing the model update. Nonetheless, we show that the privacy guarantees of Algorithm 2 are similar to those of Algorithm 1 with an additional O(e3ε0/2)O(e^{3\varepsilon_{0}/2}) factor, and the restriction of non-collusion among the participating clients. For simplicity, we only analyze the case where each client has check-in probability pj=1p_{j}=1.

Suppose Aldp\mathcal{A}_{ldp} is an ε0\varepsilon_{0}-DP local randomizer. Let Aavg:Dn→Θm\mathcal{A}_{avg}:\mathcal{D}^{n}\rightarrow\Theta^{m} be the protocol from Algorithm 2 performing mm averaged model updates with check-in probability pj=1p_{j}=1 and check-in window Rj=[m]R_{j}=[m] for each user j∈[n]j\in[n]. Algorithm Aavg\mathcal{A}_{avg} is (ε,δ+δ2)\left(\varepsilon,\delta+\delta_{2}\right)-DP with

where ε1=1n+1m+log⁡(1/δ2)n\varepsilon_{1}=\sqrt{\frac{1}{n}+\frac{1}{m}}+\sqrt{\frac{\log(1/\delta_{2})}{n}}. In particular, for ε0≤1\varepsilon_{0}\leq 1 we get ε=O(ε0/m)\varepsilon=O(\varepsilon_{0}/\sqrt{m}). Furthermore, if Aldp\mathcal{A}_{ldp} is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP with δ0≤(1−e−ε0)δ14eε0(2+ln⁡(2/δ1)ln⁡(1/(1−e−5ε0)))\delta_{0}\leq\frac{(1-e^{-\varepsilon_{0}})\delta_{1}}{4e^{\varepsilon_{0}}\left(2+\frac{\ln(2/\delta_{1})}{\ln(1/(1-e^{-5\varepsilon_{0}}))}\right)}, then Aavg\mathcal{A}_{avg} is (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-DP with ε′=e32ε0(e8ε0−1)2ε122+e16ε0(e8ε0−1)ε12log⁡(1/δ)\varepsilon^{\prime}=\frac{e^{32\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)^{2}\varepsilon_{1}^{2}}{2}+e^{16\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)\varepsilon_{1}\sqrt{2\log(1/\delta)} and δ′=δ+δ2+m(eε′+1)δ1\delta^{\prime}=\delta+\delta_{2}+m(e^{\varepsilon^{\prime}}+1)\delta_{1}.

Next, we provide a utility guarantee for Aavg\mathcal{A}_{avg} in terms of the excess population risk for convex ERMs (similar to Theorem 3.5).

2 Random Check-Ins with a Sliding Window

The second variant we consider removes the need for all clients to be available throughout the training period. Instead, we assume that the training period comprises of nn time steps, and each client j∈[n]j\in[n] is only available during a window of mm time steps. Clients perform a random check-in to provide the server with an update during their window of availability. For simplicity, we assume clients wake up in order, one every time step, so client j∈[n]j\in[n] will perform a random check-in within the window Rj={j,…,j+m−1}R_{j}=\{j,\ldots,j+m-1\}. The server will perform n−m+1n-m+1 updates starting at time mm to provide a warm-up period where the first mm clients perform their random check-ins.

Suppose Aldp\mathcal{A}_{ldp} is an ε0\varepsilon_{0}-DP local randomizer. Let Asldw:Dn→Θn−m+1\mathcal{A}_{sldw}:\mathcal{D}^{n}\rightarrow\Theta^{n-m+1} be the distributed algorithm performing nn model updates with check-in probability pj=1p_{j}=1 and check-in window Rj={j,…,j+m−1}R_{j}=\{j,\ldots,j+m-1\} for each user j∈[n]j\in[n]. For any m∈[n]m\in[n], algorithm Asldw\mathcal{A}_{sldw} is (ε,δ)\left(\varepsilon,\delta\right)-DP with ε=eε0(eε0−1)22m+(eε0−1)2eε0log⁡(1/δ)m\varepsilon=\frac{e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2m}+(e^{\varepsilon_{0}}-1)\sqrt{\frac{2e^{\varepsilon_{0}}\log{(1/\delta)}}{m}}. For ε0≤1\varepsilon_{0}\leq 1 and δ≤1/100\delta\leq 1/100, we get ε≤7ε0log⁡(1/δ)m\varepsilon\leq 7\varepsilon_{0}\sqrt{\frac{\log(1/\delta)}{m}}. Furthermore, if Aldp\mathcal{A}_{ldp} is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP with δ0≤(1−e−ε0)δ14eε0(2+ln⁡(2/δ1)ln⁡(1/(1−e−5ε0)))\delta_{0}\leq\frac{(1-e^{-\varepsilon_{0}})\delta_{1}}{4e^{\varepsilon_{0}}\left(2+\frac{\ln(2/\delta_{1})}{\ln(1/(1-e^{-5\varepsilon_{0}}))}\right)}, then Asldw\mathcal{A}_{sldw} is (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-DP with ε′=e8ε0(e8ε0−1)22m+(e8ε0−1)2e8ε0log⁡(1/δ)m\varepsilon^{\prime}=\frac{e^{8\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)^{2}}{2m}+(e^{8\varepsilon_{0}}-1)\sqrt{\frac{2e^{8\varepsilon_{0}}\log{(1/\delta)}}{m}} and δ′=δ+m(eε′+1)δ1\delta^{\prime}=\delta+m(e^{\varepsilon^{\prime}}+1)\delta_{1}.

We can always increase privacy in the statement above by increasing mm. However, that also increases the number of clients who do not participate in training because their scheduled check-in time is before the process begins, or after it terminates. Moreover, the number of empty slots where the server introduces dummy updates will also increase, which we would want to minimize for good accuracy. Thus, mm introduces a trade-off between accuracy and privacy.

For algorithm Asldw:Dn→Θn−m+1\mathcal{A}_{sldw}:\mathcal{D}^{n}\rightarrow\Theta^{n-m+1} described in Theorem 4.3, the expected number of dummy gradient updates performed by the server is at most (n−m+1)/e(n-m+1)/e.

Improvements to Amplification via Shuffling

Here, we provide an improvement on privacy amplification by shuffling. This is obtained using two technical lemmas (deferred to the supplementary material) to tighten the analysis of amplification by swapping, a central component in the analysis of amplification by shuffling given in .

Let A(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{A}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\rightarrow\mathcal{S}^{(i)}, i∈[n]i\in[n], be a sequence of adaptive ε0\varepsilon_{0}-DP local randomizers. Let Asl:Dn→S(1)×⋯×S(n)\mathcal{A}_{sl}:\mathcal{D}^{n}\rightarrow\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset D=(d1,…,dn)∈DnD=(d_{1},\ldots,d_{n})\in\mathcal{D}^{n} samples a uniform random permutation π\pi over [n][n], sequentially computes si=A(i)(s1:i−1,dπ(i))s_{i}=\mathcal{A}^{(i)}(s_{1:i-1},d_{\pi(i)}) and outputs s1:ns_{1:n}. For any δ∈(0,1)\delta\in(0,1), algorithm Asl\mathcal{A}_{sl} satisfies (ε,δ)\left(\varepsilon,\delta\right)-DP with ε=e3ε0(eε0−1)22n+e3ε0/2(eε0−1)2log⁡(1/δ)n\varepsilon=\frac{e^{3\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2n}+e^{3\varepsilon_{0}/2}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}}. Furthermore, if A(i)\mathcal{A}^{(i)}, i∈[n]i\in[n], is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP with δ0≤(1−e−ε0)δ14eε0(2+ln⁡(2/δ1)ln⁡(1/(1−e−5ε0)))\delta_{0}\leq\frac{(1-e^{-\varepsilon_{0}})\delta_{1}}{4e^{\varepsilon_{0}}\left(2+\frac{\ln(2/\delta_{1})}{\ln(1/(1-e^{-5\varepsilon_{0}}))}\right)}, then Asl\mathcal{A}_{sl} satisfies (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-DP with ε′=e24ε0(e8ε0−1)22n+e12ε0(e8ε0−1)2log⁡(1/δ)n\varepsilon^{\prime}=\frac{e^{24\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)^{2}}{2n}+e^{12\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}} and δ′=δ+n(eε′+1)δ1\delta^{\prime}=\delta+n(e^{\varepsilon^{\prime}}+1)\delta_{1}.

For comparison, the guarantee in [19, Theorem 7] in the case δ0=0\delta_{0}=0 results in

Conclusion

Our work highlights the fact that proving DP guarantees for distributed or decentralized systems can be substantially more challenging than for centralized systems, because in a distributed setting it becomes much harder to precisely control and characterize the randomness in the system, and this precise characterization and control of randomness is at the heart of DP guarantees. Specifically, production FL systems do not satisfy the assumptions that are typically made under state-of-the-art privacy accounting schemes, such as privacy amplification via subsampling. Without such accounting schemes, service providers cannot provide DP statements with small ε\varepsilon’s. This work, though largely theoretical in nature, proposes a method shaped by the practical constraints of distributed systems that allows for rigorous privacy statements under realistic assumptions.

Nevertheless, there is more to do. Our theorems are sharpest in the high-privacy regime (small ε\varepsilon’s), which may be too conservative to provide sufficient utility for some applications. While significantly relaxed from previous work, our assumptions will still not hold in all real-world systems. Thus, we hope this work encourages further collaboration between distributed systems and DP theory researchers in establishing protocols that address the full range of possible systems constraints as well as improving the full breadth of the privacy vs. utility Pareto frontier.

Acknowledgements

The authors would like to thank Vitaly Feldman for suggesting the idea of privacy accounting in DP-SGD via shuffling, and for help in identifying and fixing a mistake in the way a previous version of this paper handled (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP local randomizers.

References

Appendix A Omitted Results and Proofs

Let Aldp:D→S\mathcal{A}_{ldp}:\mathcal{D}\rightarrow\mathcal{S} be an ε0\varepsilon_{0}-DP local randomizer. For D=(d1,…,dm)∈Dm,q∈(0,1)D=(d_{1},\ldots,d_{m})\in\mathcal{D}^{m},q\in(0,1), and k∈[m]k\in[m], define BiasedSamplingq(D,k)\mathsf{BiasedSampling}_{q}(D,k) to return dkd_{k} with probability qq, and a sample from an arbitrary distribution over D∖{dk}D\setminus\{d_{k}\} with probability 1−q1-q. For any k∈[m]k\in[m] and any set of outcomes S⊆SS\subseteq\mathcal{S}, we have

Fix a set of outcomes S⊆SS\subseteq\mathcal{S}. By ε0\varepsilon_{0}-LDP of Aldp\mathcal{A}_{ldp}, for any d,d′∈Dd,d^{\prime}\in\mathcal{D}, we get

Now, for dataset D=(d1,…,dm)∈DnD=(d_{1},\ldots,d_{m})\in\mathcal{D}^{n} and k∈[m]k\in[m], we have:

where the third equality follows as Pr[d=dk]=q\mathop{\mathbf{Pr}}[d=d_{k}]=q, and the first inequality follows using inequality 1, and the fourth equality follows as ∑j≠kPr[d=dj]=1−q\sum\limits_{j\neq k}\mathop{\mathbf{Pr}}[d=d_{j}]=1-q. ∎

Let A(1),…,A(k)\mathcal{A}^{(1)},\ldots,\mathcal{A}^{(k)} be mechanisms of the form A(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{A}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\rightarrow\mathcal{S}^{(i)}. Suppose there exist constants a>0a>0 and b∈(0,1)b\in(0,1) such that each A(i)\mathcal{A}^{(i)} is εi\varepsilon_{i}-DP with εi≤log⁡(1+ak−b(i−1))\varepsilon_{i}\leq\log\left(1+\frac{a}{k-b(i-1)}\right). Then, for any δ∈(0,1)\delta\in(0,1), the kk-fold adaptive composition of A(1),…,A(k)\mathcal{A}^{(1)},\ldots,\mathcal{A}^{(k)} is (ε,δ)\left(\varepsilon,\delta\right)-DP with ε=a22k(1−b)+2a2log⁡(1/δ)k(1−b)\varepsilon=\frac{a^{2}}{2k(1-b)}+\sqrt{\frac{2a^{2}\log{(1/\delta)}}{k(1-b)}}.

We start by applying the heterogeneous advanced composition for DP for the sequence of mechanisms A1,…,Ak\mathcal{A}_{1},\ldots,\mathcal{A}_{k} to get (ε,δ)\left(\varepsilon,\delta\right)-DP for the composition, where

Let us start by bounding the second term in equation 2. First, observe that:

where the first inequality follows from log⁡(1+x)≤x\log(1+x)\leq x.

where the second equality follows as we have ∫1(c−dx)2dx=1cd−d2x\int\frac{1}{(c-dx)^{2}}dx=\frac{1}{cd-d^{2}x}.

Next, we bound the first term in equation 2 as follows:

where the first inequality follows from log⁡(1+x)≤x\log(1+x)\leq x, and the last inequality follows from inequality 4.

Using inequalities 3, 4 and 5 in equation 2, we get that the kk-fold adaptive composition of A1,…,Ak\mathcal{A}_{1},\ldots,\mathcal{A}_{k} satisfies (ε,δ)\left(\varepsilon,\delta\right)-DP, for ε=a22k(1−b)+2a2log⁡(1/δ)k(1−b)\varepsilon=\frac{a^{2}}{2k(1-b)}+\sqrt{\frac{2a^{2}\log{(1/\delta)}}{k(1-b)}}. ∎

Setting p0=mnp_{0}=\frac{m}{n} in Afix\mathcal{A}_{fix}, we get from Theorem 3.2 that β∈(0,1)\beta\in(0,1), algorithm Afix\mathcal{A}_{fix} satisfies (ε1,β)(\varepsilon_{1},\beta)-DP for

where the inequality follows since n≥(eε0−1)meε0n\geq(e^{\varepsilon_{0}}-1)\sqrt{me^{\varepsilon_{0}}}.

Now, using inequality 6 and applying advanced composition to nm\frac{n}{m} repetitions of Afix\mathcal{A}_{fix}, we get (ε,nβm+δ)\left(\varepsilon,\frac{n\beta}{m}+\delta\right)-DP, for

Since ε0≤2log⁡(n/8m)3\varepsilon_{0}\leq\frac{2\log{\left(n/8\sqrt{m}\right)}}{3}, we have that ε1≤12\varepsilon_{1}\leq\frac{1}{2}, and thus, (eε1−1)≤3ε12\left(e^{\varepsilon_{1}}-1\right)\leq\frac{3\varepsilon_{1}}{2}. Therefore, we get from inequality 7 that

For i∈[m]i\in[m], define an indicator random variable EiE_{i} that indicates if SiS_{i} is empty. Note that the server performs a dummy gradient update for instance i∈[n]i\in[n] if and only if SiS_{i} is empty (or, in other words, Ei=1E_{i}=1). Next, for j∈[n]j\in[n], let IjI_{j} denote the index that user jj in Algorithm Afix\mathcal{A}_{fix} performs her (Rj,pj)(R_{j},p_{j})-check-in into, where Rj=[m]R_{j}=[m] and pj=p0p_{j}=p_{0}. Thus, for index i∈[m]i\in[m], we have

where the second equality follows since the check-ins for each user are independent of the others, and each user abstains from participating w.p. (1−p0)(1-p_{0}).

Thus, for the expected number of dummy gradient updates, we have:

If p0=cmnp_{0}=\frac{cm}{n} for c>0c>0, from equation 8 we get

where the inequality follows as (1−ab)b≤e−a\left(1-\frac{a}{b}\right)^{b}\leq e^{-a} for b>1,∣a∣≤bb>1,|a|\leq b. ∎

To be able to directly apply [32, Theorem 2], our technique Afix\mathcal{A}_{fix} needs to satisfy two conditions: i) each model update should be an unbiased estimate of the gradient, and ii) a bound on the expected L2L_{2}-norm of the gradient. Notice that in Afix\mathcal{A}_{fix}, every client j∈[n]j\in[n] performs a ([m],p0)([m],p_{0})-check-in. This is analogous to a bins-and-balls setting where nn balls are thrown, each with probability p0p_{0}, into mm bins. Thus, for each update step i∈[m]i\in[m], the number of clients checking-in for this step (i.e., ∣Si∣|S_{i}| in the notation of Algorithm 1) can be approximated by an independent Poisson random variable YiY_{i} with mean np0/mnp_{0}/m, using Poisson approximation , as follows:

Optimizing the learning rate to be ηi=R(1−2e−np0/m)(pσ2+L2)i\eta_{i}=\frac{R\left(1-2e^{-np_{0}/m}\right)}{\sqrt{\left(p\sigma^{2}+L^{2}\right)i}} gives the statement of the theorem. ∎

Optimizing the learning rate to be ηi=Rn(mpσ2+nL2)i\eta_{i}=\frac{R\sqrt{n}}{\sqrt{\left(mp\sigma^{2}+nL^{2}\right)i}} gives the statement of the theorem.

The result now follows from observing that

In Algorithm Asldw\mathcal{A}_{sldw}, for i∈[n−m+1]i\in[n-m+1], we have

For i∈[n]i\in[n], define an indicator random variable EiE_{i} that indicates if SiS_{i} is empty. Note that the server performs a dummy gradient update for instance i∈[n]i\in[n] if and only if SiS_{i} is empty (or, in other words, Ei=1E_{i}=1). Next, for j∈[m]j\in[m], let IjI_{j} denote the index that user jj in Algorithm Afix\mathcal{A}_{fix} performs her RjR_{j}-check-in into, where Rj={j,…,j+m−1}R_{j}=\{j,\ldots,j+m-1\}. Thus, for index i∈{m,…,n−m+1}i\in\{m,\ldots,n-m+1\}, we have

where the second equality follows since the check-ins for each user are independent of the others, and the inequality follows as (1−ab)b≤e−a\left(1-\frac{a}{b}\right)^{b}\leq e^{-a} for b>1,∣a∣≤bb>1,|a|\leq b.

Thus, for the expected number of dummy gradient updates, we have:

where the inequality follows from inequality 9. ∎

We will first prove the privacy guarantee of Afix\mathcal{A}_{fix} (Algorithm 1) by reducing it to algorithm Arep\mathcal{A}_{rep} (Algorithm 3) that starts by swapping the first element in the dataset by a given replacement element, randomly chooses a position in the dataset to get replaced by the original first element with a given probability, and then carries out DP-SGD with the local randomizer. W.l.o.g., for simplicity we will define Arep\mathcal{A}_{rep} to update the model for 1-sized minibatches (i.e., update at every time step). It is easy to extend to bb-sized minibatch updates by accumulating the gradient updates for every bb steps and then updating the model.

For the proofs that follow, it will be convenient to define additional notation for denoting distance between distributions. Given 2 distributions μ\mu and μ′\mu^{\prime}, we denote them as μ≊(ε,δ)μ′\mu\approxeq_{(\varepsilon,\delta)}\mu^{\prime} if they are (ε,δ)(\varepsilon,\delta)-DP close, i.e., if for all measurable outcomes SS, we have

We start by proving the privacy guarantee of Arep\mathcal{A}_{rep} for the case where the local randomizer Aldp\mathcal{A}_{ldp} is ε0\varepsilon_{0}-DP, i.e., for the case where δ0=0\delta_{0}=0. Let us denote the output sequence of Arep\mathcal{A}_{rep} by Z2,Z3,…,Zm+1Z_{2},Z_{3},\ldots,Z_{m+1}. Note that Z2:m+1Z_{2:m+1} can be seen as the output of a sequence of mm algorithms with conditionally independent randomness: B(i)\mathcal{B}^{(i)} for i∈[m]i\in[m] as follows. On input θ2:i\theta_{2:i} and DD, B(i)\mathcal{B}^{(i)} outputs a random sample from the distribution of Zi+1∣Z2:i=θ2:iZ_{i+1}|Z_{2:i}=\theta_{2:i}. The outputs of B(1),…,B(i−1)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(i-1)} are given as input to B(i)\mathcal{B}^{(i)}. Therefore, in order to upper bound the privacy parameters of Arep\mathcal{A}_{rep}, we analyze the privacy parameters of B(1),…,B(m)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(m)} and apply the heterogeneous advanced composition for DP .

For i∈[m]i\in[m], we observe that μ0=μ0′\mu_{0}=\mu_{0}^{\prime}, since in both cases the output is generated by Aldp(θ1,dr)\mathcal{A}_{ldp}(\theta_{1},d_{r}) for i=1i=1, and Aldp(θ2:i;di)\mathcal{A}_{ldp}(\theta_{2:i};d_{i}) for i≥2i\geq 2. W.l.o.g. assume that qi≥qi′q_{i}\geq q_{i}^{\prime}. Thus, we can shift (qi−qi′)wi(q_{i}-q_{i}^{\prime})w_{i} mass from the first component of the mixture in μ′\mu^{\prime} to the second component to obtain

This shows that μ\mu and μ′\mu^{\prime} are overlapping mixtures . Now, ε0\varepsilon_{0}-LDP of Aldp\mathcal{A}_{ldp} implies μ0≊(ε0,0)μ1\mu_{0}\approxeq_{(\varepsilon_{0},0)}\mu_{1} and μ0′≊(ε0,0)μ1′\mu_{0}^{\prime}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime}. Moreover, ε0\varepsilon_{0}-LDP of Aldp\mathcal{A}_{ldp} also implies μ1≊(ε0,0)μ1′\mu_{1}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime}, so by the joint convexity of the relation ≊(ε0,0)\approxeq_{(\varepsilon_{0},0)} we also have μ1≊(ε0,0)μ1′′\mu_{1}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime\prime}. Thus, we can apply Advanced Joint Convexity of overlapping mixtures (Theorem 2 in ) to get that

We now claim that qi≤eε0i−1+eε0(m−i+1)q_{i}\leq\frac{e^{\varepsilon_{0}}}{i-1+e^{\varepsilon_{0}}(m-i+1)}. Observe that for each D∗∈{D,D′}D^{*}\in\{D,D^{\prime}\}, conditioning on T=iT=i reduces Arep\mathcal{A}_{rep} to running Aldp\mathcal{A}_{ldp} on σi(D∗)\sigma_{i}(D^{*}). Note that for j<ij<i, we have that σi(D∗)[1:i−1]\sigma_{i}(D^{*})[1:i-1] differs from σj(D∗)[1:i−1]\sigma_{j}(D^{*})[1:i-1] in at most 1 position, and for j>ij>i, we have σi(D∗)[1:i−1]=σj(D∗)[1:i−1]\sigma_{i}(D^{*})[1:i-1]=\sigma_{j}(D^{*})[1:i-1]. Since Pr[j≥i]=m−i+1m\mathop{\mathbf{Pr}}[j\geq i]=\frac{m-i+1}{m}, by setting q=m−i+1mq=\frac{m-i+1}{m} in Lemma A.1, we get that

This immediately implies our claim, since we have

where the inequality follows from inequality 11, and as Pr[T=i]=1m\mathop{\mathbf{Pr}}[T=i]=\frac{1}{m}.

Substituting the value of qiq_{i} in equation 10, and using the fact that wi≤wmaxw_{i}\leq w_{max}, we get that for each i∈[m]i\in[m], algorithm B(i)\mathcal{B}^{(i)} is (εi,0)\left(\varepsilon_{i},0\right)-DP at index 1, where εi=log⁡(1+wmaxeε0(eε0−1)i−1+eε0(m−i+1))\varepsilon_{i}=\log\left(1+\frac{w_{max}e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)}{i-1+e^{\varepsilon_{0}}(m-i+1)}\right). This can alternatively be written as εi=log⁡(1+wmax(eε0−1)m−(i−1)eε0−1eε0)\varepsilon_{i}=\log\left(1+\frac{w_{max}(e^{\varepsilon_{0}}-1)}{m-(i-1)\frac{e^{\varepsilon_{0}}-1}{e^{\varepsilon_{0}}}}\right), and using Lemma A.2 for the sequence of mechanisms B(1),…,B(m)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(m)} by setting a=wmax(eε0−1)a=w_{max}(e^{\varepsilon_{0}}-1), b=eε0−1eε0b=\frac{e^{\varepsilon_{0}}-1}{e^{\varepsilon_{0}}}, and k=mk=m, we get that algorithm Arep\mathcal{A}_{rep} satisfies (ε,δ)\left(\varepsilon,\delta\right)-DP at index 1, for ε=wmax2eε0(eε0−1)22m+wmax(eε0−1)2eε0log⁡(1/δ)m\varepsilon=\frac{w_{max}^{2}e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2m}+w_{max}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2e^{\varepsilon_{0}}\log{(1/\delta)}}{m}}.

Now, for the above bound, if ε0≤1\varepsilon_{0}\leq 1 and δ≤1/4\delta\leq 1/4, we get that

where the first inequality follows since e0.5ε0(eε0−1)≤3ε0e^{0.5\varepsilon_{0}}(e^{\varepsilon_{0}}-1)\leq 3\varepsilon_{0} for ε0≤1\varepsilon_{0}\leq 1, and the second inequality follows since 3wmaxε02m≤log⁡1δ2\frac{3w_{max}\varepsilon_{0}}{2\sqrt{m}}\leq\sqrt{\frac{\log{\frac{1}{\delta}}}{2}} for δ≤1/100\delta\leq 1/100.

Now, we prove the privacy guarantee of Arep\mathcal{A}_{rep} for the more general case where for each i∈[m]i\in[m], the local randomizer Aldp\mathcal{A}_{ldp} is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP. To upper bound the privacy parameters of Arep\mathcal{A}_{rep}, we modify the local randomizer to satisfy pure DP, apply the previous analysis, and then account for the difference between the protocols with original and modified randomizers using the total variation distance.

Now, we are ready to prove Theorems 3.2 and 4.3.

Let DD and D′D^{\prime} be 2 datasets of nn users that differ in a user at some index i∗∈[n]i^{*}\in[n]. Algorithm Afix\mathcal{A}_{fix} can be alternatively seen as follows. The server starts by initializing F=[0p]mF=[0^{p}]^{m}, weights W=mW=^{m}, and for i∈[m]i\in[m], set Si=ϕS_{i}=\phi. For each user j∈[n]j\in[n] s.t. j≠i∗j\neq i^{*}, user jj performs a random check-in along with some additional operations. She first samples IjI_{j} u.a.r. from [m][m], and w.p. p0p_{0} does the following: she requests the server for model at index IjI_{j} (and gets inserted into set SIjS_{I_{j}} at the server). She also updates F[Ij]=djF[I_{j}]=d_{j} with probability W[Ij]W[I_{j}], and sets W[Ij]=W[Ij]W[Ij]+1W[I_{j}]=\frac{W[I_{j}]}{W[I_{j}]+1}. Next, the server runs Arep\mathcal{A}_{rep} on input dataset π∗(D)=(di∗,F[2:m])\pi^{*}(D)=(d_{i^{*}},F[2:m]), with the replacement element FF, initial model θ1\theta_{1}, and weight parameters set to W′[1:m]W^{\prime}[1:m], where W′[i]=W[i]⋅p0W^{\prime}[i]=W[i]\cdot p_{0}.

First, notice that in the alternative strategy above, for each of the weights W[i],i∈[m]W[i],i\in[m], it always holds that W[i]=1∣Si∣W[i]=\frac{1}{\left|S_{i}\right|}. Thus, each weight W[i],i∈[m]W[i],i\in[m] is updated to simulate reservoir sampling of size 1 in slot F[i]F[i]. In other words, updating F[i]=dF[i]=d with probability W[i]W[i] for an element dd is equivalent to F[j]←u.a.r.SiF[j]\xleftarrow{u.a.r.}S_{i}, where SiS_{i} is the set containing dd and all the elements previously considered for updating SiS_{i}. As a result, since the first element in Arep\mathcal{A}_{rep} performs a random replacement with weights set to W′[1:m]W^{\prime}[1:m] for its input dataset, it is easy to see that performing a concurrent random check-in for user i∗i^{*} (as in Algorithm 1) is equivalent to performing a random replacement for her after the check-ins of all the other users.

From our construction, we know that datasets π∗(D)\pi^{*}(D) and π∗(D′)\pi^{*}(D^{\prime}), which are each of length mm, differ only in the element with index 1. Moreover, in the alternative strategy above, note that the weights W′[1:m]W^{\prime}[1:m] and the replacement element FF input to Arep\mathcal{A}_{rep} are independent of the data of user i∗i^{*} in the original dataset. Therefore, in the case δ0=0\delta_{0}=0, using Theorem A.4 and setting wmax=p0w_{max}=p_{0}, we get Arep(π∗(D))≊ε,δArep(π∗(D′))\mathcal{A}_{rep}(\pi^{*}(D))\approxeq_{\varepsilon,\delta}\mathcal{A}_{rep}(\pi^{*}(D^{\prime})) at index 1, for ε=p2eε0(eε0−1)22m+p(eε0−1)2eε0log⁡(1/δ)m\varepsilon=\frac{p^{2}e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2m}+\frac{p(e^{\varepsilon_{0}}-1)\sqrt{2e^{\varepsilon_{0}}\log{(1/\delta)}}}{m}, which implies Adist(D)≊ε,δAdist(D′)\mathcal{A}_{dist}(D)\approxeq_{\varepsilon,\delta}\mathcal{A}_{dist}(D^{\prime}). Consequently, it implies ε≤7p0ε0log⁡(1/δ)m\varepsilon\leq 7p_{0}\varepsilon_{0}\sqrt{\frac{\log(1/\delta)}{m}} for ε0≤1\varepsilon_{0}\leq 1 and δ≤1/100\delta\leq 1/100.

The case δ0>0\delta_{0}>0 follows from the same reduction using the corresponding setting of Theorem A.4. ∎

We proceed similar to the proof of Theorem 3.2. Let DD and D′D^{\prime} be 2 datasets of nn users that differ in a user at some index i∗∈[n]i^{*}\in[n]. Algorithm Asldw\mathcal{A}_{sldw} can be alternatively seen as follows. The server starts by initializing F=[0p]n−m+1F=[0^{p}]^{n-m+1}, weights W=n−m+1W=^{n-m+1}, and for j∈{m,…,n}j\in\{m,\ldots,n\}, set Sj=ϕS_{j}=\phi. For each user j∈[n]j\in[n] s.t. j≠i∗j\neq i^{*}, user jj performs a random check-in along with some additional operations. She first samples IjI_{j} u.a.r. from {j,…,j+m−1}\{j,\ldots,j+m-1\}, requests the server for model at index IjI_{j} (and gets inserted into set SIjS_{I_{j}} at the server). She also updates F[Ij]=djF[I_{j}]=d_{j} with probability W[Ij]W[I_{j}], and sets W[Ij]=W[Ij]W[Ij]+1W[I_{j}]=\frac{W[I_{j}]}{W[I_{j}]+1}.

Now, the server runs its loop until it releases i∗−1i^{*}-1 outputs. Next, the server runs Arep\mathcal{A}_{rep} on input dataset π∗(D)=(di∗,F[i∗+1:i∗+m])\pi^{*}(D)=(d_{i^{*}},F[i^{*}+1:i^{*}+m]), with weight parameters set to W[i∗:i∗+m]W[i^{*}:i^{*}+m], initializing model θi∗\theta_{i^{*}}, and the replacement element F[i∗]F[i^{*}]. Lastly, the server releases the last (n−(i∗+m)+1)(n-(i^{*}+m)+1) outputs of Asldw\mathcal{A}_{sldw} using F[i∗+m+1:n]F[i^{*}+m+1:n] and the local randomizer Aldp\mathcal{A}_{ldp}.

First, notice that in the alternative strategy above, for each of the weights W[i],i∈[n]W[i],i\in[n], it always holds that W[i]=1∣Si∣W[i]=\frac{1}{\left|S_{i}\right|}. Thus, each weight W[i],i∈[n]W[i],i\in[n] is updated to simulate reservoir sampling of size 1 in slot F[i]F[i]. In other words, updating F[i]=dF[i]=d with probability W[i]W[i] for an element dd is equivalent to F[i]←u.a.r.SiF[i]\xleftarrow{u.a.r.}S_{i}, where SiS_{i} is the set containing zz and all the elements previously considered for updating SiS_{i}. As a result, since the first element in Arep\mathcal{A}_{rep} performs a random replacement for its input dataset (which doesn’t include F1:i∗−1⋃Fi∗+m+1:nF_{1:i^{*}-1}\bigcup F_{i^{*}+m+1:n} in the alternative strategy above), it is easy to see that sequentially performing a random check-in for user i∗i^{*} (as in Algorithm 1) is equivalent to performing a random replacement for her after the check-ins of all the other users and releasing the first i∗−1i^{*}-1 outputs of Asldw\mathcal{A}_{sldw}.

From our construction, we know that datasets π∗(D)\pi^{*}(D) and π∗(D′)\pi^{*}(D^{\prime}), which are each of length mm, differ only in the element with index 1. Moreover, in the alternative strategy above, note that the weights W[i∗:i∗+m]W[i^{*}:i^{*}+m], initializing model θi∗\theta_{i^{*}} and the replacement element F[i∗]F[i^{*}] input to Arep\mathcal{A}_{rep} are independent of the data of user i∗i^{*} in the original dataset. Therefore, using Theorem A.4 and setting wmax=1w_{max}=1, we get Arep(π∗(D))≊ε,δ+mδ0Arep(π∗(D′))\mathcal{A}_{rep}(\pi^{*}(D))\approxeq_{\varepsilon,\delta+m\delta_{0}}\mathcal{A}_{rep}(\pi^{*}(D^{\prime})) at index 1, for ε=eε0(eε0−1)22m+(eε0−1)2eε0log⁡(1/δ)m\varepsilon=\frac{e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2m}+(e^{\varepsilon_{0}}-1)\sqrt{\frac{2e^{\varepsilon_{0}}\log{(1/\delta)}}{m}}, which implies Arc(D)≊ε,δ+mδ0Arc(D′)\mathcal{A}_{rc}(D)\approxeq_{\varepsilon,\delta+m\delta_{0}}\mathcal{A}_{rc}(D^{\prime}). Consequently, it implies ε≤7ε0log⁡(1/δ)m\varepsilon\leq 7\varepsilon_{0}\sqrt{\frac{\log(1/\delta)}{m}} for ε0≤1\varepsilon_{0}\leq 1 and δ≤1/100\delta\leq 1/100.

The case δ0>0\delta_{0}>0 follows from the same reduction using the corresponding setting of Theorem A.4. ∎

A.2 Proof of Theorem 4.1

By post-processing, each of the A(i)\mathcal{A}^{(i)} is (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP.

To bound the probabilities pip_{i} we write:

To proceed, we assume δ0=0\delta_{0}=0. If that is not the case, then the same argument based on Lemma A.3 used in the proof of Theorem A.4 allows us to reduce the analysis to the case δ0=0\delta_{0}=0 and modify the final ε\varepsilon and δ\delta accordingly. When the local randomizers satisfy pure DP, we have

To conclude the proof of Theorem 4.1, we provide a high probability bound for ∥L∥2\left\|L\right\|_{2} for random LL representing the loads of mm bins when nn balls are thrown uniformly and independently.

Let L=(L1,…,Lm)L=(L_{1},\ldots,L_{m}) denote the number of users checked in into each of mm update slots in the protocol from Figure 2. With probability at least 1−δ1-\delta, we have

The proof is a standard application of McDiarmid’s inequality. First note that ∥L∥2\left\|L\right\|_{2} is a function of nn i.i.d. random variables indicating the bin where each ball is allocated. Since changing the assignment of one ball can only change ∥L∥2\left\|L\right\|_{2} by 2\sqrt{2}, we have

with probability at least 1−δ1-\delta. Finally, we use Jensen’s inequality to obtain

The privacy claim in Theorem 4.1 follows from using Lemma A.6 to condition with probability at least 1−δ21-\delta_{2} to the case where LL is such that

A.3 Proof of Theorem 5.1

We will prove the privacy guarantee of Asl\mathcal{A}_{sl} (Algorithm 5) in a similar manner as in the proof of Theorem 7 in : by reducing Asl\mathcal{A}_{sl} to Aswap\mathcal{A}_{swap} that starts by swapping the first element with a u.a.r. sample in the dataset, and then applies the local randomizers (Algorithm 6). They key difference between our proof and the one in is that we provide tighter, position-dependent privacy guarantees for each of the outputs of Aswap\mathcal{A}_{swap}, and then use an heterogeneous adaptive composition theorem from to compute the final privacy parameters.

(Amplification by swapping) For a domain D\mathcal{D}, let Aldp(i):S(1)×⋯×S(i−1)×D→S(i)\mathcal{A}^{(i)}_{ldp}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}\rightarrow\mathcal{S}^{(i)} for i∈[n]i\in[n] (where S(i)\mathcal{S}^{(i)} is the range space of Aldp(i)\mathcal{A}^{(i)}_{ldp}) be a sequence of algorithms s.t. Aldp(i)\mathcal{A}^{(i)}_{ldp} is ε0\varepsilon_{0}-DP for all values of auxiliary inputs in S(1)×⋯×S(i−1)\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}. Let Aswap:Dn→S(1)×⋯×S(n)\mathcal{A}_{swap}:\mathcal{D}^{n}\rightarrow\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(n)} be the algorithm that given a dataset D=d1:n∈DnD=d_{1:n}\in\mathcal{D}^{n}, swaps the first element in DD with an element sampled u.a.r. in DD, and then applies the local randomizers to the resulting dataset sequentially (see Algorithm 6). Aswap\mathcal{A}_{swap} satisfies (ε,δ)(\varepsilon,\delta)-DP at index 1 in the central model, for ε=e3ε0(eε0−1)22n+e3ε0/2(eε0−1)2log⁡(1/δ)n\varepsilon=\frac{e^{3\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2n}+e^{3\varepsilon_{0}/2}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}}. Furthermore, if the A(i)\mathcal{A}^{(i)} are (ε0,δ0)(\varepsilon_{0},\delta_{0})-DP with δ0≤(1−e−ε0)δ14eε0(2+ln⁡(2/δ1)ln⁡(1/(1−e−5ε0)))\delta_{0}\leq\frac{(1-e^{-\varepsilon_{0}})\delta_{1}}{4e^{\varepsilon_{0}}\left(2+\frac{\ln(2/\delta_{1})}{\ln(1/(1-e^{-5\varepsilon_{0}}))}\right)}, then Aswap\mathcal{A}_{swap} is (ε′,δ′)(\varepsilon^{\prime},\delta^{\prime})-DP with ε′=e24ε0(e8ε0−1)22n+e12ε0(e8ε0−1)2log⁡(1/δ)n\varepsilon^{\prime}=\frac{e^{24\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)^{2}}{2n}+e^{12\varepsilon_{0}}(e^{8\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}} and δ′=δ+m(eε′+1)δ1\delta^{\prime}=\delta+m(e^{\varepsilon^{\prime}}+1)\delta_{1}.

We start by proving the privacy guarantee of Aswap\mathcal{A}_{swap} for the case where for each i∈[c]i\in[c], the local randomizer Aldp(i)\mathcal{A}^{(i)}_{ldp} is ε0\varepsilon_{0}-DP, i.e., for the case where δ0=0\delta_{0}=0. Let us denote the output sequence of Aswap\mathcal{A}_{swap} by Z1,Z2,…,ZnZ_{1},Z_{2},\ldots,Z_{n}. Note that Z1:nZ_{1:n} can be seen as the output of a sequence of nn algorithms with conditionally independent randomness: B(i):S(1)×⋯×S(i−1)×Dn→S(i)\mathcal{B}^{(i)}:\mathcal{S}^{(1)}\times\cdots\times\mathcal{S}^{(i-1)}\times\mathcal{D}^{n}\rightarrow\mathcal{S}^{(i)} for i∈[n]i\in[n]. On input s1:i−1s_{1:i-1} and DD, B(i)\mathcal{B}^{(i)} outputs a random sample from the distribution of Zi∣Z1:i−1=s1:i−1Z_{i}|Z_{1:i-1}=s_{1:i-1}. The outputs of B(1),…,B(i−1)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(i-1)} are given as input to B(i)\mathcal{B}^{(i)}. Therefore, in order to upper bound the privacy parameters of Aswap\mathcal{A}_{swap}, we analyze the privacy parameters of B(1),…,B(n)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(n)} and apply the heterogeneous advanced composition for DP .

Next, observe that conditioned on the value of II, ZiZ_{i} is the output of Aldp(i)(s1:i−1;d)\mathcal{A}^{(i)}_{ldp}(s_{1:i-1};d) with its internal randomness independent of Z1:i−1Z_{1:i-1}. In particular, for i≥2i\geq 2, one can implement B(i)\mathcal{B}^{(i)} as follows. First, sample an index TT from the distribution of I∣Z1:i−1=s1:i−1I|Z_{1:i-1}=s_{1:i-1}. Output Aldp(i)(s1:i−1;d1)\mathcal{A}^{(i)}_{ldp}(s_{1:i-1};d_{1}) if T=iT=i, otherwise output Aldp(i)(s1:i−1;di)\mathcal{A}^{(i)}_{ldp}(s_{1:i-1};d_{i}). For B(1)\mathcal{B}^{(1)}, we first sample TT u.a.r. from [n][n], and then output Aldp(1)(dT)\mathcal{A}^{(1)}_{ldp}(d_{T}).

We now prove that for each i∈[c]i\in[c], B(i)\mathcal{B}^{(i)} is (log⁡(1+e2ε0(eε0−1)e2ε0+(i−1)+(n−i)eε0),0)\left(\log\left(1+\frac{e^{2\varepsilon_{0}}(e^{\varepsilon_{0}}-1)}{e^{2\varepsilon_{0}}+(i-1)+(n-i)e^{\varepsilon_{0}}}\right),0\right)-DP at index 1. Let D=d1:nD=d_{1:n} and D′=(d1′,d2:n)D^{\prime}=(d^{\prime}_{1},d_{2:n}) be 2 datasets differing in the first element. Let s1:i−1s_{1:i-1} denote the input to B(i)\mathcal{B}^{(i)}. Let μ\mu be the probability distribution of B(i)(s1:i−1;D)\mathcal{B}^{(i)}(s_{1:i-1};D), and let μ0\mu_{0} (resp. μ1\mu_{1}) be the distribution of B(i)(s1:i−1;D)\mathcal{B}^{(i)}(s_{1:i-1};D) conditioned on T≠iT\neq i (resp. T=iT=i). Let qiq_{i} be the probability that T=iT=i (sampled from I∣Z1:i−1=s1:i−1I|Z_{1:i-1}=s_{1:i-1}). By definition, μ=(1−qi)μ0+qiμ1\mu=(1-q_{i})\mu_{0}+q_{i}\mu_{1}. Also, denote by μ′,μ0′\mu^{\prime},\mu_{0}^{\prime}, μ1′\mu_{1}^{\prime}, and qi′q_{i}^{\prime} the corresponding quantities when B(i)\mathcal{B}^{(i)} is run on D′D^{\prime}. Thus, we get μ′=(1−qi′)μ0′+qi′μ1′\mu^{\prime}=(1-q_{i}^{\prime})\mu_{0}^{\prime}+q_{i}^{\prime}\mu_{1}^{\prime}.

For i∈[n]i\in[n], we observe that μ0=μ0′\mu_{0}=\mu_{0}^{\prime}, since in both cases the output is generated by Aldp(i)(dT)\mathcal{A}^{(i)}_{ldp}(d_{T}) conditioned on T≠1T\neq 1 for i=1i=1, and Aldp(i)(s1:i−1;di)\mathcal{A}^{(i)}_{ldp}(s_{1:i-1};d_{i}) for i≥2i\geq 2. W.l.o.g. assume that qi≥qi′q_{i}\geq q_{i}^{\prime}. Thus, we can shift qi−qi′q_{i}-q_{i}^{\prime} mass from the first component of the mixture in μ′\mu^{\prime} to the second component to obtain

This shows that μ\mu and μ′\mu^{\prime} are overlapping mixtures . Now, ε0\varepsilon_{0}-LDP of Aldp(i)\mathcal{A}^{(i)}_{ldp} implies μ0≊(ε0,0)μ1\mu_{0}\approxeq_{(\varepsilon_{0},0)}\mu_{1} and μ0≊(ε0,0)μ1′\mu_{0}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime}. Moreover, ε0\varepsilon_{0}-LDP of Aldp(i)\mathcal{A}^{(i)}_{ldp} also implies μ1≊(ε0,0)μ1′\mu_{1}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime}, so by the joint convexity of the relation ≊(ε0,0)\approxeq_{(\varepsilon_{0},0)} we also have μ1≊(ε0,0)μ1′′\mu_{1}\approxeq_{(\varepsilon_{0},0)}\mu_{1}^{\prime\prime}. Thus, we can apply Advanced Joint Convexity of overlapping mixtures (Theorem 2 in ) to get that

We now claim that qi≤e2ε0e2ε0+(i−1)+(n−i)eε0q_{i}\leq\frac{e^{2\varepsilon_{0}}}{e^{2\varepsilon_{0}}+(i-1)+(n-i)e^{\varepsilon_{0}}}. Observe that for each D∗∈{D,D′}D^{*}\in\{D,D^{\prime}\}, conditioning on T=iT=i reduces Aswap\mathcal{A}_{swap} to running Aldp(k),k∈[n]\mathcal{A}^{(k)}_{ldp},k\in[n] on σi(D∗)\sigma_{i}(D^{*}). Note that σi(D∗)[1:i−1]\sigma_{i}(D^{*})[1:i-1] differs from σj(D∗)[1:i−1]\sigma_{j}(D^{*})[1:i-1] in at most 2 positions for j<ij<i, and at most 1 position for j>ij>i. By ε0\varepsilon_{0}-LDP of Aldp(k),k∈[n]\mathcal{A}^{(k)}_{ldp},k\in[n], we get that

Now, on the lines of the proof of Lemma A.1, we have:

where the third equality follows as for every j∈[n],Pr[T=j]=1nj\in[n],\mathop{\mathbf{Pr}}[T=j]=\frac{1}{n}, and the first inequality follows from inequality 14.

This immediately implies our claim, since

where the inequality follows from (11), and as Pr[T=i]=1n\mathop{\mathbf{Pr}}[T=i]=\frac{1}{n}. Substituting the value of qiq_{i} in (13), we get that for each i∈[n]i\in[n], algorithm B(i)\mathcal{B}^{(i)} is (εi,0)\left(\varepsilon_{i},0\right)-DP at index 1, where εi=log⁡(1+e2ε0(eε0−1)e2ε0+(i−1)+(n−i)eε0)\varepsilon_{i}=\log\left(1+\frac{e^{2\varepsilon_{0}}(e^{\varepsilon_{0}}-1)}{e^{2\varepsilon_{0}}+(i-1)+(n-i)e^{\varepsilon_{0}}}\right). This results in εi≤log⁡(1+eε0(eε0−1)n−(i−1)(1−1eε0))\varepsilon_{i}\leq\log\left(1+\frac{e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1)}{n-(i-1)\left(1-\frac{1}{e^{\varepsilon_{0}}}\right)}\right), and using Lemma A.2 for the sequence of mechanisms B(1),…,B(n)\mathcal{B}^{(1)},\ldots,\mathcal{B}^{(n)} by setting a=eε0(eε0−1)a=e^{\varepsilon_{0}}(e^{\varepsilon_{0}}-1), b=1−1eε0b=1-\frac{1}{e^{\varepsilon_{0}}}, and k=nk=n, we get that algorithm Aswap\mathcal{A}_{swap} satisfies (ε,δ)\left(\varepsilon,\delta\right)-DP at index 1, for ε=e3ε0(eε0−1)22n+e3ε0/2(eε0−1)2log⁡(1/δ)n\varepsilon=\frac{e^{3\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2n}+e^{3\varepsilon_{0}/2}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}}.

The case δ0>0\delta_{0}>0 uses the same argument based on Lemma A.3 used in the proof of Theorem A.4. This arguments allows us to reduce the analysis to the case δ0=0\delta_{0}=0 and modify the final ε\varepsilon and δ\delta accordingly.

This proof proceeds in a similar manner as the proof of Theorem 7 in . Let DD and D′D^{\prime} be 2 datasets of length nn that differ at some index i∗∈[n]i^{*}\in[n]. Algorithm Asl\mathcal{A}_{sl} can be alternatively seen as follows. Pick a random one-to-one mapping π∗\pi^{*} from {2,…,n}→[n]∖{i∗}\{2,\ldots,n\}\rightarrow[n]\setminus\{i^{*}\} and let π∗(D)=(di∗,dπ∗(2),…,dπ∗(n))\pi^{*}(D)=(d_{i^{*}},d_{\pi^{*}(2)},\ldots,d_{\pi^{*}(n)}). Next, apply Aswap\mathcal{A}_{swap} to π∗(D)\pi^{*}(D). It is easy to see that for a u.a.r. chosen π∗\pi^{*} and u.a.r. I∈[n]I\in[n], the distribution of σI(π∗(D))\sigma_{I}(\pi^{*}(D)) is a uniformly random permutation of elements in DD.

For a fixed π∗\pi^{*}, we know that π∗(D)\pi^{*}(D) and π∗(D′)\pi^{*}(D^{\prime}) differ only in the element with index 1. Therefore, in the case δ0=0\delta_{0}=0, from Theorem A.7, we get Aswap(π∗(D))≊ε,δAswap(π∗(D′))\mathcal{A}_{swap}(\pi^{*}(D))\approxeq_{\varepsilon,\delta}\mathcal{A}_{swap}(\pi^{*}(D^{\prime})) at index 1, for ε=e3ε0(eε0−1)22n+e3ε0/2(eε0−1)2log⁡(1/δ)n\varepsilon=\frac{e^{3\varepsilon_{0}}(e^{\varepsilon_{0}}-1)^{2}}{2n}+e^{3\varepsilon_{0}/2}(e^{\varepsilon_{0}}-1)\sqrt{\frac{2\log{(1/\delta)}}{n}}, which implies Asl(D)≊ε,δAsl(D′)\mathcal{A}_{sl}(D)\approxeq_{\varepsilon,\delta}\mathcal{A}_{sl}(D^{\prime}).

The case δ0>0\delta_{0}>0 follows similarly from the corresponding setting of Theorem A.7. ∎