On the Sample Complexity of Privately Learning Unbounded High-Dimensional Gaussians
Ishaq Aden-Ali, Hassan Ashtiani, Gautam Kamath
Introduction
Given samples from a distribution , can we estimate the underlying distribution? This problem has a long and rich history, culminating in a mature understanding for many settings of interest. However, in many cases the dataset may consist of sensitive data belonging to individuals, and naive execution of classic methods may inadvertently result in private information leakage. See, for instance, privacy attacks described in such estimation settings including [DN03, HSR+08, BUV14, DSS+15, SSSS17], and the survey [DSSU17].
To address concerns of this nature, in 2006, Dwork, McSherry, Nissim, and Smith introduced the celebrated notion of differential privacy (DP) [DMNS06], which provides a strong standard for data privacy. It ensures that no single data point has significant influence on the output of the algorithm, thus masking the contribution of individuals in the dataset. Differential privacy has seen practical adoption in many organizations, including Apple [Dif17], Google [EPK14, BEM+17], Microsoft [DKY17], and the US Census Bureau [DLS+17]. At this point, there is a rich body of literature, giving differentially private algorithms for a wide array of tasks.
There has recently been significant interest in distribution and parameter estimation under differential privacy (see Section 1.1.2 for discussion of related work). Most relevant to our investigation is the work of Bun, Kamath, Steinke, and Wu [BKSW19], which provides a generic framework that, given a cover for a class of distributions, describes a private algorithm for learning said class with sample complexity logarithmic in the size of the cover. There, the privacy guarantee is the strongest notion of pure -differential privacy.
An obvious drawback of this approach is that it fails to provide sample complexity upper bounds for estimating classes of distributions which do not possess a finite cover. The canonical example is the set of all Gaussian distributions. It turns out that this is inherently impossible – “packing lower bounds” imply that no finite sample algorithm exists for such cases under pure differential privacy. This theoretical limitation can have significant practical implications as well, as it forces the data analyst to choose between having good accuracy and preserving privacy. It turns out that, under pure differential privacy, the only way to avoid this issue is to assume the underlying distribution belongs to a more restricted class – such as Gaussian distributions with bounded mean and covariance.
On the other hand, stronger results are possible if one relaxes the privacy notion to the weaker guarantee of approximate differential privacy [DKM+06]. In particular, it is known that this relaxation permits “stability-based” approaches, which can avoid issues associated with infinite covers by pinpointing the area where “a lot of the data lies,” see, e.g., the classic example of the stability-based histogram [KKMN09, BNS16].
We resolve these issues by providing a simpler method for proving existence of locally small covers. These lead to our main results, sample complexity upper bounds for semi-agnostically learning Gaussian distributions under approximate differential privacy.
The sample complexity of semi-agnostically learning a -dimensional Gaussian distribution to -accuracy in total variation distance under -differential privacy is
This is the first sample complexity bound for privately learning a multivariate Gaussian with no conditions on the covariance matrix. The first and third terms are known to be tight, and there is strong evidence that the second is as well, see Section 1.1.1. The previous best algorithm was that of [KLSU19], which provided the stronger guarantee of concentrated differential privacy [DR16, BS16] (which is intermediate to pure and approximate DP). However, it required the true covariance to be bounded as for some known parameter , and the third term in the sample complexity is instead , which is prohibitive for large (or unknown) . In contrast, our result holds for unrestricted Gaussian distributions.
We also provide a better upper bound for the case when the covariance matrix is known.
The sample complexity of semi-agnostically learning a -dimensional Gaussian distribution with known covariance to -accuracy in total variation distance under -differential privacy is
This is the first bound which achieves a near-optimal dependence simultaneously on all parameters, see Section 1.1.1. In particular, it improves upon previous results in which the third term is replaced by [BKSW19] or [KV18, KLSU19, BKSW19].
While we apply our approach to multivariate Gaussian estimation, it should more broadly apply to other classes of distributions with no finite-sized cover.
As mentioned before, we build upon the approach of Bun, Kamath, Steinke, and Wu [BKSW19] to provide methods better suited for estimation under the constraint of approximate differential privacy. Their work focuses primarily on pure DP distribution estimation for classes of distributions with a finite cover. Specifically, given a class of distributions with an -cover of size , they give a pure DP algorithm for learning said class in total variation distance with sample complexity . Naturally, this gives vacuous bounds for classes with an infinite cover – indeed, packing lower bounds show that this is inherent under pure DP [HT10, BBKN14, BKSW19]. To avoid these lower bounds, they show that learning is still possible if one relaxes to approximate DP and considers a “locally small” cover: one that has at most elements which are within an -total variation distance ball of any element in the set. The sample complexity of the resulting method does not depend on , and instead we pay logarithmically in the parameter . They apply this framework to provide algorithms for estimating general univariate Gaussians, and multivariate Gaussians with identity covariance. However, their arguments construct explicit covers for these cases, and it appears difficult to construct and analyze covers in situations with a rich geometric structure, such as multivariate Gaussians. Indeed, it seems difficult in these settings to reason that a set is simultaneously a cover (i.e., every distribution in the class has a close element) and locally small (i.e., every distribution does not have too many close elements).
We avoid this tension by taking a myopic view: in Lemma 3.1, we show that if we can construct a cover with few elements for the neighbourhood of each individual distribution, then there exists a locally small cover for the entire space. This makes it significantly easier to reason about locally small covers, as we only have to consider covering a single distribution at a time, and we do not have to reason about how the elements that cover each distribution overlap with each other. For example: to cover the neighbourhood of a single Gaussian with (full rank) covariance , we can transform the covariance to the identity by multiplying by , cover the neighbourhood of (which is easier), and transform the cover back to the original domain. This is far simpler than trying to understand how to simultaneously cover multiple Gaussians with differently shaped covariance matrices in a locally small manner. Our results for covering are presented in Section 3.
We then go on to apply these locally small covers to derive learning sample complexity upper bounds in Section 4. As mentioned before, this is done in [BKSW19], though we refine their method to achieve stronger bounds. While this refinement is simple, we believe it to be important both technically (as it allows us to achieve likely near-optimal sample complexities) and conceptually (as we believe it clearly identifies what the “hard part” of the problem is). To elaborate, our approach can be divided into two steps;
Coarse Estimation. Find any distribution which is -close to the true distribution, using the approximate DP GAP-MAX algorithm in [BKSW19].
Fine Estimation. Generate an -cover around the distribution from the previous step, and run the pure DP private hypothesis selection algorithm in [BKSW19].
We are not the first to use this type of two-step approach, as such decomposition has been previously applied, e.g., [KV18, KLSU19, KSU20]. However, it was not applied in the context of the GAP-MAX algorithm in [BKSW19], preventing them from getting the right dependencies on all parameters – in particular, it was not clear how to disentangle the dependencies on and using their method directly.
Other beneficial features of this two-step approach, which have also been exploited in the past, include its modularity and the fact that the first and second steps involve qualitatively different privacy guarantees. However, we additionally comment how coarse an estimate required in the first step – while the description above states that we require a -close distribution, we may actually only need one with total variation distance bounded by , where may be exponentially small in the parameters of the problem! See Remark 4.1. We hope that shining a light on this somewhat unconventional regime for private distribution estimation, which only requires a “whiff” of the true distribution, will inspire further investigation.
As a final contribution, in Section 5, we revisit the generic private hypothesis selection problem. The main result of [BKSW19] is an algorithm for this problem which requires knowledge of the distance to the best hypothesis. They then wrap this algorithm in another procedure which “guesses” the distance to the best hypothesis, resulting in a semi-agnostic algorithm. However, this loses large factors in the agnostic guarantee and is rather indirect. We instead analyze the privatization of a different algorithm, the minimum distance estimate, which gives a semi-agnostic algorithm directly, with an optimal agnostic constant (i.e., providing a tight factor of 3 [DL01]). In our opinion, the algorithm and proof are even simpler than the non-agnostic algorithm of [BKSW19].
It is folklore that the non-private sample complexity of estimating a single -dimensional Gaussian to accuracy in total variation distance is , or, in the case when the covariance is the identity, . Therefore the leading terms in the sample complexity bounds of Theorems 1.1 and 1.2 are tight.
Lower bounds for private statistical estimation are comparatively less explored. Karwa and Vadhan [KV18] showed a lower bound of , even for the simple case of estimating the mean of a univariate Gaussian with known variance, thus matching the third terms in Theorems 1.1 and 1.2.
[KLSU19] also proves a lower bound of for general Gaussian estimation under pure differential privacy. Using the aforementioned invariance of the complexity of estimation with identity covariance under pure and approximate DP, we take this as strong evidence that there exists a lower bound of for estimation of general Gaussians under approximate DP as well.
1.2 Additional Related Work
The work of Bun, Kamath, Steinke, and Wu [BKSW19] is built upon classic results in hypothesis selection, combined with the exponential mechanism [MT07]. The underlying non-private approach was pioneered by Yatracos [Yat85], and refined in subsequent work by Devroye and Lugosi [DL96, DL97, DL01]. After this, additional considerations have been taken into account, such as computation, approximation factor, robustness, and more [MS08, DDS12, DK14, SOAJ14, AJOS14, DKK+16, ABDM18, ABDH+18, AFJ+18, BKM19, AAA20]. Notably, these primitives have also been translated to the more restrictive setting of local differential privacy [GKK+20]. Similar techniques have also been exploited in a federated setting [LSY+20].
Preliminaries
2 Distribution Learning
A distribution learning method is an algorithm that, given a sequence of i.i.d. samples from a distribution , outputs a distribution as an estimate of . The focus of this paper is on absolutely continuous probability distributions (distributions that have a density with respect to the Lebesgue measure), so we will refer to a probability distribution and its probability density function interchangeably. The specific measure of “closeness” between distributions that we use is the total variation distance:
Let and be two probability distributions defined over and let be the Borel sigma-algebra on . The total variation distance between and is defined as
Moreover, if is a set of distributions over a common domain, we define .
Given and , it is often useful for us to overload notation and define . We say two distributions and are -close if . We also say a distribution is -close to a set of distributions if . We can now formally define a distribution learner:
An algorithm is said to be a (realizable) PAC learner for a set of distributions with sample complexity if given parameters and any , the algorithm takes as input and a sequence of i.i.d. samples from , and outputs such that with probability at least . The probability is over the random samples drawn from and the randomness of the algorithm.
The following two definitions handle the case when we have model misspecification: we receive samples from a distribution which is not in the class . The difference between the two is that in the robust definition (Definition 2.4) the algorithm is provided with an upper bound on the distance between and , while it is not in the agnostic setting (Definition 2.5).
We will sometimes refer to a -agnostic PAC learner as a semi-agnostic PAC learner for , as is standard in learning theory. A useful object for us to define is the total variation ball.
The total variation ball of radius , centered at a distribution with respect to a set of distributions , is the following subset of :
In this paper we consider coverings and packings of sets of distributions with respect to the total variation distance.
For any a -cover of a set of distributions is a set of distributions , such that for every , there exists some such that .
A -packing of a set of distributions is a set of distributions , such that for every pair of distributions , we have that .
The following is a well known relation between covers and packings of a set of distribution. We defer the proof to Section B.1.
For a set of distributions with -covering number and -packing number , the following holds:
An important property of a set of distributions we will need to quantify in this paper is how small they are “locally”. The following definition formalizes this:
Fix some . We say a set of distributions is -locally small if
3 VC Dimension and Uniform Convergence
An important property of a set of binary functions is its Vapnik-Chervonenkis (VC) dimension, which has the following definition:
Let be a set of binary functions . The VC dimension of is defined to be the largest such that there exist and such that for all where , there exists such that .
The most important application of the VC dimension is the following celebrated uniform convergence bound:
Let be a set of binary functions with VC dimension . For any distribution defined on , we have
whenever .
We can define the VC dimension of a set of distributions by looking at the VC dimension of a set of binary functions that is defined with respect to . More precisely:
Let be a set of probability distributions on a space . Define the set of binary functions where , . We define the VC dimension of to be the VC dimension of . To avoid measurability issues we assume the preimage of is measurable for any .
The set of location Gaussians has VC dimension . Furthermore, the set of Gaussians has VC dimension .
For location Gaussians, corresponds to linear threshold functions (i.e., half-spaces), which have VC dimension . Similarly corresponds to quadratic threshold functions, which have VC dimension [Ant95]. ∎
4 Differential Privacy
Let be the set of possible datasets. We say that two datasets are neighbours if and differ by at most one data point. Informally, an algorithm that receives a dataset and outputs a value in is differentially private if it outputs similar values on (any) two neighboring datasets. Formally:
A randomized algorithm is -differentially private if for all , for all neighbouring datasets , and for all measurable subsets ,
If , we say that is -differentially private.
For any dataset , score function and privacy parameter , the exponential mechanism is an -differentially private algorithm, and with probability at least , it selects an outcome such that
One of the most useful properties of differentially private algorithms is that they can be composed adaptively while promising a graceful degradation of privacy.
If is an adaptive composition of differentially private algorithms , then if are -differentially private then is -differentially private.
Another strength of differential privacy is that it is closed under post-processing:
If is -differentially private, and is any randomized function, then the algorithm is -differentially private.
We now define -DP learners.
An algorithm is said to be an -DP PAC learner for a set of distributions with sample complexity if it is a PAC learner that satisfies -differential privacy.
An algorithm is said to be an -DP -agnostic PAC learner for a set of distributions with sample complexity if it is a -agnostic PAC learner that satisfies -differential privacy.
The problem of hypothesis selection (sometimes called density estimation, the Le Cam-Birgé method, or the Scheffé estimator) is a classical approach for reducing estimation problems to pairwise comparisons. It provides a generic approach for converting a cover for a set of probability distributions into a learning algorithm, see [DL01] for a reference.
[BKSW19] translated these powerful tools to the differentially private setting, giving an -DP algorithm for hypothesis selection using the exponential mechanism with a carefully constructed score function. The following is a modified version where we decouple the accuracy parameter from the robustness parameter , and boost the success probability to be arbitrarily high. The proof follows immediately from the proof in [BKSW19]. For a set of distributions , we will denote as the distribution in that is closest to the unknown distribution .
Let be a set of probability distributions, and where satisfies . is an -DP -robust PAC learner with sample complexity
Furthermore, when the algorithm succeeds it guarantees that .
We note the guarantee that the algorithm gives with respect to in the theorem statement for technical reasons that will become apparent in the proofs of Section 4. Unfortunately the result above requires the number of hypotheses to be finite. Using a uniform convergence argument together with a GAP-MAX algorithm [BDRS18], Bun, Kamath, Steinke and Wu [BKSW19] showed that it may also be possible to get a similar guarantee when the number of hypotheses is infinite, provided that we relax the notion of privacy to approximate differential privacy. The following is an alternate version of [BKSW19, Theorem 4.1]. Again, in this version we decouple the accuracy parameter from the robustness parameter . The proof follows directly from the proof of Theorem 4.1 in [BKSW19].
Let be a set of probability distributions, and where satisfies . Furthermore, let be the VC dimension of and assume . is an -DP -robust PAC learner for with sample complexity
Furthermore, when the algorithm succeeds it guarantees that .
Note that Theorem 2.23 requires knowledge of , which we likely do not know a priori. We can bound this by finding an upper bound on the size of the largest total variation ball centered at any , i.e. . This directly translates to showing is -locally small.
This lays the foundation for the strategy used in [BKSW19] to construct a private distribution learner for an infinite set of distributions : by using a -locally small Note that the guarantee we can get from any -cover is . -cover for as the input to the GAP-MAX algorithm, given the right amount of samples (which depends on ), with high probability the algorithm outputs a distribution that is )-close to .
which is exponentially worse than the PHS algorithm. As we will discuss shortly, [BKSW19] also show how to use this algorithm together with the PHS algorithm to get a -DP -agnostic PAC learner, at the cost of some poly-logarithmic factors. This leads to the natural question of whether there exists an -DP semi-agnostic learner which achieves the same sample complexity as the PHS algorithm with a comparable agnostic constant. We answer this question in the affirmative and prove the following result:
We defer discussing the details of this result and its proof to Section 5, however we note that the above result can only handle finite sets of distributions. Recall that while the GAP-MAX algorithm can handle infinite sets of distributions, it is not a semi-agnostic learner. Thus, a natural question is whether we can learn from a set of infinite distributions using some -DP semi-agnostic PAC learner.
Fortunately, [BKSW19] gave a simple procedure that takes an -DP robust PAC learner and constructs an -DP semi-agnostic PAC learner, at the cost of some low order poly-logarithmic factors in the sample complexity bounds, and an increase in the agnostic constant. We can thus use the GAP-MAX algorithm together with this procedure to get an -DP semi-agnostic PAC leaner given an infinite set of distributions. The procedure [BKSW19] came up with works in the following way: run the -DP robust PAC learner with (a small number of) different values for to get a shortlist of candidates. Use the semi-agnostic NaïvePHS algorithm to select a good hypothesis from the short list. As we mentioned earlier, the guarantee of this approach (Theorem 3.4 in [BKSW19]) is stated specifically in terms of converting the PHS algorithm from Theorem 2.22 into an -DP semi-agnostic PAC learner, however it can be immediately generalized to construct -DP semi-agnostic PAC learners given any -DP robust PAC learner. Furthermore, we can replace the Naïve-PHS algorithm with the sample efficient algorithm from Theorem 2.24 to reduce the agnostic constant, and also remove some logarithmic factors in the sample complexity bound. This yields the following result:
Covering Unbounded Distributions
In this section, we demonstrate a simple method to prove that a set of distributions has a locally small cover. As an application, we use this result to show that the set of unbounded location Gaussians and scale Gaussians have locally small covers. We use these two results to give the first sample complexity result for privately learning unbounded high dimensional Gaussians in Section 4.
The biggest roadblock to using Theorem 2.23 is demonstrating the existence of a locally small cover for the set of distributions . Unfortunately, explicitly constructing a global cover (which is locally small) can be complicated, and may require cumbersome calculations even for “simple” distributions (see, e.g., Lemma 6.13 of [BKSW19]). We offer a conceptually simpler alternative to prove a set of distributions has a locally small cover: we demonstrate that if for every the total variation ball has an -cover of size no more than , then there exists an -cover for that is -locally small.
Given a set of distributions and , if for every distribution the total variation ball has an -cover of size no more than , then there exists a -locally small -cover for .
Fix some . By assumption, we have that the set of distributions has an -cover of size no more than , which by definition implies that the -covering number of is no more than . By Lemma 2.9, the -packing number of is also at most .
Now consider an -packing for the set of distributions . We claim any such must be -locally small, and we prove this by contradiction. Suppose to the contrary that there were a distribution such that . This would imply that there is an -packing for with size larger than , which contradicts the above observation that the packing number of any is at most .
A -packing for is called maximal if it is impossible to add a new element of to it without violating the -packing property. We claim that any maximal packing of is also a -cover of . We can prove this by contradiction. Suppose to the contrary that there were a distribution with . Then we could add to to produce a strictly larger packing, contradicting the maximality of . Thus taking to be a maximal packing gives us a -locally small -cover. Therefore, it only remains to show that a maximal packing actually exists, which follows from a simple application of Zorn’s Lemma. Let be the set of all -packings of . Define a partial order on by the relation where . We claim that every chain in this partially ordered set has an upper bound in ; by Zorn’s lemma, this would imply that has a maximal element which concludes the proof. To see why every (possibly infinite) chain has an upper bound in , we consider the following upper bound . Note that since otherwise there would be an index such that . ∎
2 Locally Small Gaussian Covers
We now prove that both the set of -dimensional location Gaussians and scale Gaussians can be covered in a locally small fashion. Our first result shows that the set of -dimensional location Gaussians has a locally small cover. Our second result is proving the existence of a locally small cover for the set of -dimensional scale Gaussians .
Fix some . From [DMR18, Theorem 1.2] we have
where the first inequality follows from (2). We now bound the size of this cover.
where the third last inequality follows from the standard solution to the stars and bars problem. ∎
Combining Lemma 3.1 with Lemma 3.2 immediately gives us the following corollary:
2.2 Covering Scale Gaussians
It is not a trivial exercise to come up with an explicit cover for the class of scale Gaussians due to the complicated nature of the geometry of . Fortunately for us, Lemma 3.1 simplifies things significantly. It turns out that if we want to cover the TV ball centered at any , we can use a cover for and “stretch” the covariance matrices of every distribution in the cover (using ) so that the modified cover becomes a valid cover for the TV ball centered at . The following lemma tells us that we can cover the total variation ball centered at with respect to as long as the radius is not too large.
where are the eigenvalues of , and it holds that .
For any smaller than the universal constant , the lower bound in (3) implies two things: 1) for any , and 2) the minimum eigenvalue of , , satisfies . We thus propose the following cover:
where . First we will show that this is a valid cover. Consider an arbitrary . We want to show that there is a distribution that is -close to . Let , let and let . Since , is indeed in the cover.
Next we show that . We use Proposition 32 in [VV10], which states for any two positive definite matrices and , if and the smallest eigenvalue of satisfies , then we have
By the definition of , . Since any valid must satisfy , our choice of setting implies that
for any smaller than the universal constant . We now bound the size of the cover in a similar manner to the case of location Gaussians.
for any smaller than the universal constant we have,
Setting completes the proof. ∎
The following corollary is a direct consequence of Lemma 3.4 and Proposition A.1.
We can thus take the cover in Lemma 3.4, and replace every distribution with . Note that our modified cover will have the same size. From (5), our new cover will be a valid -cover for since the TV distance can not increase between any two distributions after applying the transformation above. ∎
We can now combine Lemma 3.1 with Corollary 3.5 to get the following:
Beyond GAP-MAX: Boosting Weak Hypotheses
As we mentioned before, by using a -locally small -cover for an infinite set of distributions , one can utilize Theorem 2.23 to privately learn a distribution to low error. Unfortunately, this approach will yield a sample complexity bound that has a term of order . In the case of learning an unbounded univariate Gaussian in the realizable setting, it is known that the sample complexity is [KV18], however the upper bound on the sample complexity achieved by Theorem 2.23 (together with an appropriate locally smaller cover) is [BKSW19, Corollary 6.15]. In order to overcome the poor dependence on , we can instead aim for a two step approach:
Use the GAP-MAX algorithm in Theorem 2.23 but with constant accuracy to learn a distribution that is roughly -close to the true Gaussian for some appropriately selected constant .
Build a finite cover for and use the private hypothesis selection algorithm (Theorem 2.22) to learn a distribution that is -close to the true Gaussian.
Running the GAP-MAX algorithm with constant accuracy thus removes the dependence on in the term. Intuitively, this approach learns a “rough” estimate of the right distribution using approximate differential privacy. Since we know that we are roughly -close to the true Gaussian, we can cover with a finite cover, and use the -differentially private hypothesis selection algorithm. This two step approach which we dub boosting gets us a much better dependence on the privacy parameter in our sample complexity bounds, and as we will see it holds more generally in the robust learning setting.
We note that the first step in the above approach may only need to produce an exceptionally coarse estimate to the true distribution – one to which it bears very little resemblance at all! We illustrate this with the simple problem of privately estimating a univariate Gaussian (in the realizable case).
We can see that the first step in the procedure truly requires an exceptionally coarse estimate of the distribution. The estimate of the mean described is significantly further from the true mean than any individual point will be. Interestingly, note that if one requires a more accurate final distribution, the distribution output in the first step is allowed to be less accurate.
As a first step, we can show that Algorithm 1 can achieve a slightly more general guarantee than a robust PAC learning sample complexity bound. We make Algorithm 1 more general than it needs to be to give a robust learning guarantee for in order to make use of it as a subroutine in Algorithm 2 which robustly learns .
Let be a positive constant. For any , and where and are constants that depend only on , given a dataset where satisfies , is an -differentially private algorithm which outputs some such that with probability no less than , so long as
We first show Algorithm 1 satisfies -differential privacy. Line 1 of the algorithm is -differentially private by the guarantee of Theorem 2.23. Line 1 maintains -privacy by post-processing (Lemma 2.18). Finally, line 1 is -differentially private by Theorem 2.22. By composition (Lemma 2.17), the entire algorithm is -differentially private.
We now argue about the accuracy of the algorithm. By Lemma 2.14, Corollary 3.3 and Theorem 2.23, as long as , with probability no less than the GAP-MAX algorithm in line 1 outputs a distribution that is -close to , for any and smaller than constants and , respectively, that depend only on . For the remainder of the proof we condition on this event.
as long as . Setting together with a union bound completes the proof. ∎
The following result can be derived from the algorithm by taking the standard assumption in the robust setting of . The proof is nearly identical to the proof of Lemma 4.2.
Let and where is a universal constant, and let where satisfies . Furthermore, let be an appropriately selected locally small -cover for . is an -DP -robust PAC learner for with sample complexity
We can now use Lemma 2.25 together with Lemma 4.3 to get a semi-agnostic algorithm.
2 Learning Gaussians
We can now show that Algorithm 2 achieves the following sample complexity bound for robust learning.
Let , and where and are universal constants, and let where satisfies . Furthermore, let and be appropriately selected locally small covers for and respectively. is an -DP -robust PAC learner for with sample complexity
We first show Algorithm 2 satisfies -differential privacy. Line 2 of the algorithm is -differentially private by the guarantee of Theorem 2.23. Line 2 maintains -privacy by post-processing(Lemma 2.18). Line 2 is -differentially private by Theorem 2.22. Line 2 maintains privacy by post processing (Lemma 2.18). Finally, line 2 is -differentially private by the privacy of Algorithm 1 proved in Lemma 4.2. By composition (Lemma 2.17) the entire algorithm is -differentially private.
We now argue about the accuracy of the algorithm. Let be the hypothesis in that satisfies . By Lemma A.3 where , which implies that . From Lemma 2.14, Corollary 3.6 and Theorem 2.23, as long as , with probability no less than the GAP-MAX algorithm in line 2 outputs a distribution that is -close to , for any smaller than a universal constant . We condition on this event.
It follows from the triangle inequality that . This together with Lemma 4.2 implies that, with probability greater than , outputs satisfying for any and smaller than universal constants and respectively, as long as . Using the triangle inequality and Corollary A.2 it follows that . Setting and together with a union bound completes the proof. ∎
Finally, we can combine the above result with Lemma 2.25 to get a semi-agnostic sample complexity bound for modest levels of model misspecification.
3 Bounds for the Realizable Setting
The following sample complexity bounds hold for -DP (realizable) PAC learning. The proofs are very similar to the proofs in Section 4.1 and 4.2 for -DP robust PAC learning, where the slight difference is that we can build the covers directly with accuracy (instead of ) since we assume realizability. The first bound is tight and the second one is conjectured to be tight.
For any and where is a universal constant, there exists an -DP PAC learner for with sample complexity
For any and where is a universal constant, there exists an -DP PAC learner for with sample complexity
Agnostic Private Hypothesis Selection
In this section we present an -DP semi-agnostic PAC learner that achieves the same sample complexity as the PHS algorithm of Theorem 2.22. The PHS algorithm is based on the celebrated Scheffé tournament (see, e.g., Chapter 6 of [DL01]), where the distributions in play a round robin tournament against one another. The winner of this tournament is then chosen as the output. One of the technical difficulties in constructing privatized versions of the Scheffé tournament via the exponential mechanism is that a single sample can quite drastically change the outcome of the tournament, which makes choosing score functions based on tournaments challenging. We sidestep this issue completely by considering another approach to hypothesis selection called the minimum distance estimate (MDE). The MDE approach is based on maximizing a particular function of the data and as we will see shortly. Fortunately, this estimator is already in the form of a maximization problem and the function we aim to maximize has low sensitivity. Thus, using the exponential mechanism together with the MDE is a very natural way to privatize semi-agnostic hypothesis selection. The MDE requires computations, where is the number of hypotheses in . [MS08] presented a modified MDE that is very similar to the original MDE, but only requires computations. Fortunately, this modified algorithm maintains the guarantee of the original algorithm, so we will privatize the modified MDE instead of the original MDE. We formally state our result below.
Before we prove the result, we define a few things. For an ordered pair of distributions over a common domain , we define their Scheffé set as . A useful version of the TV distance between two distributions we will make use of is
We note that most of the analysis below is standard in proving the correctness of the MDE (e.g., see the proof of Theorem 6.3 in [DL01]), and is slightly adapted using the analysis of the modified MDE algorithm in Theorem 4 of [MS08]. The only difference here is the use of the exponential mechanism.
Let be the common domain of the distributions in . For a dataset and set , we define . For a distribution and a set , let . For any , we define the score function
With this in place, the algorithm is simple: run the exponential mechanism [MT07] with this score function, on the set of candidates , with dataset , and return whichever distribution it outputs.
It is not hard to see that the score function has sensitivity . Let be any distribution that maximizes the score function. From Theorem 2.16, it follows that running the exponential mechanism with our dataset , the set of distributions , privacy parameter and the the score function above outputs a distribution that guarantees, with probability no less than ,
where the last line holds so long as . We condition on this event, which can equivalently be stated as
We now look at the right most term in (7). By the definition of the total variation distance and an application of the triangle inequality we have
Using (6), the fact that maximizes the score function, and the triangle inequality all together yields,
Furthermore, notice that the term is small when the difference between the empirical and the true probability measures assigned by to the Scheffè sets is small. We can thus upper bound this term by by using standard Chernoff bounds together with a union bound to get,
with probability no less than so long as . Putting (7) and (8) together gives us,
A union bound together with setting completes the proof. ∎
Conclusion
We provide the first finite sample complexity bounds for privately learning Gaussians with unbounded parameters. We do this via a method for converting small local covers, to global covers which are locally small. In this paper, we only prove sample complexity upper bounds, and our methods are not computational in nature. One natural direction is to design polynomial time algorithms for learning unbounded Gaussians. Another direction is to explore applications of our method to other classes of distributions. The most immediate class that comes to mind is Gaussians mixture models (GMMs) – given upper and lower bounds on the total variation distance between GMMs based on their parameter distance, it should not be difficult to derive corresponding sample complexity bounds.
Acknowledgments
GK would like to thank Mark Bun, Adam Smith, Thomas Steinke, and Zhiwei Steven Wu for helpful conversations and suggestions which led to the results in Section 5.
References
Appendix A Useful Inequalities
Let and be random variables taking values in the same set. For any function , we have .
Taking the supremum of the left hand side completes the proof. ∎
Let and be random variables taking values in the same set. For any invertible function , we have .
By Proposition A.1, and . ∎
For any , Gaussian and distributions that satisfies , the following holds. If , and , then .
Given , the density is given by . Recall in this paper we define distributions by their densities so is the Gaussian density. It follows from the definition of the TV distance that . Given a sample , we let be the distribution that satisfies . The density of is given by where . The sample has density
We can now bound the TV distance between and .
where the first inequality follows from the triangle inequality together with Young’s inequality. Since , the statement follows immediately from Corollary A.2 and equation (1). ∎
Appendix B Omitted proofs from Section 2
We first prove the inequality on the left hand side. Let be a -cover for that has size . If , we are done. Otherwise, we claim there is no -packing of of size at least . We prove this by contradiction. Assume to the contrary that there exists a -packing of such that . By the pigeonhole principle, there exists and two distributions such that and . By the triangle inequality it follows that which is a contradiction, so cannot be a -packing of . This shows that .
We now prove the inequality on the right hand side. Let be a maximal -packing with size . If , we are done. Otherwise, we claim that is also an -cover of , and hence . We can prove this by contradiction. Suppose to the contrary that there were a distribution with . Then we could add to to produce a strictly larger packing, contradicting the maximality of . Therefore it only remains to show that a maximal packing actually exists, which follows from a simple application of Zorn’s lemma (See proof of Lemma 3.1).
B.2 Proof of Lemma 2.25
Fix accuracy and privacy parameters . Let and define sequences . Furthermore for all set , , and . For each , let denote the outcome of a run of the -robust algorithm using robustness parameter accuracy parameters and privacy parameters . We then use the algorithm of Theorem 2.24 to select a hypothesis from using accuracy parameter , and privacy parameter . By composition of DP (Lemma 2.17) it follows the output of the two step procedure is -DP.