On the Sample Complexity of Privately Learning Unbounded High-Dimensional Gaussians

Ishaq Aden-Ali, Hassan Ashtiani, Gautam Kamath

Introduction

Given samples from a distribution PP, 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 (ε,0)(\varepsilon,0)-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 dd-dimensional Gaussian distribution to α\alpha-accuracy in total variation distance under (ε,δ)(\varepsilon,\delta)-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 Σ\Sigma to be bounded as I⪯Σ⪯KII\preceq\Sigma\preceq KI for some known parameter KK, and the third term in the sample complexity is instead O(d3/2log⁡1/2Kε)O\left(\frac{d^{3/2}\log^{1/2}K}{\varepsilon}\right), which is prohibitive for large (or unknown) KK. 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 dd-dimensional Gaussian distribution with known covariance to α\alpha-accuracy in total variation distance under (ε,δ)(\varepsilon,\delta)-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 O(log⁡(1/δ)αε)O\left(\frac{\log(1/\delta)}{\alpha\varepsilon}\right) [BKSW19] or O(dlog⁡3/2(1/δ)ε)O\left(\frac{\sqrt{d}\log^{3/2}(1/\delta)}{\varepsilon}\right) [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 α\alpha-cover of size Cα\mathcal{C_{\alpha}}, they give a pure DP algorithm for learning said class in total variation distance with sample complexity O(log⁡∣Cα∣)O(\log|\mathcal{C_{\alpha}}|). 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 kk elements which are within an O(α)O(\alpha)-total variation distance ball of any element in the set. The sample complexity of the resulting method does not depend on ∣Cα∣|\mathcal{C}_{\alpha}|, and instead we pay logarithmically in the parameter kk. 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 Σ\Sigma, we can transform the covariance to the identity by multiplying by Σ−1/2\Sigma^{-1/2}, cover the neighbourhood of N(0,I)N(0,I) (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 0.990.99-close to the true distribution, using the approximate DP GAP-MAX algorithm in [BKSW19].

Fine Estimation. Generate an O(α)O(\alpha)-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 log⁡(1/δ)\log(1/\delta) and 1/α1/\alpha 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 0.990.99-close distribution, we may actually only need one with total variation distance bounded by 1−ζ1-\zeta, where ζ\zeta 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 dd-dimensional Gaussian to accuracy α\alpha in total variation distance is Θ(d2/α2)\Theta(d^{2}/\alpha^{2}), or, in the case when the covariance is the identity, Θ(d/α2)\Theta(d/\alpha^{2}). 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 Ω(log⁡(1/δ)/ε)\Omega(\log(1/\delta)/\varepsilon), 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 Ω(d2/αε)\Omega(d^{2}/\alpha\varepsilon) 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 Ω(d2/αε)\Omega(d^{2}/\alpha\varepsilon) 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 PP, outputs a distribution H^\widehat{H} as an estimate of PP. 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 PP and QQ be two probability distributions defined over X\mathcal{X} and let Ω\Omega be the Borel sigma-algebra on X\mathcal{X}. The total variation distance between PP and QQ is defined as

Moreover, if H\mathcal{H} is a set of distributions over a common domain, we define \TV(P,H)=inf⁡H∈H\TV(P,H)\TV(P,\mathcal{H})=\inf_{H\in\mathcal{H}}\TV(P,H).

Given X∼PX\sim P and Y∼QY\sim Q, it is often useful for us to overload notation and define \TV(X,Y)=\TV(P,Q)\TV(X,Y)=\TV(P,Q). We say two distributions PP and HH are γ\gamma-close if \TV(P,H)≤γ\TV(P,H)\leq\gamma. We also say a distribution PP is γ\gamma-close to a set of distributions H\mathcal{H} if min⁡H∈H\TV(P,H)≤γ\min_{H\in\mathcal{H}}\TV(P,H)\leq\gamma. We can now formally define a distribution learner:

An algorithm is said to be a (realizable) PAC learner for a set of distributions H\mathcal{H} with sample complexity nH(α,β)n_{\mathcal{H}}(\alpha,\beta) if given parameters α,β∈(0,1)\alpha,\beta\in(0,1) and any P∈HP\in\mathcal{H}, the algorithm takes as input α,β\alpha,\beta and a sequence of nH(α,β)n_{\mathcal{H}}(\alpha,\beta) i.i.d. samples from PP, and outputs H^∈H\widehat{H}\in\mathcal{H} such that \TV(P,H^)≤α\TV(P,\widehat{H})\leq\alpha with probability at least 1−β1-\beta. The probability is over the random samples drawn from PnP^{n} and the randomness of the algorithm.

The following two definitions handle the case when we have model misspecification: we receive samples from a distribution PP which is not in the class H\mathcal{H}. 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 PP and H\mathcal{H}, while it is not in the agnostic setting (Definition 2.5).

We will sometimes refer to a CC-agnostic PAC learner as a semi-agnostic PAC learner for C>1C>1, as is standard in learning theory. A useful object for us to define is the total variation ball.

The total variation ball of radius γ∈\gamma\in, centered at a distribution PP with respect to a set of distributions H\mathcal{H}, is the following subset of H\mathcal{H}:

In this paper we consider coverings and packings of sets of distributions with respect to the total variation distance.

For any γ∈\gamma\in a γ\gamma-cover of a set of distributions H\mathcal{H} is a set of distributions Cγ\mathcal{C}_{\gamma}, such that for every H∈HH\in\mathcal{H}, there exists some P∈CγP\in\mathcal{C}_{\gamma} such that \TV(P,H)≤γ\TV(P,H)\leq\gamma.

A γ\gamma-packing of a set of distributions H\mathcal{H} is a set of distributions Pγ⊆H\mathcal{P}_{\gamma}\subseteq\mathcal{H}, such that for every pair of distributions P,Q∈PγP,Q\in\mathcal{P}_{\gamma}, we have that \TV(P,Q)≥γ\TV(P,Q)\geq\gamma.

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 H\mathcal{H} with γ\gamma-covering number M(H,γ)M(\mathcal{H},\gamma) and γ\gamma-packing number N(H,γ)N(\mathcal{H},\gamma), 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 γ∈\gamma\in. We say a set of distributions H\mathcal{H} is (k,γ)(k,\gamma)-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 F\mathcal{F} be a set of binary functions f:X→{0,1}f:\mathcal{X}\to\{0,1\}. The VC dimension of F\mathcal{F} is defined to be the largest dd such that there exist x1,⋯ ,xd∈Xx_{1},\cdots,x_{d}\in\mathcal{X} and f1,⋯ ,f2d∈Ff_{1},\cdots,f_{2^{d}}\in\mathcal{F} such that for all i,j∈[2d]i,j\in[2^{d}] where i<ji<j, there exists k∈[d]k\in[d] such that fi(xk)≠fj(xk)f_{i}(x_{k})\neq f_{j}(x_{k}).

The most important application of the VC dimension is the following celebrated uniform convergence bound:

Let F\mathcal{F} be a set of binary functions f:X→{0,1}f:\mathcal{X}\to\{0,1\} with VC dimension dd. For any distribution PP defined on X\mathcal{X}, we have

whenever n=O(d+log⁡(1/β)α2)n=O\left(\frac{d+\log(1/\beta)}{\alpha^{2}}\right).

We can define the VC dimension of a set of distributions H\mathcal{H} by looking at the VC dimension of a set of binary functions that is defined with respect to H\mathcal{H}. More precisely:

Let H\mathcal{H} be a set of probability distributions on a space X\mathcal{X}. Define the set of binary functions F(H)={fHi,Hj:Hi,Hj∈H}\mathcal{F}(\mathcal{H})=\{f_{H_{i},H_{j}}:H_{i},H_{j}\in\mathcal{H}\} where ∀x∈X\forall x\in\mathcal{X}, fHi,Hj(x)=1  ⟺  Hi(x)>Hj(x)f_{H_{i},H_{j}}(x)=1\iff H_{i}(x)>H_{j}(x). We define the VC dimension of H\mathcal{H} to be the VC dimension of F(H)\mathcal{F}(\mathcal{H}). To avoid measurability issues we assume the preimage of 00 is measurable for any f∈F(H)f\in\mathcal{F}(\mathcal{H}).

The set of location Gaussians GdL\mathcal{G}_{d}^{L} has VC dimension d+1d+1. Furthermore, the set of Gaussians Gd\mathcal{G}_{d} has VC dimension O(d2)O(d^{2}).

For location Gaussians, F(GdL)\mathcal{F}(\mathcal{G}_{d}^{L}) corresponds to linear threshold functions (i.e., half-spaces), which have VC dimension d+1d+1. Similarly F(Gd)\mathcal{F}(\mathcal{G}_{d}) corresponds to quadratic threshold functions, which have VC dimension (d+22)=O(d2){d+2\choose 2}=O(d^{2}) [Ant95]. ∎

4 Differential Privacy

Let X∗=∪i=1∞XiX^{*}=\cup_{i=1}^{\infty}X^{i} be the set of possible datasets. We say that two datasets D,D′∈X∗D,D^{\prime}\in X^{*} are neighbours if DD and D′D^{\prime} differ by at most one data point. Informally, an algorithm that receives a dataset and outputs a value in R\mathcal{R} is differentially private if it outputs similar values on (any) two neighboring datasets. Formally:

A randomized algorithm T:X∗→RT:X^{*}\rightarrow\mathcal{R} is (ε,δ)(\varepsilon,\delta)-differentially private if for all n≥1n\geq 1, for all neighbouring datasets D,D′∈XnD,D^{\prime}\in X^{n}, and for all measurable subsets S⊆RS\subseteq\mathcal{R},

If δ=0\delta=0, we say that TT is ε\varepsilon-differentially private.

For any dataset DD, score function SS and privacy parameter ε>0\varepsilon>0, the exponential mechanism ME(D,S,ε)\mathcal{M}_{E}(D,S,\varepsilon) is an ε\varepsilon-differentially private algorithm, and with probability at least 1−β1-\beta, it selects an outcome r∈Rr\in\mathcal{R} 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 MM is an adaptive composition of differentially private algorithms M1,…,MTM_{1},\dots,M_{T}, then if M1,…,MTM_{1},\dots,M_{T} are (ε1,δ1),…,(εT,δT)(\varepsilon_{1},\delta_{1}),\dots,(\varepsilon_{T},\delta_{T})-differentially private then MM is (∑tεt,∑tδt)(\sum_{t}\varepsilon_{t},\sum_{t}\delta_{t})-differentially private.

Another strength of differential privacy is that it is closed under post-processing:

If M:Xn→YM:\mathcal{X}^{n}\rightarrow\mathcal{Y} is (ε,δ)(\varepsilon,\delta)-differentially private, and P:Y→ZP:\mathcal{Y}\rightarrow\mathcal{Z} is any randomized function, then the algorithm P∘MP\circ M is (ε,δ)(\varepsilon,\delta)-differentially private.

We now define (ε,δ)(\varepsilon,\delta)-DP learners.

An algorithm is said to be an (ε,δ)(\varepsilon,\delta)-DP PAC learner for a set of distributions H\mathcal{H} with sample complexity nH(α,β,ε,δ)n_{\mathcal{H}}(\alpha,\beta,\varepsilon,\delta) if it is a PAC learner that satisfies (ε,δ)(\varepsilon,\delta)-differential privacy.

An algorithm is said to be an (ε,δ)(\varepsilon,\delta)-DP CC-agnostic PAC learner for a set of distributions H\mathcal{H} with sample complexity nHC(α,β,ε,δ)n_{\mathcal{H}}^{C}(\alpha,\beta,\varepsilon,\delta) if it is a CC-agnostic PAC learner that satisfies (ε,δ)(\varepsilon,\delta)-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 ε\varepsilon-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 α\alpha from the robustness parameter ξ\xi, and boost the success probability to be arbitrarily high. The proof follows immediately from the proof in [BKSW19]. For a set of distributions H\mathcal{H}, we will denote H∗H^{*} as the distribution in H\mathcal{H} that is closest to the unknown distribution PP.

Let H={H1,…,Hm}\mathcal{H}=\{H_{1},\dots,H_{m}\} be a set of probability distributions, ξ,α,β,ε,δ∈(0,1)\xi,\alpha,\beta,\varepsilon,\delta\in(0,1) and D∼PnD\sim P^{n} where PP satisfies \TV(P,H)≤ξ\TV(P,\mathcal{H})\leq\xi. PHS(ξ,α,β,ϵ,H,D)\emph{\text{PHS}}(\xi,\alpha,\beta,\epsilon,\mathcal{H},D) is an ε\varepsilon-DP (ξ,3)(\xi,3)-robust PAC learner with sample complexity

Furthermore, when the algorithm succeeds it guarantees that \TV(H^,H∗)≤2ξ+α\TV(\widehat{H},H^{*})\leq 2\xi+\alpha.

We note the guarantee that the algorithm gives with respect to H∗H^{*} 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 α\alpha from the robustness parameter ξ\xi. The proof follows directly from the proof of Theorem 4.1 in [BKSW19].

Let H\mathcal{H} be a set of probability distributions, ξ,α,β,ε,δ∈(0,1)\xi,\alpha,\beta,\varepsilon,\delta\in(0,1) and D∼PnD\sim P^{n} where PP satisfies \TV(P,H)≤ξ\TV(P,\mathcal{H})\leq\xi. Furthermore, let dd be the VC dimension of F(H)\mathcal{F}(\mathcal{H}) and assume ∣B(3ξ+α,H∗,H)∣≤k|\mathcal{B}\left(3\xi+\alpha,H^{*},\mathcal{H}\right)|\leq k. GAP-MAX(α,ξ,β,ϵ,δ,k,H,D)\emph{\text{GAP-MAX}}(\alpha,\xi,\beta,\epsilon,\delta,k,\mathcal{H},D) is an (ε,δ)(\varepsilon,\delta)-DP (ξ,4)(\xi,4)-robust PAC learner for H\mathcal{H} with sample complexity

Furthermore, when the algorithm succeeds it guarantees that \TV(H^,H∗)≤3ξ+α\TV(\widehat{H},H^{*})\leq 3\xi+\alpha.

Note that Theorem 2.23 requires knowledge of ∣B(3ξ+α,H∗,H)∣|\mathcal{B}\left(3\xi+\alpha,H^{*},\mathcal{H}\right)|, 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 H′∈HH^{\prime}\in\mathcal{H}, i.e. max⁡H′∈H∣B(3ξ+α,H′,H)∣≤k′\max_{H^{\prime}\in\mathcal{H}}|\mathcal{B}\left(3\xi+\alpha,H^{\prime},\mathcal{H}\right)|\leq k^{\prime}. This directly translates to showing H\mathcal{H} is (k′,3ξ+α)(k^{\prime},3\xi+\alpha)-locally small.

This lays the foundation for the strategy used in [BKSW19] to construct a private distribution learner for an infinite set of distributions H\mathcal{H}: by using a (k′,6ξ+α)(k^{\prime},6\xi+\alpha)-locally small Note that the guarantee we can get from any ξ\xi-cover Cα\mathcal{C}_{\alpha} is \TV(H∗,Cα)≤ξ  ⟹  \TV(P,Cα)≤2ξ\TV(H^{*},\mathcal{C}_{\alpha})\leq\xi\implies\TV(P,\mathcal{C}_{\alpha})\leq 2\xi. ξ\xi-cover for H\mathcal{H} as the input to the GAP-MAX algorithm, given the right amount of samples (which depends on k′k^{\prime}), with high probability the algorithm outputs a distribution that is (8ξ+α(8\xi+\alpha)-close to PP.

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 ε\varepsilon-DP 1818-agnostic PAC learner, at the cost of some poly-logarithmic factors. This leads to the natural question of whether there exists an ε\varepsilon-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 (ε,δ)(\varepsilon,\delta)-DP semi-agnostic PAC learner.

Fortunately, [BKSW19] gave a simple procedure that takes an (ε,δ)(\varepsilon,\delta)-DP robust PAC learner and constructs an (ε,δ)(\varepsilon,\delta)-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 (ε,δ)(\varepsilon,\delta)-DP semi-agnostic PAC leaner given an infinite set of distributions. The procedure [BKSW19] came up with works in the following way: run the (ε,δ)(\varepsilon,\delta)-DP robust PAC learner with (a small number of) different values for ξ\xi 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 ε\varepsilon-DP semi-agnostic PAC learner, however it can be immediately generalized to construct (ε,δ)(\varepsilon,\delta)-DP semi-agnostic PAC learners given any (ε,δ)(\varepsilon,\delta)-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 H\mathcal{H}. 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 H\mathcal{H} has a locally small cover: we demonstrate that if for every H∈HH\in\mathcal{H} the total variation ball B(γ,H,H)\mathcal{B}\left(\gamma,H,\mathcal{H}\right) has an ξ2\frac{\xi}{2}-cover of size no more than kk, then there exists an ξ\xi-cover for H\mathcal{H} that is (k,γ)(k,\gamma)-locally small.

Given a set of distributions H\mathcal{H} and ξ∈(0,1)\xi\in(0,1), if for every distribution H∈HH\in\mathcal{H} the total variation ball B(γ,H,H)⊆H\mathcal{B}\left(\gamma,H,\mathcal{H}\right)\subseteq\mathcal{H} has an ξ2\frac{\xi}{2}-cover of size no more than kk, then there exists a (k,γ)(k,\gamma)-locally small ξ\xi-cover for H\mathcal{H}.

Fix some H∈HH\in\mathcal{H}. By assumption, we have that the set of distributions B(γ,H,H)\mathcal{B}\left(\gamma,H,\mathcal{H}\right) has an ξ2\frac{\xi}{2}-cover of size no more than kk, which by definition implies that the ξ2\frac{\xi}{2}-covering number of B(γ,H,H)\mathcal{B}\left(\gamma,H,\mathcal{H}\right) is no more than kk. By Lemma 2.9, the ξ\xi-packing number of B(γ,H,H)\mathcal{B}\left(\gamma,H,\mathcal{H}\right) is also at most kk.

Now consider an ξ\xi-packing Pξ\mathcal{P}_{\xi} for the set of distributions H\mathcal{H}. We claim any such Pξ\mathcal{P}_{\xi} must be (k,γ)(k,\gamma)-locally small, and we prove this by contradiction. Suppose to the contrary that there were a distribution H′∈PξH^{\prime}\in\mathcal{P}_{\xi} such that ∣B(γ,H′,Pξ)∣>k\left|\mathcal{B}\left(\gamma,H^{\prime},\mathcal{P}_{\xi}\right)\right|>k. This would imply that there is an ξ\xi-packing for B(γ,H′,H)\mathcal{B}\left(\gamma,H^{\prime},\mathcal{H}\right) with size larger than kk, which contradicts the above observation that the packing number of any B(γ,H′,H)\mathcal{B}\left(\gamma,H^{\prime},\mathcal{H}\right) is at most kk.

A ξ\xi-packing for H\mathcal{H} is called maximal if it is impossible to add a new element of H\mathcal{H} to it without violating the ξ\xi-packing property. We claim that any maximal packing Pξ′\mathcal{P}^{\prime}_{\xi} of H\mathcal{H} is also a ξ\xi-cover of H\mathcal{H}. We can prove this by contradiction. Suppose to the contrary that there were a distribution P∈HP\in\mathcal{H} with \TV(P,Pξ′)>ξ\TV(P,\mathcal{P}^{\prime}_{\xi})>\xi. Then we could add PP to Pξ′\mathcal{P}^{\prime}_{\xi} to produce a strictly larger packing, contradicting the maximality of Pξ′\mathcal{P}^{\prime}_{\xi}. Thus taking Pξ\mathcal{P}_{\xi} to be a maximal packing gives us a (k,γ)(k,\gamma)-locally small ξ\xi-cover. Therefore, it only remains to show that a maximal packing actually exists, which follows from a simple application of Zorn’s Lemma. Let MM be the set of all γ\gamma-packings of H\mathcal{H}. Define a partial order on MM by the relation P1≤P2⟺P1⊆P2\mathcal{P}_{1}\leq\mathcal{P}_{2}\Longleftrightarrow\mathcal{P}_{1}\subseteq\mathcal{P}_{2} where P1,P2∈M\mathcal{P}_{1},\mathcal{P}_{2}\in M. We claim that every chain in this partially ordered set has an upper bound in MM; by Zorn’s lemma, this would imply that MM has a maximal element which concludes the proof. To see why every (possibly infinite) chain P1≤P2≤…\mathcal{P}_{1}\leq\mathcal{P}_{2}\leq\ldots has an upper bound in MM, we consider the following upper bound U=∪iPiU=\cup_{i}\mathcal{P}_{i}. Note that U∈MU\in M since otherwise there would be an index ii such that Pi∉M\mathcal{P}_{i}\notin M. ∎

2 Locally Small Gaussian Covers

We now prove that both the set of dd-dimensional location Gaussians and scale Gaussians can be covered in a locally small fashion. Our first result shows that the set of dd-dimensional location Gaussians GdL\mathcal{G}^{L}_{d} has a locally small cover. Our second result is proving the existence of a locally small cover for the set of dd-dimensional scale Gaussians GdS\mathcal{G}^{S}_{d}.

Fix some N(μ,I)∈GdL\mathcal{N}(\mu,I)\in\mathcal{G}^{L}_{d}. 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 GdS\mathcal{G}_{d}^{S}. Fortunately for us, Lemma 3.1 simplifies things significantly. It turns out that if we want to cover the TV ball centered at any N(0,Σ)\mathcal{N}(0,\Sigma), we can use a cover for N(0,I)\mathcal{N}(0,I) and “stretch” the covariance matrices of every distribution in the cover (using Σ\Sigma) so that the modified cover becomes a valid cover for the TV ball centered at N(0,Σ)\mathcal{N}(0,\Sigma). The following lemma tells us that we can cover the total variation ball centered at N(0,I)\mathcal{N}(0,I) with respect to GdS\mathcal{G}^{S}_{d} as long as the radius is not too large.

where λ1…λd\lambda_{1}\dots\lambda_{d} are the eigenvalues of Σ−I\Sigma-I, and it holds that ∑i=1dλi2=∥Σ−I∥F\sqrt{\sum_{i=1}^{d}\lambda_{i}^{2}}=\|\Sigma-I\|_{F}.

For any γ\gamma smaller than the universal constant c2′c_{2}^{\prime} , the lower bound in (3) implies two things: 1) for any N(0,Σ)∈B(γ,N(0,I),GS)\mathcal{N}(0,\Sigma)\in\mathcal{B}\left(\gamma,\mathcal{N}(0,I),\mathcal{G}^{S}\right), ∥Σ−I∥F≤100γ\|\Sigma-I\|_{F}\leq 100\gamma and 2) the minimum eigenvalue of Σ\Sigma, λmin\lambda_{\text{min}}, satisfies λmin≥1−100γ\lambda_{\text{min}}\geq 1-100\gamma. We thus propose the following cover:

where ρ=ξ2πe(1−100γ)d+ξ2πe\rho=\frac{\xi\sqrt{2\pi e}(1-100\gamma)}{d+\xi\sqrt{2\pi e}}. First we will show that this is a valid cover. Consider an arbitrary N(0,Σ)∈B(γ,N(0,I),GdS)\mathcal{N}(0,\Sigma)\in\mathcal{B}\left(\gamma,\mathcal{N}(0,I),\mathcal{G}^{S}_{d}\right). We want to show that there is a distribution N(0,Σ^)∈Cξ\mathcal{N}(0,\hat{\Sigma})\in\mathcal{C}_{\xi} that is ξ\xi-close to N(0,Σ)\mathcal{N}(0,\Sigma). Let Δ=Σ−I\Delta=\Sigma-I, let Δ^=ρ⌊Δ/ρ⌋\hat{\Delta}=\rho\lfloor\Delta/\rho\rfloor and let Σ^=I+Δ^\hat{\Sigma}=I+\hat{\Delta}. Since ∥Δ∥F=∥Σ−I∥F≤100γ\|\Delta\|_{F}=\|\Sigma-I\|_{F}\leq 100\gamma, N(0,Σ^)\mathcal{N}(0,\hat{\Sigma}) is indeed in the cover.

Next we show that \TV(N(0,Σ),N(0,Σ^))≤ξ\TV(\mathcal{N}(0,\Sigma),\mathcal{N}(0,\hat{\Sigma}))\leq\xi. We use Proposition 32 in [VV10], which states for any two positive definite matrices Σ\Sigma and Σ^\hat{\Sigma}, if ∥Σ−Σ^∥∞,∞≤ρ′\|\Sigma-\hat{\Sigma}\|_{\infty,\infty}\leq\rho^{\prime} and the smallest eigenvalue of Σ\Sigma satisfies λmin>η\lambda_{\text{min}}>\eta, then we have

By the definition of Cξ\mathcal{C}_{\xi}, ∥Δ^−Δ∥∞,∞≤ρ\|\hat{\Delta}-\Delta\|_{\infty,\infty}\leq\rho. Since any valid Σ\Sigma must satisfy λmin≥1−100γ\lambda_{\text{min}}\geq 1-100\gamma, our choice of setting ρ=ξ2πe(1−100γ)d+ξ2πe\rho=\frac{\xi\sqrt{2\pi e}(1-100\gamma)}{d+\xi\sqrt{2\pi e}} implies that

for any γ\gamma smaller than the universal constant c2′c_{2}^{\prime}. We now bound the size of the cover in a similar manner to the case of location Gaussians.

for any γ\gamma smaller than the universal constant c2′′c_{2}^{\prime\prime} we have,

Setting c2=max⁡{c2′,c2′′}c_{2}=\max\{c_{2}^{\prime},c_{2}^{\prime\prime}\} completes the proof. ∎

The following corollary is a direct consequence of Lemma 3.4 and Proposition A.1.

We can thus take the cover Cξ\mathcal{C}_{\xi} in Lemma 3.4, and replace every distribution N(0,Σ1)∈Cξ\mathcal{N}(0,\Sigma_{1})\in\mathcal{C}_{\xi} with N(0,Σ1/2Σ1Σ1/2)\mathcal{N}(0,\Sigma^{1/2}\Sigma_{1}\Sigma^{1/2}). Note that our modified cover will have the same size. From (5), our new cover will be a valid ξ\xi-cover for B(γ,N(0,Σ),GdS)\mathcal{B}\left(\gamma,\mathcal{N}(0,\Sigma),\mathcal{G}^{S}_{d}\right) since the TV distance can not increase between any two distributions N(0,Σ1),N(0,Σ2)∈B(γ,N(0,I),GdS)\mathcal{N}(0,\Sigma_{1}),\mathcal{N}(0,\Sigma_{2})\in\mathcal{B}\left(\gamma,\mathcal{N}(0,I),\mathcal{G}^{S}_{d}\right) 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 (k,6ξ+α)(k,6\xi+\alpha)-locally small ξ\xi-cover for an infinite set of distributions H\mathcal{H}, 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 O(log⁡(1/δ)/αε)O(\log(1/\delta)/\alpha\varepsilon). In the case of learning an unbounded univariate Gaussian in the realizable setting, it is known that the sample complexity is O(1/α2+log⁡(1/δ)/ε)O(1/\alpha^{2}+\log(1/\delta)/\varepsilon) [KV18], however the upper bound on the sample complexity achieved by Theorem 2.23 (together with an appropriate locally smaller cover) is O(1/α2+log⁡(1/δ)/αε)O(1/\alpha^{2}+\log(1/\delta)/\alpha\varepsilon) [BKSW19, Corollary 6.15]. In order to overcome the poor dependence on log⁡(1/δ)\log(1/\delta), we can instead aim for a two step approach:

Use the GAP-MAX algorithm in Theorem 2.23 but with constant accuracy CC to learn a distribution H′H^{\prime} that is roughly CC-close to the true Gaussian for some appropriately selected constant C<1C<1.

Build a finite cover for B(C,H′,H)\mathcal{B}\left(C,H^{\prime},\mathcal{H}\right) and use the private hypothesis selection algorithm (Theorem 2.22) to learn a distribution H^\widehat{H} that is α\alpha-close to the true Gaussian.

Running the GAP-MAX algorithm with constant accuracy CC thus removes the dependence on α\alpha in the O(log⁡(1/δ)/ε)O(\log(1/\delta)/\varepsilon) term. Intuitively, this approach learns a “rough” estimate of the right distribution using approximate differential privacy. Since we know that we are roughly CC-close to the true Gaussian, we can cover B(C,H′,H)\mathcal{B}\left(C,H^{\prime},\mathcal{H}\right) with a finite cover, and use the ε\varepsilon-differentially private hypothesis selection algorithm. This two step approach which we dub boosting gets us a much better dependence on the privacy parameter δ\delta 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 N(μ,1)\mathcal{N}(\mu,1) (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 GdL\mathcal{G}^{L}_{d} in order to make use of it as a subroutine in Algorithm 2 which robustly learns Gd\mathcal{G}_{d}.

Let bb be a positive constant. For any β,ε,δ∈(0,1)\beta,\varepsilon,\delta\in(0,1), α∈(0,c3)\alpha\in(0,c_{3}) and ξ∈(0,c4)\xi\in(0,c_{4}) where c3c_{3} and c4c_{4} are constants that depend only on bb, given a dataset D∼PnD\sim P^{n} where PP satisfies \TV(P,GdL)≤bξ+α/4\TV(P,\mathcal{G}^{L}_{d})\leq b\xi+\alpha/4, BOOST1(b,ξ,α,β,ε,δ,Cα,D)\emph{\text{BOOST}}_{1}\left(b,\xi,\alpha,\beta,\varepsilon,\delta,\mathcal{C}_{\alpha},D\right) is an (ε,δ)(\varepsilon,\delta)-differentially private algorithm which outputs some H^∈GdL\widehat{H}\in\mathcal{G}^{L}_{d} such that \TV(H^,P)≤3(b+1)ξ+α\TV(\widehat{H},P)\leq 3(b+1)\xi+\alpha with probability no less than 1−β1-\beta, so long as

We first show Algorithm 1 satisfies (ε,δ)(\varepsilon,\delta)-differential privacy. Line 1 of the algorithm is (ε/2,δ)(\varepsilon/2,\delta)-differentially private by the guarantee of Theorem 2.23. Line 1 maintains (ε/2,δ)(\varepsilon/2,\delta)-privacy by post-processing (Lemma 2.18). Finally, line 1 is (ε/2,0)(\varepsilon/2,0)-differentially private by Theorem 2.22. By composition (Lemma 2.17), the entire algorithm is (ε,δ)(\varepsilon,\delta)-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 n=O(d+log⁡(1/βδ)ε)n=O\left(\frac{d+\log(1/\beta\delta)}{\varepsilon}\right), with probability no less than 1−β/21-\beta/2 the GAP-MAX algorithm in line 1 outputs a distribution H′H^{\prime} that is (3bξ+1200(600b+1))\left(3b\xi+\frac{1}{200(600b+1)}\right)-close to H∗H^{*}, for any ξ\xi and α\alpha smaller than constants c3′c_{3}^{\prime} and c4c_{4}, respectively, that depend only on bb. For the remainder of the proof we condition on this event.

as long as n=O(d+log⁡(1/β)α2+d+log⁡(1/β)αε)n=O\left(\frac{d+\log(1/\beta)}{\alpha^{2}}+\frac{d+\log(1/\beta)}{\alpha\varepsilon}\right). Setting n=O(d+log⁡(1/β)α2+d)+log⁡(1/β)αε+log⁡(1/βδ)ε)n=O\left(\frac{d+\log(1/\beta)}{\alpha^{2}}+\frac{d)+\log(1/\beta)}{\alpha\varepsilon}+\frac{\log(1/\beta\delta)}{\varepsilon}\right) together with a union bound completes the proof. ∎

