Sam Babichenko

Reading notes / Superposition

Decoding by Linear Programming

Candès and Tao, 2005

Context. A plaintext f∈Rnf\in\mathbb R^n is sent as Af∈RmAf\in\mathbb R^m, m>nm\gt n, and an adversary corrupts an unknown set of entries arbitrarily, y=Af+ey=Af+e. Can ff be recovered exactly, in polynomial time, when a constant fraction of the entries is corrupted? An annihilator FF with FA=0FA=0 leaves Fy=FeFy=Fe, so the question is sparse recovery from an underdetermined system. The sparsest solution is NP-hard to find in general, and ℓ1\ell_1 minimization (basis pursuit) was known to work only at sublinear sparsity or for an unspecified proportional fraction. This paper gives a deterministic condition on FF under which ℓ1\ell_1 recovers every sparse vector exactly, and Gaussian matrices meet it for an explicit proportional fraction. Exact ℓ1\ell_1 recovery needs only that sparse combinations of columns act almost isometrically, the restricted isometry property, so the columns may far outnumber the dimension and be heavily dependent overall. A Gaussian matrix has the property because concentration for one support fails with probability e−pt2/2e^{-pt^2/2}, while the union over all (mS)≈emH(S/m)\binom mS\approx e^{mH(S/m)} supports adds only an entropy factor, small enough to allow a proportional support size.

