Loss minimization and parameter estimation with heavy tails
Daniel Hsu, Sivan Sabato
Introduction
The minimax principle in statistical estimation prescribes procedures (i.e., estimators) that minimize the worst-case risk over a large class of distributions generating the data. For a given loss function, the risk is the expectation of the loss of the estimator, where the expectation is taken over the data examined by the estimator. For example, for a large class of loss functions including squared loss, the empirical mean estimator minimizes the worst-case risk over the class of Gaussian distributions with known variance (Wolfowitz, 1950). In fact, Gaussian distributions with the specified variance are essentially the worst-case family of distributions for squared loss, at least up to constants (see, e.g., Catoni, 2012, Proposition 6.1).
In this work, we are interested in estimators whose deviations from expected behavior are controlled with very high probability over the random draw of the data examined by the estimator. Deviations of the behavior of the estimator from its expected behavior are worrisome especially when data come from unbounded and/or heavy-tail distributions, where only very low order moments may be finite. For example, the Pareto distributions with shape parameter are unbounded and have finite moments only up to orders ; these distributions are commonly associated with the modeling of extreme events that manifest in data. Bounds on the expected behavior of an estimator are insufficient in these cases, since the high-probability guarantees that may be derived from such bounds (say, using Markov’s inequality) are rather weak. For example, if the risk (i.e., expected loss) of an estimator is bounded by , then all that we may derive from Markov’s inequality is that the loss is no more than with probability at least . For small values of , the guarantee is not very reassuring, but it may be all one can hope for in these extreme scenarios—see Remark 7 in Section 3.1 for an example where this is tight. Much of the work in statistical learning theory is also primarily concerned with such high probability guarantees, but the bulk of the work makes either boundedness or subgaussian tail assumptions that severely limit the applicability of the results even in settings as simple as linear regression (see, e.g., Srebro et al., 2010; Shamir, 2014).
Recently, it has been shown that it is possible to improve on methods which are optimal for expected behavior but suboptimal when high-probability deviations are concerned (Audibert and Catoni, 2011; Catoni, 2012; Brownlees et al., 2014). These improvements, which are important when dealing with heavy-tailed distributions, suggest that new techniques (e.g., beyond empirical risk minimization) may be able to remove the reliance on boundedness or control of high-order moments. Bubeck et al. (2013) show how a more robust mean estimator can be used for solving the stochastic multi-armed bandit problem under heavy-tailed distributions.
This work applies and generalizes a technique for controlling large deviations from the expected behavior with high probability, assuming only bounded low-order moments such as variances. We show that the technique is applicable to minimization of smooth and strongly convex losses, and derive specific loss bounds for least squares linear regression, which match existing rates, but without requiring the noise or covariates to be bounded or subgaussian. This contrasts with several recent works (Srebro et al., 2010; Hsu et al., 2014; Shamir, 2014) concerned with (possibly regularized) empirical risk minimizers that require such assumptions. It is notable that in finite dimensions, our result implies that a constant factor approximation to the optimal loss can be achieved with a sample size that is independent of the size of the optimal loss. This improves over the recent work of Mahdavi and Jin (2013), which has a logarithmic dependence on the optimal loss, as well as a suboptimal dependence on specific problem parameters (namely condition numbers). We also provide a new generalization of the basic technique for general metric spaces, which we apply to least squares linear regression with heavy tail covariate and noise distributions, yielding an improvement over the computationally expensive procedure of Audibert and Catoni (2011).
The basic technique, found in the textbook of Nemirovsky and Yudin (1983, p. 243), is very simple, and can be viewed as a generalization of the median-of-means estimator used by Alon et al. (1999) and many others. The idea is to repeat an estimate several times, by splitting the sample into several groups, and then selecting a single estimator out of the resulting list of candidates. If an estimator from one group is good with noticeably better-than-fair chance, then the selected estimator will be good with probability exponentially close to one. This is remininscant of techniques from robust statistics (Huber, 1981), although our aim is expressly different in that our aim is good performance on the same probability distribution generating the data, rather than an uncontaminated or otherwise better behaved distribution. Our new technique can be cast as a simple selection problem in general metric spaces that generalizes the scalar median.
We demonstrate the versatility of our technique by giving further examples in sparse linear regression (Tibshirani, 1996) under heavy-tailed noise and low-rank covariance covariance matrix approximation (Koltchinskii et al., 2011) under heavy-tailed covariate distributions. We also show that for prediction problems where there may not be a reasonable metric on the predictors, one can achieve similar high-probability guarantees by using median aggregation in the output space.
The initial version of this article (Hsu and Sabato, 2013, 2014) appeared concurrently with the simultaneous and independent work of Minsker (2013), which develops a different generalization of the median-of-means estimator for Banach and Hilbert spaces. We provide a new analysis and comparison of this technique to ours in Section 7. We have also since become aware of the earlier work by Lerasle and Oliveira (2011), which applies the median-of-means technique to empirical risks in various settings much like the way we do in Algorithm 3, although our metric formulation is more general. Finally, the recent work of Brownlees et al. (2014) vastly generalizes the techniques of Catoni (2012) to apply to much more general settings, although they retain some of the same deficiencies (such as the need to know the noise variance for the optimal bound for least squares regression), and hence their results are not directly comparable to ours.
Overview of Main Results
This section gives an overview of the main results.
In this work, we are interested in performance guarantees that hold with high probability over the random draw of the input sample and any internal randomization used by the estimation algorithm. Thus, for a given allowed probability of failure , we study excess loss achieved by the predictor returned by the algorithm on a probability subset of the sample space. Ideally, the excess loss only depends sub-logarithmically on , which is the dependence achieved when the distribution of the excess loss has exponentially decreasing tails. Note that we assume that the value of is provided as input to the estimation algorithm, and only demand the probabilistic guarantee for this given value of . Therefore, strictly speaking, the excess loss need not exhibit exponential concentration. Nevertheless, in this article, we shall say that an estimation algorithm achieves exponential concentration whenever it guarantees, on input , an excess loss that grows only as .
2 Robust Distance Approximation
Consider an estimation problem, where the goal is to estimate an unknown parameter of the distribution, using a random i.i.d. sample from that distribution. We show throughout this work that for many estimation problems, if the sample is split into non-overlapping subsamples, and estimators are obtained independently from each subsample, then with high probability, this generates a set of estimators such that some fraction of them are close, under a meaningful metric, to the true, unknown value of the estimated parameter. Importantly, this can be guaranteed in many cases even under under heavy-tailed distributions.
In some cases, learning with heavy-tailed distributions requires using a metric that depends on the distribution. Then, the Robust Distance Estimation procedure has access only to noisy measurements of distances in the metric space, and is required to succeed with high probability. In Section 3 we formalize these notions, and provide simple implementations of Robust Distance Approximation for general metric spaces, with and without direct access to the metric. For the case of direct access to the metric our formulation is similar to that of Nemirovsky and Yudin (1983).
3 Convex Loss Minimization
The general approach to estimation described above has many applications. We give here the general form of our main results for applications, and defer the technical definitions and results to the relevant sections. Detailed discussion of related work for each application is also provided in the appropriate sections.
the dual norm is -smooth;
there exists and sample size such that, with probability at least , the empirical loss is -strongly convex with respect to whenever the sample is of size at least ;
for some universal constant ;
is -smooth with respect to ;
then with probability at least , for another universal constant ,
This gives a constant approximation of the optimal loss with a number of samples that does not depend on the value of the optimal loss. The full results for smooth convex losses are provided in Section 4. Theorem 2 is stated in full as Corollary 16, and we further provide a result with more relaxed smoothness requirements. As apparent in the result, the only requirements on the distribution are those that are implied by the strong convexity and smoothness parameters. This allows support for fairly general heavy-tailed distributions, as we show below.
4 Least Squares Linear Regression
and are defined similarly to and .
Unlike standard high-probability bounds for regression, we give bounds that make no assumption on the range or the tails of the distribution of the response variables, other than a trivial requirement that the optimal squared loss be finite. The assumptions on the distribution of the covariates are also minimal.
This theorem is stated in full as Theorem 19 in Section 5. Under standard finite fourth-moment conditions, this result translates to the bound
with probability . These results improve over recent results by Audibert and Catoni (2011), Catoni (2012), and Mahdavi and Jin (2013). We provide a full comparison to related work in Section 5.
Theorem 3 can be specialized for specific cases of interest. For instance, suppose is bounded and well-conditioned in the sense that there exists such that , but may still be heavy-tailed. Under this assumption we have the following result.
This theorem is stated in full as Theorem 20 in Section 5. Note that
5 Other Applications, Comparisons, and Extensions
The general method studied here allows handling heavy tails in other applications as well. We give two examples in Section 6. First, we consider parameter estimation using -regularized linear least squares regression (Lasso) under random subgaussian design. We show that using the above approach, parameter estimation bounds can be guaranteed for general bounded variance noise, including heavy-tailed noise. This contrasts with standard results that assume sub-Gaussian noise. Second, we show that low-rank covariance matrix approximation can be obtained for heavy-tailed distributions, under a bounded moment assumption. These two applications have been analyzed also in the independent and simultaneous work of Minsker (2013).
All the results above are provided using a specific solution to the Robust Distance Approximation problem, which is easy to implement for any metric space. For the case of a fully known metric, in a Banach or a Hilbert space, Minsker (2013) proposed a different solution, which is based on the geometric median. In Section 7, we provide a detailed comparison of the approximation factor achieved by each approach, as well as some general lower bounds. Several interesting open questions remain regarding this general problem.
Lastly, in Section 8, we give a short proof to the intuitive fact that in some prediction problem, one can replace Robust Distance Approximation with taking the median of the predictions of the input estimators. This gives a possible improper-learning algorithm for relevant learning settings.
All of the techniques we have developed in this work are simple enough to implement and empirically evaluate, and indeed in some simulated experiments, we have verified the improvements over standard methods such as the empirical mean when the data follow heavy-tailed distributions. However, at present, the relatively large constant factors in our bounds are real enough to restrict the empirical improvements only to settings where very high confidence (i.e., small values of ) is required. By contrast, with an appropriately determined noise variance, the techniques of Catoni (2012) and Brownlees et al. (2014) may yield improvements more readily. Nevertheless, since our techniques are more general in some respects, it is worth investigating whether they can be made more practical (e.g., with greater sample reuse or overlapping groups), and we plan to do this in future work.
The Core Techniques
In this section we present the core technique used for achieving exponential concentration. We first demonstrate the underlying principle via the median-of-means estimator, and then explain the generalization to arbitrary metric spaces. Finally, we show a new generalization that supports noisy feature measurements.
We first motivate the estimation procedure by considering the special case of estimating a scalar population mean using a median-of-means estimator, given in Algorithm 1. This estimator, heavily used in the streaming algorithm literature (Alon et al., 1999) (though a similar technique also appears in Nemirovsky and Yudin (1983) as noted in Levin (2005)), partitions a sample into equal-size groups, and returns the median of the sample means of each group. Note that the possible non-uniqueness of the median does not affect the result; the arguments below apply to any one of them. The input parameter should be thought of as a constant determined by the desired confidence level (i.e., for confidence ). It is well known that the median-of-means achieves estimation with exponential concentration. The following proposition gives a simple statement and proof. The constant in the statement (see Eq. (1) below) is lower the constant in the analysis of Lerasle and Oliveira (2011, Proposition 1), which is , but we require a larger value of . By requiring an even larger , the constant in the statement below can approach .
Let be a random variable with mean and variance , and let be a set of independent copies of . Assume . With probability at least , the estimate returned by Algorithm 1 on input satisfies . Therefore, if and , then with probability at least ,
Catoni (2012) proposes a mean estimator that satisfies with probability at least . Remarkably, the leading constant in the bound is asymptotically optimal: it approaches as . However, the estimator takes both and as inputs. Catoni also presents an estimator that takes only as an input; this estimator guarantees a bound for all values of simultaneously.
Catoni (2012) shows that the empirical mean cannot provide a qualitatively similar guarantee. Specifically, for any and , there is a distribution with mean zero and variance such that the empirical average of i.i.d. draws satisfies
Therefore the deviation of the empirical mean necessarily scales with rather than (with probability ).
2 Generalization to Arbitrary Metric Spaces
The first abstraction captures the generation of candidate solutions obtained from independent subsamples. We assume there is an oracle which satisfies the following assumptions.
Note that the could be replaced by another constant larger than half; we have not optimized the constants. The second assumption regards statistical independence. For an integer , let be responses to separate queries to .
are statistically independent.
The proposed procedure, given in Algorithm 2, generates candidate solutions by querying times, and then selecting a single candidate using a generalization of the median. Specifically, for each , the smallest ball centered at that contains more than half of is determined; the with the smallest such ball is returned. If there are multiple such with the smallest radius ball, any one of them may be selected. This selection method is a Robust Distance Approximation procedure. The proof is given below and illustrated in Figure 1. Nemirovsky and Yudin (1983) proposed a similar technique, however their formulation relies on knowledge of .
Let . Selecting such that is a Robust Distance Approximation procedure with .
Proof Assume that . Then . For any , by the triangle inequality, . This implies that , and so . By the pigeonhole principle, . Therefore, by the triangle inequality again, .
Again, the number of candidates determines the resulting confidence level. The following theorem provides a guarantee for Algorithm 2. We note that the resulting constants here might not be optimal in specific applications, since they depend on the arbitrary constant in Assumption 1.
3 Random Distance Measurements
indicates that provides a sufficiently accurate estimate of the distances from . Note that need not correspond to a metric. We assume the following.
For any , .
We further require the following independence assumption.
The random variables are statistically independent.
Note that there is no assumption on the statistical relationship between and .
Algorithm 3 is a variant of Algorithm 2 that simply replaces computation of -distances with computations using the functions returned by querying the ’s. The resulting selection procedure is, with high probability, a Robust Distance Approximation.
Consider a run of Algorithm 3, with output . Let as defined above, and suppose that Assumption 3 and Assumption 4 hold. Then, with probability at least ,
where .
Proof By Assumptions 3 and 4, and by Hoeffding’s inequality,
Assume this event holds, and denote . We have .
Let such that . Then, for any such that , by the triangle inequality . There are at least such indices , therefore for more than of the indices , we have
For such that this holds, by the definition of , It follows that .
Now, let such that . Then, for any such that , by the triangle inequality . As above, for more than of the indices ,
For such that this holds, by the definition of , It follows that .
By Eq. (3), We conclude that with probability at least ,
for all , and
for all .
In this event the with the smallest satisfies .
The properties of the approximation procedure and of are combined to give a guarantee for Algorithm 3.
Minimizing Strongly Convex Losses
In this section we apply the core techniques to the problem of approximately minimizing strongly convex losses, which includes least squares linear regression as a special case.
In other words, the sample induces a loss which is -strongly convex around .Technically, we only need the sample size to guarantee Eq. (4) for all for some . We assume that for some .
We use the following facts in our analysis.
2 Subsampled Empirical Loss Minimization
The following lemma proves that Assumption 1 holds under these assumptions with
Let be as defined in Eq. (5). Assume , and that is an i.i.d. sample from of size such that . Then subsampled empirical loss minimization using the sample is a correct implementation of for up to queries.
where the last inequality follows from the definition of the dual norm, and the optimality of on . Rearranging and combining with the above probability inequality implies
Combining Lemma 14 and Proposition 9 gives the following theorem.
Let be as defined in Section 4.1, and assume that is -smooth. Also, assume , , and that is an i.i.d. sample from of size such that . Finally, assume Algorithm 3 uses the subsampled empirical loss minimization to implement , where is as in Eq. (5). Then with probability at least , the parameter returned by Algorithm 2 satisfies
Assume the same conditions as Theorem 15, and also that:
is -smooth with respect to .
Then with probability at least ,
Corollary 16 implies that for smooth losses, Algorithm 2 provides a constant factor approximation to the optimal loss with a sample size (with probability at least ). In subsequent sections, we exemplify cases where the two arguments of the are roughly of the same order, and thus imply a sample size requirement of . Note that there is no dependence on the optimal loss in the sample size, and the algorithm has no parameters besides .
We can also obtain a variant of Theorem 15 based on Algorithm 3 and Theorem 11, in which we assume that there exists some sample size that allows to be correctly implemented using an i.i.d. sample of size at least . Under such an assumption, essentially the same guarantee as in Theorem 15 can be afforded to Algorithm 3 using the subsampled empirical loss minimization to implement (for as in Eq. (5)) and the assumed implementation of . Note that since Theorem 11 does not require and to be statistically independent, both can be implemented using the same sample.
Let be as defined in Section 4.1, be as defined above, and assume that is -smooth. Also, assume , is an i.i.d. sample from of size such that , and . Further, assume Algorithm 3 implements using with subsampled empirical loss minimization, where is as in Eq. (5), and implements using as well. Then with probability at least , the parameter returned by Algorithm 3 satisfies
with probability at least . Therefore empirical risk minimization cannot provide a qualitatively similar guarantee as Corollary 16. It is easy to check that minimizing a regularized objective also does not work, since any non-trivial regularized objective necessarily provides an estimator with a positive error for some distribution with zero variance.
In the next section we use the analysis for general smooth and convex losses to derive new algorithms and bounds for linear regression.
Least Squares Linear Regression
The regularized squared loss, for , is denoted
The proposed algorithm for regression (Algorithm 4) is as follows. Set , where is a universal constant. First, draw independent random samples i.i.d. from , and perform linear regression with -regularization on each sample separately to obtain linear regressors. Then, use the same samples to generate estimates of the covariance matrix of the marginal of on the data space. Finally, use the estimated covariances to select a single regressor from among the at hand. The slightly simpler variants of steps 4 and 5 can be used in some cases, as detailed below.
In Section 5.1, the full results for regression, mentioned in Section 2, are listed in full detail, and compared to previous work. The proofs are provided in Section 5.2.
Under this condition, we show the following guarantee for least squares regression.
Assume is not singular. If satisfies Condition 1 with some fixed parameters and , then if Algorithm 4 is run with and , with probability at least ,
Our loss bound is given in terms of the following population quantity
which we assume is finite. This assumption only requires bounded low-order moments of and and is essentially the same as the conditions from Audibert and Catoni (2011) (see the discussion following their Theorem 3.1). Define the following finite fourth-moment conditions:
with probability . In comparison, the recent work of Audibert and Catoni (2011) proposes an estimator for linear regression based on optimization of a robust loss function which achieves essentially the same guarantee as Theorem 19 (with only mild differences in the moment conditions, see the discussion following their Theorem 3.1). However, that estimator depends on prior knowledge about the response distribution, and removing this dependency using Lepski’s adaptation method (Lepski, 1991) may result in a suboptimal convergence rate. It is also unclear whether that estimator can be computed efficiently.
Other analyses for linear least squares regression and ridge regression by Srebro et al. (2010) and Hsu et al. (2014) consider specifically the empirical minimizer of the squared loss, and give sharp rates of convergence to . However, both of these require either boundedness of the loss or boundedness of the approximation error. In Srebro et al. (2010), the specialization of the main result to square loss includes additive terms of order , where is assumed to bound the square loss of any predictions almost surely. In Hsu et al. (2014), the convergence rate includes an additive term involving almost-sure bounds on the approximation error/non-subgaussian noise (The remaining terms are comparable to Eq. (9) for , and Eq. (7) for , up to logarithmic factors). The additional terms preclude multiplicative approximations to in cases where the loss or approximation error is unbounded. In recent work, Mendelson (2014) proposes a more subtle ‘small-ball’ criterion for analyzing the performance of the risk minimizer. However, as evident from the lower bound in Remark 18, the empirical risk minimizer cannot obtain the same type of guarantees as our estimator.
The next result is for the case where there exists such that (and, here, we do not assume Condition 1). In contrast, may still be heavy-tailed. Then, the following result can be derived using Algorithm 4. Moreover, the simpler variant of Algorithm 4 suffices here.
Assume is not singular. Let be the output of the variant of Algorithm 4 with . With probability at least , for ,
2 Analysis
Therefore, to establish a bound on , it suffices to control
for an i.i.d. sample from . The following lemma allows doing just that.
We use the boundedness assumption for sake of simplicity; it is possible to remove the boundedness assumption, and the logarithmic dependence on the cardinality of , under different conditions on (e.g., assuming has subgaussian projections, see Litvak et al. 2005). We now prove Theorem 20, Theorem 21 and Theorem 19.
as soon as .
2.2 Ridge Regression
(here, has Euclidean length almost surely, and is a bound on the Euclidean length of ). For , the bound becomes
As before, this minimax bound also implies a lower bound on any estimator with exponential concentration.
2.3 Heavy-tail Covariates
When the covariates are not bounded or subgaussian, the empirical second-moment matrix may deviate significantly from its population counterpart with non-negligible probability. In this case it is not possible to approximate the norm in Step 2 of Algorithm 2 using a single small sample (as discussed in Section 5.2.1 and Section 5.2.2). However, we may use Algorithm 3 instead of Algorithm 2, which only requires the stochastic distance measurements to be relatively accurate with some constant probability. The full version of Algorithm 4 is exactly such an implementation.
We now prove Theorem 19. Define (which is from Srivastava and Vershynin, 2013). The following lemma shows that samples suffice so that the expected spectral norm distance between the empirical second-moment matrix and is bounded.
Let satisfy Condition 1, and let be independent copies of . Let . For any , if , then
Lemma 23 implies that where . Therefore, for , subsampled empirical loss minimization requires samples to correctly implement , for as in Eq. (5).
In particular, this holds for , as long as . Thus, for , Assumption 3 holds if . Assumption 4 (independence) also holds, since depends only on , and are statistically independent.
Putting everything together, we have (as in Section 5.2.1) and . We obtain the final bound from Theorem 17 as follows: if , then with probability at least ,
Other Applications
In this section we show how the core techniques we discuss can be used for other applications, namely Lasso and low-rank matrix approximation.
In this section we consider -regularized linear least squared regression (Lasso) (Tibshirani, 1996) with a random subgaussian design, and show that Algorithm 2 achieves the same fast convergence rates for sparse parameter estimation as Lasso, even when the noise is heavy-tailed.
The following theorem shows that when Algorithm 2 is used with subsampled empirical loss minimization over the Lasso loss, and generates a subgaussian random design, then can be estimated for any type of noise , including heavy-tailed noise.
For the proof of Theorem 24, we use the following theorem, adapted from Bickel et al. (2009) and Zhang (2009). The proof is provided in Appendix A for completeness.
If holds and , then we can apply Theorem 25 (with instead of ). We now show that this inequality holds with a constant probability. Fix the noise vector . For , since the coordinates of are independent and each row of is an independent copy of the vector , we have
Since , we conclude that
Therefore satisfies Assumption 1 with as in the right hand side above. The statement of the theorem now follows by applying Proposition 9 with , and noting that .
We note that while standard analyses of sparse estimation with mean-zero noise assume light-tailed noise (Zhang, 2009; Bickel et al., 2009), there are several works that analyze sparse estimation with heavy-tailed noise under various assumptions. For example, several works assume that the median of the noise is zero (e.g., Wang 2013; Belloni and Chernozhukov 2011; Zou and Yuan 2008; Wu and Liu 2009; Wang et al. 2007; Fan et al. 2012). van de Geer and Müller (2012) analyze a class of optimization functions that includes the Lasso and show polynomial convergence under fourth-moment bounds on the noise. Chatterjee and Lahiri (2013) study a two-phase sparse estimator for mean-zero noise termed the Adaptive Lasso, proposed in Zou (2006), and show asymptotic convergence results under mild moment assumptions on the noise.
2 Low-rank Matrix Approximation
If , then
Now, assume condition 1 holds for , and suppose for simplicity that . In this case, by Lemma 23, A random sample of size , where suffices to get an empirical covariance matrix such that with probability at least .
Given a sample of size from , We can thus implement that simply returns the empirical covariance matrix of a sub-sample of size , so that Assumption 1 holds for an appropriate . By Proposition 9, Algorithm 2 returns such that with probability at least , . The resulting can be used to minimize Eq. (13) with . The output matrix satisfies, with probability at least ,
A Comparison of Robust Distance Approximation Methods
In the following, we provide detailed guarantees for the approximation factor of the two types of procedures, for general metric spaces as well as for Banach and Hilbert spaces, and for set-based and sample-based procedures. We further provide lower bounds for specific procedures, as well as lower bounds that hold for any procedure. In Section 7.4 we summarize the results and compare the guarantees of the two procedures and the lower bounds. For a more useful comparison, we take into account the fact that the value of usually affects not only the approximation factor, but also the upper bound obtained for .
Minimizing the median distance over the set of input points was shown in Proposition 8 to achieve an approximation factor of 3. In this section we show that this upper bound on the approximation factor is tight for this procedure, even in a Hilbert space. Here and below, we say that an approximation factor upper bound is tight if for any constant smaller than this upper bound, there are a suitable space and a set of points in that space, such that the procedure achieves for this input a larger approximation factor than said constant.
The approximation factor can be improved to for a sample-based procedure. This factor is tight as well, even assuming a Hilbert space. The following theorem summarizes these facts.
For any metric space, ;
For any metric space, ;
There exists a set on the real line such that , where is the distance induced by the inner product;
There exists a set on the real line such that , where is the distance induced by the inner product.
Proof First, we prove the two upper bounds. Since , we have . Let . Then by the triangle inequality, . Therefore . It follows that , hence . By the pigeon hole principle, , therefore .
To see that these bounds are tight, we construct simple examples on the real line. For , suppose , and consider with points as follows: points at , points at , and points at . The points at are clearly in , therefore .
For , suppose , and consider with points as follows: points at , points at , and points at . The points at are clearly in , therefore .
The non-uniqueness of the median distance minimizer is exploited in the lower bounds in Theorem 27. This suggests that some kind of aggregation of the median distance minimizers may provide a smaller bound at least in certain scenarios.
2 The Geometric Median
Minimizing over the entire space is a computationally intensive procedure, involving convex approximation. Moreover, if the only access to the metric is via estimated distances based on samples, as in Algorithm 3, then there are additional statistical challenges. It is thus of interest to also consider the simpler set-based procedure, and we provide approximation guarantees for this procedure as well. We show that an approximation factor of can be guaranteed for set-based procedures in general metric spaces, and this is also tight, even for Banach spaces.
The following theorem provides a bound that holds in several of these settings.
For any constant , there exists a problem in a Banach space such that . Thus the upper bound above is tight.
For any constant , there exists a problem in a metric space such that . Thus the upper bound above is tight for general metric spaces.
Proof Let . Let such that (we assume for simplicity that is an integer; the proof can be easily modified to accommodate the general case). For , . For , . Therefore
By the definition of as a minimizer, for , . Thus
Hence, since for ,
Since it follows that . In addition,
This shows that for any metric space, the set-based geometric median gives an approximation factor of , proving item 1.
Since for , and , it follows
Therefore , hence
This gives an approximation factor of for space-based geometric median, proving item 3.
Since , the guarantee for the geometric median in these settings is always worse than the guarantee for minimizing the median distance. Factoring in the dependence on , the difference is even more pronounced. The full comparison is given in Section 7.4 below.
3 Optimal Approximation Factor
In this section we give lower bounds that hold for any robust distance approximation procedure. A lower bound of for a category of metric spaces and a type of procedure indicates that if a procedure of this type guarantees a distance approximation for all metric spaces of the given category, then necessarily . As shown below, in many cases the lower bounds provided here match the upper bounds obtained by either the median distance or the geometric median.
The following theorem gives a lower bound of for the achievable approximation factor of set-based procedures in Banach spaces (and so, also in general metric spaces). This factor is achieved by the median distance minimizer, as shown in Theorem 27.
Consider set-based robust distance approximation procedures. For any , and for any such procedure, there exists a problem in a Banach space for which the approximation factor of the procedure is at least .
Consider the multi-set with elements at every . It is easy to check that for every , . On the other hand, since the problem is symmetric for permutations of the indices , no procedure can distinguish the cases for different . For any choice , if then . Therefore the approximation factor of any procedure is at least . Since any metric space can be embedded into a Banach space (Kuratowski, 1935) this result holds also for Banach spaces.
Next, we give a lower bound of for space-based procedures over general metric spaces. Theorem 27 shows that this factor is also achieved by minimizing the median distance.
Consider robust space-based distance approximation procedures. For any , and for any such procedure, there exists a problem for which the approximation factor of the procedure is at least .
Consider the multi-set with points at every . It is easy to check that for every , . On the other hand, since the problem is symmetric for permutations of the indices , no procedure can distinguish the cases for different . Moreover, any point in the space has for at least one . Therefore the approximation factor of any procedure is at least .
For lower bounds on Hilbert spaces and Banach spaces, we require the following lemma, which gives the radius of the ball inscribing the regular simplex in a -normed space.
We now prove a lower bound for robust distance approximation in Hilbert spaces. Unlike the previous lower bounds, this lower bound depends on the value of .
For any set-based procedure, there exists a problem such that the procedure achieves an approximation factor at least
For any space-based procedure, there exists a problem such that the procedure achieves an approximation factor at least
The space-based bound given in Theorem 32 is tight for . This can be seen by noting that the limit of the space-based lower bound for is , which is exactly the guarantee provided in Minsker (2013) for the space-based geometric median procedure. For smaller , there is a gap between the guarantee of Minsker for the geometric median and our lower bound.
Consider with points at each of . Then for any . Any set-based procedure must select for some . if , the resulting approximation factor is . For , consider for instance and . We have , therefore . The approximation factor of the procedure is thus at least .
For a set-based procedure, whatever it returns, there exists at least one such that . Therefore the approximation factor is at least .
For space-based procedures, we have seen that while there exists a lower bound of for general metric spaces, in a Hilbert space better approximation factors can be achieved. Is it possible that in Banach spaces the same approximation factor can also be achieved? The following theorem shows that the answer is no.
Let . There exists a Banach space for which an approximation factor of cannot be achieved.
4 Comparison of Selection Procedures
We observe that for set-based procedures, the median distance is superior to the geometric median for general metric spaces as well as for general Banach spaces. It is an open question whether better results can be achieved for Hilbert spaces using set-based procedures.
For space-based procedures, the median distance is again superior, except in the case of a Hilbert space, where the geometric median is superior. The case of a Hilbert space is arguably the most useful in common applications such as linear regression. Nevertheless, gaps still remain and it would be interesting to develop optimal methods.
Implementing the geometric median procedure in a space-based formulation is computationally efficient for Hilbert spaces when accurate distances are available Minsker (2013). However, it is unknown whether and how the procedure can be implemented when only unreliable distance estimations are available, as in Section 3.3. A useful implementation should be both computationally feasible and statistically efficient, while degrading the approximation factors as little as possible.
Predicting Without a Metric on Predictors
The core technique presented above allows selecting a good candidate out of a set that includes mostly good candidates, in the presence of a metric between candidates. If the final goal is prediction of a scalar label, good prediction can still be achieved without access to a metric between candidates, using the following simple procedure: For every input data point, calculate the prediction of every candidate, and output the median of the predictions. This is a straight-forward generalization of voting techniques for classification such as when using bagging (Breiman, 1996).Note, however, that the usual implementation of bagging for regression involves averaging over the outputs of the classifiers, and not taking the median. The following lemma shows that this approach leads to guarantees similar to those achieved by Proposition 9.
Taking expectation over ,
where the last inequality follows from the assumption that .
A downside of this approach is that each prediction requires many applications of a predictor. If there is also access to unlimited unlabeled data, a possible approach to circumvent this issue is to generate predictions for a large set of random unlabeled data points based on the aggregate predictor, and then use the resulting labeled pairs as a training set to find a single predictor with a loss that approaches the loss of the aggregate predictor. A similar approach for derandomizing randomized classifiers was suggested by Kääriäinen (2005).
Conclusion
In this paper we show several applications of a generalized median-of-means approach to estimation. In particular, for linear regression we establish convergence rates for heavy-tailed distributions that match the min-max rates up to logarithmic factors. We further show conditions that allow parameter estimation using the Lasso under heavy-tailed noise, and cases under which low-rank covariance matrix approximation is possible for heavy-tailed distributions.
The core technique is based on performing independent estimates on separate random samples, and then combining these estimates. Other works have considered approaches which resemble this general scheme but provide other types of guarantees. For instance, in Zhang et al. (2013), faster parallel kernel ridge regression is achieved by performing loss minimizations on independent samples and then averaging the resulting estimators. In Rakhlin et al. (2013), faster rates of convergence for regression for some classes of estimators are achieved, using linear combinations of risk minimizers over subsets of the class of estimators. These works, together with ours, demonstrate that empirical risk minimization can be used as a black box to generate new algorithms with improved statistical performance.
Part of this work was completed while the authors were at Microsoft Research New England. Daniel Hsu was supported by a Yahoo Academic Career Enhancement Award. Sivan Sabato is supported by the Lynne and William Frankel Center for Computer Science.
A Proof of Theorem 25
From the definition of as a minimizer we have
By Hölder’s inequality the assumptions of the theorem, . Combining this with Eq. (14) gives
Adding to both sides we get
therefore . Denote . The above derivation also implies
Denote for brevity . From the definition of ,
Therefore . Now,
From we get . In addition, since spans the largest coordinates of in absolute value, . Combining these with the inequality above we get