The following result can be derived from the BOOST1\text{BOOST}_{1} algorithm by taking the standard assumption in the robust setting of \TV(P,H)≤ξ\TV(P,\mathcal{H})\leq\xi. The proof is nearly identical to the proof of Lemma 4.2.

Let α,β,ε,δ∈(0,1)\alpha,\beta,\varepsilon,\delta\in(0,1) and ξ∈(0,c5)\xi\in(0,c_{5}) where c5c_{5} is a universal constant, and let D∼PnD\sim P^{n} where PP satisfies \TV(P,GdL)≤ξ\TV(P,\mathcal{G}^{L}_{d})\leq\xi. Furthermore, let Cξ\mathcal{C}_{\xi} be an appropriately selected locally small ξ\xi-cover for GdL\mathcal{G}_{d}^{L}. BOOST1(1,ξ,α,β,ε,δ,Cα,D)\emph{\text{BOOST}}_{1}\left(1,\xi,\alpha,\beta,\varepsilon,\delta,\mathcal{C}_{\alpha},D\right) is an (ε,δ)(\varepsilon,\delta)-DP (ξ,6)(\xi,6)-robust PAC learner for GdL\mathcal{G}_{d}^{L} 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 β,ε,δ∈(0,1)\beta,\varepsilon,\delta\in(0,1), α∈(0,c6)\alpha\in(0,c_{6}) and ξ∈(0,c7)\xi\in(0,c_{7}) where c6c_{6} and c7c_{7} are universal constants, and let D∼PnD\sim P^{n} where PP satisfies \TV(P,GdL)≤ξ\TV(P,\mathcal{G}^{L}_{d})\leq\xi. Furthermore, let Cα1\mathcal{C}_{\alpha}^{1} and Cα2\mathcal{C}_{\alpha}^{2} be appropriately selected locally small covers for Gd\mathcal{G}_{d} and GdL\mathcal{G}_{d}^{L} respectively. BOOST2(ξ,α,β,ε,δ,Cα1,Cα2,D)\emph{\text{BOOST}}_{2}\left(\xi,\alpha,\beta,\varepsilon,\delta,\mathcal{C}_{\alpha}^{1},\mathcal{C}_{\alpha}^{2},D\right) is an (ε,δ)(\varepsilon,\delta)-DP (ξ,33)(\xi,33)-robust PAC learner for Gd\mathcal{G}_{d} with sample complexity

