On the `Semantics' of Differential Privacy: A Bayesian Formulation
Shiva Prasad Kasiviswanathan, Adam Smith
Introduction
Privacy is an increasingly important aspect of data publishing. Reasoning about privacy, however, is fraught with pitfalls. One of the most significant is the auxiliary information (also called external knowledge, background knowledge, or side information) that an adversary gleans from other channels such as the web, public records, or domain knowledge. Schemes that retain privacy guarantees in the presence of independent releases are said to compose securely. The terminology, borrowed from cryptography (which borrowed, in turn, from software engineering), stems from the fact that schemes that compose securely can be designed in a stand-alone fashion without explicitly taking other releases into account. Thus, understanding independent releases is essential for enabling modular design. In fact, one would like schemes that compose securely not only with independent instances of themselves, but with arbitrary external knowledge.
Certain randomization-based notions of privacy (such as differential privacy, due to Dwork, McSherry, Nissim, and Smith ) are viewed as providing meaningful guarantees even in the presence of arbitrary side information. In this paper. we give a precise formulation of this statement. First, we provide a Bayesian formulation of “pure” differential privacy which explicitly models side information. Second, we prove that the relaxed definitions of Blum et al. , Dwork et al. and Machanavajjhala et al. imply the Bayesian formulation. The proof is non-trivial, and relies on the “continuity” of Bayes’ rule with respect to certain distance measures on probability distributions. Our result means that techniques satisfying the relaxed definitions can be used with the same sort of assurances as in the case of pure differentially-private algorithms, as long parameters are set appropriately. Specifically, -differential privacy provides meaningful guarantees whenever , the additive error parameter, is smaller than about , where is the size of the data set.
After introducing the basic definitions, we state and discuss our main results in Section 2. In Section 2.1, we relate our approach to other efforts—subsequent to the initial version of this work—that sought to pin down mathematical precise formulations of the “meaning” of differential privacy. Section 3 proves our main theorems. Along the way, we develop lemmas about -indistinguishability—the notion of similarity that underlies -differential privacy—-that we believe are of independent interest. The most useful of these, which we dub the Conditioning Lemma, is given in Section 3.3. Finally, we provide further discussion of our approach in Section 4.
1 Differential Privacy
Semantics of Differential Privacy
There is a crisp, semantically-flavoredThe use of the term “semantic” for definitions that deal directly with adversarial knowledge dates back to semantic security of encryption . interpretation of differential privacy, due to Dwork and McSherry, explained in : Regardless of external knowledge, an adversary with access to the sanitized database draws the same conclusions whether or not my data is included in the original database. One might hope for a stronger statement, namely that the adversary draws the same conclusions whether or not the data is used at all. However, such a strong statement is impossible to provide in the presence of arbitrary external information (Dwork and Naor , Dwork ; see also Kifer and Machanavajjhala ), as illustrated by the following example.
Consider a clinical study that explores the relationship between smoking and lung disease. A health insurance company who had no a priori understanding of that relationship might dramatically alter its “beliefs” (as encoded by insurance premiums) to account for the results of the study. The study would cause the company to raise premiums for smokers and lower them for nonsmokers, regardless of whether they participated in the study. In this case, the conclusions drawn by the company about the riskiness of any one individual (say Alice) are strongly affected by the results of the study. This occurs regardless of whether Alice’s data are included in the study.
When the mechanism is interactive, the definition of depends on the adversary’s choices; for legibility we omit the dependence on the adversary in the notation. Also, for simplicity, we discuss only discrete probability distributions. Our results extend directly to the interactive, continuous case.
Given a particular transcript , we say privacy has been breached if the adversary would draw different conclusions about the world and, in particular, about a person , depending on whether or not ’s data was used. One could formally define “different” in many ways. In this paper, we choose a weak (but popular) measure of distance between probability distributions, namely statistical difference. We say the adversary has learned something, if for any transcript the distributions and are far apart in statistical difference. We would like to avoid this from happening for any potential participant. This is captured by the following definition.
Our formulation of semantic privacy is inspired by Dwork and McSherry’s interpretation of differential privacy . We now formally show that the notions of -differential privacy (Definition 1.1) and -semantic privacy (Definition 2.1) are essentially equivalent.
For all , -differential privacy implies -semantic privacy, where . For , -semantic privacy implies -differential privacy.
The proof of this and all other results in this section may be found in Section 3.
We can extend the previous Bayesian formulation to capture situations where bad events can occur with some negligible probability. Specifically, we formulate -semantic privacy and show that it is closely related to -differential privacy.
The -privacy definition is most interesting when , since every -private algorithm is also -differentially private. Below, we assume . In fact, many of our results are meaningful only when is less than , while must generally be much larger than to allow for useful algorithms.
If and , then ()-differential privacy implies -semantic privacy on databases of size with and .
If and , then -semantic privacy implies -differential privacy.
In Appendix B, we discuss a stronger notion of -semantic privacy and show that -differential privacy need not imply this stronger semantic privacy guarantee.
The implications in Theorems 2.2 and 2.4 would not hold if differential privacy were defined in terms of statistical difference (total variation distance) or mutual information instead of the multiplicative metric used in Definitions 1.1 and 1.2. For example, one could change the last line of the Definition 1.2 to
In the original paper on differential privacy, Dwork et al. defined a notion of “semantic” privacy that involved comparing the prior and posterior distributions of the adversary. In the language of the preceding section, they require that for a subclass of belief distributions, called “informed beliefs”, in which all but one of the data set entries are fixed (constant). They show that this definition is equivalent to differential privacy. Kifer and Machanavajjhala use this prior-to-posterior approach to generalize differential privacy to other settings.
However, the impossibility results of Dwork and Naor and Kifer and Machanavajjhala , exemplified by the smoking example in Example 1, imply that no mechanism that provides nontrivial information about the data set satisfies such a prior-to-posterior definition for all distributions.
This impossibility motivated the posterior-to-posterior comparison espoused in this paper, and subsequently generalized by Bassily et al. . In contrast to the prior-to-posterior approach, the framework discussed in this paper does generalize to arbitrary distributions on the data (and, hence, to arbitrary side information). Bassily et al. suggest the term “inference-based” for definitions which explicitly discuss the posterior distributions constructed by Bayesian adversaries.
Hypothesis Testing.
where is the significance level (maximum type-I error) and is the power (maximum type-II error) of the test. In other words, the test rejects the hypothesis with approximately the same probability regardless of whether the hypothesis is true. This perspective was extended to -differential privacy by Hall et al. .
This is a reasonable requirement. Note, however, that it holds only for product distributions, which limits its applicability. More importantly, a very similar statement can be proven for the statistical difference-based definition discussed in Remark 1. Specifically, one can show that
when the mechanism satisfies the definition of Remark 1. Equation (4) has the same natural language interpretation as equation (5), namely, “the test rejects the hypothesis with approximately the same probability regardless of whether the hypothesis is true”. However, as mentioned in the Remark 1, the statistical difference-based definition allows mechanisms that publish detailed personal data in the clear. This makes the meaning of a hypothesis-testing-based definition hard to evaluate intuitively. We hope the definitions provided here are easier to interpret.
Proofs of Main Results
We begin this section by defining -indistinguishability and stating a few of its basic properties (Section 3.1, with proofs in Appendix A). Section 3.2 gives the proof of our main result for -differential privacy. In Section 3.3 we state and prove the Conditioning Lemma, the main tool which allows us to prove our results about -differential privacy (Section 3.4).
The relaxed notions of -differential privacy implicitly uses a two-parameter distance measure on probability distributions (or random variables) which we call -indistinguishability. In this section, we develop a few basic properties of this measure. These properties listed in Lemma 3.3 will play an important role in establishing the proofs of Theorems 2.2 and 2.4
Two random variables taking values in a set are -indistinguishable if for all sets ,
We will also be using a variant of -indistinguishability, which we call point-wise -indistinguishability. Lemma 3.3 (Parts 1 and 2) shows that -indistinguishability and point-wise -indistinguishability are almost equivalent.
Two random variables and are point-wise -indistinguishable if with probability at least over drawn from either or , we have:
Indistinguishability satisfies the following properties:
If are point-wise -indistinguishable then they are -indistinguishable.
If are -indistinguishable then they are point-wise -indistinguishable.
Let be a random variable on . Suppose that for every , and are -indistinguishable (for some randomized algorithms and ). Then the pairs and are -indistinguishable.
Let be a random variable. Suppose with probability at least over , and are -indistinguishable (for some randomized algorithms and ). Then the pairs and are -indistinguishable.
If are -indistinguishable (or are point-wise -indistinguishable), then , where .
2 Case of ϵitalic-ϵ\epsilon-Differential Privacy: Proof of Theorem 2.2
-differential privacy implies -semantic privacy, where . -semantic privacy implies -differential privacy as long as .
This implies that the random variables (distributions) and are point-wise -indistinguishable. Applying Lemma 3.3 (Part 5) with , gives . Repeating the above arguments for every belief distribution, for every , and for every , shows that is -semantically private.
3 A Useful Tool: The Conditioning Lemma
We will use the following lemma to establish connections between -differential privacy and -semantic privacy. Let denote the conditional distribution of given that for jointly distributed random variables and .
Suppose the pair of random variables is -indistinguishable from the pair . Then, for and for every , the following holds: with probability at least over (or, alternatively, over ), the random variables and are -indistinguishable, where .
We can satisfy the conditions of the preceding lemma by setting for any constant . However, the proof of our main theorem will use a slightly different setting (with smaller than ).
Let and take values in the set . In the remainder of the proof, we will use the notation for and for . Define,
To prove the lemma, it suffices to show that the probabilities and are each at most . To do so, we first consider the set
We will separately bound the probabilities of , and .
To bound the mass of , note that and are -indistinguishable (since they are functions of and )Note: Even if we started with the stronger assumption that the pairs and are point-wise indistinguishable, we would still have to make a nontrivial argument to bound , since point-wise indistinguishability is not, in general, closed under postprocessing.. Since -indistinguishability implies point-wise -indistinguishability (Lemma 3.3, Part 2), we have
We now turn to . For each , let be any set that witnesses ’s membership in (that is, for which exceeds ). Consider the critical set
Intuitively, this set will have large mass if does. Specifically, by the definition of , we get a lower bound on the probability of :
Because does not contain points in , we know that . Substituting this into the bound above and using the fact that and , we get
By -indistinguishability, . Combining the upper and lower bounds on the probability that , we have , which implies that
By a similar argument, one gets that Finally,
By symmetry, we also have . Therefore, with probability at least , and are -indistinguishable, as claimed. ∎
4 The General Case: Proof of Theorem 2.4
If and , then ()-differential privacy implies -semantic privacy on databases of size with and .
If and , then -semantic privacy implies -differential privacy.
To complete the proof of (1), recall that -indistinguishability implies statistical distance at most .
Further Discussion
Theorem 2.4 states that the relaxations of differential privacy in some previous work still provide meaningful guarantees in the face of arbitrary side information. This is not the case for all possible relaxations, even very natural ones, as noted in Remark 1.
We first define a weakening of Definition 2.3 so that it only holds for specific belief distributions.
Let be a randomized algorithm. Let
We now discuss a simple consequence of the above theorem to the technique of adding noise according to local sensitivity of a function.
Let denote the Laplacian distribution. This distribution has density function , mean , and standard deviation . Using the Laplacian noise addition procedure of , along with Theorem 4.2 we getSimilar corollaries could be derived for other differential privacy mechanisms like those that add Gaussian noise instead of Laplacian noise.,
The approach discussed here was generalized significantly by Bassily et al. ; we refer to their work for a detailed discussion.
Acknowledgements
We are grateful for helpful discussions with Cynthia Dwork, Daniel Kifer, Ashwin Machanvajjhala, Frank McSherry, Moni Naor, Kobbi Nissim, and Sofya Raskhodnikova.
References
Appendix
Appendix A Proof of Lemma 3.3
Proof of Part 1. Let be the set of bad values of , that is
By definition, . Now consider any set of outcomes.
The first term is at most . Hence, , as required. The case of is symmetric. Therefore, and are -indistinguishable.
Proof of Part 2. Let . Then
By indistinguishability, we have . Equivalently,
Now consider the set . A symmetric argument to the one above shows that . Again using indistinguishability, we get
The bound of (8) is always larger than that of (7), so we have . We can get the same bound on by symmetry. Therefore, with probability at least for drawn from the distribution of either or we have: .
Proof of Part 3. Let and be random variables on . Let be an arbitrary subset of and, for every , define .
By symmetry, we also have . Since the above inequalities hold for every selection of , implies that and are -indistinguishable.
Proof of Part 4. Let and be random variables on . Let be the set of ’s for which . Now, let be an arbitrary subset of and, for every , define .
By symmetry, we also have . Since the above inequalities hold for every selection of , implies that and are -indistinguishable.
Proof of Part 5. Let and be random variables on . By definition . For any set ,
This implies that . Since the above inequality holds for every , it immediately follows that the statistical difference between and is at most . ∎
Appendix B Another View of Semantic Privacy
In this section, we discuss another possible definition of -semantic privacy. Even though this definition seems to be the more desirable one, it also seems hard to achieve.
We prove that if the adversary has arbitrary beliefs, then -differential privacy doesn’t provide any reasonable reality-oblivious -semantic privacy guarantee.
()-differential privacy does not imply reality-oblivious -semantic privacy for any reasonable values of and .
The counterexample of Theorem Theorem A.2 implies that adversaries whose belief distribution is very different from the real database may observe a large change in their posterior distributions. We do not consider this a ‘violation of “privacy”, since the issue lies in the incorrect beliefs, not the mechanism per se.