Setting. FF is a p×mp\times m matrix with columns vjv_j, and FTF_T keeps the columns indexed by TT. The SS-restricted isometry constant δS\delta_S is the smallest number with (1−δS)∥c∥2≤∥FTc∥2≤(1+δS)∥c∥2for all ∣T∣≤S, c∈R∣T∣,(1-\delta_S)\|c\|^2\le\|F_Tc\|^2\le(1+\delta_S)\|c\|^2\qquad\text{for all }|T|\le S,\ c\in\mathbb R^{|T|}, and the restricted orthogonality constant θS,S′\theta_{S,S'} is the smallest number with ∣⟨FTc,FT′c′⟩∣≤θS,S′∥c∥∥c′∥|\langle F_Tc,F_{T'}c'\rangle|\le\theta_{S,S'}\|c\|\|c'\| for disjoint ∣T∣≤S|T|\le S, ∣T′∣≤S′|T'|\le S', up to factors 1±δ1\pm\delta the largest cosine between the two column spans. Write θS=θS,S\theta_S=\theta_{S,S}. The two are linked by θS,S′≤δS+S′≤θS,S′+max⁡(δS,δS′)\theta_{S,S'}\le\delta_{S+S'}\le\theta_{S,S'}+\max(\delta_S,\delta_{S'}). Already δ2S<1\delta_{2S}\lt1 makes every SS-sparse representation unique, since two of them would differ by a 2S2S-sparse null vector, but finding it that way means searching over supports.

Theorem 1.4 (exact recovery). If δS+θS+θS,2S<1\delta_S+\theta_S+\theta_{S,2S}\lt1, then every cc supported on at most SS indices is the unique minimizer of min⁡∥d∥ℓ1\min\|d\|_{\ell_1} subject to Fd=FcFd=Fc. By the link above the hypothesis follows from δS+δ2S+δ3S<1\delta_S+\delta_{2S}+\delta_{3S}\lt1, which is what Section 3 uses. Theorem 1.5 (decoding). If FA=0FA=0, FF satisfies the hypothesis, and ee has at most SS nonzero entries, then ff is the unique minimizer of min⁡g∥y−Ag∥ℓ1\min_g\|y-Ag\|_{\ell_1}. Both statements are deterministic, with no failure probability once FF is known to satisfy the hypothesis.

Theorem 1.6 (Gaussian matrices). If FF is p×mp\times m with i.i.d. N(0,1/p)N(0,1/p) entries, the hypothesis of Theorem 1.4 holds with probability at least 1−e−cm1-e^{-cm} whenever r=S/m<r∗(p/m)r=S/m\lt r^*(p/m), with r∗≈3.6⋅10−4r^*\approx3.6\cdot10^{-4}, 3.2⋅10−43.2\cdot10^{-4}, 2.3⋅10−42.3\cdot10^{-4} for p/m=3/4, 2/3, 1/2p/m=3/4,\,2/3,\,1/2. Corollary 1.7. For a Gaussian coding matrix AA (m×nm\times n) and p=m−np=m-n, ℓ1\ell_1 decoding recovers ff exactly whenever at most r∗mr^*m entries are corrupted. The reason is that the program sees FF only through its null space, the range of AA, which for Gaussian AA is a uniformly random nn-dimensional subspace, the same law as the null space of a Gaussian FF. In experiments ℓ1\ell_1 decoding recovers ff every time up to about 17% corrupted entries when m=2nm=2n.

Step 1

Decoding is sparse recovery, and both are linear programs. Write g=f+hg=f+h, so min⁡g∥y−Ag∥1=min⁡h∥e−Ah∥1\min_g\|y-Ag\|_1=\min_h\|e-Ah\|_1. The constraint Fd=FeFd=Fe says exactly that d=e−Ahd=e-Ah for some hh, so decoding over gg and recovery over dd are one problem, and ff is recovered exactly when ee is. The decoding form is the linear program min⁡g,t 1⊤tsubject to−t≤y−Ag≤t,\min_{g,t}\ \mathbf 1^\top t\qquad\text{subject to}\quad -t\le y-Ag\le t, which never needs FF; FF enters only the analysis.

Step 2

A dual certificate proves uniqueness. By the optimality condition of ℓ1\ell_1, cc is the unique minimizer if FTF_T is injective and some ww has ⟨w,vj⟩=sgn(cj)\langle w,v_j\rangle=\mathrm{sgn}(c_j) on TT and ∣⟨w,vj⟩∣<1|\langle w,v_j\rangle|\lt1 off TT, a strictly feasible dual vector of the linear program. For any feasible dd, ∥d∥1 ≥ ∑j∈Tsgn(cj) dj+∑j∉Tdj⟨w,vj⟩=⟨w,Fd⟩=⟨w,Fc⟩=∥c∥1,\|d\|_1\ \ge\ \sum_{j\in T}\mathrm{sgn}(c_j)\,d_j+\sum_{j\notin T}d_j\langle w,v_j\rangle=\langle w,Fd\rangle=\langle w,Fc\rangle=\|c\|_1, so if dd is also a minimizer every inequality is an equality, the strict bound off TT forces dj=0d_j=0 there, and FT(d−c)=0F_T(d-c)=0 with δS<1\delta_S\lt1 gives d=cd=c. The remaining steps construct ww.

Step 3

The least-norm interpolant of the signs is small off the support in ℓ2\ell_2. Take w=FT(FT∗FT)−1cTw=F_T(F_T^*F_T)^{-1}c_T, the minimum-norm vector with inner products cTc_T against the columns in TT; restricted isometry gives ∥(FT∗FT)−1∥≤1/(1−δS)\|(F_T^*F_T)^{-1}\|\le1/(1-\delta_S). For T′T' disjoint from TT with ∣T′∣≤S′|T'|\le S', ⟨w,FT′d⟩\langle w,F_{T'}d\rangle is a cross term between spans of disjoint supports, so restricted orthogonality bounds it, and duality turns that into a bound on the ℓ2\ell_2 mass of ww's inner products with any S′S' columns off the support: (∑j∈T′⟨w,vj⟩2)1/2≤θS,S′1−δS ∥c∥.\Big(\sum_{j\in T'}\langle w,v_j\rangle^2\Big)^{1/2}\le\frac{\theta_{S,S'}}{1-\delta_S}\,\|c\|. By pigeonhole at most S′S' indices off TT exceed θS,S′∥c∥/((1−δS)S′)\theta_{S,S'}\|c\|/\big((1-\delta_S)\sqrt{S'}\big) in absolute value, and the rest are uniformly small. Call these at most S′S' indices the exceptional set; an ℓ2\ell_2 bound cannot keep their entries below 1.

Step 4

Correcting the exceptional set repeatedly gives the ℓ∞\ell_\infty certificate and the hypothesis. Correct the interpolant on its exceptional set, correct the correction, and sum the alternating series. Let w1w_1 be the vector of Step 3 and T1T_1 its exceptional set (with S′=SS'=S); build w2w_2 the same way to agree with w1w_1 on T1T_1 and vanish on T0=TT_0=T, with its own exceptional set T2T_2, and so on, and set w=∑n≥1(−1)n−1wnw=\sum_{n\ge1}(-1)^{n-1}w_n. On T0T_0 only w1w_1 contributes, giving cc. Off T0T_0, the nn-th and (n+1)(n+1)-st terms cancel wherever j∈Tnj\in T_n, and every surviving term is at most the uniform bound of Step 3 for that wnw_n. Each correction is driven only by the previous exceptional values, so these bounds shrink geometrically with ratio θS,2S/(1−δS)\theta_{S,2S}/(1-\delta_S), and summing gives ∣⟨w,vj⟩∣≤θS1−δS−θS,2S⋅∥c∥S(j∉T).|\langle w,v_j\rangle|\le\frac{\theta_S}{1-\delta_S-\theta_{S,2S}}\cdot\frac{\|c\|}{\sqrt S}\qquad(j\notin T). For the certificate c=sgn(c)c=\mathrm{sgn}(c) on TT, so ∥c∥≤S\|c\|\le\sqrt S, and the bound is below 1 exactly when δS+θS+θS,2S<1\delta_S+\theta_S+\theta_{S,2S}\lt1.

Step 5

Restricted orthogonality is controlled by restricted isometry. For unit c,c′c,c' on disjoint supports T,T′T,T', both FTc±FT′c′F_Tc\pm F_{T'}c' are FF applied to an (S+S′)(S+S')-sparse vector of norm 2\sqrt2, so their squared norms lie in [2(1−δS+S′), 2(1+δS+S′)][2(1-\delta_{S+S'}),\,2(1+\delta_{S+S'})], and the parallelogram identity ⟨f,g⟩=(∥f+g∥2−∥f−g∥2)/4\langle f,g\rangle=(\|f+g\|^2-\|f-g\|^2)/4 gives θS,S′≤δS+S′\theta_{S,S'}\le\delta_{S+S'}. Hence δS+θS+θS,2S≤δS+δ2S+δ3S\delta_S+\theta_S+\theta_{S,2S}\le\delta_S+\delta_{2S}+\delta_{3S}, and only the extreme singular values of column submatrices of size up to 3S3S need bounding.

Step 6

Gaussian submatrices are near-isometries uniformly over all supports. For a fixed TT with ∣T∣=S|T|=S, the extreme singular values of FTF_T are 1±S/p1\pm\sqrt{S/p} to first order (the Marchenko-Pastur edges), and as Lipschitz functions of a Gaussian matrix each exceeds that by tt with probability at most e−pt2/2e^{-pt^2/2} (Gaussian concentration). Monotonicity in TT reduces the uniform statement to supports of size exactly SS, and the union bound over (mS)=emH(r)+O(log⁡m)\binom mS=e^{mH(r)+O(\log m)} of them is absorbed by taking tt just above 2mH(r)/p\sqrt{2mH(r)/p}. So with probability 1−e−cm1-e^{-cm}, up to a factor 1+ϵ1+\epsilon on ff, 1+δS≤(1+f(r))2,f(r)=m/p (r+2H(r)),1+\delta_S\le\big(1+f(r)\big)^2,\qquad f(r)=\sqrt{m/p}\,\Big(\sqrt r+\sqrt{2H(r)}\Big), and likewise at 2r2r and 3r3r, so Theorem 1.4 applies once ∑j=13[(1+f(jr))2−1]<1\sum_{j=1}^3\big[(1+f(jr))^2-1\big]\lt1. Solving it numerically reproduces the paper's thresholds (my check: 3.66⋅10−43.66\cdot10^{-4}, 3.21⋅10−43.21\cdot10^{-4}, 2.34⋅10−42.34\cdot10^{-4}). The entropy term dominates, 2H(r)≈2rlog⁡(1/r)\sqrt{2H(r)}\approx\sqrt{2r\log(1/r)} being about four times r\sqrt r at these rr, so the requirement of uniformity over supports is what sets r∗r^*.

Consequences and limits. A constant fraction of arbitrarily corrupted entries can be corrected by a linear program, with a deterministic guarantee on any matrix that meets the condition, and the restricted isometry property becomes the organizing hypothesis of compressed sensing. A companion result, proved elsewhere, gives compressible signals ℓ1\ell_1 recovery errors as good as knowing the largest coefficients in advance, up to a log factor in the number of measurements. The limit is the gap between r∗≈2⋅10−4r^*\approx2\cdot10^{-4} and the 17% seen in experiments, and the authors show that part of it lies in the sufficient condition itself: even with exact limiting values of the constants, δS+θS+θS,2S\delta_S+\theta_S+\theta_{S,2S} stays above 1 once (m/p) r(m/p)\,r exceeds about 0.0236. Sharp answers came later, about 2slog⁡(N/s)2s\log(N/s) measurements for ss-sparse vectors in dimension NN. For superposition (a network storing more features than it has dimensions), the columns vjv_j are the feature directions: far more of them than dimensions is harmless as long as any few are nearly orthogonal, which random directions satisfy with high probability, though a network decodes with only one linear map and a ReLU.

Terms

δS\delta_S (restricted isometry)
FTF_T preserves norms of ∣T∣≤S|T|\le S combinations within 1±δS1\pm\delta_S
θS,S′\theta_{S,S'} (restricted orthogonality)
largest cosine between spans of disjoint column sets of sizes S,S′S,S'
θS,S′≤δS+S′\theta_{S,S'}\le\delta_{S+S'}
parallelogram identity; reduces the hypothesis to δS+δ2S+δ3S<1\delta_S+\delta_{2S}+\delta_{3S}\lt1
Annihilator FF, FA=0FA=0
turns y=Af+ey=Af+e into Fy=FeFy=Fe, a sparse recovery problem
ℓ1\ell_1 decoding
min⁡g∥y−Ag∥1\min_g\|y-Ag\|_1, a linear program equivalent to basis pursuit on FeFe
Dual certificate
⟨w,vj⟩=sgn(cj)\langle w,v_j\rangle=\mathrm{sgn}(c_j) on TT, ∣⟨w,vj⟩∣<1|\langle w,v_j\rangle|\lt1 off TT
Exceptional set
the at most S′S' indices where the ℓ2\ell_2 interpolant is not uniformly small
f(r)=m/p(r+2H(r))f(r)=\sqrt{m/p}(\sqrt r+\sqrt{2H(r)})
bound 1+δS≤(1+f)21+\delta_S\le(1+f)^2; the entropy term accounts for the union bound over supports
r∗(p/m)r^*(p/m)
proven support fraction, about 22-4⋅10−44\cdot10^{-4}; experiments reach 17% at m=2nm=2n
Method limit
(m/p) r≈0.0236(m/p)\,r\approx0.0236: beyond it the sufficient condition fails even with exact constants

Quiz

  1. Why does δ2S<1\delta_{2S}\lt1 already make the SS-sparse solution of Fd=FcFd=Fc unique, without any ℓ1\ell_1 argument?
  2. Read the columns vjv_j of FF as feature directions in a pp-dimensional space, with m≫pm\gg p. What does restricted isometry say about storing many sparse features?
  3. Why can the annihilator in Corollary 1.7 be treated as a Gaussian matrix?
  4. The proven fraction is about 2⋅10−42\cdot10^{-4} while experiments succeed at 17%. What does the authors' own analysis of their condition show about this gap?

Sources