We first show Algorithm 2 satisfies (ε,δ)(\varepsilon,\delta)-differential privacy. Line 2 of the algorithm is (ε/4,δ/2)(\varepsilon/4,\delta/2)-differentially private by the guarantee of Theorem 2.23. Line 2 maintains (ε/4,δ/2)(\varepsilon/4,\delta/2)-privacy by post-processing(Lemma 2.18). Line 2 is (ε/4,0)(\varepsilon/4,0)-differentially private by Theorem 2.22. Line 2 maintains privacy by post processing (Lemma 2.18). Finally, line 2 is (ε/2,δ/2)(\varepsilon/2,\delta/2)-differentially private by the privacy of Algorithm 1 proved in Lemma 4.2. By composition (Lemma 2.17) the entire algorithm is (ε,δ)(\varepsilon,\delta)-differentially private.

We now argue about the accuracy of the algorithm. Let H∗=N(μ∗,Σ∗)H^{*}=\mathcal{N}(\mu^{*},\Sigma^{*}) be the hypothesis in Gd\mathcal{G}_{d} that satisfies \TV(H∗,P)≤ξ\TV(H^{*},P)\leq\xi. By Lemma A.3 Yi∼QY_{i}\sim Q where \TV(Q,N(0,Σ∗))≤3ξ\TV(Q,\mathcal{N}(0,\Sigma^{*}))\leq 3\xi, which implies that \TV(N(0,Σ∗),Cξ1)≤4ξ\TV(\mathcal{N}(0,\Sigma^{*}),\mathcal{C}_{\xi}^{1})\leq 4\xi. From Lemma 2.14, Corollary 3.6 and Theorem 2.23, as long as n=O(d2+log⁡(1/βδ)ε)n=O\left(\frac{d^{2}+\log(1/\beta\delta)}{\varepsilon}\right), with probability no less than 1−β/41-\beta/4 the GAP-MAX algorithm in line 2 outputs a distribution H1′=N(0,Σ′)H_{1}^{\prime}=\mathcal{N}(0,\Sigma^{\prime}) that is (12ξ+1100(1201))\left(12\xi+\frac{1}{100(1201)}\right)-close to N(0,Σ∗)\mathcal{N}(0,\Sigma^{*}), for any ξ\xi smaller than a universal constant c6′c_{6}^{\prime}. We condition on this event.

