Bolasso: model consistent Lasso estimation through the bootstrap
Francis Bach
Introduction
In this paper, we first derive a detailed asymptotic analysis of sparsity pattern selection of the Lasso estimation procedure, that extends previous analysis [Zhaoyu, yuanlin, zou], by focusing on a specific decay of the regularization parameter. We show that when the decay is proportional to , where is the number of observations, then the Lasso will select all the variables that should enter the model (the relevant variables) with probability tending to one exponentially fast with , while it selects all other variables (the irrelevant variables) with strictly positive probability. If several datasets generated from the same distribution were available, then the latter property would suggest to consider the intersection of the supports of the Lasso estimates for each dataset: all relevant variables would always be selected for all datasets, while irrelevant variables would enter the models randomly, and intersecting the supports from sufficiently many different datasets would simply eliminate them. However, in practice, only one dataset is given; but resampling methods such as the bootstrap are exactly dedicated to mimic the availability of several datasets by resampling from the same unique dataset [efron]. In this paper, we show that when using the bootstrap and intersecting the supports, we actually get a consistent model estimate, without the consistency condition required by the regular Lasso. We refer to this new procedure as the Bolasso (bootstrap-enhanced least absolute shrinkage operator). Finally, our Bolasso framework could be seen as a voting scheme applied to the supports of the bootstrap Lasso estimates; however, our procedure may rather be considered as a consensus combination scheme, as we keep the (largest) subset of variables on which all regressors agree in terms of variable selection, which is in our case provably consistent and also allows to get rid of a potential additional hyperparameter.
The paper is organized as follows: in Section 2, we present the asymptotic analysis of model selection for the Lasso; in Section 3, we describe the Bolasso algorithm as well as its proof of model consistency, while in Section 4, we illustrate our results on synthetic data, where the true sparse generating model is known, and data from the UCI machine learning repository. Sketches of proofs can be found in Appendix A.
Asymptotic Analysis of Model Selection for the Lasso
In this section, we describe existing and new asymptotic results regarding the model selection capabilities of the Lasso.
We let denote the sparsity pattern of , the sign pattern of , and the additive noise. Throughout this paper, we use boldface fonts for population quantities. Note that our assumption regarding cumulant generating functions is satisfied when and have compact support, and also, when the densities of and have light tails.
Note that the i.i.d. assumption, together with (A(A1)-(A3)), are the simplest assumptions for studying the asymptotic behavior of the Lasso; and it is of course of interest to allow more general assumptions, in particular growing number of variables , more general random variables, etc. (see, e.g., (?)), which are outside the scope of this paper.
2 Lasso Estimation
where is the regularization parameter. We denote any global minimum of Eq. (1)—it may not be unique in general, but will with probability tending to one exponentially fast under assumption (A(A1)).
3 Model Consistency - General Results
In this section, we detail the asymptotic behavior of the Lasso estimate , both in terms of the difference in norm with the population value (i.e., regular consistency) and of the sign pattern , for all asymptotic behaviors of the regularization parameter . Note that information about the sign pattern includes information about the support, i.e., the indices for which is different from zero; moreover, when is consistent, consistency of the sign pattern is in fact equivalent to the consistency of the support.
We now consider five mutually exclusive possible situations which explain various portions of the regularization path (we assume (A(A1)-(A3))); many of these results appear elsewhere [yuanlin, Zhaoyu, fu, zou, grouplasso] but some of the finer results presented below are new (see Section 2.4).
If tends to infinity, then with probability tending to one.
If tends to a finite strictly positive constant , then converges in probability to the unique global minimum of . Thus, the estimate never converges in probability to , while the sign pattern tends to the one of the previous global minimum, which may or may not be the same as the one of .Here and in the third regime, we do not take into account the pathological cases where the sign pattern of the limit in unstable, i.e., the limit is exactly at a hinge point of the regularization path.
If tends to zero slower than , then converges in probability to (regular consistency) and the sign pattern converges to the sign pattern of the global minimum of . This sign pattern is equal to the population sign vector if and only if the following consistency condition is satisfied:
Thus, if Eq. (2) is satisfied, the probability of correct sign estimation is tending to one, and to zero otherwise [yuanlin].
If for , then the sign pattern of agrees on with the one of with probability tending to one, while for all sign patterns consistent on with the one of , the probability of obtaining this pattern is tending to a limit in (in particular strictly positive); that is, all patterns consistent on are possible with positive probability. See Section 2.4 for more details.
Among the five previous regimes, the only ones with consistent estimates (in norm) and a sparsity-inducing effect are tending to zero and tending to a limit (i.e., potentially infinite). When , then we can only hope for model consistent estimates if the consistency condition in Eq. (2) is satisfied. This somewhat disappointing result for the Lasso has led to various improvements on the Lasso to ensure model consistency even when Eq. (2) is not satisfied [yuanlin, zou]. Those are based on adaptive weights based on the non regularized least-square estimate. We propose in Section 3 an alternative way which is based on resampling.
In this paper, we now consider the specific case where for , where we derive new asymptotic results. Indeed, in this situation, we get the correct signs of the relevant variables (those in ) with probability tending to one, but we also get all possible sign patterns consistent with this, i.e., all other variables (those not in ) may be non zero with asymptotically strictly positive probability. However, if we were to repeat the Lasso estimation for many datasets obtained from the same distribution, we would obtain for each , a set of active variables, all of which include with probability tending to one, but potentially containing all other subsets. By intersecting those, we would get exactly .
However, this requires multiple copies of the samples, which are not usually available. Instead, we consider bootstrapped samples which exactly mimic the behavior of having multiple copies. See Section 3 for more details.
4 Model Consistency with Exact Root-n𝑛n Regularization Decay
In this section we present detailed new results regarding the pattern consistency for tending to zero exactly at rate (see proofs in Appendix A):
Assume (A(A1)-(A3)) and , . Then, for any pattern such that , there exist a constant such that
The last two propositions state that we get all relevant variables with probability tending to one exponentially fast, while we get exactly get all other patterns with probability tending to a limit strictly between zero and one. Note that the results that we give in this paper are valid for finite , i.e., we could derive actual bounds on probability of sign pattern selections with known constants that explictly depend on , and .
Bolasso: Bootstrapped Lasso
The asymptotic analysis from Section 2 suggests to estimate the supports of the Lasso estimates for the bootstrap samples, , and to intersect them to define the Bolasso model estimate of the support: . Once is selected, we estimate by the unregularized least-square fit restricted to variables in . The detailed algorithm is given in Algorithm 1. The algorithm has only one extra parameter (the number of bootstrap samples ). Following Proposition 3, should be chosen growing with asymptotically slower than . In simulations, we always use (except in Figure 3, where we exactly study the influence of ).
Note that in practice, the Bolasso estimate can be computed simultaneously for a large number of regularization parameters because of the efficiency of the Lars algorithm (which we use in simulations), that allows to find the entire regularization path for the Lasso at the (empirical) cost of a single matrix inversion [lars]. Thus computational complexity of the Bolasso is .
The following proposition (proved in Appendix A) shows that the previous algorithm leads to consistent model selection.
where are strictly positive constants.
Therefore, if tends to infinity slower than when tends to infinity, the Bolasso asymptotically selects with overwhelming probability the correct active variable, and by regular consistency of the restricted least-square estimate, the correct sign pattern as well. Note that the previous bound is true whether the condition in Eq. (2) is satisfied or not, but could be improved on if we suppose that Eq. (2) is satisfied. See Section 4.1 for a detailed comparison with the Lasso on synthetic examples.
Simulations
In this section, we illustrate the consistency results obtained in this paper with a few simple simulations on synthetic examples similar to the ones used by (?) and some medium scale datasets from the UCI machine learning repository [UCI].
In Figure 1, we sampled two distributions with and relevant variables, one for which the consistency condition in Eq. (2) is satisfied (left), one for which it was not satisfied (right). For a fixed number of sample , we generated 256 replications and computed the empirical frequencies of selecting any given variable for the Lasso as the regularization parameter varies. Those plots show the various asymptotic regimes of the Lasso detailed in Section 2. In particular, on the right plot, although no leads to perfect selection (i.e., exactly variables with indices less than are selected), there is a range where all relevant variables are always selected, while all others are selected with probability within .
In Figure 2, we plot the results under the same conditions for the Bolasso (with a fixed number of bootstrap replications ). We can see that in the Lasso-consistent case (left), the Bolasso widens the consistency region, while in the Lasso-inconsistent case (right), the Bolasso “creates” a consistency region.
In Figure 3, we selected the same two distributions and compared the probability of exactly selecting the correct support pattern, for the Lasso, and for the Bolasso with varying numbers of bootstrap replications (those probabilities are computed by averaging over 256 experiments with the same distribution). In Figure 3, we can see that in the Lasso-inconsistent case (right), the Bolasso indeed allows to fix the unability of the Lasso to find the correct pattern. Moreover, increasing looks always beneficial; note that although it seems to contradict the asymptotic analysis in Section 3 (which imposes an upper bound for consistency), this is due to the fact that not selecting (at least) the relevant variables has very low probability and is not observed with only 256 replications.
Finally, in Figure 4, we compare various variable selection procedures for linear regression, to the Bolasso, with two distributions where , and varying . For all the methods we consider, there is a natural way to select exactly variables with no free parameters (for the Bolasso, we select the most stable pattern with elements, i.e., the pattern which corresponds to most values of ). We can see that the Bolasso outperforms all other variable selection methods, even in settings where the number of samples becomes of the order of the number of variables, which requires additional theoretical analysis, subject of ongoing research. Note in particular that we compare with bagging of least-square regression [bagging] followed by a thresholding of the loading vector, which is another simple way of using bootstrap samples: the Bolasso provides a more efficient way to use the extra information, not for usual stabilization purposes [stabilizing], but directly for model selection. Note finally, that the bagging of Lasso estimates requires an additional parameter and is thus not tested.
2 UCI datasets
The previous simulations have shown that the Bolasso is succesful at performing model selection in synthetic examples. We now apply it to several linear regression problems and compare it to alternative methods for linear regression, namely, ridge regression, Lasso, bagging of Lasso estimates [bagging], and a soft version of the Bolasso (referred to as Bolasso-S), where instead of intersecting the supports for each bootstrap replications, we select those which are present in at least of the bootstrap replications. In Table 1, we consider data randomly generated as in Section 4.1 (with , , ), where the true model is known to be composed of a sparse loading vector, while in Table 2, we consider regression datasets from the UCI machine learning repository. For all of those, we perform 10 replications of 10-fold cross validation and for all methods (which all have one free regularization parameter), we select the best regularization parameter on the 100 folds and plot the mean square prediction error and its standard deviation.
Note that when the generating model is actually sparse (Table 1), the Bolasso outperforms all other models, while in other cases (Table 2) the Bolasso is sometimes too strict in intersecting models, i.e., the softened version works better and is competitive with other methods. Studying the effects of this softened scheme (which is more similar to usual voting schemes), in particular in terms of the potential trade-off between good model selection and low prediction error, and under conditions where is large, is the subject of ongoing work.
Conclusion
We have presented a detailed analysis of variable selection properties of a boostrapped version of the Lasso. The model estimation procedure, referred to as the Bolasso, is provably consistent under general assumptions. This work brings to light that poor variable selection results of the Lasso may be easily enhanced thanks to a simple parameter-free resampling procedure. Our contribution also suggests that the use of bootstrap samples by L. Breiman in Bagging/Arcing/Random Forests [arcing] may have been so far slightly overlooked and considered a minor feature, while using boostrap samples may actually be a key computational feature in such algorithms for good model selection performances, and eventually good prediction performances on real datasets.
Appendix A Proof of Model Consistency Results
In this appendix, we give sketches of proofs for the asymptotic results presented in Section 2 and Section 3. The proofs rely on the well-known property of the Lasso optimization problems, namely that if the sign pattern of the solution is known, then we can get the solution in closed form.
The optimality conditions for Eq. (3) can be written in terms of the sign pattern and the sparsity pattern [yuanlin]:
In this paper, we focus on regularization parameters of the form . The main idea behind the results is to consider that are distributed according to their limiting distributions, obtained from the law of large numbers and the central limit theorem, i.e., converges to a.s. and is asymptotically normally distributed with mean zero and covariance matrix . When assuming this, Propositions 1 and 2 are straightforward. The main effort is to make sure that we can safely replace by their limiting distributions. The following lemmas give sufficient conditions for correct estimation of the signs of variables in and for selecting a given pattern (note that all constants could be expressed in terms of and , details are omitted here):
Assume (A(A2)) and . Then implies , where .
Assume (A(A2)) and let such that . Let . Assume
with are positive constants. Then .
Those two lemmas are interesting because they relate optimality of certain sign patterns to quantities from which we can derive concentration inequalities.
A.2 Concentration Inequalities
A.3 Proof of Proposition 1
By Lemma 2, for any given , and large enough, the probability that the sign is different from is upperbounded by
A.4 Proof of Proposition 2
A.5 Proof of Proposition 3
In order to simplify the proof, we made the simplifying assumption that the random variables and have compact supports. Extending the proofs to take into account the looser condition that and have non uniformly infinite cumulant generating functions (i.e., assumption (A(A1))) can be done with minor changes. The probability that is different from is upper bounded by the sum of the following probabilities:
(b) Selecting at most variables in 𝐉𝐉{\mathbf{J}}:
the probability that for all replications, the set is not exactly selected (note that this is not tight at all since on top of the relevant variables which are selected with overwhelming probability, different additional variables may be selected for different replications and cancel out when intersecting).