Sparse Recovery Guarantees
When the lasso finds the truth: restricted eigenvalues and compressed sensing.
With 1,000 unknowns and only about 100 random measurements you can recover a vector exactly, provided it has just 10 nonzero entries, and the recovery is a linear program that never searches over supports. This lesson proves when the lasso and basis pursuit find the truth: restricted eigenvalues for accurate estimation, irrepresentability for selecting the right variables, the null space and restricted isometry properties for exact recovery, and the sharp phase transitions that random designs obey.
What you’ll learn
- State the sparse regression problem with , explain why search is out of reach, and identify the minimax rate .
- Prove that under a restricted eigenvalue condition the lasso's squared error is of order , including the high-probability choice of .
- Explain why selecting the right variables needs more than estimation: the irrepresentable condition, a minimum signal size, the primal–dual witness, and the threshold.
- Prove that the null space property characterizes exact recovery by basis pursuit, and sketch why random matrices satisfy the restricted isometry property with .
- Describe the phase transitions of recovery and the main open problems: deterministic designs, computational barriers and inference.
Sparsity and the price of not knowing the support
Take with , , noise variance , and an -sparse truth: has support with . Gene expression with 20,000 genes and 100 patients, or an image that is sparse in a wavelet basis, look like this.
An oracle who knew would run least squares on those columns and, for a well-conditioned design with , get error . Without the oracle, the direct approach, minimizing the error over all supports of size , is the problem, NP-hard in general (Natarajan, 1995). Information theory sets the target: over all -sparse vectors the minimax rate of the squared error is of order (Raskutti, Wainwright & Yu, 2011). The unknown support costs a factor , roughly the number of nats per relevant feature needed to write down which of the features matter: .
The remarkable fact is that the convex lasso, , nearly achieves this, up to replacing by , under conditions on . (This is the per-example scale of The Lasso & Sparsity and of the regpath widget; the sum-of-squares of Regularization: Ridge & Lasso is times larger.) Three different goals need three different conditions:
| Goal | Guarantee | Condition on | Typical for Gaussian designs |
|---|---|---|---|
| Estimation | restricted eigenvalue | ||
| Selection | irrepresentability plus a minimum signal size | (identity covariance) | |
| Exact recovery (no noise) | by basis pursuit | null space property, implied by RIP | about |
Estimation under restricted eigenvalues
With the matrix is singular: the loss is flat along a subspace of dimension at least , so there is no strong convexity at all. The key observation is that the lasso's error vector cannot point in most of those flat directions. It is confined to a cone around the true support, and curvature is only needed there.
Let , so . Since minimizes the objective, its value is no larger than at ; expanding the square and cancelling leaves the basic inequality:
Control the noise term with Hölder's inequality and the choice of : . For the penalty, vanishes off , so . Together:
The left side is nonnegative, so : the error lies in the cone , where the restricted eigenvalue condition applies. Dropping the negative term and using and then :
Divide by to get , which is the prediction bound; one more use of the restricted eigenvalue condition gives the estimation bound:
Choosing . With Gaussian noise and columns scaled to , each is , and a union bound over the columns gives . So satisfies the theorem's condition with probability at least , and then
This is the oracle rate times : up to the constant, the minimax rate with replaced by , reached with no search over supports.
When does RE hold? Certifying conditions of this kind for a given matrix is hard in general (for the restricted isometry and null space properties of step 4 it is provably NP-hard), but random designs satisfy RE with high probability: Gaussian rows with covariance satisfy RE with of the order of the smallest eigenvalue of once is a constant multiple of , even when the features are strongly correlated (Raskutti, Wainwright & Yu, 2010). Notice what the theorem does not need: any limit on how well irrelevant features correlate with relevant ones. Estimation tolerates such correlations; selection, next, does not.
Selection: irrepresentability
Accurate coefficients do not guarantee the right variables: a tiny nonzero on an irrelevant feature costs almost nothing in error but is a false discovery. Sign recovery, , needs a condition on how irrelevant columns relate to relevant ones. Write and for the two groups of columns.
Think first Population example: exactly, with uncorrelated, and an irrelevant feature that has correlation with each of them (all variances 1). Which feature enters the lasso first, and does the lasso ever select exactly ?
and , so has correlation with , more than and (): the irrelevant feature enters first. The irrepresentable quantity is , and indeed for every the population lasso keeps active (its coefficient shrinks toward 0 only as ). No choice of selects the right model, although the estimates converge to the truth as : estimation succeeds while selection fails.
Solve the lasso restricted to , with , and let be its subgradient on . Define the would-be subgradient on from the remaining KKT equations:
Substitute and the restricted solution , with the projection onto the span of :
If (strict dual feasibility) and is invertible, the constructed pair satisfies all the KKT conditions, so it is the lasso solution, and it is unique: no false positives. If in addition every , , exceeds the restricted estimate's error (of order for a well-conditioned ), no true variable is lost and the signs are right:
Wainwright (2009) made this sharp for random designs. For with i.i.d. entries, a suitable and nonzero coefficients that are not too small, the lasso recovers the signed support with probability tending to one when and fails with probability tending to one when , for any fixed . Selection is genuinely harder than estimation, and the that predicts best is typically too small for it.
Which of these does the lasso need for consistent variable selection but not for the error bound ?
- A restricted eigenvalue condition
- Columns of comparable scale
- at least of order
- Irrepresentability and a lower bound on the smallest nonzero
Show the answer
D. Irrepresentability and a lower bound on the smallest nonzero
The estimation bound needs only curvature on the cone (RE), standardized columns and a large enough . Selection additionally needs that irrelevant features are not too well explained by relevant ones (irrepresentability), and that true signals stand out from the estimation error (the minimum signal, or beta-min, condition).
Exact recovery: null space and restricted isometry
Compressed sensing removes the noise and asks for exact recovery: given with and -sparse, solve basis pursuit, subject to , a linear program. Candès, Romberg & Tao (2006) and Donoho (2006) showed that this recovers sparse signals from far fewer measurements than unknowns, for instance a sparse signal from a small random subset of its Fourier coefficients.
Sufficiency. Every other feasible point is with . With , the triangle inequality on and the null space property give
Necessity. If the property fails for some nonzero and some with , then is -sparse, is feasible because , and has norm no larger. So is not the unique solution:
The null space property is hard to check directly, so the theory works with a stronger, more quantitative condition. With columns scaled so that (for example entries ), the restricted isometry constant is the smallest with
(Candès & Tao, 2005): every set of columns is nearly orthonormal. If , basis pursuit recovers every -sparse vector exactly, and with noise or approximate sparsity its error is at most a constant times the noise level plus a constant times times the error of the best -term approximation (Candès, 2008).
Random matrices satisfy RIP. For a fixed unit vector , is an average of independent squared Gaussians and concentrates: for small . An -net of the unit sphere of one -dimensional coordinate subspace has at most points, and there are such subspaces. A union bound over all net points, followed by the standard extension from a net to the whole sphere, gives with probability at least as soon as
the argument of Baraniuk, Davenport, DeVore & Wakin (2008), which links RIP to the Johnson–Lindenstrauss lemma. No method can do better than order measurements for stable recovery, so random matrices are near optimal.
Phase transitions
For Gaussian measurement matrices the bounds above are not just upper bounds with loose constants: success and failure are separated by a sharp curve. Let with and fixed. Donoho & Tanner (2009) showed, by counting the faces of randomly projected cross-polytopes, that basis pursuit succeeds for most -sparse vectors with probability tending to one when and fails when , where for strong undersampling
They also observed that the same curve appears for many non-Gaussian random matrices.
Amelunxen, Lotz, McCoy & Tropp (2014) explained such transitions for every convex regularizer: with Gaussian measurements, recovery fails with high probability when is below the statistical dimension of the regularizer's descent cone at by more than order , and succeeds when is above it by that much. For the norm at an -sparse vector, Chandrasekaran, Recht, Parrilo & Willsky (2012) bounded the relevant Gaussian width so that measurements suffice.
A signal of length has nonzero entries. How many Gaussian measurements does the bound call for?
Show the answer
106 measurements
, plus : about 106, roughly a tenth of the signal length, ten times the number of nonzeros, and far fewer than the 1,000 unknowns. For comparison, the noisy support-recovery threshold of the selection step is about 138, and the oracle that knew the support would need only .
Key takeaways
- With -sparse truth and , the oracle rate is , the minimax rate , and the search is NP-hard in general; the lasso comes within a logarithm by convex optimization.
- Restricted eigenvalue condition plus : the error lies in a cone and , which is of order with high probability.
- Selection needs more: irrepresentability (irrelevant features not explained by relevant ones) and a minimum signal size; for designs with i.i.d. standard Gaussian entries the threshold is . Correlated irrelevant features can enter first and never leave.
- Basis pursuit recovers every -sparse vector iff the null space property holds; RIP with implies it, and Gaussian matrices have RIP once .
- Recovery shows sharp phase transitions at the statistical dimension of the descent cone, about for very sparse vectors; constructing or certifying good designs deterministically remains open.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Why does the lasso's error analysis need curvature only on the cone rather than on all of ?
- Because is positive definite when
- Because with the basic inequality forces the error vector into that cone
- Because the lasso solution always has exactly nonzeros
- Because the noise is Gaussian
Show the answer
B. Because with the basic inequality forces the error vector into that cone
The basic inequality gives , so the error cannot put more than three times its on-support mass off the support. Curvature in the flat directions far from the support is never needed.
Under a restricted eigenvalue condition with , how does the lasso's squared error scale?
Show the answer
C.
with . That is the oracle rate times a for not knowing the support, and it does not grow with beyond the logarithm.
What does the null space property of order guarantee?
- That every -sparse vector is the unique solution of basis pursuit from its own measurements
- That the lasso selects the right support in the presence of noise
- That is invertible
- That has orthonormal columns
Show the answer
A. That every -sparse vector is the unique solution of basis pursuit from its own measurements
It is equivalent to exact recovery of all -sparse vectors by minimization in the noiseless setting. It says nothing directly about noisy selection, and it is compatible with , where is always singular.
Further reading
- P. J. Bickel, Y. Ritov & A. B. Tsybakov, "Simultaneous analysis of Lasso and Dantzig selector," Annals of Statistics 37(4), 1705–1732 (2009).
- P. Zhao & B. Yu, "On model selection consistency of Lasso," Journal of Machine Learning Research 7, 2541–2563 (2006).
- M. J. Wainwright, "Sharp thresholds for high-dimensional and noisy sparsity recovery using ℓ1-constrained quadratic programming (Lasso)," IEEE Transactions on Information Theory 55(5), 2183–2202 (2009).
- D. L. Donoho, "Compressed sensing," IEEE Transactions on Information Theory 52(4), 1289–1306 (2006).
- M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint (Cambridge University Press, 2019), chapter 7.