It follows from the triangle inequality that \TV(R,Cξ2)≤10ξ+α/4\TV(R,\mathcal{C}_{\xi}^{2})\leq 10\xi+\alpha/4. This together with Lemma 4.2 implies that, with probability greater than 1−β/21-\beta/2, BOOST1(10,ξ,α,β/2,ε/2,δ/2,Cα2,D′′)\text{BOOST}_{1}(10,\xi,\alpha,\beta/2,\varepsilon/2,\delta/2,\mathcal{C}_{\alpha}^{2},D^{\prime\prime}) outputs H^2=N(μ^,I)\widehat{H}_{2}=\mathcal{N}(\hat{\mu},I) satisfying \TV(H^2,N(μ∗,I))≤33ξ+α\TV(\widehat{H}_{2},\mathcal{N}(\mu^{*},I))\leq 33\xi+\alpha for any ξ\xi and α\alpha smaller than universal constants c6′′′c_{6}^{\prime\prime\prime} and c7c_{7} respectively, as long as n=O(d+log⁡(1/β)α2+d+log⁡(1/β)αε+log⁡(1/βδ)ε)n=O\left(\frac{d+\log(1/\beta)}{\alpha^{2}}+\frac{d+\log(1/\beta)}{\alpha\varepsilon}+\frac{\log(1/\beta\delta)}{\varepsilon}\right). Using the triangle inequality and Corollary A.2 it follows that \TV(N(Σ^1/2μ^,Σ^),P)≤33ξ+α\TV(\mathcal{N}(\widehat{\Sigma}^{1/2}\hat{\mu},\widehat{\Sigma}),P)\leq 33\xi+\alpha. Setting n=O(d2+log⁡(1/β)α2+d2+log⁡(1/β)αε+log⁡(1/βδ)ε)n=O\left(\frac{d^{2}+\log(1/\beta)}{\alpha^{2}}+\frac{d^{2}+\log(1/\beta)}{\alpha\varepsilon}+\frac{\log(1/\beta\delta)}{\varepsilon}\right) and c6=max⁡{c6′,c6′′,c6′′′}c_{6}=\max\left\{c_{6}^{\prime},c_{6}^{\prime\prime},c_{6}^{\prime\prime\prime}\right\} 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 (ε,δ)(\varepsilon,\delta)-DP (realizable) PAC learning. The proofs are very similar to the proofs in Section 4.1 and 4.2 for (ε,δ)(\varepsilon,\delta)-DP robust PAC learning, where the slight difference is that we can build the covers directly with accuracy α\alpha (instead of ξ\xi) since we assume realizability. The first bound is tight and the second one is conjectured to be tight.

