Concurrent Composition Theorems for Differential Privacy
Salil Vadhan, Wanrong Zhang
Introduction
A randomized algorithm is -differentially private if for every pair of neighboring datasets , and for every subset of possible outputs ,
Thus, differential privacy requires that for all neighboring datasets , and are close as probability distributions (as measured by the parameters and ). A number of variants of differential privacy have been defined based on other ways of measuring closeness, leading to Concentrated differential privacy (CDP) [DR16, BS16] and Rényi differential privacy (RDP) [Mir17] and -differential privacy (-DP) [DRS19].
2 Interactive Differential Privacy
Definition 1.1 considers only non-interactive mechanisms that release query answers in one shot, but data analysts often interact with a database in an adaptive fashion. In fact, many useful primitives in differential privacy such as the Sparse Vector Technique [DNR+09, DNPR10, DR14], and the Private Multiplicative Weights [HR10] allow analysts to ask an adaptive sequence of queries about a dataset. It motivates the study of interactive mechanisms to capture full-featured privacy-preserving data analytics. Here, we view the mechanism as a party in an interactive protocol, interacting with a (possibly adversarial) analyst.
An interactive protocol is any pair of functions on tuples of binary strings. The interaction between with input and with input is the following random process (denoted ):
Uniformly choose random coins and for and , respectively.
Repeat the following for . (a) If is even, let . (b) If is odd, let . (c) If , then exit loop.
The view of a party in an interactive protocol captures everything the party “sees” during the execution.
3 Concurrent Composition
A fundamental problem in differential privacy is studying how the privacy degrades under composition as more computations are performed on the same database. The composition property is particularly useful when we want to ask interactive queries on the same database, and it also allows us to design a complex differentially private algorithm by combining several building blocks. Formally, we define the composition of a sequence of non-interactive mechanisms as the non-interactive mechanism defined as
where each mechanism is executed using independent random coins.
The composition of non-interactive mechanisms has been studied extensively in the literature. The basic composition theorem [DKM+06] states that the privacy parameters add up linearly when composing private mechanisms. The advanced composition theorem [DRV10] provides a tighter bound where the privacy parameter grows sublinearly under -fold adaptive composition. Later, the optimal composition theorem [KOV15, MV16] gives an exact characterization of the privacy guarantee under -fold composition. The relaxations of differential privacy including zero-concentrated differential privacy (zCDP) [DR16, BS16], Rényi differential privacy (RDP) [Mir17], and -differential privacy (-DP) [DRS19] allows for tighter reasoning about composition. In the abovementioned work, some of them [DRV10, MV16] are framed in a way that the adversary can adaptively choose the mechanisms , and thus the adaptive composition can be viewed as an interactive mechanism.
In many cases, analysts may wish to perform multiple interactive analyses on the same dataset concurrently, which raises the question of concurrent composition, first studied for differential privacy in [VW21]. In this setting (illustrated in Figure 1), an adversary can arbitrarily interleave its queries to several differentially private mechanisms, and those queries might be correlated and depends on the answer received in other mechanisms. As a motivating example, several organizations might set up multiple DP query systems on datasets that may refer to the same set of individuals. Each query system has its own privacy budget . Suppose an adversary can concurrently access those systems, and a query sent to one system might depends on all the previous messages that received from other systems. For example, when we run two Sparse Vector mechanisms and concurrently, the queries for depends on previous answers from , and vice-versa, but we only know the overall privacy guarantees for and when they are executed independently. If the executions were sequential, meaning that the adversary completes its interaction with before issuing any queries to , then we can hardwire the answers from into the adversary’s strategy. When attacking , the privacy loss for will be bounded as usual. But when the queries are interleaved, it is no longer clear how to define a fixed adversary strategy against either of the mechanisms or . It is not clear if the adversary can run any concurrent attack to break the privacy guarantees, and therefore, we wish to provide a provable guarantee to account for the total privacy loss in such systems. Formally, the concurrent composition of interactive mechanisms is defined as follows.
Let be interactive mechanisms. is the concurrent composition of mechanisms defined as follows:
Random sample where are random coin tosses for .
Inputs for consists of where is a private dataset for .
is defined as follows:
Parse as where and is a query to . If cannot be parsed correctly, output halt.
Extract history from where are all of the queries to mechanism .
Output .
Vadhan and Wang [VW21] showed that the advanced and optimal composition theorems extend to the concurrent composition of interactive pure DP mechanisms.
Suppose that for all non-interactive mechanisms such that is -differentially private for , their composition is -differentially private. Then for all interactive mechanisms such that is -differentially private for , the concurrent composition of interactive mechanisms is -differentially private.
They prove this by reducing the analysis of interactive pure DP mechanism to that of analyzing the Randomized Response mechanism [War65, DMNS06]:
Suppose that is an interactive -differentially private mechanism. Then for every pair of neighboring datasets , there exists an interactive post-processing function such that for every adversary , we have
Here is an interactive post-processing function that depends on and a fixed pair of neighboring datasets . It receives a single bit as an output of or , and then interacts with the adversary .
Note that Theorem 1.1 and Theorem 1.2 do not apply to the case where the composed mechanisms are -DP for . In this case, [VW21] only show a bound that is similar to the “group privacy” property of -DP. In particular, if and , they show that the concurrent composition is -differentially private. This is suboptimal even compared to basic composition. It left as an open problem that if any composition theorems for non-interactive mechanisms can extend to all variants of DP interactive mechanisms.
Does Theorem 1.1 extend to other variants of DP (such as -DP with , Rényi DP, -DP)?
4 Our Results on Concurrent Composition
In this paper, we close this gap and show that any composition theorems of non-interactive mechanisms also extend to the concurrent composition of interactive DP mechanisms for approximate DP. In particular, we show that Theorem 1.1 extends to the case that :
Suppose that for all non-interactive mechanisms such that is -differentially private for , their composition is -differentially private. Then for all interactive mechanisms with finite communication such that is -differentially private for , the concurrent composition of interactive mechanisms is -differentially private.
We also handle general -DP as defined and discussed in the section below.
Suppose that for all non-interactive mechanisms such that is -DP for , their composition is -DP. Then for all interactive mechanisms such that is -DP for , the concurrent composition of interactive mechanisms is -DP.
Theorem 1.3 follows directly from Theorem 1.4 because -DP defined below captures -DP as a special case [WZ10, DRS19]. Interestingly, the generalization to -DP is important for our proof, even if we only want to prove Theorem 1.3. We explain the detailed proof technique in the section below.
In summary, our results show that there is no extra privacy loss due to the concurrent access to multiple interactive mechanisms. We can now safely run multiple interactive differentially private algorithms in parallel, while allowing communication with all them during their executions.
5 f𝑓f-DP and Interactive vs. Noninteractive Hypothesis Testing
-differential privacy (-DP) [DRS19] is a generalization of -differential privacy based on the hypothesis testing interpretation of differential privacy. Differential privacy attemps to measure the difficulty of distinguishing two neighboring datasets based on the ouput of a mechanism. Specifically, an adversary considers the following hypothesis testing problem:
For any two probability distributions and on the same space, define the trade-off function as
where the infimum is taken over all (measurable) rejection rules .
Proposition 1.7 gives the necessary and sufficient condition for to be a trade-off function.
A function is a trade-off function if and only if is convex, continuous, non-increasing, and for .
-DP allows the full trade-off between type I and type II errors in the simple hypothesis testing problem to be governed by a trade-off function . A larger trade-off functions implies stronger privacy guarantees.
Let be a trade-off function. A mechanism is -differentially private if for every pair of neighboring datasets , we have
-DP is a special case of -DP, taking , where [WZ10, DRS19].
To prove Theorem 1.4 (and hence Theorem 1.3), we prove the following analogue of Theorem 1.2, showing that every interactive -DP mechanism can be simulated by an interactive post-processing of a non-interactive mechanism.
For every trade-off function , every interactive -DP mechanism with finite communication, and every pair of neighboring datasets , there exists a non-interactive -DP mechanism and an randomized interactive post-processing mechanism such that for every adversary , we have
Similarly to Theorem 1.2, in the case of -DP, one can take the non-interactive mechanism as the -Randomized Response mechanism of [KOV15]. Indeed, [KOV15] shows that every non-interactive -DP mechanism can be simulated as a post-processing of -Randomized Response.
Theorem 1.4 follows from Theorem 1.5 in the same way as Theorem 1.1 follows from Theorem 1.2. Indeed, Theorem 1.4 implies that to analyze the concurrent composition of interactive mechanisms , it suffices to consider the composition of the non-interactive mechanisms . As a result, composition theorems for non-interactive mechanisms extend to the concurrent composition of interactive -DP mechanisms.
Theorem 1.5 is an interesting statement about statistical hypothesis testing even without the application to differential privacy. Normally, hypothesis testing is presented as the task of distinguishing between two distributions or sets of distributions. This is a noninteractive task: a sample from the distribution is generated and given to the hypothesis tester, which then tries to decide whether the distribution is in or . However, suppose instead we consider the task of distinguishing between two interactive mechanisms and , each of which responds to queries in a randomized and stateful manner. Since the mechanisms are stateful, the hypothesis tester may never learn everything there is to know about the mechanism; in particular it cannot find out how the mechanism would have answered if different queries had been asked in the past. This is in contrast to ordinary hypothesis testing, where the full sample from the distribution is given to the hypothesis tester. Nevertheless, by viewing as and as , Theorem 1.5 implies that the two interactive mechanisms and can be simulated perfectly by noninteractive random variables and such that even if we give or to a hypothesis tester in its entirety (thereby revealing how or would answer all questions), it cannot distinguish them any better than it could distinguish and . The trick, of course, is that the simulation is “perfect” only when executing a single interaction with or (with no rewinding to explore multiple paths in the interaction tree).
The proof of Theorem 1.5 relies on the following two lemmas.
Let be a trade-off function, and suppose we have random variables , and , such that
Then there exists couplings and such that
To prove Theorem 1.5 using Lemmas 1.6 and 1.7, our strategy is to apply induction on the number of messages exchanged (which we can do since has finite communication by assumptions). To reduce rounds of interactions to rounds, we consider the subsequent interaction conditioned on the first message. Depending on whether the first message sent from the mechanism or the adversary , we consider the following two cases.
Case 1. The adversary sends the first query to the mechanism . Fix a pair of neighboring datasets . Fixing , we denote the subsequent interactive mechanism by . By induction, can be simulated by a post-processing of a non-interactive -DP mechanism . Then we obtain and by coupling the pairs and on all the values of , which is finite by our assumption of finite communication. We note that the coupling lemma 1.6 extends to finite number of random variables and by induction on . Following the coupling lemma, we have . We can combine the interactive post-processing mechanisms for all to obtain the interactive post-processing that simulates and from and . Thus, we have Theorem 1.5 holds for rounds of interactions.
6 Independent Work by Lyu
In independent and concurrent work, Lyu [Lyu22] proves Theorem 1.3 with a different argument. They show that every interactive -DP mechanism can be simulated by interactive post-processing of a non-interactive -DP mechanism, via an argument that is specific to -DP that does not seem to generalize to arbitrary tradeoff functions . Indeed, they leave the the general case of -DP as an open problem, which is solved by our Theorems 1.4 and 1.5.
On the other hand, Lyu [Lyu22] also proves an optimal concurrent composition theorem for Rényi DP of any fixed order. In an earlier version of our paper [VZ22], we also claimed such a result, but our proof was incorrect (except for the case of Rényi DP of order ),Specifically, we stated and used a chain rule for Rényi divergence that only holds for order (i.e. KL divergence). as pointed out to us by Lyu. In this revision, we give a simple proof of Lyu’s theorem for Rényi DP by characterizing the optimal adversary strategy in Section 5.
Generalized Definitions of DP Mechanisms
To prove our results and discuss the several variants of differential privacy, it is convenient to introduce a more general abstraction, where distances between probability distributions can be in an arbitrary partially ordered set.
A generalized probability distance measure is a tuple such that
is a partially ordered set (poset).
is a mapping that takes any two random variables over the same measurable space to an element of .
(Post-processing.) The generalized distance mapping is closed under post-processing, meaning that for every function , .
(Joint Convexity.) Suppose we have a collection of random variables and a random variable distributed on . If for all , then .
For the generalized notion - DP, the difficulty of distinguishing two neighboring datasets is measured by the generalized distance between the distributions of an adversary’s views. The partially ordered set allows us to compare the level of privacy guarantees of mechanisms.
Let be a generalized probability distance. For , we call an interactive mechanism - DP if for every adversary and every pair of neighboring datasets , we have
Let us instantiate the standard pure DP and its variants using the definition above by specifying the generalized distances.
Max-divergence is closed under post-processing due to the data-processing inequality. Max-divergence satisfies joint convexity due to the following lemma.
For every two pairs of probability distributions and , and every ,
Example: Rényi DP
For two probability distribution and , the Rényi divergence of order is
Rényi divergence is also closed under post-processing due to the data-processing inequality, and it satisfies the joint convexity because an analogue of Lemma 2.1 also holds for Rényi divergence:
For every order , every two pairs of probability distributions and , and every ,
Example: f𝑓f-DP.
For -DP, the partially ordered set is defined as , where is the set of all trade-off functions that satisfies the conditions in Proposition 1.7. The partial ordering is defined as if holds for all . Note that the direction of the inequalities is reversed, corresponding to the fact that a larger trade-off function means less privacy loss. The distance mapping is the trade-off function in Definition 1.6.
-DP also satisfies the two properties. First, -DP is preserved under post-processing. We will only need to show the joint convexity of -DP.
Suppose we have a collection of random variables and a random variable distributed on . If for all , then .
For any random variable distributed on . We have
Therefore, we have . ∎
It is useful to work with distance posets that are complete:
A partially ordered set (poset) is complete if for every nonempty subset has a supremum , where for every , and for every satisfying for every .
The partially ordered set , where consists of all trade-off functions satisfying the conditions in Proposition 1.7, is complete. Specifically, for , is a trade-off function defined as follows.
where is a random variable that takes value in and is a function.
Taking the infimum over and on both sides, we get , and therefore, .
Next, we shall show that is a trade-off function. Following the proposition 1.7, it suffices to check the four properties for . We begin with proving the convexity of . For every , and every , we have
Therefore, is a trade-off function, and exists.
A convenient consequence of joint convexity is that it suffices to consider deterministic adversaries.
and similarly for . By joint convexity, we deduce:
Coupling and Chain Rule Properties of f𝑓f-DP
In this section, we prove that -DP has the coupling and chain rule properties that we use to prove Theorems 1.4 and 1.5.
We say that a generalized distance has the coupling property if for any two pairs of random variable and , we have and , then there exists a coupling of and (denoted as ), and a coupling of and (denoted as ), such that .
has the coupling property: Suppose is a trade-off function and we have random variables , and , such that
Then there exists couplings and such that
We prove this lemma using the following result:
Let be probability distributions on and be probability distributions on . The following two statements are equivalent:
Since a function is called a trade-off function if it is equal to for some distribution and , for a given rade-off function , there exists a pair of random variables such that . By the Blackwell Theorem, since , there exists a randomized algorithm such that and are identically distributed to and , respectively. Similarly, since , there exists a randomized algorithm such that is identically distributed to , respectively. We construct a coupling of and as , and a coupling of and as . Then the trade-off function between the two couplings satisfies the following inequality.
where Equation (8) follows from Lemma 2.9 in [DRS19], completing the proof. ∎
To formally state the chain rule property, we need a couple of definitions.
Let and be complete posets. A function is continuous if for every set .
Observe that every continuous function is monotone: if are elements of , then .
Let be a finite set and . Let and be complete posets. A function is continuous in each variable if for every , and for every , the function is a continuous function from to .
As an example, the standard chain rule of KL divergence is as follows.
In Lemma 3.3, we show that -DP has the chain rule property.
The ChainRule function for -DP is given as follows.
The type I error and type II error are given as
Therefore, the trade-off function between and satisfies the following inequality:
Let go to , and combining with Equation (12), we have
Next, we shall show that the ChainRule function defined in (10) is continuous in each variable. Our goal is to show that for every , every , and for every , we have
We can interchange the expectation and the infimum in Equation (14) because , , are independent across . We also have that
where (16) is because trade-off functions are convex. Hence,
On the other hand, by setting for all , the above equal sign is reached.
Concurrent Composition of d𝑑d-𝒟𝒟\mathcal{D} DP
Theorem 4.1 shows that if the generalized distance satisfies the coupling property in Definition 3.1 and the chain rule in Definition 3.4 , then every interactive - DP mechanism can be simulated by an interactive post-processing of a non-interactive - DP mechanism. This is a generalized statement of Theorem 1.5, as -DP is an example of - DP.
Assume that the generalized probability distance measure satisfies
every satisfies the coupling property.
Then for every and every interactive - DP mechanism with finite communication complexity, and every pair of two neighboring datasets and , there exists a pair of random variables and an randomized interactive post-processing mechanism such that , and for every adversary , we have
Note that the theorem is stated for mechanisms with finite communication, which is formally defined as follows.
Let be an interactive protocol (as in Definition 1.2). We say that has finite communication if for every there is a constant , such that for all , we have
If , then .
If , then .
Here denotes the bit length of string . having finite communication is defined symmetrically.
Our strategy is to apply the induction argument by the number of rounds of interactions. Fix a pair of neighboring datasets . We consider two cases depending on whether the first message sent from the mechanism or the adversary .
The adversary sends the first query to the mechanism . Fixing , the subsequent interactive mechanism with input is defined by
By coupling property, there exists a pair of random variables , and a randomized post-processing function such that , and we have that
So and are produced by coupling all possible queries. Then the interactive post-processing is defined by , i.e.,
Case 2.
The mechanism sends the first message to the adversary . Let be the queries from the adversary, and be messages from the mechanism. Fixing , the subsequent interactive mechanism is defined by
uses its randomness to choose uniformly from randomness of conditioned on . Specifically, let be a random transformation such that if is uniform random for , then for all , is uniform on the randomness of conditioned on .
Let be the random variable that defined as . is defined similarly. By the chain rule, we have
Let and , we define the post-processing as
We now use Theorem 4.1 to prove that the concurrent composition of interactive mechanisms can be reduced to the composition of the non-interactive mechanisms.
Suppose that the generalized probability distance satisfies the chain rule, every satisfies the coupling property, and is complete. Suppose for all non-interactive mechanism such that is - DP for , their composition is - DP, then the concurrent composition of interactive mechanisms such that is - DP is also - DP.
Concurrent Composition of Rényi DP
In this section, we give a different and simpler proof of the optimal concurrent composition of Rényi DP given in [Lyu22]:
We prove this theorem by characterizing optimal -RDP adversary strategy in Lemma 5.5.
We show that the optimal adversary strategy against the concurrent composition of mechanisms can be decomposed as a product of optimal adversaries against each mechanism independently:
Although this property of the optimal adversary strategy can be derived as a consequence of the optimal concurrent composition of Rényi DP in [Lyu22], we take a different approach to first prove this property and then use it to prove the optimal concurrent composition theorem for Rényi DP.
Our proof relies on the following two properties of Rényi divergence: the monotonicity property in Lemma 5.3 and the independence property in Lemma 5.4. The Rényi divergence is defined as follows.
For two probability distributions and , the Rényi divergence of order is
Hence, is monotonically increasing if increases. So if , then we have
For any two pairs of random variables and , if and ( and resp.) are independent, then
The following lemma describes the optimal adversary’s strategy against an interactive mechanism. The proof of Lemma 5.5 uses the monotonicity property of Rényi divergence.
We decompose the view of the adversary into two parts: the first answer to the query , and the view of the subsequent interaction. Fixing , for every adversary , we have
where (23) follows from Lemma 5.3. It implies that in order to maxmize (22), it suffices to choose to maximize the quantity in (23). ∎
We then use Lemma 5.5 to prove Lemma 5.2.
We now prove Theorem 5.1 using Lemma 5.2.
Acknowledgments
We are grateful to Xin Lyu for pointing out the error in the proof of our previously claimed concurrent composition theorem for Rényi DP [Lyu22]. We also thank an anonymous reviewer for pointing out the error in our previous proof of continuity.