On Iterative Hard Thresholding Methods for High-dimensional M-Estimation
Prateek Jain, Ambuj Tewari, Purushottam Kar
Introduction
Modern statistical estimation is routinely faced with real world problems where the number of parameters handily outnumbers the number of observations . In general, consistent estimation of parameters is not possible in such a situation. Consequently, a rich line of work has focused on models that satisfy special structural assumptions such as sparsity or low-rank structure. Under these assumptions, several works (for example, see ) have established that consistent estimation is information theoretically possible in the “” regime as well.
The question of efficient estimation, however, is faced with feasibility issues since consistent estimation routines often end-up solving NP-hard problems. Examples include sparse regression which requires loss minimization with sparsity constraints and low-rank regression which requires dealing with rank constraints which are not efficiently solvable in general .
Interestingly, recent works have demonstrated that these hardness results can be avoided by assuming certain natural conditions over the loss function being minimized such as restricted strong convexity (RSC) and restricted strong smoothness (RSS). The estimation routines proposed in these works typically make use of convex relaxations or greedy methods which do not suffer from infeasibility issues.
Despite this, certain limitations have precluded widespread use of these techniques. Convex relaxation-based methods typically suffer from slow rates as they solve non-smooth optimization problems apart from being hard to analyze in terms of global guarantees. Greedy methods, on the other hand, are slow in situations with non-negligible sparsity or relatively high rank, owing to their incremental approach of adding/removing individual support elements.
Instead, the methods of choice for practical applications are actually projected gradient (PGD) methods, also referred to as iterative hard thresholding (IHT) methods. These methods directly project the gradient descent update onto the underlying (non-convex) feasible set. This projection can be performed efficiently for several interesting structures such as sparsity and low rank. However, traditional PGD analyses for convex problems viz. do not apply to these techniques due to the non-convex structure of the problem.
An exception to this is the recent work that demonstrates that PGD with non-convex regularization can offer consistent estimates for certain high-dimensional problems. However, the work in is only able to analyze penalties such as SCAD, MCP and capped . Moreover, their framework cannot handle commonly used penalties such as or low-rank constraints.
All existing results analyzing these methods require the condition number of the loss function, restricted to sparse vectors, to be smaller than a universal constant. The best known such constant is due to the work of that requires a bound on the RIP constant (or equivalently a bound on the condition number). In contrast, real-life high dimensional statistical settings, wherein pairs of variables can be arbitrarily correlated, routinely require estimation methods to perform under arbitrarily large condition numbers. In particular if two variates have a covariance matrix like , then the restricted condition number (on a support set of size just ) of the sample matrix cannot be brought down below even with infinitely many samples. In particular when , none of the existing results for hard thresholding methods offer any guarantees. Moreover, most of these analyses consider only the least squares objective. Although recent attempts have been made to extend this to general differentiable objectives , the results continue to require that the restricted condition number be less than a universal constant and remain unsatisfactory in a statistical setting.
2 Overview of Results
Our main contribution in this work is an analysis of PGD/IHT-style methods in statistical settings. Our bounds are tight, achieve known minmax lower bounds , and hold for arbitrary differentiable, possibly even non-convex functions. Our results hold even when the underlying condition number is arbitrarily large and only require the function to satisfy RSC/RSS conditions. In particular, this reveals that these iterative methods are indeed applicable to statistical settings, a result that escaped all previous works.
Our first result shows that the PGD/IHT methods achieve global convergence if used with a relaxed projection step. More formally, if the optimal parameter is -sparse and the problem satisfies RSC and RSS constraints and respectively (see Section 2), then PGD methods offer global convergence so long as they employ projection to an -sparse set where . This gives convergence rates that are identical to those of convex relaxation and greedy methods for the Gaussian sparse linear model. We then move to a family of efficient “fully corrective” methods and show as before, that for arbitrary functions satisfying the RSC/RSS properties, these methods offer global convergence.
Next, we show that these results allow PGD-style methods to offer global convergence in a variety of statistical estimation problems such as sparse linear regression and low rank matrix regression. Our results effortlessly extend to the noisy setting as a corollary and give bounds similar to those of that relies on solving an regularized problem.
Our proofs are able to exploit that even though hard-thresholding is not the prox-operator for any convex prox function, it still provides strong contraction when projection is performed onto sets of sparsity . This crucial observation allows us to provide the first unified analysis for hard thresholding based gradient descent algorithms. Our empirical results confirm our predictions with respect to the recovery properties of IHT-style algorithms on badly-conditioned sparse recovery problems, as well as demonstrate that these methods can be orders of magnitudes faster than their and greedy counterparts.
3 Organization of the Paper
Section 2 sets the notation and the problem statement. Section 3 introduces the PGD/IHT algorithm that we study and proves that the method guarantees recovery assuming the RSC/RSS property. We also generalize our guarantees to the problem of low-rank matrix regression. Section 4 then provides crisp sample complexity bounds and statistical guarantees for the PGD/IHT estimators. Section 5 extends our analysis to a broad family of “fully-corrective” hard thresholding methods compressive sensing algorithms that include the so-called two-stage hard thresholding and partial hard thresholding algorithms and provide similar results for them as well. We present some empirical results in Section 6 and conclude in Section 7.
Problem Setup and Notations
For this problem the RSC and RSS properties for are defined similarly as in Definition 1, 2 except that the norm is replaced by the rank function.
Iterative Hard-thresholding Method
In this section we study the popular projected gradient descent (a.k.a iterative hard thresholding) method for the case of the feasible set being the set of sparse vectors (see Algorithm 1 for pseudocode). The projection operator , can be implemented efficiently in this case by projecting onto the set of -sparse vectors by selecting the largest elements (in magnitude) of . The standard projection property implies that for all . However, it turns out that we can prove a significantly stronger property of hard thresholding for the case when and . This property is key to analysing IHT and is formalized below.
Our analysis combines the above observation with the RSC/RSS properties of to provide geometric convergence rates for the IHT procedure below.
Let have RSC and RSS parameters given by and respectively. Let Algorithm 1 be invoked with , and . Also let . Then, the -th iterate of Algorithm 1, for satisfies:
(Sketch) Let , , and . Using the RSS property and the fact that and , we have:
where follows from an application of Lemma 1 with and the Pythagoras theorem. The above equation has three critical terms. The first term can be bounded using the RSS condition. Using bounds the third term in (3). The second term is more interesting as in general elements of can be arbitrarily small. However, elements of should be at least as large as as they are selected by hard-thresholding. Combining this insight with bounds for and with (3), we obtain the theorem. See Appendix A for a detailed proof. ∎
We now generalize our previous analysis to a projected gradient descent (PGD) method for low-rank matrix regression. Formally, we study the following problem:
The hard-thresholding projection step for low-rank matrices can be solved using SVD i.e.
where is the singular value decomposition of . are the top- singular vectors (left and right, respectively) of and is the diagonal matrix of the top- singular values of . To proceed, we first note a property of the above projection similar to Lemma 1.
Let be the singular value decomposition of . Now, , where are the singular values of . Using Lemma 1, we get:
where the last step uses the von Neumann’s trace inequality (). ∎
The following result for low-rank matrix regression immediately follows from Lemma 4.
Let have RSC and RSS parameters given by and . Replace the projection operator in Algorithm 1 with its matrix counterpart as defined in (5). Suppose we invoke it with . Also let . Then the -th iterate of Algorithm 1, for satisfies:
A proof progression similar to that of Theorem 1 suffices. The only changes that need to be made are: firstly Lemma 2 has to be invoked in place of Lemma 1. Secondly, in place of considering vectors restricted to a subset of coordinates viz. , we would need to consider matrices restricted to subspaces i.e. where is a set of singular vectors spanning the range-space of . ∎
High Dimensional Statistical Estimation
This section elaborates on how the results of the previous section can be used to give guarantees for IHT-style techniques in a variety of statistical estimation problems. We will first present a generic convergence result and then specialize it to various settings. Suppose we have a sample of data points and a loss function that depends on a parameter and the sample. Then we can show the following result. (See Appendix B for a proof.)
Let be any -sparse vector. Suppose is differentiable and satisfies RSC and RSS at sparsity level with parameters and respectively, for . Let be the -th iterate of Algorithm 1 for chosen as in Theorem 1 and be the function value error incurred by Algorithm 1. Then we have
Note that the result does not require the loss function to be convex. This fact will be crucially used later. We now apply the above result to several statistical estimation scenarios.
where is the function value error incurred by Algorithm 1.
Fully-corrective Methods
In this section, we study a variety of “fully-corrective” methods. These methods keep the optimization objective fully minimized over the support of the current iterate. To this end, we first prove a fundamental theorem for fully-corrective methods that formalizes the intuition that for such methods, a large function value should imply a large gradient at any sparse as well. This result is similar to Lemma 1 of but holds under RSC/RSS conditions (rather than the RIP condition as in ), as well as for the general loss functions.
Consider a function with RSC parameter given by and RSS parameter given by . Let with . Let be any subset of co-ordinates s.t. . Let . Then, we have:
Here we will concentrate on a family of two-stage fully corrective methods that contains popular compressive sensing algorithms like CoSaMP and Subspace Pursuit (see Algorithm 2 for pseudocode). These algorithms have thus far been analyzed only under RIP conditions for the least squares objective. Using our analysis framework developed in the previous sections, we present a generic RSC/RSS-based analysis for general two-stage methods for arbitrary loss functions. Our analysis shall use the following key observation that the the hard thresholding step in two stage methods does not increase the objective function a lot.
Let and . Let and . Then, the following holds:
Let . Then, using the RSS property we get:
where is any vector such that and . follows by observing and by noting that . follows by Lemma 1 and the fact that . Now, using RSS property and the fact that , we have:
The result now follows by combining (7) and (8). ∎
2 Partial Hard Thresholding Methods
We now study Partial Hard Thresholding methods (PHT), a family of fully-corrective iterative methods introduced by . This family is known to provide the best known RIP guarantees in the compressive sensing setting, but the proof is restricted to the RIP setting, and for the least-squares objective. An interesting member of this family is Orthogonal Matching Pursuit with Replacement (OMPR), which is also a Forward-Backward Greedy Selection method but performs one forward-backward step per iteration.
Let , be supplied to Algorithm 3 and let the RSC and RSS parameters of be given by and respectively. Let . Then, either or . That is, at least one new element is added at each iteration of Algorithm 3.
where we have used the fact that and .
Using Lemma 3 and the above equation, we have:
The lemma now follows by observing that , by the choice of . ∎
Let be supplied to Algorithm 3. Also, let the RSC and RSS parameters of be given by and respectively. Let and let . Then, the -th iterate of Algorithm 3 satisfies:
where .
Experiments
We conducted simulations on high dimensional sparse linear regression problems to verify our predictions. Our experiments demonstrate that hard thresholding and projected gradient techniques can not only offer recovery in stochastic setting, but offer much more scalable routines for the same.
Data: Our problem setting is identical to the one described in the previous section. We fixed a parameter vector by choosing random coordinates and setting them randomly to values. Data samples were generated as where and where . We studied the effect of varying dimensionality , sparsity , sample size and label noise level on the recovery properties of the various algorithms as well as their run times. We chose baseline values of where is the oversampling factor with default value . Keeping all other quantities fixed, we varied one of the quantities and generated independent data samples for the experiments.
Algorithms: We studied a variety of hard-thresholding style algorithms including HTP , GraDeS (or IHT ), CoSaMP , OMPR and SP . We compared them with a standard implementation of the L1 projected scaled sub-gradient technique for the lasso problem and a greedy method FoBa for the same.
Evaluation Metrics: For the baseline noise level , we found that all the algorithms were able to recover the support set within an error of . Consequently, our focus shifted to running times for these experiments. In the experiments where noise levels were varied, we recorded, for each method, the number of undiscovered support set elements.
Results: Figure1 describes the results of our experiments in graphical form. For sake of clarity we included only HTP, GraDeS, L1 and FoBa results in these graphs. Graphs for the other algorithms CoSaMP, SP and OMPR can be seen in the supplementary material. The graphs indicate that whereas hard thresholding techniques are equally effective as L1 and greedy techniques for recovery in noisy settings, as indicated by Figure1(a), the former can be much more efficient and scalable than the latter. For instance, as Figure1(b), for the base level of , HTP was faster than the L1 method. For higher values of , the runtime gap widened to more than . We also note that in both these cases, HTP actually offered exact support recovery whereas L1 was unable to recover and support elements respectively.
Although FoBa was faster than L1 on Figure1(b) experiments, it was still slower than HTP by and for and respectively. Moreover, due to its greedy and incremental nature, FoBa was found to suffer badly in settings with larger true sparsity levels. As Figure 1(c) indicates, for even moderate sparsity levels of and , FoBa is slower than HTP. As mentioned before, the reason for this slowdown is the greedy approach followed by FoBa: whereas HTP took less than iterations to converge for these two problems, FoBa spend and iterations respectively. GraDeS was found to offer much lesser run times in comparison being slower than HTP by for larger values of and slower for larger values of .
Experiments on badly conditioned problems. We also ran experiments to verify the performance of IHT algorithms in high condition number setting. Values of and were kept at baseline levels. After selecting the optimal parameter vector , we selected random coordinates from its support and random coordinates outside its support and constructed a covariance matrix with heavy correlations between these chosen coordinates. The condition number of the resulting matrix was close to . Samples were drawn from this distribution and the recovery properties of the different IHT-style algorithms was observed as the projected sparsity levels were increased. Our results (see Figure 1(d)) corroborate our theoretical observation that these algorithms show a remarkable improvement in recovery properties for ill-conditioned problems with an enlarged projection size.
Discussion and Conclusions
In our work we studied iterative hard thresholding algorithms and showed that these techniques can offer global convergence guarantees for arbitrary, possibly non-convex, differentiable objective functions, which nevertheless satisfy Restricted Strong Convexity/Smoothness (RSC/RSM) conditions. Our results apply to a large family of algorithms that includes existing algorithms such as IHT, GraDeS, CoSaMP, SP and OMPR. Previously the analyses of these algorithms required stringent RIP conditions that did not allow the (restricted) condition number to be larger than universal constants specific to these algorithms.
Our basic insight was to relax this stringent requirement by running these iterative algorithms with an enlarged support size. We showed that guarantees for high-dimensional M-estimation follow seamlessly from our results by invoking results on RSC/RSM conditions that have already been established in the literature for a variety of statistical settings. Our theoretical results put hard thresholding methods on par with those based on convex relaxation or greedy algorithms. Our experimental results demonstrate that hard thresholding methods outperform convex relaxation and greedy methods in terms of running time, sometime by orders of magnitude, all the while offering competitive or better recovery properties.
Our results apply to sparsity and low rank structure, arguably two of the most commonly used structures in high dimensional statistical learning problems. In future work, it would be interesting to generalize our algorithms and their analyses to more general structures. A unified analysis for general structures will probably create interesting connections with existing unified frameworks such as those based on decomposability and atomic norms .
References
Appendix A Proofs for Section 3
Without loss of generality, assume that we have reordered coordinates such that . Since the projection operator operates by selecting the largest elements by magnitude, we have and .
Also define . By the above argument, we have and . Now we have
since the coordinates of are arranged in decreasing order of magnitude. Combining the above with the observation that, due to the projection property , proves the result. ∎
Recall that where . Let , , and . Also, let .
Now, using the RSS property and the fact that and , we have:
As , and are disjoint, we have:
where the equality follows from the gradient step, i.e., . The inequality follows using the fact that is obtained using hard thresholding and the fact that , as follows:
The equality follows from .
Next, let us try to upper bound the first two terms on the right hand side above. Since , we have . However, as , we actually have . Now let us choose a set such that . Such a choice is possible since (which itself is a consequence of the fact that ). Moreover, since is obtained by hard-thresholding , for any choice of made above, we have:
Using above equation, and the fact that (since ), we have:
We can bound the size of as Also, since , we have .
Using the above observation with (16) and Lemma 1, we get:
where the inequality follows by as shown earlier and the observation that is a positive and increasing function on the interval if . Note that since we have , we get . The inequality follows by using RSC.
Using (14), (17), and using , we get:
We now set as per our earlier choice and set , so that we have . Since , we also have . Using these inequalities, we now rearrange the terms in (18) above.
Splitting gives us
where the last inequality above follows using Lemma 6. The result now follows by observing that . ∎
where the first inequality above follows from (21). ∎
Appendix B Proofs for Section 4
Let be the empirical loss minimizer over the set of -sparse vectors. Then invoking Theorem 1 with , we get
where the 2nd inequality is by definition of and 3rd is by RSC (since are sparse). Duality gives us the upper bound
Combining the last two inequalities and rearranging gives a quadratic inequality in :
Appendix C Proofs for Section 5
We will start by proving a more general result of which the claimed result will be a corollary. More specifically, we shall prove that for any , we have
Setting will yield the claimed result. It is easy to see that the following inequality holds trivially since
For the second inequality, we first use the RSC condition to obtain:
Now let be the set of true support elements missing from and be the set of incorrect elements included in the support of . Since is obtained by a “fully corrective” process (recall ), we have . Thus .
Putting this into the above expansion gives
We now present some simple inequalities that will help us get our desired bounds. Firstly, we have
since the first expression is a norm. Next, since , we have
We finish off the proof by noticing that since , we have ∎
Let , , and .
Now, using Lemma 4 and (27) along with and , we have:
where follows by observing that and . follows by the property of PHT operator which ensures that each element of is bigger than and by using . follows by using .
Similar to the analysis given in , we divide the analysis in three mutually exclusive cases. The lemma then follows by combining (29) with the case-by-case analyses below and observing that because of the fully corrective step.
Using , and , we have:
Using the above equation and Lemma 3, we have:
Using , we have:
Case 3: . Now, as is obtained by selecting largest elements of . Hence, using Lemma 3, we have:
The lemma now follows by combining (29), (31), (35), and (36) ∎
Appendix D Supplementary Experimental Results
Below we present plots that were not included in the main text.