For any β,ε,δ∈(0,1)\beta,\varepsilon,\delta\in(0,1) and α∈(0,c8)\alpha\in(0,c_{8}) where c8c_{8} is a universal constant, there exists an (ε,δ)(\varepsilon,\delta)-DP PAC learner for GdL\mathcal{G}_{d}^{L} with sample complexity

For any β,ε,δ∈(0,1)\beta,\varepsilon,\delta\in(0,1) and α∈(0,c9)\alpha\in(0,c_{9}) where c9c_{9} is a universal constant, there exists an (ε,δ)(\varepsilon,\delta)-DP PAC learner for Gd\mathcal{G}_{d} with sample complexity

Agnostic Private Hypothesis Selection

In this section we present an ε\varepsilon-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 H\mathcal{H} 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 H\mathcal{H} 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 O(m3)O(m^{3}) computations, where mm is the number of hypotheses in H\mathcal{H}. [MS08] presented a modified MDE that is very similar to the original MDE, but only requires O(m2)O(m^{2}) 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 (Hi,Hj)(H_{i},H_{j}) over a common domain X\mathcal{X}, we define their Scheffé set as Aij={x∈X:Hi(x)>Hj(x)}A_{ij}=\{x\in\mathcal{X}:H_{i}(x)>H_{j}(x)\}. 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 X\mathcal{X} be the common domain of the distributions in H\mathcal{H}. For a dataset DD and set A⊆XA\subseteq\mathcal{X}, we define P^(A,D)=1n⋅∣{x∈D:x∈A}∣\widehat{P}(A,D)=\frac{1}{n}\cdot|\{x\in D:x\in A\}|. For a distribution HH and a set A⊆XA\subseteq\mathcal{X}, let R(H,A)=H(A)−P^(A)R(H,A)=H(A)-\widehat{P}(A). For any Hi∈HH_{i}\in\mathcal{H}, 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 H\mathcal{H}, with dataset DD, and return whichever distribution it outputs.

