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 -DP local randomizers, we improve the dependency of the final central DP by a factor of . 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 -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 as neighbors if can be obtained from by modifying one sample for some .
A randomized algorithm is -differentially private if, for any pair of neighboring data sets , and for all events in the output range of , we have .
For meaningful central DP guarantees (i.e., when ), is assumed to be a small constant, and . The case is often referred to as pure DP (in which case, we just write -DP). We shall also use the term approximate DP when .
Adaptive differentially private mechanisms occur naturally when constructing complex DP algorithms, for e.g., DP-SGD. In addition to the dataset , adaptive mechanisms also receive as input the output of other differentially private mechanisms. Formally, we say that an adaptive mechanism is -DP if the mechanism is -DP for every .
Specializing Definition 2.1 to the case 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 time slots, where at most one user’s update is used in each slot, for a total of minibatch SGD iterations. It is assumed all 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 time slots, and all users are available for the duration of the protocol (Section 4.1). On average, users contribute updates to each time slot, and so, we take 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 , 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 be a distributed learning protocol with check-in time slots. For a set and probability , client performs an -check-in in the protocol if with probability she requests the server to participate in at time step , and otherwise abstains from participating. If , we alternatively denote it as an -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 is an -DP local randomizer. Let be the protocol from Algorithm 1 with check-in probability and check-in window for each client . For any , algorithm is -DP with . In particular, for and , we get . Furthermore, if is -DP with , then is -DP with and .
We can always increase privacy in the above statement by decreasing . However, this will also increase the number of dummy updates, which suggests choosing . With such a choice, we obtain an amplification factor of . 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 may appear stronger than the typical factor obtained via uniform subsampling/shuffling. Note that one run of our technique provides updates (as opposed to updates via the other methods). When the server has sufficient capacity, we can set to recover a amplification. The primary advantage of our approach is that we can benefit from amplification in terms of even if only a much smaller number of updates are actually processed. We can also extend our approach to recover the amplification even when the server is rate limited (), by repeating the protocol adaptively 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 , since for all the shown amplification bounds can be written as . “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 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 described in Theorem 3.2, the expected number of dummy updates performed by the server is at most . For if , we get at most 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 , it is easy to see for 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 , 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 of clients checked-in at time 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 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 .
Suppose is an -DP local randomizer. Let be the protocol from Algorithm 2 performing averaged model updates with check-in probability and check-in window for each user . Algorithm is -DP with
where . In particular, for we get . Furthermore, if is -DP with , then is -DP with and .
Next, we provide a utility guarantee for 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 time steps, and each client is only available during a window of 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 will perform a random check-in within the window . The server will perform updates starting at time to provide a warm-up period where the first clients perform their random check-ins.
Suppose is an -DP local randomizer. Let be the distributed algorithm performing model updates with check-in probability and check-in window for each user . For any , algorithm is -DP with . For and , we get . Furthermore, if is -DP with , then is -DP with and .
We can always increase privacy in the statement above by increasing . 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, introduces a trade-off between accuracy and privacy.
For algorithm described in Theorem 4.3, the expected number of dummy gradient updates performed by the server is at most .
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 , , be a sequence of adaptive -DP local randomizers. Let be the algorithm that given a dataset samples a uniform random permutation over , sequentially computes and outputs . For any , algorithm satisfies -DP with . Furthermore, if , , is -DP with , then satisfies -DP with and .
For comparison, the guarantee in [19, Theorem 7] in the case 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 ’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 ’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 -DP local randomizers.
References
Appendix A Omitted Results and Proofs
Let be an -DP local randomizer. For , and , define to return with probability , and a sample from an arbitrary distribution over with probability . For any and any set of outcomes , we have
Fix a set of outcomes . By -LDP of , for any , we get
Now, for dataset and , we have:
where the third equality follows as , and the first inequality follows using inequality 1, and the fourth equality follows as . ∎
Let be mechanisms of the form . Suppose there exist constants and such that each is -DP with . Then, for any , the -fold adaptive composition of is -DP with .
We start by applying the heterogeneous advanced composition for DP for the sequence of mechanisms to get -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 .
where the second equality follows as we have .
Next, we bound the first term in equation 2 as follows:
where the first inequality follows from , and the last inequality follows from inequality 4.
Using inequalities 3, 4 and 5 in equation 2, we get that the -fold adaptive composition of satisfies -DP, for . ∎
Setting in , we get from Theorem 3.2 that , algorithm satisfies -DP for
where the inequality follows since .
Now, using inequality 6 and applying advanced composition to repetitions of , we get -DP, for
Since , we have that , and thus, . Therefore, we get from inequality 7 that
For , define an indicator random variable that indicates if is empty. Note that the server performs a dummy gradient update for instance if and only if is empty (or, in other words, ). Next, for , let denote the index that user in Algorithm performs her -check-in into, where and . Thus, for index , 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. .
Thus, for the expected number of dummy gradient updates, we have:
If for , from equation 8 we get
where the inequality follows as for . ∎
To be able to directly apply [32, Theorem 2], our technique needs to satisfy two conditions: i) each model update should be an unbiased estimate of the gradient, and ii) a bound on the expected -norm of the gradient. Notice that in , every client performs a -check-in. This is analogous to a bins-and-balls setting where balls are thrown, each with probability , into bins. Thus, for each update step , the number of clients checking-in for this step (i.e., in the notation of Algorithm 1) can be approximated by an independent Poisson random variable with mean , using Poisson approximation , as follows:
Optimizing the learning rate to be gives the statement of the theorem. ∎
Optimizing the learning rate to be gives the statement of the theorem.
The result now follows from observing that
In Algorithm , for , we have
For , define an indicator random variable that indicates if is empty. Note that the server performs a dummy gradient update for instance if and only if is empty (or, in other words, ). Next, for , let denote the index that user in Algorithm performs her -check-in into, where . Thus, for index , we have
where the second equality follows since the check-ins for each user are independent of the others, and the inequality follows as for .
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 (Algorithm 1) by reducing it to algorithm (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 to update the model for 1-sized minibatches (i.e., update at every time step). It is easy to extend to -sized minibatch updates by accumulating the gradient updates for every 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 and , we denote them as if they are -DP close, i.e., if for all measurable outcomes , we have
We start by proving the privacy guarantee of for the case where the local randomizer is -DP, i.e., for the case where . Let us denote the output sequence of by . Note that can be seen as the output of a sequence of algorithms with conditionally independent randomness: for as follows. On input and , outputs a random sample from the distribution of . The outputs of are given as input to . Therefore, in order to upper bound the privacy parameters of , we analyze the privacy parameters of and apply the heterogeneous advanced composition for DP .
For , we observe that , since in both cases the output is generated by for , and for . W.l.o.g. assume that . Thus, we can shift mass from the first component of the mixture in to the second component to obtain
This shows that and are overlapping mixtures . Now, -LDP of implies and . Moreover, -LDP of also implies , so by the joint convexity of the relation we also have . Thus, we can apply Advanced Joint Convexity of overlapping mixtures (Theorem 2 in ) to get that
We now claim that . Observe that for each , conditioning on reduces to running on . Note that for , we have that differs from in at most 1 position, and for , we have . Since , by setting in Lemma A.1, we get that
This immediately implies our claim, since we have
where the inequality follows from inequality 11, and as .
Substituting the value of in equation 10, and using the fact that , we get that for each , algorithm is -DP at index 1, where . This can alternatively be written as , and using Lemma A.2 for the sequence of mechanisms by setting , , and , we get that algorithm satisfies -DP at index 1, for .
Now, for the above bound, if and , we get that
where the first inequality follows since for , and the second inequality follows since for .
Now, we prove the privacy guarantee of for the more general case where for each , the local randomizer is -DP. To upper bound the privacy parameters of , 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 and be 2 datasets of users that differ in a user at some index . Algorithm can be alternatively seen as follows. The server starts by initializing , weights , and for , set . For each user s.t. , user performs a random check-in along with some additional operations. She first samples u.a.r. from , and w.p. does the following: she requests the server for model at index (and gets inserted into set at the server). She also updates with probability , and sets . Next, the server runs on input dataset , with the replacement element , initial model , and weight parameters set to , where .
First, notice that in the alternative strategy above, for each of the weights , it always holds that . Thus, each weight is updated to simulate reservoir sampling of size 1 in slot . In other words, updating with probability for an element is equivalent to , where is the set containing and all the elements previously considered for updating . As a result, since the first element in performs a random replacement with weights set to for its input dataset, it is easy to see that performing a concurrent random check-in for user (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 and , which are each of length , differ only in the element with index 1. Moreover, in the alternative strategy above, note that the weights and the replacement element input to are independent of the data of user in the original dataset. Therefore, in the case , using Theorem A.4 and setting , we get at index 1, for , which implies . Consequently, it implies for and .
The case follows from the same reduction using the corresponding setting of Theorem A.4. ∎
We proceed similar to the proof of Theorem 3.2. Let and be 2 datasets of users that differ in a user at some index . Algorithm can be alternatively seen as follows. The server starts by initializing , weights , and for , set . For each user s.t. , user performs a random check-in along with some additional operations. She first samples u.a.r. from , requests the server for model at index (and gets inserted into set at the server). She also updates with probability , and sets .
Now, the server runs its loop until it releases outputs. Next, the server runs on input dataset , with weight parameters set to , initializing model , and the replacement element . Lastly, the server releases the last outputs of using and the local randomizer .
First, notice that in the alternative strategy above, for each of the weights , it always holds that . Thus, each weight is updated to simulate reservoir sampling of size 1 in slot . In other words, updating with probability for an element is equivalent to , where is the set containing and all the elements previously considered for updating . As a result, since the first element in performs a random replacement for its input dataset (which doesn’t include in the alternative strategy above), it is easy to see that sequentially performing a random check-in for user (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 outputs of .
From our construction, we know that datasets and , which are each of length , differ only in the element with index 1. Moreover, in the alternative strategy above, note that the weights , initializing model and the replacement element input to are independent of the data of user in the original dataset. Therefore, using Theorem A.4 and setting , we get at index 1, for , which implies . Consequently, it implies for and .
The case 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 is -DP.
To bound the probabilities we write:
To proceed, we assume . 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 and modify the final and 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 for random representing the loads of bins when balls are thrown uniformly and independently.
Let denote the number of users checked in into each of update slots in the protocol from Figure 2. With probability at least , we have
The proof is a standard application of McDiarmid’s inequality. First note that is a function of i.i.d. random variables indicating the bin where each ball is allocated. Since changing the assignment of one ball can only change by , we have
with probability at least . 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 to the case where is such that
A.3 Proof of Theorem 5.1
We will prove the privacy guarantee of (Algorithm 5) in a similar manner as in the proof of Theorem 7 in : by reducing to 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 , and then use an heterogeneous adaptive composition theorem from to compute the final privacy parameters.
(Amplification by swapping) For a domain , let for (where is the range space of ) be a sequence of algorithms s.t. is -DP for all values of auxiliary inputs in . Let be the algorithm that given a dataset , swaps the first element in with an element sampled u.a.r. in , and then applies the local randomizers to the resulting dataset sequentially (see Algorithm 6). satisfies -DP at index 1 in the central model, for . Furthermore, if the are -DP with , then is -DP with and .
We start by proving the privacy guarantee of for the case where for each , the local randomizer is -DP, i.e., for the case where . Let us denote the output sequence of by . Note that can be seen as the output of a sequence of algorithms with conditionally independent randomness: for . On input and , outputs a random sample from the distribution of . The outputs of are given as input to . Therefore, in order to upper bound the privacy parameters of , we analyze the privacy parameters of and apply the heterogeneous advanced composition for DP .
Next, observe that conditioned on the value of , is the output of with its internal randomness independent of . In particular, for , one can implement as follows. First, sample an index from the distribution of . Output if , otherwise output . For , we first sample u.a.r. from , and then output .
We now prove that for each , is -DP at index 1. Let and be 2 datasets differing in the first element. Let denote the input to . Let be the probability distribution of , and let (resp. ) be the distribution of conditioned on (resp. ). Let be the probability that (sampled from ). By definition, . Also, denote by , , and the corresponding quantities when is run on . Thus, we get .
For , we observe that , since in both cases the output is generated by conditioned on for , and for . W.l.o.g. assume that . Thus, we can shift mass from the first component of the mixture in to the second component to obtain
This shows that and are overlapping mixtures . Now, -LDP of implies and . Moreover, -LDP of also implies , so by the joint convexity of the relation we also have . Thus, we can apply Advanced Joint Convexity of overlapping mixtures (Theorem 2 in ) to get that
We now claim that . Observe that for each , conditioning on reduces to running on . Note that differs from in at most 2 positions for , and at most 1 position for . By -LDP of , we get that
Now, on the lines of the proof of Lemma A.1, we have:
where the third equality follows as for every , and the first inequality follows from inequality 14.
This immediately implies our claim, since
where the inequality follows from (11), and as . Substituting the value of in (13), we get that for each , algorithm is -DP at index 1, where . This results in , and using Lemma A.2 for the sequence of mechanisms by setting , , and , we get that algorithm satisfies -DP at index 1, for .
The case 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 and modify the final and accordingly.
This proof proceeds in a similar manner as the proof of Theorem 7 in . Let and be 2 datasets of length that differ at some index . Algorithm can be alternatively seen as follows. Pick a random one-to-one mapping from and let . Next, apply to . It is easy to see that for a u.a.r. chosen and u.a.r. , the distribution of is a uniformly random permutation of elements in .
For a fixed , we know that and differ only in the element with index 1. Therefore, in the case , from Theorem A.7, we get at index 1, for , which implies .
The case follows similarly from the corresponding setting of Theorem A.7. ∎