Learning with Differential Privacy: Stability, Learnability and the Sufficiency and Necessity of ERM Principle
Yu-Xiang Wang, Jing Lei, Stephen E. Fienberg
Introduction
Increasing public concerns regarding data privacy have posed obstacles in the development and application of new machine learning methods as data collectors and curators may no longer be able to share data for research purposes. In addition to addressing the original goal of information extraction, privacy-preserving learning also requires the learning procedure to protect sensitive information of individual data entries. For example, the second Netflix Prize competition was canceled in response to a lawsuit and Federal Trade Commission privacy concerns, and the National Institute of Health decided in August 2008 to remove aggregate Genome-Wide Association Studies (GWAS) data from the public web site, after learning about a potential privacy risk.
A major challenge in developing privacy-preserving learning methods is to quantify formally the amount of privacy leakage, given all possible and unknown auxiliary information the attacker may have, a challenge in part addressed by the notion of differential privacy (Dwork, 2006; Dwork et al., 2006b). Differential privacy has three main advantages over other approaches: (1) it rigorously quantifies the privacy property of any data analysis mechanism; (2) it controls the amount of privacy leakage regardless of the attacker’s resource or knowledge, (3) it has useful interpretations from the perspectives of Bayesian inference and statistical hypothesis testing, and hence fits naturally in the general framework of statistical machine learning, e.g., see (Dwork & Lei, 2009; Wasserman & Zhou, 2010; Smith, 2011; Lei, 2011; Wang et al., 2015), as well as applications involving regression (Chaudhuri et al., 2011; Thakurta & Smith, 2013) and GWAS data (Yu et al., 2014), etc.
In this paper we focus on the following fundamental question about differential privacy and machine learning: What problems can we learn with differential privacy? Most literature focuses on designing differentially private extensions of various learning algorithms, where the methods depend crucially on the specific context and differ vastly in nature. But with the privacy constraint, we have less choice in developing learning and data analysis algorithms. It remains unclear how such a constraint affects our ability to learn, and if it is possible to design a generic privacy-preserving analysis mechanism that is applicable to a wide class of learning problems.
We provide a general answer to the relationship between learnability and differential privacy under Vapnik’s General Learning Setting (Vapnik, 1995) in four aspects.
1. We characterize the subset of problems in the General Learning Setting that can be learned under differential privacy. Specifically, we show that a sufficient and necessary condition for a problem to be privately learnable is the existence of an algorithm that is differentially private and asymptotically minimizes the empirical risk. This characterization generalizes previous studies of the subject (Kasiviswanathan et al., 2011; Beimel et al., 2013a) that focus on binary classification in discrete domain under the PAC learning model. Technically, the result relies on the now well-known intuitive observation that “privacy implies algorithmic stability” and the argument in Shalev-Shwartz et al. (2010) that shows a variant of algorithmic stability is necessary for learnability.
2. We also introduce a weaker notion of learnability, which only requires consistency for a class of distributions . Problems that are not privately learnable (a surprisingly large class that includes simple problems such as 0-1 loss binary classification in continuous feature domain (Chaudhuri & Hsu, 2011)) are usually private -learnable for some “nice” distribution class . We characterize the subset of private -learnable problems that are also (non-privately) learnable using conditions analogous to those in distribution-free private learning.
3. Inspired by the equivalence between privacy learnability and private AERM, we propose a generic (but impractical) procedure that always finds a consistent and private algorithm for any privately learnable (or -learnable) problems. We also study a specific algorithm that aims at minimizing the empirical risk while preserving the privacy. We show that under a sufficient condition that relies on the geometry of the hypothesis space and the data distribution, this algorithm is able to privately learn (or -learn) a large range of learning problems including classification, regression, clustering, density estimation and etc, and it is computationally efficient when the problem is convex. In fact, this generic learning algorithm learns any privately learnable problems in the PAC learning setting (Beimel et al., 2013a). It remains an open problem whether the second algorithm also learns any privately learnable problem in the General Learning Setting.
4. Lastly, we provide a preliminary study of learnability under the more practical -differential privacy. Our results reveal that whether there is separation between learnability and approximate private learnability depends on how fast is required to go to with respect to the size of the data. Finding where the exact phase transition occurs is an open problem of future interest.
Our primary objective is to understand the conceptual impact of differential privacy and learnability under a general framework and the rates of convergence obtained in the analysis may be suboptimal. Although we do provide some discussion on polynomial time approximations to the proposed algorithm, learnability under computational constraints is beyond the scope of this paper.
Related work
While a large amount of work has been devoted to finding consistent (and rate optimal) differentially private learning algorithms in various settings (e.g., Chaudhuri et al., 2011; Kifer et al., 2012; Jain & Thakurta, 2013; Bassily et al., 2014), the characterization of privately learnable problems were only studied in a few special cases.
Kasiviswanathan et al. (2011) showed that, for binary classification with a finite discrete hypothesis space, anything that is non-privately learnable is privately learnable under the agnostic Probably Approximately Correct (PAC) learning framework, therefore “finite VC-dimension” characterizes the set of private learnable problems in this setting. Beimel et al. (2013a) extends Kasiviswanathan et al. (2011) by characterizing the sample complexity of the same class of problems, but the result only applies to the realizable (non-agnostic) case. Chaudhuri & Hsu (2011) provided a counter-example showing that for continuous hypothesis space and data space, there is a gap between learnability and learnability under privacy constraint. They proposed to fix this issue by either weakening the privacy requirement to labels only or by restricting the class of potential distribution. While meaningful in some cases, these approaches do not resolve the learnability problem in general.
A key difference of our work from Kasiviswanathan et al. (2011); Chaudhuri & Hsu (2011); Beimel et al. (2013a) is that we consider a more general class of learning problems and provide a proper treatment in a statistical learning framework. This allows us to capture a wider collection of important learning problems (see Figure 1(a) and Table 1).
It is important to note that despite its generality, Vapnik’s general learning setting still does not nearly cover the full spectrum of private learning. In particular, our results do not apply to improper learning (learning using a different hypothesis class) as considered in Beimel et al. (2013a) or to structural loss minimization (the loss function jointly take all data points as input) considered in Beimel et al. (2013b). Also, our results do not address the sample complexity problem, which remains open in the general learning setting even for learning without privacy constraints.
Our characterization of private learnability (and private -learnability) in Section 3 uses a recent advance in the characterization of general learnability given by Shalev-Shwartz et al. (2010). Roughly speaking, they showed that a problem is learnable if and only if there exists an algorithm that (i) is stable under small perturbation of training data, and (ii) behaves like empirical risk minimization (ERM) asymptotically. We also makes use of a folklore observation that “Privacy Stability Generalization”. The connection of privacy and stability appeared as early as 2008 in a conference version of Kasiviswanathan et al. (2011). Further connection to “generalization” recently appeared in blog postsFor instance, Frank McSherry described in a blog post an example of exploiting differential privacy for measure concentration http://windowsontheory.org/2014/02/04/differential-privacy-for-measure-concentration/; Moritz Hardt discussed the connection of differential privacy to stability and generalization in his blog post http://blog.mrtz.org/2014/01/13/false-discovery., stated as a theorem in Appendix F of Bassily et al. (2014), and was shown to hold with strong concentration in Dwork et al. (2015b).
Dwork et al. (2015b) is part of an independent line of work (Hardt & Ullman, 2014; Bassily et al., 2015; Dwork et al., 2015a; Blum & Hardt, 2015) on adaptive data analysis, which also stems from the observation that privacy implies stability and generalization. Comparing to adaptive data analysis works, our focus is quite different. Adaptive data analysis work focus on the impact of on how fast the maximum absolute error of -adaptively chosen queries goes to as a function of , while this paper is concerned with whether the error can go to at all for each learning problem when we require the learning algorithm be differentially private with . Nonetheless, we acknowledge that Theorem 7 in Dwork et al. (2015b) provides an interesting alternative proof for “differentially private learners have small generalization error”, when choosing the statistical query as evaluating a loss function at a privately learned hypothesis. The connection is not quite obvious and we provide a more detailed explanation in Appendix B.
The main tool used in the construction of our generic private learning algorithm in Section 4 is the Exponential Mechanism (McSherry & Talwar, 2007), which provides a simple and differentially-private approximation to the maximizer of a score function among a candidate set. In the general learning context, we use the negative empirical risk as the utility function, and apply the exponential mechanism to a possibly pre-discretized hypothesis space. This exponential mechanism approach was used in Bassily et al. (2014) for minimizing convex and Lipschitz functions. The sample discretization procedure has been considered in Chaudhuri & Hsu (2011) and Beimel et al. (2013a). Our scope and proof techniques are different. Our strategy is to show that, under some general regularity conditions, the exponential mechanism is stable and behaves like ERM. Our sublevel set condition has the same flavor as that in the proof of Bassily et al. (2014, Theorem 3.2), although we do not need the loss function to be convex or Lipschitz.
Stability, privacy and generalization were also studied in Thakurta & Smith (2013) with different notions of stability. More importantly, their stability is used as an assumption rather than a consequence, so their result is not directly comparable to ours.
Background
To account for the randomness in the data, we are primarily interested in the case where the data are independent samples drawn from an unknown probability distribution on . We denote such a random sample by . For a given distribution , let be the expected loss of hypothesis and the empirical risk from a sample :
The optimal risk and we assume that it is achieved by an optimal . Similarly, the minimal empirical risk is achieved by . For a possibly randomized algorithm that learns some hypothesis given data sample , we say is consistent if
In addition, we say is consistent with rate if
Since the distribution is unknown, we cannot adapt the algorithm to , especially when privacy is a concern. Also, even if is pointwise consistent for any distribution , it may have different rates for different and potentially be arbitrarily slow for some . This makes it hard to evaluate whether indeed learns the learning problem and forbids the study of the learnability problem. In this study, we adopt the stronger notion of learnability considered in Shalev-Shwartz et al. (2010), which is a direct generalization of PAC-learnability (Valiant, 1984) and agnostic PAC-learnability (Kearns et al., 1992) to the General Learning Setting as studied by Haussler (1992).
This definition requires consistency to hold universally for any distribution with a uniform (distribution-independent) rate . This type of problem is often called distribution-free learning (Valiant, 1984), and an algorithm is said to be universally consistent with rate if it realizes the criterion.
2 Differential privacy
Differential privacy requires that if we arbitrarily perturb a database by only one data point, the output should not differ much. Therefore, if one conducts a statistical test for whether any individual is in the database or not, the false positive and false negative probabilities cannot both be small (Wasserman & Zhou, 2010). Formally, define “Hamming distance”
An algorithm is -differentially private, if
for obeying and any measurable subset .
There are weaker notions of differential privacy. For example -differential privacy allows for a small probability where the privacy guarantee does not hold. In this paper, we will mainly work with the stronger -differential privacy. In Section 6 we discuss the problem of -differential privacy and extend some of the results to this setting.
Our objective is to understand whether there is a gap between learnable problems and privately learnable problems in the general learning setting, and to quantify the tradeoff required to protect privacy. To achieve this objective, we need to show the existence of an algorithm that learns a class of problems while preserving differential privacy. More formally, we define
A learning problem is privately learnable with rate if there exists an algorithm that satisfies both universal consistency (as in Definition 1) with rate and -differential privacy with privacy parameter .
We can view the consistency requirement Definition 3 as a measure of utility. This utility is not a function of the observed data, however, but rather how the results generalize to unseen data.
The following lemma shows that the above definition of private learnability is actually equivalent to a seemingly much stronger condition with a vanishing privacy loss .
If there is an -DP algorithm that is consistent with rate for some constant , then there is a -DP algorithm that is consistent with rate .
The proof, given in Section A.1, uses a subsampling theorem adapted from Beimel et al. (2014, Lemma 4.4).
There are many approaches to design differentially private algorithms, such as noise perturbation using Laplace noise (Dwork, 2006; Dwork et al., 2006b) and the Exponential Mechanism (McSherry & Talwar, 2007). Our construction of generic differentially private learning algorithms applies the Exponential Mechanism to penalized empirical risk minimization. Our argument will make use of a general characterization of learnability described below.
3 Stability and Asymptotic ERM
An important breakthrough in learning theory is a full characterization of all learnable problems in the General Learning Setting in terms of stability and empirical risk minimization (Shalev-Shwartz et al., 2010). Without assuming uniform convergence of empirical risk, Shalev-Shwartz et al. showed that a problem is learnable if and only if there exists a “strongly uniform-RO stable” and “always asymptotically empirical risk minimization” (Always AERM) randomized algorithm that learns the problem. Here “RO” stands for “replace one”. Also, any strongly uniform-RO stable and “universally” AERM (weaker than “always” AERM) learning rule learns the problem consistently. Here we give detailed definitions.
A (possibly randomized) learning rule is Universally AERM if for any distribution defined on domain
where is the minimum empirical risk for data set . We say is Always AERM, if in addition,
An algorithm is strongly uniform RO-stable if
where is defined in (3), in other word, and can differ by at most one data point.
Since we will not deal with other variants of algorithmic stability in this paper (e.g., hypothesis stability (Kearns & Ron, 1999), uniform stability (Bousquet & Elisseeff, 2002) and leave-one-out (LOO) stability in Mukherjee et al. (2006)), we simply call Definition 6 stability or uniform stability. Likewise, we will refer to -differential privacy as just “privacy” although there are several other notions of privacy in the literature.
Characterization of private learnability
There exists a differentially private universally AERM algorithm.
There exists a differentially private always AERM algorithm.
The proof is simple yet revealing, we will present the arguments for (sufficiency of AERM) in Section 3.1 and (necessity of AERM) in Section 3.2. follows trivially from the definition of “always” and “universal” AERM.
The theorem says that we can stick to ERM-like algorithms for private learning, despite that ERM may fail for some problems in the (non-private) general learning setting (Shalev-Shwartz et al., 2010). Thus a standard procedure for finding universally consistent and differentially private algorithms would be to approximately minimize the empirical risk using some differentially private procedures (Chaudhuri et al., 2011; Kifer et al., 2012; Bassily et al., 2014). If the utility analysis reveals that the method is AERM, we do not need to worry about generalization as it is guaranteed by privacy. This consistency analysis is considerably simpler than non-private learning problems where one typically needs to control generalization error either via uniform convergence (VC-dimension, Rademacher complexity, metric entropy, etc) or to adopt the stability argument (Shalev-Shwartz et al., 2010).
This result does not imply that privacy is helping the algorithm to learn in any sense, as the simplicity is achieved at the cost of having a smaller class of learnable problems. A concrete example of a problem being learnable but not privately learnable is given in (Chaudhuri & Hsu, 2011) and we will revisit it in Section 3.3. For some problems where ERM fails, it may not be possible to make it AERM while preserving privacy. In particular, we were not able to privatize the problem in Section 4.1 of Shalev-Shwartz et al. (2010).
To avoid any potential misunderstanding, we stress that Theorem 7 is a characterization of learnability, not learning algorithms. It does not prevent the existence of a universally consistent learning algorithm that is private but not AERM. Also, the characterization given in Theorem 7 is about consistency, and it does not claim anything on sample complexity. An algorithm that is AERM may be suboptimal in terms of convergence rate.
A key ingredient in the proof of sufficiency is a well-known heuristic observation that differential privacy by definition implies uniform stability, which is useful in its own right.
The proof of this lemma comes directly from the definition of differential privacy so it is algorithm independent. The converse, however, is not true in general (e.g., a non-trivial deterministic algorithm can be stable, but not differentially private.)
If a learning algorithm is -differentially private and is universally AERM with rate , then is universally consistent with rate .
The proof of Corollary 9, provided in the Appendix, combines Lemma 8 and the fact that consistency is implied by stability and AERM (Theorem 35). Our Theorem 35 is based on minor modifications of Theorem 8 in Shalev-Shwartz et al. (2010). In fact, Corollary 9 can be stated in a stronger per distribution form, since universality is not used in the proof. We will revisit this point when we discuss a weaker notion of private learnability below.
Lemma 4 and Corollary 9 together establishes in Theorem 7.
If for a problem privacy and always AERM cannot coexist, then the problem is not privately learnable. This is what we will show next.
2 Necessity: Consistency implies Always AERM
To prove that the existence of an always AERM learning algorithm is necessary for any private learnable problems, it suffices to construct such a learning algorithm from
or each learnable problem. any universally consistent learning algorithm.
If is a universally consistent learning algorithm satisfying -DP with any and consistent with rate , then there is another universally consistent learning algorithm that is always AERM with rate and satisfies -DP.
Lemma 10 is proved in Section A.2. The proof idea is to run on a size random subsample of , which will be universally consistent with a slower rate, differentially private with (Lemma 34), and at the same time always AERM. The last part uses an argument in Lemma 24 of Shalev-Shwartz et al. (2010) which appeals to the universality of ’s consistency on a specific discrete distribution supported on the given data set .
As pointed out by an anonymous reviewer, there is a simpler proof by invoking Theorem 10 of Shalev-Shwartz et al. (2010) that says any consistent and generalizing algorithm must be AERM and a result (e.g., Bassily et al., 2014, Appendix F) that says “privacy generalization”. This is a valid observation. But their Theorem 10 is proven using a detour through “generalization”, which leads to a slower rate than what we are able to obtain in Lemma 10 using a more direct argument.
3 Private Learnability vs. Non-private Learnability
Now we have a characterization of all privately learnable problems, a natural question to ask is that whether any learnable problem is also privately learnable. The answer is “yes” for learning in Statistical Query (SQ)-model and PAC Learning model (binary classification) with finite hypothesis space, and is “no” for continuous hypothesis space (Chaudhuri & Hsu, 2011).
By definition, all privately learnable problems are learnable. But now that we know that privacy implies generalization, it is tempting to hope that privacy can help at least some problem to learn better than any non-private algorithm. In terms of learnability, the question becomes: Could there be a (learnable) problem that is exclusively learnable through private algorithms? We now show that such a problem does not exist.
If a learning problem is learnable by an -DP algorithm , then it is also learnable by a non-private algorithm.
The proof is given in Section A.3. The idea is that defines a distribution over . Pick an . If , algorithm . Otherwise, samples from a slightly different distribution than that does not affect the expectation much.
On the other hand, not all learnable problems are privately learnable. This can already be seen from Chaudhuri & Hsu (2011), where the gap between learning and private learning is established. We revisit Chaudhuri & Hsu’s example in our notation under the general learning setting and produce an alternative proof by showing that differential privacy contradicts always AERM, then invoking Theorem 7 to show the problem is not privately learnable.
There exists a problem that is learnable by a non-private algorithm, but not privately learnable. In particular, any private algorithm cannot be always AERM in this problem.
We describe the counterexample and re-establish the impossibility of private learning for this problem using the contrapositive of Theorem 7, which suggests that if privacy and always AERM algorithm cannot coexist for some problem, then the problem is not privately learnable.
Consider the binary classification problem with , and 0-1 loss function. Let be the collection of threshold functions that output if and otherwise. This class has VC-dimension 1, and hence the problem is learnable.
Next we will construct data sets such that if of them obey AERM, the remaining one cannot be. Let , . Let be a disjoint thresholds such that they are at least apart and are disjoint intervals.
since these intervals are disjoint. Then by the definition of -DP,
As is pointed out by an anonymous reviewer, the same conclusion of this impossibility result of privately learning thresholds on $\log(|\mathcal{H}|)(\epsilon,\delta)$-Differential Privacy later in Section 6.
4 Private 𝔇𝔇\mathfrak{D}-learnability
The above example implies that even very simple learning problems may not be privately learnable. To fix this caveat, note that most data sets of practical interest have nice distributions. Therefore, it makes sense to consider a smaller class of distributions, e.g., smooth distributions that have bounded th order derivative, or those having bounded total variation. These are common assumptions in non-parametric statistics, such as kernel density estimation, smoothing spline regression and mode clustering. Similarly, in high dimensional statistics, there are often assumptions on the structures of the underlying distribution, such as sparsity, smoothness, and low-rank conditions.
Almost all of our arguments hold in a per distribution fashion, therefore they also hold for any such subclass . The only exception is the necessity of “always AERM” (Lemma 10), where we used the universal consistency on an arbitrary discrete uniform distribution in the proof. The characterization still holds if the class contains all finite discrete uniform distributions. For general distribution classes, we characterize private -learnability using a weaker “universally AERM” (instead of “always AERM”) under the assumption that the problem itself is learnable in a distribution-free setting without privacy constraints.
If an -DP algorithm is -universally consistent with rate and the problem itself is learnable in a distribution-free sense with rate , then there exists a -universally consistent learning algorithm that is -universally AERM with rate and satisfies -DP.
The proof, given in Section A.4, shows that the algorithm that applies to a random subsample of size is AERM for any distribution in the class .
A problem is privately -learnable if there exists an algorithm that is -universally AERM and differentially private with privacy loss . If in addition, the problem is (distribution-free and non-privately) learnable, then the converse is also true.
The “if” part is exactly the same as the argument in Section 3.1, since both Lemma 8 and Lemma 9 holds for each distribution independently. Under the additional assumption that the problem itself is learnable (distribution-free and non-privately), the “only if” part is given by Lemma 14. ∎
This result may appear to be unsatisfactory due to the additional assumption of learnability. It is clearly a strong assumption because many problems that are -learnable for a practically meaningful are not actually learnable. We provide one such example here.
For any discrete distribution with a finite support set, there is an such that the optimal risk is . Assume the problem is learnable with rate , then for some . However, we can always construct a uniform distribution over elements and it is information-theoretically impossible for any estimators based on samples from the distribution to achieve a risk better than . The problem is therefore not learnable. When we assume an upper bound on the maximum number of bins of the underlying distribution, then the ERM which outputs just the support of all observed data will be universally consistent with rate . ∎
It turns out that we cannot hope to completely remove the assumption from Theorem 15. The following example illustrates that some form of qualification (implied by the learnability assumption) is necessary for the converse statement to be true.
Consider the learning problem in Example 16. Let be the class of all continuous distributions. There is a learning problem that is s privately -learnable but no private AERM algorithm exists.
Interestingly, this problem is -learnable via a non-private AERM algorithm, which always outputs . This is -consistent, -AERM but not generalizing. This example suggests that -learnability and learnability are quite different because for learnable problems, if an algorithm is consistent and AERM, then it must also be generalizing (Shalev-Shwartz et al., 2010, Theorem 10).
5 A generic learning algorithm
The characterization of private learnability suggests a generic (but impractical) procedure that learns all privately learnable problems (in the same flavor as the generic algorithm in Shalev-Shwartz et al. (2010) that learns all learnable problems). This is to solve
or to privately -learn the problem when (6) is not feasible
Assume the problem is learnable. If the problem is private learnable, (6) will always output a universally consistent private learning algorithm. If the problem is private -learnable, (7) will always output a -universally consistent private learning algorithm.
If the problem is private learnable, by Theorem 7 there exists an algorithm that is -DP and always AERM with rate and . This is a witness in the optimization so we know that any minimizer of (6) will have a objective value that is no greater than for any . Corollary 9 concludes its universal consistency. The second claim follows from the characterization of private -learnability in Theorem 15. ∎
It is of course impossible to minimize the supremum over any data , nor is it possible to efficiently search over the space of all algorithms, let alone DP algorithms. But conceptually, this formulation may be of interest to theoretical questions related to the search of private learning algorithms and the fundamental limit of machine learning under privacy constraints.
Private learning for penalized ERM
Now we describe a generic and practical class of private learning algorithms, based on the idea of minimizing the empirical risk under privacy constraint:
The first term is empirical risk and the second term vanishes as increases so that this estimator is asymptotically ERM. The same formulation has been studied before in the context of differentially private machine learning (Chaudhuri et al., 2011; Kifer et al., 2012), but our focus is more generic and does not require the objective function to be convex, differentiable, continuous, or even have a finite dimensional Euclidean space embedding, hence covers a larger class of learning problems.
Our generic algorithm for differentially private learning is summarized in Algorithm 1. It applies the exponential mechanism (McSherry & Talwar, 2007) to penalized ERM. We note that this algorithm implicitly requires that , otherwise the distribution is not well-defined and it does not make sense to talk about differential privacy. In general, if is a compact set with a finite volume (with respect to a base measure, such as the Lebesgue measure or counting measure), then such a distribution always exists. We will revisit this point and discuss the practicality of this assumption in the Section 5.3.
Using the characterization results developed so far, we are able to give sufficient conditions for consistency of private learning algorithms without having to establish uniform convergence. Define the sublevel set as
where is the regularized empirical risk function defined in (8). In particular, we assume the following conditions:
A2. Sublevel set condition: There exist constant positive integer , positive real number , and a sequence of regularizer satisfying , such that for any ,
where satisfy . Here the measure may depend on context, such as Lebesgue measure ( is continuous) or counting measure ( is discrete).
The first condition of boundedness is common. It is assumed in Vapnik’s characterization for ERM learnability and Shalev-Shwartz et al.’s general characterization of all learnable problems. In fact, we can always consider to be a sublevel set such that the boundedness condition holds. For the second condition, the intuition is that we require the sublevel set to be large enough such that the sampling procedure will return a good hypothesis with large probability. is a critical parameter in the utility guarantee for the exponential mechanism (McSherry & Talwar, 2007). Also, it is worth pointing out that A2 implies that the exponential distribution is well-defined.
In particular, if , and for all (in ) Algorithm 1 privately learns (-learns) the problem.
We give an illustration of the proof in Figure 3. The detailed proof, based on the stability argument (Shalev-Shwartz et al., 2010), is deferred to Section A.5.
To see that Theorem 19 actually contains a large number of problems in the general learning setting. We provide concrete examples that satisfy A1 and A2 below for both privately learnable and privately -learnable problems that can be learned using Algorithm 1.
We start from a few cases where Algorithm 1 is universally consistent for all distributions.
Suppose can be fully encoded by -bits, then
since there are at least optimal hypothesis for each function and now is the counting measure. In other word, we can take and in the (11). Plug this into the expression and take , , we get a rate of consistency . In addition, if we can find a data-independent covering set for a continuous space, then we can discretize the space and the result same results follow. This observation will be used in the construction of many private learning algorithms below.
Then for sufficiently small , we have Lebesgue measure
and Condition A.2 holds with , . Furthermore, if we take , the algorithm is -consistent.
This shows that condition A2 holds for a large class of low-dimensional problems of interest in machine learning and one can learn the problem privately without actually needing to find a covering set algorithmically. Specifically, the example includes many practically used methods such as logistic regression, linear SVM, ridge regression, even multi-layer neural networks, since the loss functions in these methods are jointly bounded in and Lipschitz in .
The example also raises an interesting observation that while differentially private classification is not possible in a distribution-free setting for 0-1 loss function (Chaudhuri & Hsu, 2011), it is learnable under smoother surrogate loss, e.g., logistic loss or hinge loss. In other words, private learnability and computational tractability both benefit from the same relaxation.
The Lipschitz condition still requires the dimension of the hypothesis space to be . Thus it does not cover high-dimensional machine learning problems where , nor does it contain the example of Shalev-Shwartz et al. (2010) that ERM fails.
For high dimensional problems where grows with , typically some assumptions or restrictions need to be made either on the data or on the hypothesis space (so that it becomes essentially low-dimensional). We give one example here for the problem of sparse regression.
2 Examples of privately 𝔇𝔇\mathfrak{D}-learnable problems.
For problems where private learnability is impossible to achieve, we may still apply Theorem 19 to prove the weaker private -learnability for some specific class of distributions.
For binary classification problems with - loss (PAC learning), this has been well-studied. In particular, Beimel et al. (2013a) characterized the sample complexity of privately learnable problems using a combinatorial condition they call a “Probabilistic Representation”, which basically involves finding a finite, data-independent set of hypotheses to approximate any hypothesis in the class. Their claim is that if the “representation dimension” is finite, then the problem is privately learnable, otherwise it is not. We can extend the notion of probabilistic representation beyond the finite discrete and countably infinite hypothesis class considered in Beimel et al. (2013a) to cases when the problem is not privately learnable (e.g, learning threshold functions on $\mathfrak{D}\mathfrak{D}$-universally private learning algorithm.
Another way to define a class of distribution is to assume the existence of a reference distribution that is close to any distribution of interest as in Chaudhuri & Hsu (2011).
To deal with the - loss classification problems on a continuous hypothesis domain, Chaudhuri & Hsu (2011) assume that there exists a data-independent reference distribution , which by multiplying a fixed constant on its density, uniformly dominates any distributtion of interest. This essentially produces a subset of distributions . The consequence is that one can build an -net of with metric defined on the risk under and this will also be a (looser) covering set of any distribution , thereby learning the problem for any distribution in the set.
The same idea can be applied to the general learning setting. For any fixed reference distribution defined on and constant ,
is a valid set of distributions and we are able to -privately learn this problem whenever we can construct a sufficiently small cover set with respect to and reduce the problem to Example 20. This class of problems includes high-dimensional and infinity dimensional problems such as density estimation, nonparametric regression, kernel methods and essentially any other problems that are strictly learnable (Vapnik, 1998), since they are characterized by one-sided uniform convergence (and the corresponding entropy condition).
3 Discussion on uniform convergence and private learnability
A key point in Shalev-Shwartz et al. (2010) is that the learnability (by any algorithm) in general learning setting is no longer characterized by variants of uniform convergence. However, the class of privately learnable problems is much smaller. Clearly, uniform convergence is not sufficient for a problem to be privately learnable (see Section 3.3), but is it necessary?
In binary classification with discrete domain (agnostic PAC Learning), since VC-dimension being finite characterizes the class of privately PAC learnable problems, the necessity of uniform convergence is clear. This could also be more explicitly seen from Beimel et al. (2013a) where the probabilistic representation dimension is a form of uniform convergence on its own.
In the general learning setting, the problem is still open. We were not able to prove that private learnability implies uniform convergence, but we could not construct a counter example either. All our examples in this section do implicitly or explicitly uses uniform convergence, which seems to hint at a positive answer.
Practical concerns
We have stated all results so far in expectation. We can easily convert these to the high-confidence learning paradigm by applying Markov’s inequality, since convergence in expectation to the minimum risk implies convergence in probability to the minimum risk. While the dependence on the failure probability is not ideal, we can apply a similar meta-algorithm “boosting”(Schapire, 1990) as in Shalev-Shwartz et al. (2010, Section 7) to get a rate. The approach is similar to cross-validation. Given a pre-chosen positive integer , the original boosting algorithm randomly partitions the data into subsamples of size , and applies Algorithm 1 on the first partitions, obtaining candidate hypotheses. The method then returns the one hypothesis with smallest validation error, calculated using the remaining subsample. To ensure differential privacy, our method instead uses the exponential mechanism to sample the best candidate hypothesis, where the logarithm of sampling probability is proportional to the negative validation error.
If an algorithm privately learns a problem with rate and privacy parameter , then the boosting algorithm with is -differentially private, its output obeys
for an absolute constant with probability at least .
2 Efficient sampling algorithm for convex problems
Our proposed exponential sampling based algorithm is to establish a more explicit geometric condition upon which AERM holds, hence the algorithm may not be computationally tractable. Ignoring the difficulty of constructing the -covering set of an exponential number of elements, sampling from the set alone is not a polynomial time algorithm. But we can solve a subset of the continuous version of our Algorithm 1 described in Theorem 19 in polynomial time to arbitrary accuracy (see also Bassily et al. (2014, Theorem 3.4)).
3 Exponential mechanism in infinite domain
As we mention earlier, the results in Section 4 based on the exponential mechanism implicitly assumes certain regularity conditions that ensures the existence of a probability distribution.
Things get even trickier when is an infinite dimensional space, such as a subset of a Hilbert space. While probability measures can still be defined, no density function can be defined on such spaces. Therefore, we cannot use exponential mechanism to define a valid probability distribution.
The practical implication is that exponential mechanism is really only applicable to cases when the hypothesis space allows for definitions of densities in the usual sense, or then can be approximated by such a space. For example, a separable Hilbert space can be studied by finite-dimensional projections. Also, we can approximate RKHS induced by translation invariant kernels via random Fourier features (Rahimi & Recht, 2007).
Results for learnability under (ϵ,δ)italic-ϵ𝛿(\epsilon,\delta)-differential privacy
Another way to weaken the definition of private learnability is through -approximate differential privacy.
An algorithm obeys -differential privacy if for any such that , and for any measurable set
We say a learning problem is -approximately privately learnable for some pre-specified family of rate if for some , , there exists a universally consistent algorithm that is -DP.
This is a completely different subject to study and the class of approximately privately learnable problems could be substantially larger than the pure privately learnable problems. Moreover, the picture may vary with respect to how small is required to be. In this section, we present our preliminary investigation on this problem.
Specifically, we will consider two questions:
Does the existence of an -DP always AERM algorithm characterize the class of approximately private learnable problems?
Are all learnable problems approximately privately learnable for different choices of ?
The minimal requirement in the same flavor of Definition 3 would be to require . The learnability problem turns out to be trivial under this definition due to the following observation.
For any algorithm that acts on , that runs on a randomly chosen subset of of size is -DP.
Let and be adjacent datasets that differs only in data point . For any and any .
This verifies the -DP of algorithm . ∎
The above lemma suggests that if is all we need for the approximately private learnability, then any consistent learning algorithm can be made approximately DP by simply subsampling. In other words, any learnable problem is also learnable under approximate differential privacy.
To get around this triviality, we need to specify a sufficiently fast rate of going to . While it is common to require that Here the notation “” means “decays faster than any polynomial of ”. A sequence if and only if for any . for cryptographically strong privacy protection, requiring is already enough to invalidate the above subsampling argument and makes the problem of learnability a non-trivial one.
Again, the question is whether AERM characterizes approximately private learnability and whether there is a gap between the class of learnable and approximately privately learnable problems.
Here we show that the “folklore” Lemma 8 and subsampling lemma (Lemma 34) can be extended to work with -DP and then we provide a positive answer to the first question.
For any such that and for any . Let the event ,
The last line applies the definition of -DP. ∎
If is -DP, then that acts on a random subsample of of size obeys -DP with and .
For any event , let be the coordinate where and differs
where in last line, we apply -DP of .
Denote , . We known , and and . For every there are precisely elements such that . Likewise, for every , there are elements such that . It follows by symmetry that if we apply -DP to of each and change to their corresponding , then each will receive “contribution” in total from the sum over all .
Using the above two lemmas, we are able to establish the same result which says that AERM characterizes the approximate private learnability for certain classes of .
A problem is -approximately privately learnable implies that there exists an always AERM algorithm that is -DP for some and . The converse is also true if .
If we have an always AERM algorithm with that is -DP for . Then by Lemma 30, this algorithm is strongly uniform RO-stable with rate . By Theorem 35, the algorithm is universally consistent with rate . This establishes the “if” part.
To see the “only if” part, by definition if a problem is -approximately privately learnable with and . Then by Lemma 31 with , we get an algorithm that obeys the privacy condition. It remains to prove always AERM, which requires exactly the same arguments in the proof of Lemma 10. Details are omitted. ∎
Note that the results above suggest that in the two canonical settings or , existence of a private AERM algorithm that satisfies the stronger constraint characterizes the learnability.
The next question that whether any learnable problems are also approximately privately learnable would depend on how fast is required to decay. We know that when we only have , all learnable problems are approximately privately learnable, and when we have , only a strict subset of these problems is privately learnable. The following result establishes that when needs to go to with a sufficiently fast rate, there is separation between learnability and approximately private learnability.
We now show that when we require a fast decaying , then suddenly the example in Section 3.3 due to Chaudhuri & Hsu (2011) becomes not approximately privately learnable even for -DP. Let be two completely different data sets, by repeatedly applying the definition of -DP, for any set
When we shift the inequality around, we get
Consider the same example in Section 3.3 where we hope to learn a threshold on $\mathcal{A}(\epsilon(n),\delta(n))\epsilon(n)<\infty\delta(n)\leq 0.4ne^{-\epsilon n}$.
Everything up to (4) remains exactly the same. Now, apply the above implication of -DP, we can replace (4) for each , by
The bound can be further improved to if we directly work with universal consistency on various distributions rather than through always AERM on specific data points. Even that is likely to be suboptimal as there might be more challenging problems and less favorable packings to consider.
The point of this exposition, however, is to illustrate that -DP alone does not close the gap between learnability and private learnability. Additional relaxation on the specified rate of decay on does. We now know that the phase transition occurs when is somewhere between and ; but there is still a substantial gap between the upper and lower bounds.
Conclusion and future work
In this paper, we revisited the question “What can we learned privately?” and considered a broader class of statistical machine learning problems than those studied previously. Specifically, we characterized the learnability under privacy constraint by showing any privately learnable problems can be learned by a private algorithm that asymptotically minimizes the empirical risk for any data, and the problem is not privately learnable otherwise. This allows us to construct a conceptual procedure that privately learns any privately learnable problem. We also propose a relaxed notion of private learnability called private -learnability, which requires the existence of an algorithm that is consistent for any the distribution within a class of distributions . We characterized private -learnability too with a weaker notion of AERM. For problems that can be formulated as penalized empirical risk minimization, we provide a sampling algorithm with a set of meaningful sufficient conditions on the geometry of the hypothesis space and demonstrate that it covers a large class of problems. In addition, we further extended the characterization to learnability under -differential privacy and provided a preliminary analysis which establishes the existence of a phase transition from all learnable problems being approximately private learnable to some learnable problems being not approximately private learnable at some non-trivial rate of decay on .
Future work includes understanding the conditions under which privacy and AERM are contradictory (recall that we only have one example on learning thresholding functions due to Chaudhuri & Hsu 2011), characterizing the rate of convergence, searching for practical algorithms that generically learns all privately learnable problems, and better understanding the gap between learnability and approximate private learnability.
Acknowledgment
We thank the AE and the anonymous reviewers for their comments that lead to significant improvement of this paper. The research was partially supported by NSF Award BCS-0941518 to the Department of Statistics at Carnegie Mellon University, and a grant by Singapore National Research Foundation under its International Research Centre @ Singapore Funding Initiative and administered by the IDM Programme Office.
Appendix A Proofs of technical results
In this appendix, we provide detailed proofs to the technical results that in the main text.
Let be the consistent -DP algorithm. Consider that apply to a random subsample of data points. By Lemma 34 with , we get the privacy claim. For the consistency claim, note that the given sample is an iid sample of size from the original distribution. ∎
If Algorithm is -DP for for any , then the algorithm that output the result of to a random subsample of size data points preserves -DP.
This is a corollary of Lemma 4.4 in Beimel et al. (2014). To be self-contained, we reproduce the proof here in our notation.
Recall that is the algorithm that first randomly subsample data points then apply . Let and be any neighboring databases and assume they differ on the th data point. Let be the indices of the random subset of the entries that are selected, and be a index size of size . We apply the law of total expectation twice and argue that for any adjacent , , any event ,
By the given condition that is -DP, we can replace with for an arbitrary with bounded changes in the probability and the above likelihood ratio can be upper bounded by
By definition, the privacy loss of the algorithm is therefore
Note that implies that and . The result follows by applying the property of the natural logarithm:
A.2 Characterization of private learnability
Lemma 8 says that an -differentially private algorithm is -stable (and also -stable if ).
Construct by replacing an arbitrary data point in with and let the probability density/mass defined by and be and respectively, then we can bound the stability as follows
For we have .
Stability + AERM ⇒⇒\Rightarrow consistency
If any algorithm is -stable and -AERM then it is consistent with rate .
We will show the following the two steps as in Shalev-Shwartz et al. (2010)
Uniform RO stability On average stability On average generalization
AERM + On average generalization consistency
The definition of these quantities is self-explanatory.
To show that “stability implies generalization”, we have
Privacy + AERM ⇒⇒\Rightarrow consistency
It follows by combining Lemma 8 and Theorem 35. ∎
Necessity
We construct an algorithm by subsampling the data points using a random subset of and then running . The privacy claim follows from Lemma 34 directly.
To prove the “always AERM” claim, we adapt the proof of Lemma 24 in Shalev-Shwartz et al. (2010). For any fixed data set ,
It is obvious that is consistent with rate as it applies on a random sample of size . By Lemma 4, is differentially private. By Corollary 9, the new algorithm is universally consistent. ∎
A.3 Proofs for Section 3.3
If is a continuous distribution, we can pick at any point where has finite density and set to be with probability and the same as with probability . This breaks privacy because conditioned on two databases with or without , , the probability ratio of outputting is .
The consistency of follows easily as its risk is at most larger than that of . ∎
A.4 Proofs for characterization of private 𝔇𝔇\mathfrak{D}-learnability
Let be the algorithm that applies to a random subsample of size . If we can show that, for any ,
the empirical risk of converges to the the optimal population risk in expectation;
the empirical risk of the ERM learning rule also converges to in expectation,
then by triangle inequality, the empirical risk of must also converge to the empirical risk of ERM, i.e., is -universal AERM.
We will start with (a). For any distribution , we have
To show (b), we need to exploit the assumption that the problem is (non-privately) learnable. By Shalev-Shwartz et al. (2010, Theorem 7), the problem being learnable implies that there exists a universally consistent algorithm (not restricted to ), that is universally AERM with rate and stable with rate . Moreover, by Shalev-Shwartz et al. (2010, Theorem 8), ’s stability and AERM implies that is also generalizing, with rate . Here the term “generalizing” means that the empirical risk is close to the population risk. Therefore, we can establish (b) via the following chain of approximations
Combine (14) and (15), we obtain the AERM of with rate as required. The privacy of follows from Lemma 34. ∎
A.5 Proof for Theorem 19
We first present the proof for Theorem 19. Recall that the roadmap of the proof is summarized in Figure 3.
For readability, we denote by simply .
Denote shorthand and , we can state an analog of the utility theorem of the exponential mechanism in (McSherry & Talwar, 2007).
Assuming (otherwise the privacy protection is meaningless anyway), if assumption A1, A2 hold for distribution , then
By Lemma 7 in McSherry & Talwar (2007) (translated to our case),
Apply (16), take expectation over the data distribution on both sides, and applying assumption A2, we get
Take t=\frac{4\big{[}(\rho+2)\log n+\log(K)\big{]}}{\epsilon n}, by the assumption that , we get . Substitute into the expression of we obtain
Now we can say something about the learning problem. In particular, the AERM follows directly from the utility result and stability follows from the definition of differential privacy.
Assume A1 and A2, and (so Lemma 36 holds), then
This is a simple consequence of boundedness and Lemma 36.
The above theorem shows that Algorithm 1 is asymptotic ERM. By Theorem 8, the fact that this algorithm is -differential private implies that it is -stable. Now the proof follows by applying Theorem 35 which says that stability and AERM of an algorithm certify its consistency. Noting that this holds for any distribution completes our proof for learnability in Theorem 19.
A.6 Proofs of other technical results
The algorithm privately learns the problem with rate implies that
Let and , by Markov’s inequality, with probability at least ,
If we split the data randomly into parts of size and run on the first partitions, then we get . Then with probability at lest , at least one of them has risk
This means that if exponential mechanism picked the one with the best validation risk it will be almost as good as the one with the best risk. Assume is the one that achieves the best validation risk.
Now it remains to bound the probability that exponential mechanism pick an that is much worse than .
Recall that the utility function is the negative validation risk which depends only on the last partition .
This is in fact a random function of the data because we are picking the the validation set randomly from the data. Suppose we arbitrarily replace one data point from the dataset, the distribution of the output of function is a mixture of the two cases: and . Since in the first case, for all , sensitivity for this case is . In the second case, by the boundedness assumption, the sensitivity is at most . For the exponential mechanism guarantee differential privacy, it suffices to take the sensitivity parameter to be .
By the utility theorem of the exponential mechanism,
Now by appropriately choosing , , , we get
combine the terms and take , we get the bound of the excess risk in the theorem.
To get the privacy claim, note that we are applying on disjoint partitions of the data so the privacy parameter does not aggregate. Take the worst over all partitions, we get the overall privacy loss as stated in the theorem. ∎
The Lipschitz example.
Appendix B Alternative proof of Corollary 9 via Dwork et al. (2015b, Theorem 7)
In this Appendix, we describe how the results in Dwork et al. (2015b) can be used to obtain the forward direction of our characterization without going through a stability argument. We first restate the result here in our notation:
Let be an -DP algorithm such that given a dataset , outputs a function from to $\mathcal{D}\mathcal{Z}Z\sim\mathcal{D}^{n}\phi\sim\mathcal{B}(Z)\beta>0\tau>0n\geq 12\log(4/\beta)/\tau^{2}\epsilon<\tau/2$ ensures
This lemma was originally stated to prove the claim that privately generated mechanisms for answering statistical queries always generalize.
However, “generalization” alone still does not imply “consistency”, as we also need
The above proof of “consistency” via Lemma 38 and “AERM”, however, leads to a looser bound comparing to our result (Corollary 9) when the additional assumption on and (equivalently ) is active, i.e., when . In this case it only implies a bound due to that -DP implies -DP for any . Our proof of Corollary 9 is considerably simpler and more general in that it does not require any assumption on the number of data points .