It is not hard to see that the score function has sensitivity 2/n2/n. Let Hk∈HH_{k}\in\mathcal{H} be any distribution that maximizes the score function. From Theorem 2.16, it follows that running the exponential mechanism with our dataset DD, the set of distributions H\mathcal{H}, privacy parameter ε\varepsilon and the the score function above outputs a distribution Hk′∈HH_{k^{\prime}}\in\mathcal{H} that guarantees, with probability no less than 1−β/21-\beta/2,

where the last line holds so long as n=O(log⁡(m/β)αε)n=O\left(\frac{\log(m/\beta)}{\alpha\varepsilon}\right). 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 HkH_{k} maximizes the score function, and the triangle inequality all together yields,

Furthermore, notice that the term Δ(P)\Delta(P) is small when the difference between the empirical and the true probability measures assigned by PP to the Scheffè sets is small. We can thus upper bound this term by α\alpha by using 2(m2)2{{m}\choose{2}} standard Chernoff bounds together with a union bound to get,

with probability no less than 1−β/21-\beta/2 so long as n=O(log⁡(m/β)α2)n=O\left(\frac{\log(m/\beta)}{\alpha^{2}}\right). Putting (7) and (8) together gives us,

A union bound together with setting n=O(log⁡(m/β)α2+log⁡(m/β)αε)n=O\left(\frac{\log(m/\beta)}{\alpha^{2}}+\frac{\log(m/\beta)}{\alpha\varepsilon}\right) 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 XX and YY be random variables taking values in the same set. For any function ff, we have \TV(f(X),f(Y))≤\TV(X,Y)\TV(f(X),f(Y))\leq\TV(X,Y).

