Skip to content
nonconvexcard

Sparse Recovery, Compressed Sensing and the Lasso

Restricted isometry, restricted eigenvalues, the lasso error bound, and why sparsity turns an impossible problem into a tractable one.

High-Dim StatisticsResearch⏱ 1 day13 min readlassosparsitycompressed sensingriprestricted eigenvalue
6 problems →

The restricted isometry property

DefinitionRestricted isometry property

X∈Rn×pX \in \R^{n\times p} satisfies the (s,δ)(s,\delta)-restricted isometry property (RIP) if

(1−δ)∥β∥22  ≤  1n∥Xβ∥22  ≤  (1+δ)∥β∥22(1-\delta)\norm{\beta}_2^2 \;\le\; \frac{1}{n}\norm{X\beta}_2^2 \;\le\; (1+\delta)\norm{\beta}_2^2

for every β\beta with ∥β∥0≤s\norm{\beta}_0 \le s, where ∥β∥0\norm{\beta}_0 counts non-zeros.

Compare the form of this condition with the conclusion of the Johnson–Lindenstrauss lemma: it is the same 1±δ1\pm\delta two-sided norm preservation, but required uniformly over an infinite set (all ss-sparse vectors) rather than a finite one. That is exactly the situation nets were built for.

TheoremRandom matrices satisfy the RIP

Let X∈Rn×pX\in\R^{n\times p} have i.i.d. N(0,1)\Ncal(0,1) entries and fix δ∈(0,1)\delta\in(0,1). There is an absolute constant CC such that if

n≥Cδ2 slog⁡ps,n \ge \frac{C}{\delta^2}\, s\log\frac{p}{s},

then XX satisfies the (s,δ)(s,\delta)-RIP with probability at least 1−2e−cδ2n1 - 2e^{-c\delta^2 n}.

Key idea

The exponent bookkeeping again. There are (ep/s)s=eslog⁡(ep/s)(ep/s)^s = e^{s\log(ep/s)} support sets; each fails with probability e−cδ2ne^{-c\delta^2 n} once n≳s/δ2n \gtrsim s/\delta^2; so we need δ2n≳slog⁡(p/s)\delta^2 n \gtrsim s\log(p/s). The log⁡(p/s)\log(p/s) is the union bound over supports and the s/δ2s/\delta^2 is the per-support covariance estimate. Both factors are necessary, and together they are the information-theoretic optimum up to constants.

TheoremExact recovery by basis pursuit

Suppose XX satisfies the (2s,δ)(2s,\delta)-RIP with δ<2−1\delta < \sqrt2 - 1, and let y=Xβ⋆y = X\beta^\star for some β⋆\beta^\star with ∥β⋆∥0≤s\norm{\beta^\star}_0\le s. Then the solution of the convex program

β^=arg min⁡β ∥β∥1subject toXβ=y\hat\beta = \argmin_{\beta}\ \norm{\beta}_1 \quad\text{subject to}\quad X\beta = y

satisfies β^=β⋆\hat\beta = \beta^\star.

Quoted from Candès–Tao and the Foucart–Rauhut text. The mechanism worth understanding even without the proof: ∥⋅∥1\norm{\cdot}_1 is the convex function whose sublevel sets — the ℓ1\ell^1 balls — have vertices exactly at the sparse vectors. Minimising a linear functional over a polytope lands at a vertex; minimising ∥⋅∥1\norm{\cdot}_1 over an affine subspace therefore lands at a sparse point, when it lands anywhere distinguished at all. Replacing ∥⋅∥0\norm{\cdot}_0 (non-convex, NP-hard to minimise) by ∥⋅∥1\norm{\cdot}_1 is not an approximation that happens to work; it is the convex envelope of the sparsity constraint on the unit ball, and the RIP is the condition under which the relaxation is tight.

The lasso

With noise, exact recovery is impossible and the goal becomes estimation. Consider

y=Xβ⋆+w,w∼N(0,σ2In),y = X\beta^\star + w, \qquad w \sim \Ncal(0,\sigma^2I_n),

and the lasso estimator

β^∈arg min⁡β∈Rp {12n∥y−Xβ∥22+λ∥β∥1}.\hat\beta \in \argmin_{\beta\in\R^p}\ \left\{\frac{1}{2n}\norm{y - X\beta}_2^2 + \lambda\norm{\beta}_1\right\}.
DefinitionRestricted eigenvalue condition

XX satisfies the restricted eigenvalue condition with constant γ>0\gamma>0 over a cone C\mathcal{C} if

1n∥Xv∥22≥γ∥v∥22for all v∈C.\frac{1}{n}\norm{X v}_2^2 \ge \gamma\norm{v}_2^2 \qquad\text{for all } v \in \mathcal{C}.

The relevant cone for the lasso is C(S)={v:∥vSc∥1≤3∥vS∥1}\mathcal{C}(S) = \{v : \norm{v_{S^c}}_1 \le 3\norm{v_S}_1\}, where S=supp⁡(β⋆)S = \operatorname{supp}(\beta^\star).

TheoremLasso error bound

