Hypothesis Testing Interpretations and Renyi Differential Privacy
Borja Balle, Gilles Barthe, Marco Gaboardi, Justin Hsu, Tetsuya Sato
Introduction
Differential privacy [Dwork et al., 2006] is a formal notion of data privacy that enables accurate statistical analyses on populations while preserving privacy for individuals contributing their data. Differential privacy is supported by a rich theory, with sophisticated algorithms for common data analysis tasks and composition theorems to simplify the design and formal analysis of new private algorithms. This theory has helped make differential privacy a de facto standard for privacy-preserving data analysis. Over the last years, differential privacy has found use in the private sector [Kenthapadi et al., 2019] by companies such as Google [Erlingsson et al., 2014, Papernot et al., 2018], Apple [team at Apple, 2017], and Uber [Johnson et al., 2018], and in the public sector by agencies such as the U.S. Census Bureau [Abowd, 2018, Garfinkel et al., 2018].
A common challenge faced across all uses of differential privacy is to explain its guarantees to users and policy makers. Indeed, differential privacy first emerged in the theoretical computer science community, and was only subsequently considered in other research areas interested in data privacy. For this reason, several works have attempted to provide different interpretations of the semantics of differential privacy in an effort to make it more accessible.
One approach that has been particularly successful, especially when introducing differential privacy to people versed in statistical data analysis, is the hypothesis testing interpretation of differential privacy [Wasserman and Zhou, 2010, Kairouz et al., 2015]. One can imagine an experiment where one wants to test, based on the output of a differentially private mechanism, the null hypothesis that an individual has contributed her data to a particular dataset . One can also imagine that an alternative hypothesis is that the individual has not contributed her data. Then, the definition of differential privacy guarantees—and is in fact equivalent to requiring—that every hypothesis test has either low significance (it has a high rate of Type I errors), or low power (it has a high rate of Type II errors). Under this interpretation, the privacy parameters control the tradeoff between significance and power.
Recently, several variants of differential privacy have been proposed [Dwork and Rothblum, 2016, Bun and Steinke, 2016, Mironov, 2017, Bun et al., 2018, Dong et al., 2019]. Most of these new privacy definitions have been proposed as privacy notions with better composition properties than differential privacy. Having better composition can become a key advantage when a high number of data accesses is needed for a single analysis (e.g., in private deep learning [Abadi et al., 2016]). Technically, many of these variants are formulated as bounds on the Rényi divergence between the distribution obtained when running a private mechanism over a dataset where an individual has contributed her data versus the case when the private mechanism is run over the dataset where ’s data is removed.
In this work we develop some analytical tools to study the hypothesis testing interpretation of privacy definitions based on statistical divergences. The first notion we introduce is the concept of -cut of a divergence. Intuitively this notion corresponds to restricting the distributions that are input to a divergence to a finite domain of cardinality . We can think about the functions implementing the restrictions as (probabilistic) decision rules with possible outcomes. The second notion we introduce is the concept of -generatedness for a divergence. Intuitively, a divergence is -generated if it is equal to its -cut. This notion expresses the number of decisions that are needed in decision rules to fully characterize the divergence.
We use these two analytical tools to show that a privacy definition based on a divergence has an hypothesis testing interpretation if and only if it is -generated. We show that the divergence characterizing differential privacy is indeed -generated and that the notion of -generatedness corresponds to the notion of privacy regions introduced in [Kairouz et al., 2015]. On the negative side we show formally that variants of differential privacy based on the Rényi divergence do not admit directly a hypothesis testing interpretation because the Rényi divergence is exactly -generated (where by we mean that it is infinitely, but countably generated). Nevertheless, we show that one can achieve the hypothesis testing interpretation by considering the -cut of the Rényi divergence. Intuitively, this says that to characterize relaxations of differential privacy based on the Rényi divergence through an experiment similar to the one used in the hypothesis testing interpretation, one needs either to restrict the distinguishability power of the divergence or to consider an infinite number of possible hypothesis. This shows a semantics separation between standard differential privacy and relaxations based on Rényi divergence.
In addition, we use the analytical tools we develop to study the relations between different privacy definitions. Specifically, we use the -cut of Rényi divergence to give better conversion rules from Rényi differential privacy to -differential privacy, and to study the relations with Gaussian Differential Privacy [Dong et al., 2019] another formal definition of privacy inspired by the hypothesis testing interpretation which was recently proposed.
Finally, we study a sufficient condition to guarantee that a divergence is -generated: divergences defined as a supremum of a quasi-convex function over probabilities of -partitions are -generated. This allows one to construct divergences supporting the hypothesis testing interpretation by requiring them to be defined through an function giving a -generated divergence. The condition is also necessary for quasi-convex divergences, characterizing -generation for all quasi-convex divergences.
We first introduce the notions of -cut and -generatedness for divergences. These notions allow one to measure the power of divergences in terms of the number of possible decisions that are needed in a test to fully characterize the divergence.
We show that the divergence used to characterize differential privacy is -generated, supporting the usual hypothesis testing interpretation of differential privacy
We show that Rényi divergence is -generated, ruling out a direct hypothesis testing interpretation for privacy notions based on it. Nevertheless, we show that one can achieve the hypothesis testing interpretation by considering the -cut of Rényi divergence.
We use our analytic tools to study other notions of privacy and to give better conversion rules between Rényi differential privacy and -differential privacy.
We give sufficient and necessary conditions for a quasi-convex divergence to be -generated.
Background: hypothesis testing, privacy, and Rényi divergences
[Wasserman and Zhou, 2010, Kairouz et al., 2015] proposed a useful interpretation of this guarantee in terms of hypothesis testing. Suppose that and are adjacent inputs. The observer sees the output of running a private mechanism on one of these inputs—but does not see the particular input—and wants to guess whether the input was or .
In the terminology of hypothesis testing, let be an output of a randomized mechanism , and take the following null and alternative hypotheses:
H0 : came from , H1 : came from .
One simple way of deciding between the two hypotheses is to fix a rejection region ; if the observation is in then the null hypothesis is rejected, and if the observation is not in then the null hypothesis is not rejected. This is an example of a deterministic decision rule.
Each decision rule can err in two possible ways. A false alarm (i.e. Type I error) is when the null hypothesis is true but rejected. This error rate is defined as . On the other hand, the decision rule may incorrectly fail to reject the null hypothesis, a false negative (i.e. Type II error). The probability of missed detection is defined as . There is a natural tradeoff between these two errors—a rule with a larger rejection region will be less likely to incorrectly fail to reject but more likely to incorrectly reject, while a rule with a smaller rejection region will be less likely to incorrectly reject but more likely to incorrectly fail to reject.
Differential privacy can now be reformulated in terms of these error rates.
Intuitively, the lower bound on the sum of the two error rates means that no decision rule is capable of achieving low Type I error and low Type II error simultaneously. Thus, the output distributions from any two adjacent inputs are statistically hard to distinguish.
Following [Kairouz et al., 2015], we can also reformulate the definition of differential privacy in terms of a privacy region describing the attainable pairs of Type I and Type II errors.
where the privacy region is defined as:
Since the original introduction of differential privacy, researchers have proposed several other variants based on Rényi divergence. The central question of this paper is: can we give similar hypothesis testing interpretations to these (and other) variants of differential privacy?
2 Variants of differential privacy based on Rényi divergence
We recall here notions of differential privacy based on Rényi divergence.
Let . The Rényi divergence of order between two probability distributions and on a space is defined by:
The above definition does not consider the cases and . However we can see as a function of for fixed distributions and consider the limits to get:
The first limit is the well-known KL divergence, while the second limit is the max divergence that bounds the pointwise ratio of probabilities; standard -differential privacy bounds this divergence on distributions from adjacent inputs.
There are several notions of differential privacy based on Rényi divergence, differing in whether the bound holds for all orders or just some orders. The first notion we consider is Rényi Differential Privacy (RDP) [Mironov, 2017].
Renyi Differential privacy considers a fixed value of . In contrast, zero-Concentrated Differential Privacy (zCDP) [Bun and Steinke, 2016], a simplification of Concentrated Differential Privacy (CDP) [Dwork and Rothblum, 2016], quantifies over all possible .
Truncated Concentrated Differential Privacy (tCDP) [Bun et al., 2018] quantifies over all below a given threshold.
These notions are all motivated by bounds on the privacy loss of a randomized algorithm. This quantity is defined by
where and are two adjacent inputs. Intuitively, the privacy loss measures how much information is revealed by an output . While output values with a large privacy loss are highly revealing—they are far more likely to result from a private input rather than a different private input —if these outputs are only seen with small probability then it may be reasonable to discount their influence. Each of the privacy definitions above bounds different moments of this privacy loss, treated as a random variable when is drawn from the output of the algorithm on input . The following table summarizes these bounds.
In particular, DP bounds the maximum value of the privacy loss,Technically speaking, this is true only for sufficiently well-behaved distributions [Meiser, 2018]. -RDP bounds the -moment, zCDP bounds all moments, and -tCDP bounds the moments up to some cutoff . Many conversions are known between these definitions; for instance, RDP, zCDP, and tCDP are known to sit between and -differential privacy in terms of expressivity, up to some modification in the parameters. While this means that RDP, zCDP, and tCDP can sometimes be analyzed by reduction to standard differential privacy, converting between the different notions requires weakening the parameters and often the privacy analysis is simpler or more precise when working with RDP, zCDP, or tCDP directly. The interested reader can refer to the original papers [Bun and Steinke, 2016, Mironov, 2017, Bun et al., 2018].
k𝑘k-generated divergences
2 Divergences between distributions
We start from a very general definition of divergences. Our notation includes the domain of definition of the divergence; this distinction will be important when introducing the concept of -generatedness.
A divergence is a family of functions
We use the notation to denote the divergence between distributions and over .
Our notion of divergence subsumes the general notion of -divergence from the literature [Csiszár, 1963, Csiszàr and Shields, 2004]. In particular, this includes the -divergence [Barthe and Olmedo, 2013] used to formulate -differential privacy:
Many useful properties of divergences have been explored in the literature. Our technical development will involve the following two properties.
A divergence is quasi-convex iff for every such that and every discrete set ,
These properties are satisfied by many common divergences. Besides Rényi divergences, they also hold for all -divergences [Csiszár, 1963, Csiszàr and Shields, 2004]. We will consider only divergences satisfying them in the following.
3 k𝑘k-cuts of divergences
We now introduce a technical construction that will be useful in the rest of the paper.
For divergences that satisfy the data-processing inequality, then the -cut is well-defined: it does not depend on the choice of .
If a divergence satisfies the data-processing inequality, we have the inequality and the equality for any set with .
So, without loss of generality in the sequel we will refer to this as “the” -cut.
Another interesting property of -cuts is that a -cut of a divergence satisfies the data-processing inequality, even if the original divergence does not satisfy it.
Without loss of generality, we can assume the function in the definition of a -cut to be deterministic. This can be proved by a weak version of Birkhoff-von Neumann theorem, which decomposes every probabilistic decision rule into a convex combination of deterministic ones.
This fact, allow us to consider simplified formulations of a -cut of a divergence. Examples of this fact that will be useful in the sequel are the -cut and -cut of the Rényi divergence of order . These can be reformulated as follows:
4 k𝑘k-generatedness of divergences
We now introduce the notion of -generatedness. Informally, -generatedness is a measure of the number of decisions that are needed in an hypothesis test to characterize a divergence.
-generatedness can also be reformulated as follows:
The following basic properties hold for all -generated divergences.
If is -generated, then it is also -generated.
If has the data-processing inequality, then it is at least -generated.
Every -cut of a divergence is -generated.
To compare a -generated divergence and a divergence, we have the following lemma where all the inequalities are defined pointwise.
Consider a divergence and a -generated divergence . For any -cut of ,
Also, if has the data-processing inequality, the -cut is the greatest -generated divergence below :
The divergence that can be used to characterize -DP is -generated. This implies that DP can be characterized completely by its hypothesis testing interpretation.
The -divergence is -generated.
Since is quasi-convex and satisfies data-processing inequality, the -cut can be reformulated as:
It is easy to show that this is exactly the same as the original definition of , from which follows that it is -generated.
4.2 Rényi is ∞\infty-generated
In contrast to the divergence , the 2-cut of the Rényi divergence is not complete with respect to the Rényi divergence.
We set and , a simple calculation shows:
The difference is quantitatively small, but it is nevertheless strictly positive. This shows also that the Rényi divergence is not -generated.
Similary, one can show that the 3-cut is not complete, that the 4-cut is not complete, etc. In fact, Rényi divergence is exactly -generated. Indeed, Rényi divergence satisfies the data-processing inequality, hence it is at most -generated. Moreover, any -divergences whose weight function is strictly convex is not -generated for any finite . The formulation of Rényi divergence of order given by is an -divergence related to the weight function , which is strictly convex. Since the logarithm function is continuous on and strictly monotone, we conclude that the Rényi divergence is -generated. The formal details can be found in the appendix.
Hypothesis Testing Interpretation of Divergences
In this section, we give an hypothesis testing characterization similar to the one that differential privacy satisfies for the -cut of an arbitrary divergence.
We first define privacy regions for divergences using their -cuts.
For any divergence , we define its privacy region by
Notice that if satisfies the data-processing inequality, or is -generated, then in the definition above can be replaced by .
As an example, we can give the privacy region of DP.
Privacy regions are intimately related to the hypothesis testing interpretation of privacy definitions based on divergences.
This give us the hypothesis testing characterization of DP, since the -divergence is -generated and quasi-convex.
We conclude this section by stressing that Theorem 18 tell us two important things:
Every privacy definition similar to differential privacy but based on a -generated divergence is characterized completely by its hypothesis testing interpretation.
For every privacy definition similar to differential privacy but based on an arbitrary divergence we can have an hypothesis testing interpretations by considering its -cut. However, this characterization will not be necessarily complete.
The second remark applies in particular to relaxations of differential privacy based on the Rényi divergence: if we want to have the hypothesis testing interpretation for one of these relaxations we can use the -cut of the Rényi divergence.
Applications
In this section we will use the technical tools we developed in the previous sections to better study the relations between different privacy definitions.
This means that to find a good conversion law we can just compare the privacy regions.
Using privacy regions, we can refine Mironov’s conversion law from RDP to DP in a simple way.
If a mechanism is -RDP then the mechanism is also -DP for any .
The privacy region of Rényi divergence is given by
By an extension of Lemma 15, to find satisfying
it is necessary and sufficient to find satisfying
By Theorem 18, this is equivalent to find satisfying . Inspired from Mironov’s proof of conversion law from RDP to DP [Mironov, 2017, Propisition 3]: we obtain,
The equality (‡) derives original Mironov’s result [Mironov, 2017, Propisition 3]. Now, starting from (†), we have a better bound for DP as follows: consider a curve given by the equation
. We have the derivative of as follows:
We can take the tangent of the curve by
We will find parameters that a tangent of meets . We first solve
By the symmetry of and , we have
Therefore, we have the following better conversion law:
If a mechanism is -RDP then it is -DP for any .
As a conjecture, if we calculate tangents of the boundary of the privacy region , we have optimal conversion law from -RDP to DP. The boundary of is given by the equation
2 On Gaussian Differential Privacy
Gaussian differential privacy (GDP) [Dong et al., 2019, Def. 2.6] has been recently proposed as a privacy definition trading-off PMD and PFA. This can be characterized by means of privacy regions. We have seen that privacy regions correspond to -generated divergence. Thus, a natural question is: can we characterize GDP using a -generated divergence. The answer is yes. We can characterize GDP by the following divergence:
3 Informativeness of k𝑘k-cuts
The concept of -cut can be related to the ability that a divergence has of distinguishing two distributions.
A characterization of k𝑘k-generated divergences
As we have seen, -generated divergences satisfy a number of useful properties; known divergences from the literature can be classified according to this parameter - we have shown some examples here, more examples are in the supplemental material. In the other direction, we give a simple condition to ensure that a divergence is -generated: the suprema of quasi-convex functions over size -partitions determine -generated divergences.
Let be a quasi-convex function. Then the divergence defined below is -generated and quasi-convex.
We have . Conversely, by equality , we also have . This completes the proof. ∎
This result characterizes -generated quasi-convex divergences. It also serves as a useful tool to construct new divergences with a hypothesis testing interpretation, by varying the quasi-convex function .
Conclusion
In this paper we have developed analytical tools to study the hypothesis testing interpretation of privacy definitions similar to differential privacy but measured with another statistical divergence. We introduced the notions of -cut and -generatedness for divergences. These notions quantifies the number of decisions that are needed in an experiment similar to the ones used in hypothesis testing to fully characterize the divergence. We used these notions to study the hypothesis testing interpretation of relaxations of differential privacy based on the Rényi divergence. These notions give a measure of the complexity that tools for formal verification may have. We leave the study of this connection for future work.
Appendix A Weak version of Birkhoff-von Neumann Theorem
The cardinal can be relaxed to countable infinite cardinal , and then the families and may be countable infinite.
Consider the following matrix representation of :
where and for any .
For any , the matrix representation of is
satisfying that for any , there is exactly such that and for . Conversely, any matrix satisfying this condition corresponds to some function . Consider the family of matrix representations of maps of the form . We give an algorithm decomposing to a convex sum of :
(g_m+1)_i,j = {1 j = argmaxs(~fm)i,s0 (otherwise) ,
If then we terminate. Otherwise, we repeat the previous step.
In each step, we obtain the following conditions:
We have whenever because
Appendix B Omitted Proofs
Thanks to the unit law and associativity of as an abuse of notations, we define
B.2 Proof of the data-processing inequality of k𝑘k-cuts
For any divergence , every -cut satisfies data-processing inequality.
We consider the -cut of with respect to a set satisfying
The inequality is obtained by the inclusion
B.3 Proof of Lemma 10
If a divergence has the data-processing inequality, we have the inequality and the equality for any set with .
We consider the -cut of with respect to a set satisfying
The first and second inequalities are obtained by the dataprocessing inequality and the definition of -cut respectively. ∎
B.4 Proof of Lemma 13
Suppose that is equal to the -cut of with respect to a set satisfying .
Here, the first and last inequalities are obtained from the data-processing inequality of . The second inequality is proved from the inclusion
B.5 Proof of Basic Properties of k𝑘k-generatedness (Lemma 14)
If is -generated, then it is also -generated.
Suppose that is equal to the -cut of with respect to a set satisfying .
Let be an arbitrary set with . We define the -cut of with respect to the set .
If has the data-processing inequality, then it is at least -generated.
Every -cut of a divergence is always -generated.
We can prove in a almost the same way as Lemma 14 (2). ∎
If is continuous and satisfies data-processing inequality we have -generatedness (moreover we show the “countable”-generatedness) as follows:
The first and last inequalities are obtained from data-processing inequality. The second inequality is obvious.
B.6 Proof of Lemma 15
Consider a divergence and a -generated divergence . For any -cut of ,
Also, if has the data-processing inequality, the -cut is the greatest -generated divergence below :
Since is -generated, for any choice of with , we have
The second statement is proved as follows: From the first statement of this lemma and Lemma 3 (Lemma 10 in the paper), We have
We can extend this theorem to more suitable for conversion laws of differential privacy.
Consider a divergence satisfying data-processing inequality and a -generated divergence .
() Obvious from Lemma 3 (Lemma 10 in the paper). () From the assumption, we obtain
Thanks to the -generatedness of , we conclude the statement of this lemma. ∎
B.7 Proof of 222-generatedness of ε𝜀\varepsilon-divergence
The -divergence is -generated for all .
We recall that the -divergence is quasi-convex (moreover, jointly convex) and satisfies data-processing inequality. We choose a set , and take the -cut of by
We show this is equal to the original . Without loss of generality we may assume is at most countable. If is an arbitrary set, we can restrict it to countable set in a similar way as the proof of Lemma 7 (Lemma 14(3) in the paper).
We have the -generatedness: . The equality is proved as follows: for given and , we take . Conversely, for any we take and , which is the indicator function of defined by if and otherwise. ∎
B.8 Counterexample: Rényi-divergence is not 222-generated
There are such that
Let and and define
Since Rényi divergence is quasi-convex and satisfies data-processing inequality, it suffices to show the proper inequality holds for any deterministic decision rule . There are cases of , but thanks to the data-processing inequality and reflexivity of Rényi divergence, it suffices to consider cases: . Hence,
holds for any . By the data-processing inequality of Rényi divergence, this discussion does not depend on the choice of . By weak Birkhoff-von Neumann theorem, and the quasi-convexity Rényi divergence, we conclude
B.9 Proof of ∞\infty-generatedness of Rényi-divergence
The -Rényi divergence can also be characterized using -divergence as follows:
Remark that every -divergence is quasi-convex (moreover jointly convex) and continuous, and satisfies data-processing inequality (see also [Liese and Vajda, 2006, Theorems 14–16]).
Since the mapping is monotone, every -Rényi divergence is also quasi-convex and satisfies data-processing inequality. Thanks to the data-processing inequality, every -Rényi divergence is at least -generated. We need to prove that for every finite , every -Rényi divergence is not -generated. To prove this, we use that the mapping is strictly convex.
If a weight function is strictly convex, its -divergence is not -generated for every finite .
Without loss of generality, we may assume .
Since , by Dirichlet’s pigeonhole principle, for any , for some , there are at least two different such that and . From the assumption on and , we have Since the function is strictly convex, by the condition for equality of Jensen’s inequality, we have the strict inequality
Therefore, for any , we have
Since there only finite case of , we conclude . Since every -divergence satisfies data-processing inequality, this discussion does not depend on the choice of set with in the construction of the -cut . Thus, is not -generated for any finite . ∎
Since the mapping is strict, we conclude,
For any , the -Rényi divergence is not -generated for every finite .
B.10 Proof of Theorem 18
We fix a -cut of a divergence . Suppose that it is defined with a set satisfying .
We recall the definition of privacy region
() Obvious by the data-processing inequality of the -cut .
() The assumption is equivalent to
Since , this is equivalent to
B.11 Proof of Theorem 23 in general setting
If the quasi-convex function is also continuous, we can extend Theorem 23 to general measurable setting.
Assume that is quasi-convex and continuous. For any measurable space , we have
We easily calculate as follows (functions are assumed to be measurable):
Note that we treat as a finite discrete space. Consider the family of finite sets (discrete spaces) defined as follows:
Hence the sequence of probability measures converges to the probability measure . Similarly, converges to .
Appendix C Additional Results
We recall the definition of the total variation distance
In a similar way as -divergence , we can prove -generatedness of the total variation distance , but we can prove it easily by applying Theorems 16–17 (Theorem 23 in the paper).
Define by . It is easy to check that the function is obviously quasi-convex, and that we have .
C.2 An optimal conversion law from Hellinger to DP
We recall the definition of the Hellinger distance
Since it is the -divergence of weight function (strict convex), the Hellinger distance is exactly -generated, quasi-convex and continuous.
Here is the essense of an optimal conversion law from the Hellinger distance to DP.
The degree of this equation is , so we can solve it. For given , we have
The tangent of the curve that passes the point is given by the equation where . We next find and that the lower boundary
of is the same as the line . We solve the equation on about the slope as (5). Finally, we obtain as (4). ∎
We conclude an optimal conversion law from the Hellinger distance to DP.