Taking the supremum of the left hand side completes the proof. ∎

Let XX and YY be random variables taking values in the same set. For any invertible function ff, we have \TV(f(X),f(Y))=\TV(X,Y)\TV(f(X),f(Y))=\TV(X,Y).

By Proposition A.1, \TV(f(X),f(Y))≤\TV(X,Y)\TV(f(X),f(Y))\leq\TV(X,Y) and \TV(f−1(f(X)),f−1(f(Y)))≤\TV(f(X),f(Y))\TV(f^{-1}(f(X)),f^{-1}(f(Y)))\leq\TV(f(X),f(Y)). ∎

For any ξ∈(0,1)\xi\in(0,1), Gaussian N(μ,Σ)\mathcal{N}(\mu,\Sigma) and distributions PP that satisfies \TV(P,N(μ,Σ))≤ξ\TV(P,\mathcal{N}(\mu,\Sigma))\leq\xi, the following holds. If X1,X2∼P2X_{1},X_{2}\sim P^{2}, and Y=(X1−X2)/2∼QY=(X_{1}-X_{2})/\sqrt{2}\sim Q, then \TV(Q,N(0,Σ))≤3ξ\TV(Q,\mathcal{N}(0,\Sigma))\leq 3\xi.

Given X∼PX\sim P, the density PP is given by P=N(μ,Σ)+ΔP=\mathcal{N}(\mu,\Sigma)+\Delta. Recall in this paper we define distributions by their densities so N(μ,Σ)\mathcal{N}(\mu,\Sigma) is the Gaussian density. It follows from the definition of the TV distance that ∥Δ∥1≤2ξ\|\Delta\|_{1}\leq 2\xi. Given a sample X∼PX\sim P, we let P−P^{-} be the distribution that satisfies −X∼P−-X\sim P^{-}. The density of P−P^{-} is given by P−=N(−μ,Σ)+Δ−P^{-}=\mathcal{N}(-\mu,\Sigma)+\Delta^{-} where ∥Δ−∥1≤2ξ\|\Delta^{-}\|_{1}\leq 2\xi. The sample Y′=X1+(−X2)Y^{\prime}=X_{1}+(-X_{2}) has density

