Learning from Untrusted Data
Moses Charikar, Jacob Steinhardt, Gregory Valiant
Introduction
What can be learned from data that is only partially trusted? In this paper, we study this question by considering the following setting: we observe data points, of which are drawn independently from a distribution of interest, , and we make no assumptions about the remaining points—they could be very biased, arbitrary, or chosen by an adversary who is trying to obscure . Our goal is to accurately recover a parameter of interest of (such as the mean), despite the presence of significant amounts of untrusted data. Perhaps surprisingly, we will show that in high dimensions, accurate estimation and learning is often possible, even when the fraction of real data is small (i.e., ). To do this, we consider two notions of successful learning–the list decodable model and the semi-verified model–and provide strong positive results for both notions. Our results have implications in a variety of domains, including building secure machine learning systems, performing robust statistics in the presence of outliers, and agnostically learning mixture models.
The goal of accurate robust estimation appears at first glance to be impossible if the fraction of real data is less than one half. Indeed, in the case, it is possible that the real and fake data are distributed identically, except that the mean of the fake data is shifted by some large amount; in such a case, it is clearly impossible to differentiate which of these two distributions is “right”. Perhaps, however, such symmetries are the only real problem that can occur. It might then be possible to output a short list of possible parameter sets–if , perhaps a list of two parameter sets–such that at least one is accurate. To this end, we consider a notion of successful learning called list decodable learning, first introduced by Balcan et al. (2008). In analogy with list decodable coding theory, the goal is for the learning algorithm to output a short list of possible hypotheses.
We say that a learning, estimation, or optimization problem is list decodably solvable if an efficient algorithm can output a set of at most hypotheses/estimates/answers, with the guarantee that at least one is accurate to within error .
A central question in this paper concerns which learning problems can be robustly solved in the above sense:
To what extent are learning problems robustly solvable in the list decodable sense? If the dataset consists of only an -fraction of real data, in what settings is it possible to efficiently output a list of at most or parameter sets or estimates with the guarantee that at least one closely approximates the solution that could be obtained if one were given only honest data?
The intuition for why strong positive results are obtainable in the list decodable setting is the following. Given a dataset with an fraction of trusted data, the remaining data might do one of two things: either it can be fairly similar to the good data, in which case it can bias the overall answers by only a small amount, or the adversarial data may be very different from the trusted data. The key is that if a portion of the untrusted data tries too hard to bias the final result, then it will end up looking quite different, and can be clustered out. Given this viewpoint, the question of robust learning in the list decodable model becomes a question of the extent to which an adversary can completely obscure the inherent structure possessed by a dataset drawn from a well-behaved distribution.
Our investigation of robust learning has three motivations. First, from a theoretical perspective, it is natural to ask what guarantees are possible in the setting in which a majority of data is untrusted (). Is it the case that learning really becomes impossible (as is often stated), or can one at least narrow down the possible answers to a small set? Second, in many practical settings, there is a trade-off between the amount of data one can collect, and the quality of the data. For a fixed price, one might be able to collect either a small and accurate/trusted dataset, or a large but less trusted dataset. It is worth understanding how the quality of models derived from such datasets varies, across this entire range of dataset quality/quantity. Finally, robust learning with provides a new perspective on learning mixtures of distributions—by treating a single mixture component as the real data, and the remaining components as fake data, we can ask to what extent a mixture component can be learned, independently of the structure of the other components. While this perspective may seem to give up too much, we will show, somewhat surprisingly, that it is possible to learn mixtures almost as well under these adversarial assumptions as under stochastic assumptions.
When , the list decodable model handles symmetries by allowing the learner to output multiple possible answers; an alternative is to break these symmetries with a small amount of side information. In particular, in many practical settings it is possible to obtain a (sometimes extremely small) verified set of data that has been carefully checked, which could be used to determine which of multiple alternative answers is correct. This motivates us to introduce the following new notion of learnability:
In the semi-verified model, we observe data points, of which an unknown are “real” data reflecting an underlying distribution , and the remaining points are arbitrary. Furthermore, we observe “verified” data points that are guaranteed to be drawn from .
The definition of the semi-verified model is inspired by the semi-supervised model of learning (see e.g. Chapelle et al. (2006)). In semi-supervised learning, one is concerned with a prediction/labeling task, and has access to a large amount of unlabeled data together with a small amount of labeled data; the central question is whether the presence of the unlabeled data can reduce the amount of labeled data required to learn. Analogously, in our robust learning setting, we are asking whether the presence of a large amount of untrusted data can reduce the amount of trusted data required for learning. Clearly the answer is “no” if we make no assumptions on the untrusted data. Nevertheless, the assumption that a significant fraction of that data is drawn from seems plausible, and may be sufficient to achieve strong positive results. We therefore ask:
To what extent can the availability of a modest amount of “verified” data facilitate (either computationally or information theoretically) the extraction of the information contained in the larger but untrusted dataset? What learning tasks can be performed in the above semi-verified setting given verified data points? How does the amount of verified data that is needed vary with the setting, the fraction of honest data, etc.?
The above definition and associated questions reflect challenges faced in a number of practical settings, particularly those involving large crowdsourced datasets, or datasets obtained from unreliable sensors or devices. In such settings, despite the unreliability of the data, it is often possible to obtain a small verified dataset that has been carefully checked. Given its pervasiveness, it is somewhat surprising that neither the theory nor the machine learning communities have formalized this model; we think it is important to develop an understanding of the algorithmic possibilities in this domain. Obtaining theoretical guarantees seems especially important for designing provably secure learning systems that are guaranteed to perform well even if an adversary obtains control over some of the training data used by the algorithm.
The semi-verified and list decodable models can be reduced to each other. Informally, given candidate outputs from a list decodable algorithm, we expect to be able to distinguish between them with verified data points. Conversely, if a model is learnable with verified points then we can output candidate parameters in the list decodable setting (since if we sample that many -tuples from the untrusted data, at least one is likely to contain only honest data). For simplicity we state most results in the list decodable model.
From our general results (discussed in detail in the next section), we immediately obtain corollaries in specific settings, starting with mean estimation:
Since our results hold for any stochastic optimization problem, we can also study density estimation, by taking to be the negative log-likelihood:
Robust density estimation: Given an exponential family model , we can find a distribution with , where and .
While density estimation could be reduced to mean estimation (via estimating the sufficient statistics), our analysis applies directly, to an algorithm that can be interpreted as approximately maximizing the log likelihood while removing outliers.
In the list decodable setting, our results also yield bounds for learning mixtures:
It is fairly surprising that, despite making no assumptions on the structure of the data outside of a mixture component, we nearly match the best computationally efficient results that fully leverage this structure. This suggests that there may be a connection between robustness and computation: perhaps the computational threshold for recovering a planted structure in random data (such as a geometric cluster or a high-density subgraph) matches the robustness threshold for recovering that structure in the presence of an adversary.
Beyond our main results, we develop certain technical machinery that may be of broader interest. Perhaps the most relevant is a novel matrix concentration inequality, based on ideas from spectral graph sparsification (Batson et al., 2012), which holds assuming only bounded second moments:Since the writing of this paper, we were able to prove a stronger version of Proposition 1.1 that requires only bounded first moments.
This result is strong in the following sense: if one instead uses all samples , the classical result of Rudelson (1999) only bounds the maximum eigenvalue by roughly , and even then only in expectation. Even under stronger assumptions, one often needs either at least samples, or incurs a factor in the bound on . In the planted partition model, this log factor causes natural spectral approaches to fail on sparse graphs, and avoiding the log factor has been a topic of recent interest (Guédon and Vershynin, 2014; Le et al., 2015; Rebrova and Tikhomirov, 2015; Rebrova and Vershynin, 2016).
Proposition 1.1 says that the undesirable log factor only arises due to a manageable fraction of bad samples, which when removed give us sharper concentration. Our framework allows us to exploit this by defining the good data to be the (unknown) set for which the conclusion of Proposition 1.1 holds. One consequence is that we are able to recover planted partitions in sparse graphs essentially “for free”.
Separately, we introduce a novel regularizer based on minimum trace ellipsoids. This regularizer allows us to control the spectral properties of the model parameters at multiple scales simultaneously, and yields tighter bounds than standard trace norm regularization. We define the regularizer in Section 3, and prove a local Hölder’s inequality (Lemma 5.1), which exploits this regularization to achieve concentration bounds solely from deterministic spectral information.
We also employ padded decompositions, a space partitioning technique from the metric embedding literature (Fakcharoenphol et al., 2003). Their use is the following: when the loss functions are strongly convex, we can improve our bounds by identifying clusters in the data, and re-running our main algorithm on each cluster. Padded decompositions help us because they can identify clusters even if the remaining data has arbitrary structure. Our clustering scheme is described in Section 6.
The work closest to ours is Lai et al. (2016) and Diakonikolas et al. (2016), who study high-dimensional estimation in the presence of adversarial corruptions. They focus on the regime , while our work focuses on . In the overlap of these regimes (e.g. for ) our results improve upon these existing results. (The existing bounds are better as , but do not hold at all if .) The popular robust PCA algorithm (Candès et al., 2011; Chandrasekaran et al., 2011) allows for a constant fraction of the entries to be arbitrarily corrupted, but assumes the locations of these entries are sufficiently evenly distributed. However, Xu et al. (2010) give a version of PCA that is robust to arbitrary adversaries if . Bhatia et al. (2015) study linear regression in the presence of adversaries, and obtain bounds for sufficiently large (say ) when the design matrix is subset strong convex. Klivans et al. (2009) and Awasthi et al. (2014) provide strong bounds for robust classification in high dimensions for isotropic log-concave distributions.
The only works we are aware of that achieve general adversarial guarantees when are Hardt and Moitra (2013), who study robust subspace recovery in the presence of a large fraction of outliers, and Steinhardt et al. (2016), which is an early version of this work that focuses on community detection.
Balcan et al. (2008) introduce the list-decodable learning model, which was later studied by others, e.g. Balcan et al. (2009) and Kushagra et al. (2016). That work provides bounds for clustering in the presence of some adversarial data, but has two limitations relative to our results (apart from being in a somewhat different setting): the fraction of adversaries tolerated is small (), and the bounds are not meaningful in high dimensions (e.g. Balcan et al. (2008) output a list of hypotheses, where typically scales as ).
Kumar and Kannan (2010) and the follow-up work of Awasthi and Sheffet (2012) find deterministic conditions under which efficient -means clustering is possible, even in high dimensions. While the goal is different from ours, their condition is similar to the quantities appearing in our error bounds, and there is some overlap in techniques. They also obtain bounds in the presence of adversaries, but only if the fraction of adversaries is smaller than as in Balcan et al. (2008). Our corollaries for learning mixtures can be thought of as extending this line of work, by providing deterministic conditions under which clustering is possible even in the presence of a large fraction of adversarial data.
Separately, there has been considerable interest in semi-random graph models (Blum and Spencer, 1995; Feige and Krauthgamer, 2000; Feige and Kilian, 2001; Coja-Oghlan, 2004; Krivelevich and Vilenchik, 2006; Coja-Oghlan, 2007; Makarychev et al., 2012; Chen et al., 2014b; Guédon and Vershynin, 2014; Moitra et al., 2015; Agarwal et al., 2015) and robust community detection (Kumar and Kannan, 2010; Moitra et al., 2015; Makarychev et al., 2015; Cai and Li, 2015). In these models, a random graph is generated with a planted structure (such as a planted clique or partition) and adversaries are then allowed to modify some parts of this structure. Typically, the adversary is constrained to only modify nodes or to only modify the graph in restricted ways, though some of the above work considers substantially stronger adversaries as well.
Finally, there is a large literature on learning in the presence of errors, spanning multiple communities including learning theory (Kearns and Li, 1993) and statistics (Tukey, 1960). We refer the reader to Huber and Ronchetti (2009) and Hampel et al. (2011) for some recent surveys.
We pause to explain how our techniques relate to those of other recent robust learning papers by Diakonikolas et al. (2016) and Lai et al. (2016). At a high level, our algorithm works by solving a convex optimization problem whose objective value will be low if all of the data come from ; then, if the objective is high, by looking at the dual we can identify which points are responsible for the high objective value and remove them as outliers.
In contrast, Diakonikolas et al. (2016) solve a convex feasibility problem, where the feasible set depends on the true distribution and hence is not observable. Nevertheless, they show that given a point that is far from feasible, it is possible to provide a separating hyperplane demonstrating infeasibility. Roughly speaking, then, we solve a “tainted” optimization problem and clean up errors after the fact, while they solve a “clean” (but unobserved) optimization problem and show that it is possible to make progress if one is far from the optimum. The construction of the separation oracle in Diakonikolas et al. (2016) is similar to the outlier removal step we present here, and it would be interesting to further understand the relationship between these approaches.
Diakonikolas et al. (2016) also propose another algorithm based on filtering. In the case of mean estimation, the basic idea is to compute the maximum eigenvector of the empirical covariance of the data — if this eigenvector is too large, then we can find a collection of points that are responsible for it being large, and remove them as outliers. Though it is not phrased this way, it can be thought of–similarly to our approach–as solving a tainted optimization problem (top eigenvalue on the noisy data) and then cleaning up outliers afterwards. Their outlier removal step seems tighter than ours, and it would be interesting to find an approach that obtains such tight bounds for a general class of optimization problems.
Finally, Lai et al. (2016) pursue an approach based on iteratively finding the top eigenvectors (rather than just the top) and projecting out the remaining directions of variation, as well as removing outliers if the eigenvalues are too large. This seems similar in spirit to the filtering approach described above.
Our paper is organized as follows. In Section 2 we present our main results and some of their implications in specific settings. In Section 3 we explain our algorithm and provide some intuition for why it should work. In Section 4 we provide a proof outline for our main results. In Sections 5 and 6, we sharpen our results, first showing how to obtain concentration inequalities on the errors, and then showing how to obtain tighter bounds and stronger guarantees for strongly convex losses. In Section 7 we present lower bounds showing that our results are optimal in some settings. In Section 8 we present some intuition for our bounds, and in Section 9 we prove our main corollaries. The remaining sections are dedicated to deferred proofs.
We thank the anonymous reviewers who made many helpful comments that improved this paper. MC was supported by NSF grants CCF-1565581, CCF-1617577, CCF-1302518 and a Simons Investigator Award. JS was supported by a Fannie & John Hertz Foundation Fellowship, a NSF Graduate Research Fellowship, and a Future of Life Institute grant. GV was supported by NSF CAREER award CCF-1351108, a Sloan Foundation Research Fellowship, and a research grant from the Okawa Foundation.
Main Results and Implications
This stochastic optimization setting captures most concrete settings of interest — for instance, mean estimation corresponds to , linear regression to , and logistic regression to .
The fact that is irrelevant to our results—all that matters is the quantity , which exists even for a deterministic set of functions . Furthermore, only depends on the good data and is independent of the adversary.
The definition (1) is a bit complex, so we go over some examples for intuition. We will see later that for the first two examples below (estimating means and product distributions), our implied error bounds are “good”, while for the final example (linear classification), our bounds are “bad”.
Product distributions: Suppose that is drawn from a product distribution on , where the th coordinate is with probability . Let . In this case , and , so that is the KL divergence between and .
Linear classification: Suppose that and that for some unknown vector . Our loss function is the logistic loss . In this case . It is less obvious how to compute , but Lemma 2.1 below implies that it is .
If is -sub-Gaussian and -Lipschitz for , and is at least , then with probability .
1 Main Results
We can now state our main results. Our first result is that, just using the untrusted data, we can output a small ellipse which contains a parameter attaining small error under . This meta-result leads directly to our more specific results in the list decoding and semi-verified settings.
By applying our algorithm multiple times we can improve the bound to , so that our bounds are meaningful for large independent of . We discuss this in more detail in Section 6.
For an example where Theorem 2.2 is less meaningful, consider the linear classification example from above. In that case , and is likely also , so we obtain the bound . However, while , so this bound is essentially vacuous.
Using Theorem 2.2 as a starting point we can derive bounds for both models defined in Section 1, starting with the list decodable model. Here, we must make the further assumption that the are -strongly convex, meaning that . The strong convexity allows us to show that for the good , the parameters concentrate around , with radius . By clustering the and iteratively re-running our algorithm on each cluster, we can obtain bounds that do not depend on , and output a single candidate parameter for each cluster. We can thereby show:
In Section 6 we state and prove a stronger version of this result. A key tool in establishing Theorem 2.3 is padded decompositions (Fakcharoenphol et al., 2003), which identify clusters in data while making minimal assumptions on the geometry of points outside of a cluster, and are thus useful in our adversarial setting.
If the are not strongly convex then we cannot employ the clustering ideas above. However, because we have reduced to the much smaller set , we can nevertheless often approximate with only a small amount of verified data. In fact, in some settings we only need a single verified data point:
The particular functional form for was needed to obtain a concrete bound, but analogs of Lemma 2.4 should be possible in any setting where we can leverage the low complexity of into a bound on . Note that if we replace with in Lemma 2.4, then the dependence becomes , which is usually vacuous.
The dependence on , and in the results above seems essentially necessary, though the optimal dependence on is less clear. In Section 7 we show lower bounds for robust mean estimation even if is known to be Gaussian. These bounds roughly translate to a lower bound of \Omega\big{(}{\frac{S}{\kappa}{\sqrt{\log{({1}/{\alpha})}}}}\big{)} for strongly convex , and \Omega\big{(}{Sr\sqrt{\log(\smash{{1}/{\alpha}})}}\big{)} for linear , and hold in both the list decodable and semi-verified settings. It is unclear whether the optimal dependence on is or or somewhere between. We do note that any dependence better than would improve the best known results for efficiently solving -means for well-separated clusters, which may suggest at least a computational barrier to achieving .
2 Implications
We now go over some implications of our general results in some more specific settings. All of the results below follow as corollaries of our main theorems, and are proved in Section 9.
Suppose that has bounded covariance: . Then, for , with probability it is possible to output candidate means such that \min_{j=1}^{m}\|\mu-\hat{\mu}_{j}\|_{2}\leq\mathcal{O}\Big{(}{\sigma\sqrt{\frac{\log(2/\alpha)}{\alpha}}}\Big{)}. Moreover, if then we can take .
We can compare to the results of Lai et al. (2016) and Diakonikolas et al. (2016), who study mean estimation when and one is required to output a single parameter (i.e., ). For simplicity take . Roughly, Lai et al. (2016) obtain error with sample complexity , while requiring a bound on the fourth moments of ; Diakonikolas et al. (2016) obtain error with sample complexity , and require to be Gaussian. Corollary 2.5 improves both of these by yielding error with sample complexity , and only requires to have bounded second moments. Some fine print: Diakonikolas et al. also estimate the covariance matrix, and their recovery results are stronger if is highly skewed; they roughly show . The adversary model considered in both of these other papers is also slightly more general than ours: first points are drawn from and then an adversary is allowed to corrupt of the points. However, it is straightforward to show (by monotonicity of the operator norm) that our bounds will be worse by at most a factor in this stricter setting, which is a constant if . We note that in contrast to our results, these other results obtain error that vanishes as (at a rate of in the first case and in the second case). We thus appear to incur some looseness when , in exchange for obtaining results in the previously unexplored setting . It would be interesting to obtain a single algorithm that both applies when and achieves vanishing error as .
Suppose we are given samples, where each sample either comes from one of distributions (with for all ), or is arbitrary. Let be the mean of , let be the fraction of points from , and let . Then if , with probability we can obtain a partition of and corresponding candidate means such that: for all but of the points drawn from , the point is assigned a set and candidate mean with . Moreover, .
The dependence can be replaced with , or with if the are sub-Gaussian. The only difference is in which matrix concentration bound we apply to the . Corollary 2.6 says that we can partition the points into sets, such that two points from well-separated clusters are unlikely to end up in the same set. Note however that one cluster might be partitioned into multiple sets. In the adversarial setting, this seems unavoidable, since an adversary could create a fake cluster very close to a real cluster, and one would be forced to either combine the clusters or risk splitting the real cluster in two.
We next consider implications of our results in a version of the planted partition model (McSherry, 2001). In this model we observe a random directed graph, represented as a matrix . For disjoint subsets of , we generate edges as follows: (i) If , then . (ii) If , then . (iii) If , the edges emanating from can be arbitrary. In contrast to the typical planted partition model, we allow some number of corrupted vertices not belonging to any of the . In general and could depend on the partition indices , , but we omit this for simplicity.
Note that the distribution over the row is the same for all . By taking this distribution to be the distribution , Theorem 2.3 yields the following result:
For the planted partition model above, let . Then, with probability , we can obtain sets , with , such that for all , there is a with , where denotes symmetric difference.
This shows that we can approximately recover the planted partition, even in the presence of arbitrary corruptions, provided (since the bound on needs to be less than to be meaningful). In contrast, the best efficient methods (assuming no corruptions) roughly require in the case of equal-sized communities (Abbe and Sandon, 2015a; b). In the simplifying setting where , our bounds require while existing bounds require . The case of unequal size communities is more complex, but roughly, our bounds require in contrast to .
Algorithm
In this section we present our algorithm, which consists of an SDP coupled with an outlier removal step. At a high level, our algorithm works as follows: first, we give each function its own parameter vector , and minimize subject to regularization which ensures the remain close to each other; formally, we bound the to lie within a small ellipse. The reason for doing this is that the different are now only coupled via this regularization, and so the influence of adversarial data on the good parameters can only come from its effect on the shape of the ellipse. We will show that whenever the adversaries affect the shape of the ellipse more than a small amount, they are necessarily outliers that can be identified and removed. In the remainder of this section, we elaborate on these two steps of regularization and outlier removal, and provide pseudocode.
If the functions were all drawn from (i.e., there are no adversaries), then a natural approach would be to let be the minimizer of , which will approximately minimize by standard concentration results.
The problem with using this approach in the adversarial setting is that even a single adversarially chosen function could substantially affect the value of . To minimize this influence, we give each its own parameter , and minimize , subject to a regularizer which encourages the to be close together. The adversary now has no influence on the good except via the regularizer, so the key challenge is to find a regularizer which sufficiently controls statistical error while also bounding the influence of the adversary.
It turns out that the right choice of regularizer in this case is to constrain the to lie within an ellipse with small trace. Formally, the centerpiece of our algorithm is the following convex optimization problem:
Here the coefficients are non-negative weights which will eventually be used to downweight outliers (for now it is fine to imagine that ). Note that is equivalent to the semidefinite constraint \left[\begin{array}[]{cc}Y&w_{i}\\ w_{i}^{\top}&1\end{array}\right]\succeq 0. The problem (4) can be solved in polynomial time in and assuming oracle access to the gradients .
Note that the semidefinite constraint is equivalent to , which says that lies within the ellipse centered at defined by . The regularizer is thus the trace of the minimum ellipse containing the ; penalizing this trace will tend to push the closer together, but is there any intuition behind its geometry? The following lemma shows that is related to the trace norm of :
The appearance of the trace norm makes sense in light of the intuition that we should be clustering the functions ; indeed, trace norm regularization is a key ingredient in spectral algorithms for clustering (see e.g. Zha et al. (2001); Chen et al. (2014a; b)). Lemma 3.1 says that simultaneously bounds the trace norm on every subset of , which ends up yielding better results than are obtained by simply penalizing the overall trace norm; we believe that this local trace norm regularization likely leads to better results even in non-adversarial spectral learning settings. The most important property of is that it admits a certain type of local Hölder’s inequality which we will explain in Section 5.
Pseudocode for our algorithm is given in Algorithms 1 and 2.
Approach and Proof Outline
We now provide an outline of the proof of Theorem 2.2, by analyzing the output of Algorithm 1. The structure of our proof has analogies to classical uniform convergence arguments, so we will start by reviewing that case.
In uniform convergence arguments, we assume that all of are drawn from , which brings us into the realm of classical learning theory. The analogue to the optimization (3) in Algorithm 1 is regularized empirical risk minimization:
where is a non-negative regularizer. Uniform convergence arguments involve two parts:
Bound the optimization error: Use the definition of to conclude that (since minimizes (7)). This step shows that does almost as well as at minimizing the empirical risk .
Bound the statistical error: Show, via an appropriate concentration inequality, that is close to for all . Therefore, is nearly as good as in terms of the true risk .
We will see next that the proof of Theorem 2.2 contains steps similar to these, though bounding the statistical error in the presence of adversaries requires an additional step of removing outliers.
Proof Overview
We will establish a stronger version of Theorem 2.2, which exhibits an explicit with small error:
To prove Theorem 4.1, recall that Algorithm 1 has at its core the following optimization problem:
Throughout the argument, we will make use of the optimality of for (8), which implies that
The solution to (8) satisfies
We next consider the statistical error. We cannot bound this error via standard uniform convergence techniques, because each has a different argument . However, it turns out that the operator norm bound , together with a bound on , yield concentration of the to . In particular, we have:
Moreover, the above supposition holds if and .
Lemma 4.5 ensures that eventually we have , which allows us to bound the overall statistical error (using Lemma 4.3) by . In addition, since , the optimization error is bounded (via Lemma 4.2) by , as well. Combining the various bounds, we end up obtaining
In the remainder of this section, we will prove Lemmas 4.2 through 4.5, then show more formally how Theorem 4.1 follows from these lemmas.
Proof of Lemma 4.2
Proof of Lemma 4.3
For any and any satisfying for all , we have
To establish (11) from Lemma 4.6, note that
where (i) is by convexity of , (ii) is because
Proof of Lemma 4.4
Proof of Lemma 4.5
Now, remember that . Then for any , we have
Proof of Theorem 4.1
Concentration of Errors: A Local Hölder’s Inequality
If the good data is sub-Gaussian, then can we obtain sub-Gaussian concentration of the errors, or can the adversaries force the error to only be small in expectation? What properties of the good data affect concentration of errors in the presence of an adversary?
We call this a local Hölder’s inequality because it is a sharpening of Lemma 4.6, which established via Hölder’s inequality that
Moreover, for any , we have
Our outlier removal step can be modified based on so that almost none of the good points are removed. This is not strictly necessary for any of our later results, but is an intuitively appealing property for our algorithm to have. That we can preserve the good points is unsurprising in light of Corollary 5.3, which says that the good points concentrate, and hence should be cleanly separable from any outliers. The modified outlier removal step is given as Algorithm 3.
Suppose that and . Then, the update step in Algorithm 3 satisfies
We end this section by giving some intuition for the typical scale of . Recall that Lemma 2.1 shows that, when the gradients of are sub-Gaussian with parameter , then assuming . A similar bound holds for , with an additional factor of :
If is -sub-Gaussian and -Lipschitz, then with probability we have
In particular, if , then with probability , where masks only absolute constants.
What happens if the function errors are not sub-Gaussian, but we still have a bound on ? We can then bound in terms of by exploiting the monotonicity of the operator norm.
For any , .
Proof of Lemma 5.1
Throughout this section we will for convenience use to denote . We start with a helper lemma that translates information about into a more useful form:
Letting , we show this as follows:
as was to be shown. Here (i) is Cauchy-Schwarz and (ii) uses the condition . ∎
Proof of Lemma 5.2
In the final step we invoke (46) twice, identically to Lemma 4.3.
For (50), we follow an identical argument to (12) from Lemma 4.3. Defining , we have
This yields (50) and completes the lemma.
Proof of Corollary 5.3
On the other hand, by Lemmas 4.3 and 4.2, we also have
Proof of Lemma 5.4
Proof of Lemma 5.6
Bounds for Strongly Convex Losses
We now turn our attention to the special case that the functions are strongly convex in , in the sense that for all ,
In this case, we will obtain stronger bounds by iteratively clustering the output of Algorithm 1 and re-running the algorithm on each cluster. The main theorem in this section is a recovery result in the list decoding model, for an algorithm (Algorithm 4) that formalizes this clustering intuition:
Note, interestingly, that the bound does not depend on the radius . Since the list decoding model can be reduced to the semi-verified model, Theorem 6.1 also yields strengthened results in the semi-verified model when the functions are strongly convex (we omit these for brevity).
By strong convexity of , we then have
Let be points in a metric space. A ()-padded decomposition is a (random) partition of such that: (i) each element of has diameter at most , and (ii) for each , with probability all points within distance of lie in a single element of .
Fakcharoenphol et al. (2003) show that for any and , a -padded decomposition exists with . Moreover, the same proof shows that, if every is within distance of at least other , then we can actually take . In particular, in our case we can obtain a -padded decomposition of the output by Algorithm 1; we show this formally in Lemma A.1. This probabilistic notion of clustering turns out to be sufficient for our purposes.
We are now prepared to analyze Algorithm 4. In each iteration, Algorithm 4 independently samples padded decompositions of the . For each decomposition , it then runs Algorithm 1 on each component of the resulting partition, and thereby obtains candidate values . Finally, it updates by finding a point close to at least of the candidate values , across .
If we formalize this argument, then we obtain Lemma 6.5, which controls the behavior of the update on each iteration of the loop:
Essentially, Lemma 6.5 shows that if almost all of the good points are within of at the beginning of a loop iteration, then almost all of the good points are within of at the end of that loop iteration, provided is large enough. Using Lemma 6.5, we can establish Theorem 6.1.
Proof of Theorem 6.1
Proof of Proposition 6.2
Proof of Corollary 6.4
where the first inequality is convexity of , and the second is because we only added positive terms to the sum.
Now, we will apply Lemma 6.3 at the value . This satisfies (since ), and also . We can therefore invoke Lemma 6.3 to obtain
Proof of Lemma 6.5
Now if is not bad, then for at least values of (because it is small for all but of the at least good ). Now, consider any that is within distance of at least of the . By the pigeonhole principle, is therefore close to at least one of these good , and so satisfies . Moreover, such a exists since any of the good be within distance of the other good .
Lower Bounds
In this section we prove lower bounds showing that the dependence of our bounds on is necessary even if is a multivariate Gaussian. For , we are only able to show a necessary dependence of , rather than the appearing in our bounds. Determining the true worst-case dependence on is an interesting open problem.
One natural question is whether , which typically depends on the maximum singular value of the covariance matrix, is really the right dependence, or whether we could achieve bounds based on e.g. the average singular value instead. Lemma 7.1 rules this out, showing that it would require candidates in the list-decodable setting to achieve dependence on even the th singular value of the covariance matrix.
Suppose that is known to be a multivariate Gaussian with covariance , where and are otherwise unknown. Also let denote the th largest singular value of . Then, given any amount of data, an -fraction of which is drawn from , any procedure for outputting at most candidate means must have, with probability at least , .
By the reduction from the semi-verified to the list-decodable model, we obtain a lower bound in the semi-verified setting as well:
Any algorithm that has with probability at least in the semi-verified model requires at least verified samples.
Let us suppose that the unverified data has distribution , which is possible iff . We start with a lemma characterizing when it is possible that the true distribution has mean :
Let and . Then provided that and .
As a consequence, if for , then could have mean . Now, consider the space spanned by the largest eigenvectors of , and let be the ball of radius in this space. Also let be a maximal packing of of radius . A simple volume argument shows that . On the other hand, every element of is a potential mean because it satisfies . Therefore, if the true mean is drawn uniformly from , any candidate means must miss at least half of the elements of (in the sense of being distance at least away) and so with probability at least , is at least for all , as was to be shown.
Proof of Corollary 7.2
Suppose that we can obtain satisfying with samples, with probability at least . If we sample elements uniformly from the unverified samples, with probability we will obtain only samples from , and therefore with probability we can obtain (by assumption) a candidate mean with . If we repeat this times, then with probability , at least one of the candidate means will be close to . But by Lemma 7.1, this implies that , and so , as claimed.
Intuition: Stability Under Subsets
In this section, we establish a sort of “duality for robustness” that provides intuition underlying our results. Essentially, we will show the following:
If a statistic of a dataset is approximately preserved across every large subset of the data, then it can be robustly recovered even in the presence of a large amount of additional arbitrary/adversarial data.
In such a case, can we approximate the mean of , even if is not known and the points in are arbitrary?
If we do not care about computation, the answer is yes, via a simple exponential-time algorithm. Call a set of points -stable if it satisfies the following properties: , and (102) holds with replaced by (i.e., the mean moves by at most when taking subsets of of size at least ). Then, we can run the following (exponential-time) algorithm:
Find an -stable set which has overlap at most with all elements of .
Append to and continue until no more such sets exist.
A simple inclusion-exclusion argument Specifically, sets of size with pairwise overlap must have a union of size at least , which implies . shows that . Therefore, the above algorithm terminates with . On the other hand, by construction, must have overlap at least with at least one element of (as otherwise we could have also added to ). Therefore, for some , . But then, letting , we have . Therefore, the mean over is within distance of at least one of the , for .
We have therefore established our stated duality property for robustness: if a statistic is stable under taking subsets of data, then it can also be recovered if the data is itself a subset of some larger set of data.
Can we make the above algorithm computationally efficient? First, can we even check if a set is -stable? This involves checking the following constraint:
It is already unclear how to check this constraint efficiently. However, defining the matrix , we can take a semi-definite relaxation of , resulting in the constraints and . Letting , this results in the following sufficient condition for -stability:
As an aside, we note that the above discussion, together with the bound (Lemma B.3) on the operator norm of samples from a sub-Gaussian distribution, implies that a set of samples from a sub-Gaussian distribution is -stable with high probability, and in particular the mean of any large subset of samples is close to the mean of the overall set. Moreover, even if a distribution has only bounded second moments, Proposition B.1 shows that a suitable subset of samples from the distribution will be -stable.
Applications
In this section we present several applications of our main results.
For robustly learning the mean of a distribution with bounded variance, we have the following result:
Define , which is -strongly convex and has . In this case, , and so Proposition B.1 implies that with probability there is a subset of of the good points satisfying , and hence (by Lemma 5.6) . Theorem 6.1 then says that we can output parameters , where , such that , as was to be shown. ∎
For robustly learning a mixture of distributions, we have the following result:
Suppose we are given samples, where each sample either comes from one of sub-Gaussian distributions (with ), or is arbitrary. Let , , and denote respectively the set of points drawn from , the fraction of points drawn from , and the mean of , and let . Suppose that . Then for any , with probability , we can output a partition of and candidate means such that:
.
For all but of the elements of of , is assigned a partition such that \|\mu_{i}-\hat{\mu}_{j}\|_{2}\leq\mathcal{O}\Big{(}{\frac{\sigma}{\varepsilon}\sqrt{\frac{\log(2/\alpha)}{\alpha}}}\Big{)}, where masks only absolute constants.
For the planted partition model, we have the following result:
Let be disjoint subsets of , and consider the following random directed graph with vertex set :
If , the probability of an edge from to is .
If , the probability of an edge from to is .
If , the edges emanating from can be arbitrary.
Let . Then with probability , we can output sets , with , such that for all , there is a with , where denotes the symmetric difference of two sets.
It turns out that this problem reduces to mean estimation as well, though we will need to be more careful in how we apply our matrix concentration bound.
In this case we have , so Proposition B.1 implies that we can find a subset of of size at least such that . Invoking Theorem 6.1 with , we obtain candidate means , with , such that .
Now, we define the set such that iff . Suppose for some , but . Then we must have , but . Therefore, any with contributes at least to . Similarly, any with similarly contributed at least . We can conclude that . In particular, if , then , as was to be shown. ∎
Finally, we have the following corollary for density modeling:
Now take a single verified sample , and define . Similarly to Lemma 2.4, we have
where (i) is because minimizes the right-hand term in (106). On the other hand, we have
The above gives us the desired result in the semi-verified model. But then, we can reduce the semi-verified model to the list decodable model by sampling random points from the untrusted data, which gives us the list decodable result as well. ∎
Appendix A Padded Decompositions
The following lemma is essentially from Fakcharoenphol et al. (2003).
Let be points in a metric space, and let be such that for all . Consider the following procedure:
Initialize , , and sample uniformly from to , where .
Sample uniformly from
Let be the set of points in within distance of .
Update , .
Then, with probability at least , all elements of are in a single element of .
It suffices to show the following: if contains any element of , then with probability at least it contains all elements of .
as was to be shown. Here (i) is the good old AM-GM inequality. ∎
Appendix B Matrix Concentration Bounds
The following is proved using techniques from Batson et al. (2012). However, the bound itself appears to be novel.
Without loss of generality we will take . Our proof relies on the following claim:
For a matrix , suppose that and . Then, for , with probability at least we have and .
We prove this claim below, first showing how Proposition B.1 follows from the claim. We will go through the stream of samples, and keep a running set and matrix . Initially and . For each index in the stream, we will add to (and update to ) if the conclusion of Lemma B.2 holds for . Note that then, by induction, the precondition of Lemma B.2 always holds for , since it holds when and the condition for adding to ensures that it continues to hold.
At the end of the stream, we therefore obtain and such that , which implies that . It remains to show that with high probability.
To see this, note that for each element , increases by with probability at least . The distribution of is therefore lower-bounded by the sum of independent Bernoulli variables with bias , which by the Chernoff bound is greater than with probability at least . ∎
This is essentially Lemma 3.3 of Batson et al. (2012). Instead of , it will be helpful later to consider consider for arbitrary . By the Sherman-Morrison matrix inversion formula, we have
Therefore, letting denote , we have
We want to have , which in light of the above is equivalent to the condition
where the second step is in light of the inequality
Since , the right-hand-side of (118) is at most in expectation. Therefore, with probability at least , it is at most , in which case (118) holds for all .
This certainly implies that . Moreover, we also have that for all . Since the eigenvalues of are a continuous function of , we therefore know that the maximum eigenvalue of never crosses for , and so as well (since by assumption). ∎
B.2 Concentration for sub-Gaussians
In this section we provide a matrix concentration result for sub-Gaussian variables, which underlies Lemma 5.5. The proofs closely mirrors Theorem 5.39 of Vershynin (2010).
where .
We need the right-hand-side to be smaller than , for which we can take
Overall, we have that with probability ,
for all of size and all . In particular, (123) can be bounded by , which completes the proof. ∎
Appendix C Deferred Proofs
Suppose that where . Then, .
Re-arranging to remove the square-root, we have . Now suppose that . Then, , which is a contradiction. ∎
C.2 Proof of Lemma 2.1
We omit this as it is a special case of Lemma 5.5, proved below.
C.3 Proof of Lemma 2.4
where (i) and (iv) are applications of the power mean inequality, (ii) is because is -Lipschitz, and (iii) is because .
On the other hand, we have by the th moment condition (since ), so . Also, letting be the eigendecomposition of , we have
C.4 Proof of Lemma 3.1
By duality of operator and trace norm, we have (letting be the th row of the matrix )
as was to be shown. Here (i) is Cauchy-Schwarz and (ii) uses the fact that .
C.5 Proof of Lemma 4.6
C.6 Proof of Lemma 5.5
By Lemma B.3 below, at any fixed it is the case that
On the other hand, because is -Lipschitz in , one can check that is also -Lipschitz in (see Lemma C.2 below). In particular, around any fixed , it holds that for all with . But we can cover with balls of radius . Therefore, a union bound argument yields that, with probability , for all we have
If is -Lipschitz in , then is also -Lipschitz in .
as was to be shown. Here (i) is the triangle inequality for the operator norm, (ii) is because Frobenius norm is larger than operator norm, and (iii) invokes the assumed Lipschitz property for . ∎
C.7 Proof of Lemma 7.3
Recall that and . We want to show that , which is equivalent to (by expanding the density formula for a Gaussian distribution)
Let us simplify the above quadratic in . Letting and , we have
where (i) is the Woodbury matrix inversion lemma, and (ii) is expanding the quadratic. The minimizing value of is , so that we obtain a lower bound (over all ) of
Plugging back into (157), we obtain the condition
Simplifying further and again letting , we have
so it suffices to have . Now, we will take , in which case we need , or equivalently , as claimed.
C.8 Bounding the square of a sub-Gaussian
for .
We begin by bounding the moments of . We have, for any and ,
Here (i) uses the inequality (by concavity of ), while (iii) simply invokes the sub-Gaussian assumption at . The inequality (ii) is used to move from to .
We will take the particular value , which yields
Clearly, when , the above is bounded by , as claimed. ∎