Extremal Mechanisms for Local Differential Privacy
Peter Kairouz, Sewoong Oh, Pramod Viswanath
Introduction
In statistical analyses involving data from individuals, there is an increasing tension between the need to share data and the need to protect sensitive information about the individuals. For example, users of social networking sites are increasingly cautious about their privacy, but still find it inevitable to agree to share their personal information in order to benefit from customized services such as recommendations and personalized search (Acquisti, 2004; Acquisti and Grossklags, 2007). There is a certain utility in sharing data for both data providers and data analysts, but at the same time, individuals want plausible deniability when it comes to sensitive information.
For such applications, there is a natural core optimization problem to be solved. Assuming both the data providers and analysts want to maximize the utility of the released data, how can they do so while preserving the privacy of participating individuals? The formulation and study of a framework that addresses the fundamental tradeoff between utility and privacy is the focus of this paper.
The need for data privacy appears in two different contexts: the local privacy context, as in when individuals disclose their personal information (e.g., voluntarily on social network sites), and the global privacy context, as in when institutions release databases of information of several people or answer queries on such databases (e.g., US Government releases census data, companies like Netflix release proprietary data for others to test state of the art machine learning algorithms). In both contexts, privacy is achieved by randomizing the data before releasing it. We study the setting of local privacy, in which data providers do not trust the data collector (analyst). Local privacy dates back to Warner (1965), who proposed the randomized response method to provide plausible deniability for individuals responding to sensitive surveys.
A natural notion of privacy protection is making inference of information beyond what is released hard. Differential privacy has been proposed in the global privacy context to formally capture this notion of privacy (Dwork, 2006; Dwork et al., 2006b; Dwork and Lei, 2009). In a nutshell, differential privacy ensures that an adversary should not be able to reliably infer an individual’s record in a database, even with unbounded computational power and access to every other record in the database. Recently, Duchi et al. (2013) extended the notion of differential privacy to the local privacy context. Formally, consider a setting where there are data providers each owning a data defined on an input alphabet . The ’s are independently sampled from some distribution parameterized by . A statistical privatization mechanism is a conditional distribution that maps stochastically to , where is an output alphabet possibly larger than . The ’s are referred to as the privatized (sanitized) views of ’s. In a non-interactive setting, the same privatization mechanism is used locally by all individuals. This setting is shown in Figure 1 for the special case of . For some non-negative , we follow the definition of Duchi et al. (2013) and say that a mechanism is -locally differentially private if
2 Information theoretic utilities for statistical analysis
In analyses of statistical databases, the analyst is interested in the statistics of the data as opposed to individual records. Naturally, the utility should also be measured in terms of the distribution rather than sample quantities. Concretely, consider a client-server setting where each client with data releases , a privatized version of the data, via a non-interactive -locally differentially private privatization mechanism . Assume all the clients use the same privatization mechanism , and each client’s data is an i.i.d. sample from a distribution for some parameter . Given the privatized views , the data analyst would like to make inferences based on the induced marginal distribution
for . We consider a broad class of convex utility functions, and identify the class of optimal mechanisms, which we call staircase mechanisms, in Section 2. We apply this framework to two specific applications: (a) hypothesis testing where the utility is measured in -divergences (Section 3) and (b) information preservation where the utility is measured in mutual information (Section 4).
In the binary hypothesis testing setting, ; therefore, can be generated by one of two possible distributions and . The power to discriminate data generated from to data generated from depends on the ‘distance’ between the marginals and . To measure the ability of such statistical discrimination, our choice of utility of a particular privatization mechanism is an information theoretic quantity called Csiszár’s -divergence defined as
for some convex function such that . The Kullback-Leibler (KL) divergence is a special case with , and so is the total variation distance with . Such -divergences capture the quality of statistical inference, such as minimax rates of statistical estimation or error exponents in hypothesis testing (Tsybakov and Zaiats, 2009; Cover and Thomas, 2012). As a motivating example, suppose a data analyst wants to test whether the data is generated from or based on privatized views . According to Chernoff-Stein’s lemma, for a bounded type I error probability, the best type II error probability scales as . Naturally, we are interested in finding a privatization mechanism that minimizes the probability of error by solving the following constraint maximization problem
where is the set of all -locally differentially private mechanisms satisfying (1).
In the information preservation setting, is generated from an underlying distribution . We are interested in quantifying how much information can be preserved when releasing a private view of the data. In other words, the data provider would like to release an -locally differentially private view of that preserves the amount of information in as much as possible. The utility in this case is measured by the mutual information between and
Mutual information, as the name suggests, measures the mutual dependence between two random variables. It has been used as a criterion for feature selection and as a measure of similarity between two different clusterings of a data set, in addition to many other applications in signal processing and machine learning. To characterize the fundamental tradeoff between privacy and mutual information, we solve the following constrained maximization problem
where is the set of all -locally differentially private mechanisms satisfying (1).
Motivated by such applications in statistical analysis, our goal is to provide a general framework for finding optimal privatization mechanisms that maximize information theoretic utilities under local differential privacy. We demonstrate the power of our techniques in a very general setting that includes both hypothesis testing and information preservation.
3 Our contributions
We study the fundamental tradeoff between local differential privacy and a rich class of convex utility functions. This class of utilities includes several information theoretic quantities such as mutual information and -divergences. The privacy-utility tradeoff is posed as a constrained maximization problem: maximize utility subject to local differential privacy constraints. This maximization problem is (a) nonlinear: the utility functions we consider are convex in ; (b) non-standard: we are maximizing instead of minimizing a convex function; and (c) infinite dimensional: the space of all differentially private mechanisms is infinite dimensional. We show, in Theorem 2, that for all utility functions considered and any privacy level , a finite family of extremal mechanisms (a finite subset of the corner points of the space of differentially private mechanisms), which we call staircase mechanisms, contains the optimal privatization mechanism. We further prove, in Theorem 4, that solving the original privacy-utility problem is equivalent to solving a finite dimensional linear program, the outcome of which is the optimal mechanism. However, solving this linear program can be computationally expensive because it has variables. To account for this, we show that two simple staircase mechanisms (the binary and randomized response mechanisms) are optimal in the high and low privacy regimes, respectively, and well approximate the intermediate regime. This contributes an important progress in the differential privacy area, where the privatization mechanisms have been few and almost no exact optimality results are known. As an application, we show that the effective sample size reduces from to under local differential privacy in the context of hypothesis testing.
We also study the fundamental tradeoff between utility and approximate differential privacy, a generalized notion of privacy that was first introduced in Dwork et al. (2006a). The techniques we develop for differential privacy do not generalize to approximate differential privacy. To account for this, we use an operational interpretation of approximate differential privacy (developed in Kairouz et al. (2014a)) to prove that a simple mechanism maximizes utility for all levels of privacy when the data is binary.
4 Related work
Our work is closely related to the recent work of Duchi et al. (2013) where an upper bound on was derived under the same local differential privacy setting. Precisely, Duchi et. al. proved that the KL-divergence maximization problem in (4) is at most . This bound was further used to provide a minimax bound on statistical estimation using information theoretic converse techniques such as Fano’s and Le Cam’s inequalities. Such tradeoffs also provide tools for comparing various notions of privacy (Barber and Duchi, 2014).
In a similar spirit, we are also interested in maximizing information theoretic quantities under local differential privacy. We generalize the results of Duchi et al. (2013), and provide stronger results in the sense that we consider a broader class of information theoretic utilities; provide explicit constructions for the optimal mechanisms; and recover the existing result of (Duchi et al., 2013, Theorem 1) (with a stronger condition on ).
Our work also provides a formal connection to an information theoretic notion of privacy called information leakage (Chatzikokolakis et al., 2010; Sankar et al., 2013). Given a privatization mechanism , the information leakage is measured by the mutual information between the private data and the released output , i.e. . Information leakage has been widely studied as a practical notion of privacy. However, connections to differential privacy have been studied only indirectly through comparisons to how much distortion is incurred under the two notions of privacy (Sarwate and Sankar, 2014; Wang et al., 2014a). We show that under -local differential privacy, is upper bounded by for small . Moreover, we provide an explicit privatization mechanism that achieves this bound.
While there is a vast literature on differential privacy, exact optimality results are only known for a few cases. The typical recipe is to propose a differentially private mechanism inspired by the work of Dwork (2006); Dwork et al. (2006b); McSherry and Talwar (2007) and Hardt and Rothblum (2010), and then establish its near-optimality by comparing the achievable utility to a converse, for example in linear dynamical systems (Wang et al., 2014b), principal component analysis (Chaudhuri et al., 2012; Blocki et al., 2012; Hardt and Roth, 2012; Kapralov and Talwar, 2013), linear queries (Hardt and Talwar, 2010; Hardt et al., 2012), logistic regression (Chaudhuri and Monteleoni, 2008) and histogram release (Lei, 2011). In this paper, we take a different route and solve the utility maximization problem exactly.
Optimal differentially private mechanisms are known only in a few cases. Ghosh et al. (2012) showed that the geometric noise adding mechanism is optimal (under a Bayesian setting) for monotone utility functions under count queries (sensitivity one). This was generalized by Geng et. al. (for a worst-case input setting) who proposed a family of mechanisms and proved its optimality for monotone utility functions under queries with arbitrary sensitivity (Geng and Viswanath, 2012, 2013a, 2013b). The family of optimal mechanisms was called staircase mechanisms because for any and any neighboring and , the ratio of to takes one of three possible values , , or . Since the optimal mechanisms we develop also have an identical property, we retain the same nomenclature.
5 Organization
The remainder of the paper is organized as follows. In Section 2, we introduce the family of staircase mechanisms, prove its optimality for a broad class of convex utility functions, and study its combinatorial structure. In Section 3, we study the problem of private hypothesis testing and prove that two staircase mechanisms, the binary and randomized response mechanisms, are optimal for KL-divergence in the high and low privacy regimes, respectively, and (nearly) optimal the intermediate regime. We show, in Section 4, similar results for mutual information. In Section 5, we study approximate local differential privacy, a more general notion of local privacy. Finally, we conclude this paper in Section 6 with a few interesting and nontrivial extensions.
Main Results
In this section, we first present a formal definition for staircase mechanisms and prove that they are the optimal solutions to optimization problems of the form (8). We then provide a combinatorial representation for staircase mechanisms that allows us to reduce the infinite dimensional nonlinear program of (8) to a finite dimensional linear program with variables. For any given privacy level and utility function , one can solve this linear program to obtain the optimal privatization mechanism, albeit with significant computational challenges since the number of variables scales exponentially in the alphabet size. To address this issue, we prove, in Sections 3 and 4, that two simple staircase mechanisms, which we call the binary mechanism and the randomized response mechanism, are optimal in the high and low privacy regimes, respectively, and well approximate the intermediate regime.
Let be the column of corresponding to and be any sublinear function. We are interested in utilities that can be decomposed into a sum of sublinear functions. We study the fundamental tradeoff between privacy and utility by solving the following constrained maximization problem
This includes maximization over information theoretic quantities of interest in statistical estimation and hypothesis testing such as mutual information, total variation, KL-divergence, and -divergence (Tsybakov and Zaiats, 2009). Since sub-linearity implies convexity, (8) is in general a complicated nonlinear program: we are maximizing (instead of minimizing) a convex function in ; further, the dimension of might be unbounded: the optimal privatization mechanism might produce an infinite output alphabet . The following theorem proves that one never needs an output alphabet larger than the input alphabet in order to achieve the maximum utility, and provides a combinatorial representation for the optimal solution.
For any sublinear function and any , there exists an optimal mechanism maximizing the utility in (8) over all -locally differentially private mechanisms, such that
the output alphabet size is at most the input alphabet size, i.e. ; and
for all , and
The first claim of bounded alphabet size is more generally true for any general utility that is convex in (not necessarily decomposing into a sum of sublinear functions as in (8)). The second claim establishes that there is an optimal mechanism with an extremal structure; the absolute value of the log-likelihood ratios can only take one of the two extremal values: 0 or (see Figure 2 for example). We refer to such a mechanism as a staircase mechanism, and define the family of staircase mechanisms formally as
For all choices of and any , Theorem 2 implies that the family of staircase mechanisms includes the optimal solutions to maximization problems of the form (8). Notice that staircase mechanisms are -locally differentially private, since any satisfying (9) implies that .
For global differential privacy, we can generalize the definition of staircase mechanisms to hold for all neighboring database queries (or equivalently within some sensitivity), and recover all known existing optimal mechanisms. Precisely, the geometric mechanism shown to be optimal in Ghosh et al. (2012), and the mechanisms shown to be optimal in Geng and Viswanath (2012, 2013a) (also called staircase mechanisms) are special cases of the staircase mechanisms defined above. We believe that the characterization of these extremal mechanisms and the analysis techniques developed in this paper can be of independent interest to researchers interested in optimal mechanisms for global privacy and more general utilities.
2 Combinatorial representation of the staircase mechanisms
Now that we know that staircase mechanisms are optimal, we can try to combinatorially search for the best staircase mechanism for an instance of the function and a fixed . To this end, we give a simple representation for all staircase mechanisms, exploiting the fact that they are scaled copies of a finite number of patterns.
Let be the -dimensional binary vector corresponding to the binary representation of for . A matrix is called a staircase pattern matrix if the -th column of is , for . Each column of is a staircase pattern.
When , there are staircase patterns and the staircase pattern matrix is given by
For all values of , there are exactly such patterns, and any column of , a staircase mechanism, is a scaled version of one of the columns of . Using this pattern matrix, we can show that any staircase mechanism can be represented as
where is a diagonal matrix and is a -dimensional vector representing the scaling of the columns of . We can now formulate the problem of maximizing the utility as a linear program and prove their equivalence.
For any sublinear function and any , the nonlinear program of (8) and the following linear program have the same optimal value
and the optimal solutions are related by (10).
Thus, the infinite dimensional nonlinear program of (8) is now reduced to a finite dimensional linear program. The constraints in (11) ensure that we get a valid probability matrix with rows that sum to one. One could potentially solve this LP with variables but its computational complexity scales exponentially in the alphabet size . For practical values of this might not always be possible. However, in the following sections, we prove that in the high privacy regime ( for some positive ), there is a single optimal mechanism, which we call the binary mechanism, which dominates over all other mechanisms in a very strong sense for all utility functions of practical interest.
In order to understand the above theorem, observe that both the objective function and differential privacy constraints are invariant under permutations (or relabelling) of the columns of a privatization mechanism . In other words, shuffling the columns of an -locally differentially private mechanism results in a new -locally differentially private mechanism that achieves the same utility. Similarly, both the objective function and differential privacy constraints are invariant under merging/splitting of outputs with the same pattern. To be specific, consider a privatization mechanism and suppose that there exist two outputs and that have the same pattern, i.e. for some positive constant . Then, we can consider a new mechanism by merging the two columns corresponding to and . Let denote this new output. It follows that satisfies the differential privacy constraints and the resulting utility is also preserved. Precisely, using the fact that , it follows that
by the homogeneity property of . Therefore, we can naturally define equivalence classes for staircase mechanisms that are equivalent up to a permutation of columns and merging/splitting of columns with the same pattern:
To represent an equivalence class, we use a mechanism in that is ordered and merged to match the patterns of the pattern matrix . For any staircase mechanism , there exists a possibly different staircase mechanism such that for some diagonal matrix with nonnegative entries. Therefore, to solve optimization problems of the form (8), we can restrict our attention to such representatives of equivalent classes. Further, for privatization mechanisms of the form , the objective function takes the form , a simple linear function of .
Hypothesis Testing
In this section, we study the fundamental tradeoff between local differential privacy and hypothesis testing. In this setting, there are individuals each with data sampled from a distribution for a fixed . Let be a non-interactive privatization mechanism guaranteeing -local differential privacy. The output of the privatization mechanism is distributed according to the induced marginal defined in (2). With a slight abuse of notation, we will use and to represent both probability distributions and probability mass functions. The power to discriminate data sampled from to data sampled from depends on the ‘distance’ between the marginals and . To measure the ability of such statistical discrimination, our choice of utility of a privatization mechanism is an information theoretic quantity called Csiszár’s -divergence defined as
for some convex function such that . The Kullback-Leibler (KL) divergence is a special case of -divergence with . The total variation distance is also special case with . Note that in general, the -divergence is not necessarily a distance metric since it need not be symmetric or satisfy triangular inequality. We are interested in characterizing the optimal solution to
where is the set of all -locally differentially private mechanisms defined in (7).
A motivating example for this choice of utility is the Neyman-Pearson hypothesis testing framework (Cover and Thomas, 2012). Given the privatized views , the data analyst wants to test whether they are generated from or . Let the null hypothesis be H_{0}:\text{Y_{i}'s are generated from }M_{0}, and the alternative hypothesis H_{1}:\text{Y_{i}'s are generated from }M_{1}. For a choice of rejection region , the probability of false alarm (type I error) is and the probability of miss detection (type II error) is . Let denote the minimum type II error achievable while keeping the type I error rate at most . According to Chernoff-Stein lemma (Cover and Thomas, 2012), we know that
Suppose the analyst knows , , and . Then in order to achieve optimal asymptotic error rate, one would want to maximize the KL divergence of the induced marginals, over all -locally differentially private mechanisms . The results we present in this section (Theorems 5 and 8 to be precise) provide an explicit construction of optimal mechanisms in high and low privacy regimes. Using these optimality results, we prove a fundamental limit on the achievable error rates under differential privacy. Precisely, with data collected from an -locally differentially privatization mechanism, one cannot achieve an asymptotic type II error smaller than
whenever , where is dictated by Theorem 5 and is some arbitrarily small but positive constant. In the equation above, the second inequality follows from Pinsker’s inequality. Since for small , the effective sample size is now reduced from to . This is the price of privacy. In the low privacy regime where , for dictated by Theorem 8, one cannot achieve an asymptotic type II error smaller than
From the definition of , we have that
where and . For any ,
Moreover, since the function is convex in for , then is convex in . Convexity and homogeniety together imply sublinearlity. Therefore, Theorems 2 and 4 apply to and we have that staircases are optimal.
2 Optimality of the binary mechanism
For a given and , the binary mechanism is defined as a staircase mechanism with only two outputs satisfying (see Figure 2)
Although this mechanism is extremely simple, perhaps surprisingly, we will establish that it is the optimal mechanism when a high level of privacy is required. Intuitively, the output should be very noisy in the high privacy regime, and we are better off sending just one bit of information that tells you whether your data is more likely to have come from or .
For any pair of distributions and , there exists a positive that depends on and such that for any -divergences and any positive , the binary mechanism maximizes the -divergence between the induced marginals over all -locally differentially private mechanisms.
This implies that in the high privacy regime, which is a typical setting studied in much of the differential privacy literature, the binary mechanism is universally optimal for all -divergences. In particular this threshold is universal, in that it does not depend on the particular choice of which -divergence we are maximizing. It is only a function of and . This is established by proving a very strong statistical dominance using Blackwell’s celebrated result on comparisons of statistical experiments Blackwell (1953). In a nutshell, we prove that any -locally differentially private mechanism can be simulated from the output of the binary mechanism for sufficiently small . Hence, the binary mechanism dominates over all other mechanisms and at the same time achieves the maximum divergence. A similar idea has been used previously in (Kairouz et al., 2013) to exactly characterize how much privacy degrades under composition attacks.
The optimality of binary mechanisms is not just for high privacy regimes. The next theorem shows that it is the optimal solution of (13) for all , when the objective function is the total variation distance: .
For any pair of distributions and , and any , the binary mechanism maximizes the total variation distance between the induced marginals and among all -locally differentially private mechanisms.
When maximizing the KL divergence between the induced marginals, we show that the binary mechanism still achieves good performance for where is a constant that does not depend on and . For the special case of KL divergence, let denote the maximum value of and denote the KL divergence when the binary mechanism is used. The next theorem shows that
For any and any pair of distributions and , the binary mechanism is an approximation of the maximum KL divergence between the induced marginals and among all -locally differentially private mechanisms.
Observe that for . Therefore, for any , the simple binary mechanism is at most a constant factor away from the optimal mechanism.
3 Optimality of the randomized response mechanism
The randomized response mechanism (see Figure 2) is a staircase mechanism with satisfying
In other words, the randomized response is a simple randomization over the same alphabet where the true data is released with probability . We view it as a multiple choice generalization to the randomized response method proposed by Warner (1965). We now establish that for the special case of optimizing the KL divergence between the induced marginals, the randomized response mechanism is the optimal solution of (13) in the low privacy regime (i.e., for some threshold that depends on and ).
There exists a positive that depends on and such that for all and , and all , the randomized response mechanism maximizes the KL divergence between the induced marginals among all -locally differentially private mechanisms.
The randomized response mechanism is particularly important because it does not depend on or . Thus, even if the data providers and analysts do not have access to the priors, they can still use the randomized response mechanism to achieve the optimal (or near-optimal) utility in the moderate to low privacy regimes.
4 Numerical experiments
For instances of randomly chosen and defined over an input alphabet of size , we compare the average performance of the binary, randomized response, and geometric mechanisms to the average performance of the optimal staircase mechanism for various values of . The optimal staircase mechanism is computed by solving the linear program in Equation (11) for each fixed pair and . The left panel of Figure 3 shows the average performance measured by the normalized divergence for all 4 mechanisms. The average is taken over the 100 instances of and . In the low privacy (large ) regime, the randomized response achieves optimal performance (which converges exponentially in to 1) as predicted. In the high privacy regime (small ), the binary mechanism achieves optimal performance (which converges quadratically in to 0) as predicted. In all regimes, both the binary and randomized response mechanisms provide significant gains over the geometric mechanism.
To illustrate how much worse the binary and the randomized response mechanisms can be relative to the optimal staircase mechanism, we plot in the right panel of Figure 3 the divergence under each mechanism normalized by the divergence under the optimal mechanism. This is done for all 100 instances of and . In all instances, the binary mechanism is optimal for small and the randomized response mechanism is optimal for large . However, under the randomized response mechanism can be as bad as of the optimal one (for small ). Similarly, under the binary mechanism can be as bad as of the optimal one (for large ). To overcome this issue, we propose the following simple strategy: use the better among these two mechanisms. The performance of this strategy is illustrated in Figure 4. For various input alphabet size , we plot the performance of this mixed strategy for each value of and each of the randomly generated instances of and . This mixed strategy achieves at least for (and for ) of the optimal divergence for all instances. Figure 4 shows that this mixed strategy is not too sensitive to the size of the alphabet . Therefore, this strategy provides a good mechanism that can be readily used in practice for any value of .
5 Lower bounds
In this section, we provide converse results on the fundamental limit of differentially private mechanisms; these results follow from our main theorems and are of independent interest in other applications where lower bounds in statistical analysis are studied (Beimel et al., 2008; Hardt and Talwar, 2010; Chaudhuri and Hsu, 2012; De, 2012). For example, a bound similar to (22) was used to provide converse results on the sample complexity for statistical estimation with differentially private data in Duchi et al. (2013).
For any , let be any conditional distribution that guarantees -local differential privacy. Then, for any pair of distributions , and any positive , there exists a positive that depends on , and such that for any the induced marginals and satisfy the bound
This follows from Theorem 5 and observing that the binary mechanism achieves
where is the set of such that . Compared to (Duchi et al., 2013, Theorem 1), we recover their bound of with a smaller constant. We want to note that Duchi et al.’s bound holds for all values of and uses a different technique of bounding the KL divergence directly, however no achievable mechanism has been provided. We instead provide an explicit mechanism, that is optimal in high privacy regime.
Similarly, in the low privacy regime, we can show the following converse result.
For any , let be any conditional distribution that guarantees -local differential privacy. Then, for any pair of distributions and and any positive , there exists a positive that depends on and and such that for any the induced marginals and satisfy the bound
where .
This follows directly from Theorem 8 and observing that the randomized response mechanism achieves
Figure 5 illustrates the gap between the divergence achieved by the geometric mechanism described in the previous section and the optimal mechanisms (the binary mechanism for the high privacy regime and the randomized response mechanism for the low privacy regime). For each instance of the randomly generated and defined over input alphabets of size , we plot the resulting divergence as a function of for , and as a function of for . The binary and the randomized response mechanisms exhibit the scaling predicted by Equation (22) and (23), respectively.
Similarly, for total variation, we can get the following converse result.
For any , let be any conditional distribution that guarantees -local differential privacy. Then, for any pair of distributions and , the induced marginals and satisfy the bound \big{\|}M_{0}-M_{1}\big{\|}_{\rm TV}\leq(({e^{\varepsilon}-1)}/({e^{\varepsilon}+1}))\,\big{\|}P_{0}-P_{1}\big{\|}_{\rm TV}\;, and equality is achieved by the binary mechanism.
This follows from Theorem 6 and explicitly computing the total variation achieved by the binary mechanism.
Information Preservation
In this section, we study the fundamental tradeoff between local privacy and mutual information. Consider a random variable distributed according to . The information content of is captured by information theoretic quantity called entropy
We are interested in releasing a differentially private version of represented by . The random variable should preserve the information content of as much as possible while meeting the local differential privacy constraints. Similar to the hypothesis testing setting, we will show that a variant of the binary mechanism is optimal in the high privacy regime and that the randomized response mechanism is optimal in the low privacy regime.
Let be a non-interactive privatization mechanism guaranteeing -local differential privacy. The output of the privatization mechanism is distributed according to the induced marginal given by
for . With a slight abuse of notation, we will use and to represent both probability distributions and probability mass functions. The information content in about is captured by the well celebrated information theoretic quantity called mutual information. The mutual information between and is given by
Notice that and is convex in (Cover and Thomas, 2012). To preserve the information context of , we wish to choose a privatization mechanism such that the mutual information between and is maximized subject to differential privacy constraints. In other words, we are interested in characterizing the optimal solution to
where is the set of all -locally differentially private mechanisms defined in (7). The above mutual information maximization problem can be thought of as a conditional entropy minimization problem since .
From the definition of , we have that
where and . Notice that , and by the log-sum inequality, is convex. Convexity and homogeneity together imply sublinearity. Therefore, Theorems 2 and 4 apply to and we have that staircase mechanisms are optimal.
2 Optimality of the binary mechanism
For a given , the binary mechanism for mutual information is a staircase mechanism with only two outputs (see Figure 2)
Observe that there are multiple valid choices for . Indeed, for any minimizing set , is also a minimizing set since . When there are multiple pairs, any pair can be chosen to define the binary mechanism. All valid binary mechanisms are equivalent from a utility maximization perspective.
In what follows, we will establish that this simple mechanism is optimal in the high privacy regime. Intuitively, in the high privacy regime, we cannot release more than one bit of information, and hence, the input alphabet is reduced to a binary output alphabet. In this case, it makes sense to partition the original alphabet in a way that preserves the information content of as much as possible. Indeed, our choice of in Equation (30) maximizes the information contained in the released bit because T\in\underset{A\subseteq{\cal X}}{\arg\max}|P(A)-1/2|=\underset{A\subseteq{\cal X}}{\arg\max}\big{(}-P(A)\log P(A)-P(A^{c})\log P(A^{c})\big{)} (see Section 9.1 for a proof).
For any distribution , there exists a positive that depends on such that for any positive , the binary mechanism maximizes the mutual information between the input and the output of a privatization mechanism over all -locally differentially private mechanisms.
This implies that in the high privacy regime, the binary mechanism is the optimal solution for (24).
Next, we show that the binary mechanism achieves near-optimal performance for all and even when . Let denote the maximum value of and denote the mutual information achieved by the binary mechanism given in (29). The next theorem shows that
For any and any distribution , the binary mechanism is an -approximation of the maximum mutual information between the input and the output of a privatization mechanism among all -locally differentially private mechanisms.
Note that for which is a commonly studied regime in differential privacy applications. Therefore, we can always use the simple binary mechanism and the resulting mutual information is at most a constant factor away from the optimal value.
3 Optimality of the randomized response mechanism
In the low privacy regime (), the randomized response mechanism defined in(21) is optimal.
There exists a positive that depends on such that for any distribution and all , the randomized response mechanism maximizes the mutual information between the input and the output of a privatization mechanism over all -locally differentially private mechanisms.
Observe that the randomized response is not a function of . Therefore, it can be used even when the distribution is unknown.
4 Numerical experiments
For instances of randomly chosen defined over an input alphabet of size , we compare the average performance of the binary, randomized response, and the geometric mechanisms to the average performance of the optimal mechanism. We plot (in Figure 6, left) the average performance measured by the normalized mutual information for all 4 mechanisms. The average is taken over the 100 random instances of . In the low privacy (large ) regime, the randomized response achieves optimal performance as predicted, which converges to one. In the high privacy regime (small ), the binary mechanism achieves optimal performance as predicted. In all regimes, both mechanisms significantly improve over the geometric mechanism.
To illustrate how much worse the binary and randomized response mechanisms can be (relative to the optimal staircase mechanism), we plot (in Figure 6, right) the mutual information under each mechanism normalized by the mutual information under the optimal staircase mechanism. This is done for all 100 instances of . In all instances, the binary mechanism is optimal for small and the randomized response mechanism is optimal for large . However, under the randomized response mechanism can be as bad as of the optimal one (for small ). Similarly, under the binary mechanism can be as bad as of the optimal one (for large ).
For , we plot (in Figure 7) the performance of the better between the binary and randomized response mechanisms normalized by the optimal mechanism for all randomly generated instances of . This mixed strategy achieves at least for (and for ) of the optimal mutual infirmation for all instances of . Moreover, it is not sensitive to the size of the alphabet .
5 Lower bounds
In this section, we provide converse results on the fundamental limit of locally differentially private mechanisms when utility is measured via mutual information.
For any , let be any conditional distribution that guarantees -local differential privacy. Then, for any distribution and any positive , there exists a positive that depends on and such that for any the following bound holds
This follows from Theorem 12 (optimality of the binary mechanism) and observing that the binary mechanism achieves
Similarly, in the low privacy regime, we can show the following converse result.
For any , let be any conditional distribution that guarantees -local differential privacy. Then, for any distribution and any positive , there exists a positive that depends on and such that for any the following bound holds
This follows directly from Theorem 14 (optimality of the randomized response mechanism) and observing that the randomized response mechanism achieves
Figure 8 illustrates the gap between the mutual information achieved under the geometric and the optimal mechanisms (the binary mechanism for the high privacy regime and the randomized response mechanism for the low privacy regime). For each instance of the randomly generated over an input of size , we plot the resulting mutual information as a function of for , and as a function of for . The binary and the randomized response mechanisms exhibit the scaling predicted by Equations (31) and (32), respectively.
Generalizations to approximate differential privacy
In this section, we generalize the results of the previous sections in the following ways.
We consider the class of utility functions that obey the data processing inequality. Consider the composition of two privatization mechanisms where the output of the first mechanism is applied to another mechanism . We say that a utility function obeys the data processing inequality if the following inequality holds for all and
The following proposition, proved in Section 10, shows that the class of utilities obeying the data processing inequality includes all the utility functions we studied in Section 2.
Any utility function that can be written in the form of , where is any sublinear function, obeys the data processing inequality.
We consider -differential privacy which generalizes the notion of -differential privacy. -differential privacy is commonly referred to as approximate differential privacy and it was first introduced in Dwork et al. (2006a). For the release of a random variable , we say that a mechanism is -locally differentially private if
for all and all . Note that -local differential privacy is a special case of -local differential privacy where .
We prove that the quaternary mechanism, defined in Equation (38), is optimal for any and any . This is different from the treatment conducted in the previous sections where we proved the optimality of the binary (randomized response) mechanism for sufficiently small (large) and .
The treatment in this section, even though more general than the one in previous sections in the ways described above, holds only for binary alphabets (i.e., ). Finding optimal privatization mechanisms under -local differential privacy for larger input alphabets (i.e., ) is an interesting open question. Unlike -local differential privacy, the privacy constraints under -local differential privacy no longer decompose into separate constraints on each output . This makes it difficult to generalize the techniques developed in previous sections of this paper. However, for the special case of binary input alphabets, we can prove the optimality of one mechanism for all values of and all utility functions that obey the data processing inequality.
For a binary random variable , the quaternary mechanism maps to a quaternary random variable and is defined as
In other words, the quaternary mechanism passes unchanged with probability and applies the binary mechanism (defined in previous sections) with probability . The main result of this section can be stated formally as follows.
If , then for any , any , and any utility that obeys the data processing inequality, the quaternary mechanism maximizes subject to , the set of all -locally differentially private mechanism.
It turns out that -local differential privacy imposes the following conditions on the error region of all -locally differentially private mechanisms
for any decision rule . These two conditions define an error region shown in Figure 9(b). Interestingly, the next theorem shows that the converse result is also true.
A mechanism is -locally differentially private if and only if .
The proof of the above theorem can be found in Kairouz et al. (2013). Notice that it is no coincidence that . This property will be essential in proving the optimality of the quaternary mechanism.
Theorem 19 allows us to benefit from the data processing inequality (DPI) and its converse, which follows from a celebrated result by Blackwell (1953). These inequalities, while simple by themselves, lead to surprisingly strong technical results. Indeed, there is a long line of such a tradition in the information theory literature (see Chapter 17 of Cover and Thomas (2012)). Consider two privatization mechanisms, and . Let and denote the output of the mechanisms and , respectively. We say that dominates if there exists a coupling of and such that forms a Markov chain. In other words, we say dominates if there exists a stochastic mapping such that .
A mechanism dominates a mechanism if and only if .
The proof of the above theorem can be found in Blackwell (1953). Observe that by Theorems 20 and 19, and the fact that , the quaternary mechanism dominates any other differentially private mechanism. In other words, for any differentially private mechanism , there exists a stochastic mapping such that . Therefore, for any and any utility function obeying the data processing inequality, we have that . This finishes the proof of Theorem 18.
Discussion
In this paper, we have considered a broad class of convex utility functions and assumed a setting where individuals cannot collaborate (communicate with each other) before releasing their data. It turns out that the techniques developed in this work can be generalized to find optimal privatization mechanisms in a setting where different individuals can collaborate interactively and each individual can be an analyst (Kairouz et al., 2014b).
Binary hypothesis testing and information preservation are two canonical problems with a wide range of applications. However, there are a number of non-trivial and interesting extensions to our work.
Correlation among data. In some scenarios the ’s could be correlated (e.g., when different individuals observe different functions of the same random variable). In this case, the data analyst is interested in inferring whether the data was generated from or , where is one of two possible joint priors on . This is a challenging problem because knowing reveals information about , . Therefore, the utility maximization problems for different individuals are coupled in this setting.
Robust and -ary hypothesis testing. In some cases the data analyst need not have access to and , but rather to two classes of prior distribution and for and . Such problems are studied under the rubric of universal hypothesis testing and robust hypothesis testing. One possible direction is to select the privatization mechanism that maximizes the worst case utility: , where is the induced marginal under .
The more general problem of private -ary hypothesis testing is also an interesting but challenging one. In this setting, the ’s can follow one of distributions , , …, . Consequently, the ’s can follow one of distributions , , …, . In this case, the utility can be defined as the average -divergence between any two distributions: , or the worst case one: .
Non-exchangeable utility functions. The utility studied in this paper was measured by functions that are exchangeable, i.e. the utility does not depend on the naming (labelling) or topology of the private and privatized data ( and ). This made sense for statistical learning applications that depend on information theoretic quantities such as -divergences and mutual information. However, in some other applications, the utility might be defined over in a metric space, where there exists a natural measure of distance (or distortion) between the data points. In this case, we can formulate the problem as a distortion minimization one
Proof of Theorems 2 and 4
We start the proof with a few definitions, a lemma, and a general result that applies to any convex utility function that obeys a mild assumption.
Naturally, one would expect that if we delete the zero columns of a privatization mechanism to obtain a new privatization mechanism , we would still get the same utility. This is because a “reasonable” utility function should not depend on output alphabets with zero probability.
If is a convex utility function that satisfies Assumption 1, then the following holds
We start the proof of Theorem 21 with an important lemma the proof of which is presented in Section 7.3.
2 Proof of Lemma 22
Proof Assume that and for some . It is obvious that is not satisfied. Therefore, is not a locally differentially private mechanism.
3 Proof of Lemma 23
Proof By definition, is differentially private if for all , and all we have that . By choosing for some the first direction of the above lemma is proven. In order to prove the other direction, assume that for all and all we have that . Then for any , the following holds
Moreover, since is a row stochastic matrix (a conditional distribution) it satisfies , where 1 represents the all ones vector of appropriate dimensions. This condition can be rewritten as
In what follows, the term linearly independent inequality constraints refers to linear independent rows of .
If , then linearly independent inequality constraints are achieved with equality.
If , then at most linearly independent inequality constraints can be achieved with equality.
Proofs for Hypothesis Testing
Let . In other words, . Recall that for a given and , the binary mechanism is defined as a staircase mechanism with only two outputs satisfying
Moreover, the above upper and lower bounds are achieved by the binary mechanism given in (55).
Observe that because and , the direction of the above inequalities makes sense.
For any other mechanism satisfying the -local differential privacy for , the above lemma implies that for any choice of the rejection region , the slopes satisfy and . In the hypothesis testing region, this implies that
From Theorem 2.5 of Kairouz et al. (2013), we know that this implies a certain Markov property. Precisely, let denote the output of the binary mechanism, and denote the output of any -local differentially private mechanism. Then, it follows that there exists a coupling of and such that they form a Markov chain: ––, where is the hypothesis on whether the data was generated from or . Then, it follows from the data processing inequality of -divergences that
It follows that there is no algorithm with larger -divergence than the binary mechanism.
2 Proof of Lemma 24
We start by showing that the binary mechanism achieves the upper and lower bounds presented in the statement of the lemma. Let and denote the induced marginals under the binary mechanism given in (55). For , we have that
Computing and we see that the binary mechanism achieves the upper and lower bounds for all values of .
for all and sufficiently small . The above expression can be alternatively written as
Using the fact that for all , the inequality in (8.2) holds true for all whenever . If , then the inequality in (8.2) holds true for all , where
On the other hand, it is easy to verify that when , we have that
for all and sufficiently small . The above expression can be alternatively written as
Using the fact that for all , then for sufficiently small , Equation (8.2) can be written as
This proves that there exists a positive such that the left hand side of Equation (8.2) is positive for all . On the other hand, it is easy to verify that when , we have that
3 Proof of Theorem 6
The total variation (TV) distance is a special case of -divergence with . Therefore, by Theorem 4, we have that
where \mu_{j}=\mu\left(S^{(k)}_{j}\right)=\frac{1}{2}\big{|}\sum_{i\in[k]}\left(P_{0}(x_{i})-P_{1}(x_{i})\right)S^{(k)}_{ij}\big{|} for and is the staircase pattern matrix given in Definition 3.
The polytope given by and is a closed and bounded one. Thus, there is no duality gap and solving the above linear program is equivalent to solving its dual
Note that any satisfiable solution to (69) provides an upper bound to (68) since . Let and for . Consider the following choice of dual variable
We claim that is a feasible dual variable for all values of . In order to prove that is a feasible dual variable, we show that for all and all . For all , we have that
Notice that we have arranged the equation such that all the summands are non-negative. Without loss of generality, we will assume that
From the equality and the fact that for all and , it follows that
This is true because the right-hand side is minimized when the ’s for are all equal to 1 and the left-hand side is maximized when the ’s for are all equal to . Now, (72) can be written as
where the last inequality follows from (73).
This establishes the satisfiability of for all which, in turn, shows that (71) is indeed an upper bound to the primal problem. It remains to show that this upper bound can be achieved via the binary mechanism. To this extent, recall that for a given and , the binary mechanism is defined as a staircase mechanism with only two outputs satisfying
Computing the TV distance between and under (78), we get that
Hence, the binary mechanism in (78) achieves the upper bound in (71). This proves the optimality of the binary mechanism for all .
4 Proof of Theorem 8
The Kullback-Leibler (KL) divergence is a special -divergence with . Therefore, by Theorem 4, we have that
where for and is the staircase pattern matrix given in Definition 3.
The polytope given by and is a closed and bounded one. Thus, there is no duality gap and solving the above linear program is equivalent to solving its dual
Note that any satisfiable solution to (81) provides an upper bound to (80) since . Let and for . Set for , and consider the following choice of dual variable
for . Observe that since we have that and since
We claim that is a feasible dual variable for sufficiently large . In order to prove that is a feasible dual variable, we show that for all for all , where is a positive quantity that depends on the priors and . Using the facts that
Assume, to begin with, that . Then
Notice that for , by the log-sum inequality. Therefore, there exists a such that for all . If , it is not hard to check that for all . In this case, set . This establishes the satisfiability of for all . The satisfiability of , in turn, shows that (84) is indeed an upper bound to the primal problem. It remains to show that this upper bound can be achieved via the randomized response. To this extent, recall that the randomized response is given by
Computing the KL divergence between and under (91), we get that
Hence, the randomized response in (91) achieves the upper bound in (84). This proves the optimality of the randomized response for all .
5 Proof of Theorem 7
We start the proof with a fundamental bound on the symmetrized KL divergence between the and .
For any , let be any conditional distribution that guarantees differential privacy. Then for any pair of distributions and , the induced marginals and must satisfy the bound
The above lemma appears as Theorem 1 in Duchi et al. (2013). By Lemma 25, we have that
Let and be the marginals obtained by using the binary mechanism given in (18). By Corollary 11, we have that \|M_{0}^{B}-M_{1}^{B}\|_{\rm TV}=\frac{e^{\varepsilon}-1}{e^{\varepsilon}+1}\|P_{0}-P_{1}\big{\|}_{\rm TV}. Consequently, by applying Pinsker’s inequality to the KL divergence between and we get that
Combining (94) and (95) we get that which was to be shown.
Proofs for Information Preservation
where for and is the staircase pattern matrix given in Definition 3. The polytope given by and is a closed and bounded one. Thus, there is no duality gap and solving the above linear program is equivalent to solving its dual
Note that any satisfiable solution to (97) provides an upper bound to (96) since . Let and set and . Consider the following choice of dual variable
Observe that since , , and
We claim that is a feasible dual variable for sufficiently small . In order to prove that is a feasible dual variable, we show that for all and all , where is a positive quantity that depends on . Using the following facts
where we have used the facts that , , and
Let , , and for . On the one hand, and are monotonically increasing over and monotonically decreasing over but on the other hand, is monotonically decreasing over and monotonically increasing over . Therefore,
Since the set was chosen so that it maximizes , we have that for all . Assume, to begin with, that . Then by the uniqueness of the maximizer assumption stated in the theorem, we have that .
and thus, there exists an that depends on such that for all . If , it is not hard to check that for all . This establishes the satisfiability of for all which proves an upper bound on the primal problem (given in (100)). It remains to show that the upper bound can be indeed achieved via the binary mechanism. To this extent, recall that the binary mechanism is given by
Computing the under (111), we get that
Hence, the binary mechanism in (111) achieves the upper bound in (100). This proves the optimality of the binary mechanism for all .
2 Proof of Theorem 13
We start by proving an upper bound on which is tight for . Recall that by Theorem 4, we have that
, and is the staircase pattern matrix given in Definition 3.
For all distributions and all , the following bound holds
The proof of this lemma is given in Section 9.3. In what follows, we will make the dependency of on and explicit by writing for . From the proof of Theorem 12, we have that the partition set defined in (30) is given by . It is easy to check that the binary mechanism given in (29) achieves the following utility
For all distributions and all , the following bound holds
The proof of the above lemma is given in Section 9.4. Combining the results of lemmas 26 and 27 we get that
for all . This concludes the proof.
3 Proof of Lemma 26
To begin with, since and is homogenous, we have that . Therefore, the following two maximization problems are equivalent
Consider the following choice of dual variable . We claim that is satisfiable. This can be easily verified by noting that
where the last inequality holds since (this is true because we have deleted the first column of ). Therefore, which was to be shown.
4 Proof of Lemma 27
Let be the function obtained by replacing by the continuous variable in . Taking the derivative of with respect to we get
Observe that for all
for all , and for . Combining this with the fact that we get that for all and for any fixed , is maximized at .
Set and fix an . We will treat the following three cases separately.
Case 1: .
Let . Then and .
Proof Observe that for all and . The function decreases over the range . Thus, for all , because . This proves that and for all , . Using a similar approach, we can show that and for all , . Therefore, . This proves the first part of the claim. The function increases over the range . Thus, for all , because . On the other hand, note that decreases over the range which includes the range . Thus, for all such that , because . This proves that . Using the above claim, we can conclude that the partition set defined in (30) is equal to and
Case 2: . Using the first part of the proof of Claim 4, we can show that if , then . Therefore, the partition set defined in (30) is equal to and
There exists a set such that .
Proof Without loss of generality, assume that the sequence , , is sorted in increasing order. Let . From the definition of , and . Further,
and since , . Therefore, if , then .
Let . We claim that . The upper bound on follows immediately from its definition. To prove the lower bound on , consider the set given in Claim 5 and observe that
All the inequalities follow from Claim 5 and the fact that .
Since , we have that . Moreover, the function decreases over the range and increases over the range . Therefore, and . Putting it all together, we have that
5 Proof of Theorem 14
where for and is the staircase pattern matrix given in Definition 3. The polytope given by and is a closed and bounded one. Thus, there is no duality gap and solving the above linear program is equivalent to solving its dual
Note that any satisfiable solution to (128) provides an upper bound to (127) since . Let and set for . Consider the following choice of dual variable
for . Observe that since we have that and since
We claim that is a feasible dual variable for sufficiently large . In order to prove that is a feasible dual variable, we show that for all and all , where is a positive quantity that depends on . Using the fact that
Assume, to begin with, that . Then
Notice that for , . Therefore, there exists an such that for all . If , it is not hard to check that for all . This establishes the satisfiability of for all . It remains to show that the upper bound can be indeed achieved via the randomized response mechanism. To this extent, recall that the randomized response is given by
Computing the under (138), we get that
Hence, the randomized response mechanism achieves the upper bound (131). This proves the optimality of the randomized response for all .
Proof of Proposition 17
where the inequality follows from sublinearity and the second to last equality follows from the row stochastic property of . Therefore, obeys the data processing inequality.
This research is supported in part by NSF CISE award CCF-1422278, NSF SaTC award CNS-1527754, NSF CMMI award MES-1450848 and NSF ENG award ECCS-1232257.