We can now bound the TV distance between PconvP_{\text{conv}} and N(0,2Σ)\mathcal{N}(0,2\Sigma).

where the first inequality follows from the triangle inequality together with Young’s inequality. Since \TV(Pconv,N(0,2Σ))≤3ξ\TV(P_{\text{conv}},\mathcal{N}(0,2\Sigma))\leq 3\xi, 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 Cγ\mathcal{C}_{\gamma} be a γ\gamma-cover for H\mathcal{H} that has size N(H,γ)N(\mathcal{H},\gamma). If N(H,γ)=∞N(\mathcal{H},\gamma)=\infty, we are done. Otherwise, we claim there is no 2γ2\gamma-packing P2γ′\mathcal{P}^{\prime}_{2\gamma} of H\mathcal{H} of size at least N(H,γ)+1N(\mathcal{H},\gamma)+1. We prove this by contradiction. Assume to the contrary that there exists a 2γ2\gamma-packing P2γ′\mathcal{P}^{\prime}_{2\gamma} of H\mathcal{H} such that ∣P2γ′∣=N(H,γ)+1|\mathcal{P}^{\prime}_{2\gamma}|=N(\mathcal{H},\gamma)+1. By the pigeonhole principle, there exists Q∈CγQ\in\mathcal{C}_{\gamma} and two distributions P,P′∈P2γ′P,P^{\prime}\in\mathcal{P}^{\prime}_{2\gamma} such that \TV(Q,P)≤γ\TV(Q,P)\leq\gamma and \TV(Q,P′)≤γ\TV(Q,P^{\prime})\leq\gamma. By the triangle inequality it follows that \TV(P,P′)≤2γ\TV(P,P^{\prime})\leq 2\gamma which is a contradiction, so P2γ′\mathcal{P}^{\prime}_{2\gamma} cannot be a 2γ2\gamma-packing of H\mathcal{H}. This shows that M(H,2γ)≤N(H,γ)M(\mathcal{H},2\gamma)\leq N(\mathcal{H},\gamma).

We now prove the inequality on the right hand side. Let Pγ\mathcal{P}_{\gamma} be a maximal γ\gamma-packing with size M(H,γ)M(\mathcal{H},\gamma). If M(H,γ)=∞M(\mathcal{H},\gamma)=\infty, we are done. Otherwise, we claim that Pγ\mathcal{P}_{\gamma} is also an γ\gamma-cover of H\mathcal{H}, and hence N(H,γ)≤M(H,γ)N(\mathcal{H},\gamma)\leq M(\mathcal{H},\gamma). We can prove this by contradiction. Suppose to the contrary that there were a distribution P∈HP\in\mathcal{H} with \TV(P,Pγ)>γ\TV(P,\mathcal{P}_{\gamma})>\gamma. Then we could add PP to Pγ\mathcal{P}_{\gamma} to produce a strictly larger packing, contradicting the maximality of Pγ\mathcal{P}_{\gamma}. 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 α,β,ε,δ∈(0,1)\alpha,\beta,\varepsilon,\delta\in(0,1). Let T=⌈log⁡2(1/α)⌉T=\lceil\log_{2}(1/\alpha)\rceil and define sequences ξ1=α/12C,ξ2=2α/12C,…,ξT+4=2T+3α/12C\xi_{1}=\alpha/12C,\xi_{2}=2\alpha/12C,\dots,\xi_{T+4}=2^{T+3}\alpha/12C. Furthermore for all t∈[T+4]t\in[T+4] set αt=α/12\alpha_{t}=\alpha/12, βt=β/2(T+4)\beta_{t}=\beta/2(T+4), εt=ε/2(T+4)\varepsilon_{t}=\varepsilon/2(T+4) and δt=δ/(T+4)\delta_{t}=\delta/(T+4). For each tt, let HtH_{t} denote the outcome of a run of the (ξ,C)(\xi,C)-robust algorithm using robustness parameter ξt\xi_{t} accuracy parameters αt,βt\alpha_{t},\beta_{t} and privacy parameters εt,δt\varepsilon_{t},\delta_{t}. We then use the algorithm of Theorem 2.24 to select a hypothesis from H1,…,HT+4H_{1},\dots,H_{T+4} using accuracy parameter α/2\alpha/2, β/2\beta/2 and privacy parameter ε/2\varepsilon/2. By composition of DP (Lemma 2.17) it follows the output of the two step procedure is (ε,δ)(\varepsilon,\delta)-DP.