Let S=supp⁡(β⋆)S = \operatorname{supp}(\beta^\star) with ∣S∣=s|S| = s, suppose the columns of XX are normalised so that ∥Xj∥2≤n\norm{X_j}_2 \le\sqrt n, and suppose the restricted eigenvalue condition holds with constant γ\gamma over C(S)\mathcal{C}(S). If

λ≥2σ2log⁡(2p/δ)n,\lambda \ge 2\sigma\sqrt{\frac{2\log(2p/\delta)}{n}},

then with probability at least 1−δ1-\delta,

∥β^−β⋆∥2≤3s λγ,1n∥X(β^−β⋆)∥22≤9sλ2γ.\norm{\hat\beta - \beta^\star}_2 \le \frac{3\sqrt s\,\lambda}{\gamma}, \qquad \frac{1}{n}\norm{X(\hat\beta - \beta^\star)}_2^2 \le \frac{9s\lambda^2}{\gamma} .

With λ≍σlog⁡p/n\lambda \asymp \sigma\sqrt{\log p / n} this is ∥β^−β⋆∥22≲σ2slog⁡p/(γ2n)\norm{\hat\beta-\beta^\star}_2^2 \lesssim \sigma^2 s\log p/(\gamma^2 n).

Assumptions

Independent Gaussian noise with known scale, column normalisation, a restricted eigenvalue condition with a known constant γ\gamma, and a regularisation parameter λ\lambda chosen at least as large as the stated threshold — which depends on σ\sigma. In practice σ\sigma is unknown and λ\lambda is chosen by cross-validation, which the theorem does not cover.

Key idea

Read the rate: σ2slog⁡p/n\sigma^2 s\log p/n instead of σ2p/n\sigma^2 p/n. Sparsity replaces the ambient dimension pp by the sparsity level ss, at the cost of a log⁡p\log p factor. The log⁡p\log p is the price of not knowing which ss coordinates matter — it is the union bound over the pp coordinates in Step 2, and if the support were known the rate would be exactly σ2s/n\sigma^2 s/n.

TheoremMinimax rate for sparse regression

Over the class {β:∥β∥0≤s}\{\beta : \norm\beta_0\le s\} with a suitable design, every estimator β~\tilde\beta satisfies

sup⁡∥β⋆∥0≤sE∥β~−β⋆∥22  ≳  σ2slog⁡(p/s)n.\sup_{\norm{\beta^\star}_0\le s}\E\norm{\tilde\beta - \beta^\star}_2^2 \;\gtrsim\; \frac{\sigma^2 s\log(p/s)}{n}.

Quoted from Wainwright's text; the proof is a Fano-type argument over a well-separated packing of sparse vectors. Combined with the lasso bound, the conclusion is that the lasso is minimax optimal up to constants — a genuinely strong statement, and one of the reasons the estimator is as important as it is.

Open problemCertifying the RIP for a given matrix

Open problem — no proof and no counterexample is known to the author of this page.

The theorem above says a random Gaussian matrix satisfies the RIP with high probability. Given a specific matrix, deciding whether it satisfies the (s,δ)(s,\delta)-RIP is a different question, and no polynomial-time algorithm is known for it; the natural formulations are NP-hard. So compressed sensing guarantees in practice rest on randomised constructions rather than on verification.

What this does not say

The lasso bound is about estimation and prediction, not about support recovery. Getting supp⁡(β^)=supp⁡(β⋆)\operatorname{supp}(\hat\beta) = \operatorname{supp}(\beta^\star) requires stronger conditions — an irrepresentable or incoherence condition on the design, plus a minimum signal strength min⁡j∈S∣βj⋆∣≳λ\min_{j\in S}|\beta^\star_j| \gtrsim \lambda. Without a beta-min condition, a coefficient too small to distinguish from noise will be missed, and no method can do better. Reporting the selected support as though it were a discovery, with no such condition checked, is one of the more common over-claims in applied high-dimensional statistics.

Problems

The lasso error vector lies in a coneProof · Graduate · 1 hour Union bound over supports for the restricted isometry propertyProof · Advanced · 1 hour The geometry of l1 versus l2 constraintsProof · Intermediate · 30 min Derive the soft-thresholding operatorProof · Intermediate · 30 min Implement ISTA and verify the lasso rateCoding · Advanced · 3 hours

References

  • PaperEmmanuel J. Candès and Terence Tao (2005). Decoding by linear programming
  • PaperDavid L. Donoho (2006). Compressed sensing
  • PaperPeter J. Bickel, Ya'acov Ritov and Alexandre B. Tsybakov (2009). Simultaneous analysis of Lasso and Dantzig selectorThe source of the restricted-eigenvalue analysis whose structure the proof below follows.
  • BookMartin J. Wainwright (2019). High-Dimensional Statistics: A Non-Asymptotic ViewpointChapters 7 and 11 treat sparse linear models and minimax lower bounds.
  • BookSimon Foucart and Holger Rauhut (2013). A Mathematical Introduction to Compressive Sensing

These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.

Results stated on this page

Problems (6)

All problems