Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

12. Compressed Sensing

CNRS & DMA, École Normale Supérieure

Chapter PDF · Complete book

Compressed sensing aims to recover sparse signals from far fewer measurements than their ambient dimension. This can reduce acquisition costs when measurements are expensive, but success depends on how the sensing operator interacts with the signal representation. Motivated by the single-pixel camera, we analyze recovery from random measurements, distinguish guarantees for fixed signals from uniform guarantees, and extend the discussion to structured Fourier sampling.

Hardware constraints often prevent direct implementation of an ideal random matrix. The theory nevertheless guides the design of structured acquisition schemes, whose physical assumptions and computational costs must be considered separately.

The main references for this chapter are [23, 21, 29].

12.1 Motivation and Potential Applications

12.1.1 Single-Pixel Camera

The “single-pixel camera” developed at Rice University [18] motivates compressed acquisition. Figure 12.1 illustrates the reconstruction principle with simulated measurements of a flower image.

A central idea is to combine acquisition and compression in a single device. Conventional acquisition first samples the analog scene f~0\tilde f_0 at high resolution to obtain an image f0RQf_0\in\mathbb{R}^Q, then compresses it to MM significant coefficients using (5.3). Compressed acquisition instead records a vector yRPy\in\mathbb{R}^P directly. The aim is to keep the measurement count PP close to the sparsity level MM, typically with a logarithmic overhead, while retaining enough information for accurate reconstruction.

The scene f~0\tilde f_0 is modeled as a light-intensity function. Its value f~0(s)\tilde f_0(s) gives the intensity at position sR2s \in \mathbb{R}^2 in the camera’s focal plane.

Light is focused onto an array of QQ micromirrors in the focal plane. Each mirror directs light either toward the sensor or away from it; the mirrors themselves record no information.

The device cycles rapidly through PP mirror configurations. For p=1,,Pp=1,\ldots,P, the entry Φp,q{0,1}\Phi_{p,q}\in\{0,1\} indicates whether mirror qq is off or on during exposure pp.

A single sensor integrates the light directed toward it during each exposure, producing one measurement ypRy_p\in\mathbb{R}.

Let cqc_q be the region occupied by mirror qq in the focal plane, and define its integrated intensity by f0,q=cqf~0(s)dsf_{0,q}=\int_{c_q}\tilde f_0(s)\,\mathrm{d}s. The discrete image f0RQf_0\in\mathbb{R}^Q and the measurements yRPy\in\mathbb{R}^P are then related by

p=1,,P,ypq=1QΦp,qcqf~0(s)ds=(Φf0)p,\forall \,p = 1,\ldots,P, \quad y_p \approx \sum_{q=1}^Q \Phi_{p,q} \int_{c_q} \tilde f_0(s) \text{d} s = (\Phi f_0)_p,

The symbol \approx accounts for acquisition noise. We therefore use the usual inverse-problem model

y=Φf0+wRPy = \Phi f_0 + w \in \mathbb{R}^P

where ww is the noise vector.

The intermediate image f0f_0 is never recorded: the device measures yy directly from the analog scene f~0\tilde f_0.

Binary mirror patterns are not centered random variables. Centered signed measurements can be formed by subtracting an appropriate total-intensity measurement or by differencing complementary exposures, followed by normalization. This distinction matters when applying the random-matrix assumptions below.

Recovering the ideal discrete image f0f_0 from yy requires inverting the acquisition model while accounting for the noise ww. Figure 12.1 uses nested subsets of signed Walsh–Hadamard patterns with a fixed random pixel permutation. Each reconstruction minimizes the same wavelet-1\ell^1 objective with its own measurements. The examples are noiseless simulations; the signed measurements correspond to centered patterns, rather than individual binary exposures.

Figure 12.1. Simulated compressed sensing of the flower image, with Q=4096Q=4096 pixels. The three wavelet-1\ell^1 reconstructions use P=512P=512, 1024, and 2048 orthonormal signed Walsh–Hadamard measurements, respectively.

12.1.2 Sparse Recovery

Following Section 10.2, write f0=Ψx0f_0=\Psi x_0, where ΨRQ×N\Psi\in\mathbb{R}^{Q\times N} is a dictionary and x0x_0 is sparse. Denoting A:=ΦΨRP×NA\mathrel{:=}\Phi\Psi\in\mathbb{R}^{P\times N}, this leads us to consider the usual 1\ell^1 regularized problem (10.10)

xλargminxRN  12λ ⁣yAx ⁣2+ ⁣x ⁣1,(Pλ(y))x_\lambda\in \underset{x \in \mathbb{R}^N}{\mathop{\mathrm{argmin}}}\; \frac{1}{2\lambda} |\!| y-Ax |\!|^2 + |\!| x |\!|_1, \tag{$\mathcal{P}_\lambda(y)$}

so that the reconstructed image is fλ=Ψxλf_\lambda= \Psi x_\lambda. We also sometimes consider the constrained problem

xεargmin ⁣Axy ⁣ε   ⁣x ⁣1,(Pε(y))x_\varepsilon\in \underset{|\!| Ax-y |\!| \leqslant\varepsilon}{\mathop{\mathrm{argmin}}}\; |\!| x |\!|_1, \tag{$\mathcal{P}^\varepsilon(y)$}

Assume that a noise bound  ⁣w ⁣ε|\!| w |\!|\leqslant\varepsilon is known, so that the true coefficient vector is feasible. Convex optimality conditions relate the two formulations through suitable Lagrange multipliers. The parameter correspondence depends on yy and need not be one-to-one; a range of parameter values may produce the same solution. The endpoint ε=0\varepsilon=0 may require a limiting parameter value.

The distribution of A=ΦΨA=\Phi\Psi depends on both the acquisition matrix and the dictionary. If Ψ\Psi is square and orthogonal and Φ\Phi has independent centered Gaussian entries with a common variance, right orthogonal invariance gives ΦΨ\Phi\Psi the same distribution as Φ\Phi. For a general dictionary, this simplification fails. The results below therefore impose distributional assumptions directly on AA.

12.2 Dual Certificate Theory and Non-Uniform Guarantees

12.2.1 Random Projection of Polytopes

For noiseless data, w=0w=0, we can use the geometric characterization of (P0(Ax0))=(P0(Ax0))(\mathcal{P}^0(Ax_0))=(\mathcal{P}_0(Ax_0)) from Section 11.1.2. Proposition 11.1 relates identifiable ss-sparse vectors to (s1)(s-1)-dimensional faces of the 1\ell^1 ball B1B_1 that survive projection onto AB1AB_1. Recovery thus becomes a problem of counting faces of random polytopes. For Gaussian projections, the asymptotic analysis of Donoho and Tanner distinguishes two thresholds, described by functions CAC_A and CMC_M. In the proportional-growth regime, with probability tending to one as the dimensions increase,

For illustration, at P/N=1/4P/N=1/4, the weak threshold is roughly one quarter of PP. Strong thresholds require recovery for every support/sign pattern; weak thresholds concern a typical pattern. Their precise values depend on the asymptotic regime. Figure 12.5 illustrates the two transitions numerically.

Above the weak threshold CM(P/N)PC_M(P/N)P, a typical support/sign pattern fails to be identifiable with high probability. The sharp transition between these regimes is called a phase transition.

The function CMC_M can be computed numerically and has inverse-logarithmic decay, CM(r)1/log(1/r)C_M(r)\asymp1/\log(1/r), as r0r\to0. Thus, in the high-compression regime, typical sparse vectors remain recoverable when their sparsity is proportional to the number of measurements, up to a logarithmic factor.

12.2.2 Random Matrices

To prove recovery guarantees, we need quantitative control of the singular values of random column submatrices. The Gaussian ensemble provides a useful starting point.

Let II contain ss column indices and set B=AIRP×sB=A_I\in\mathbb{R}^{P\times s}. Throughout this subsection, the entries of AA are independent N(0,1/P)\mathcal{N}(0,1/P) variables. The Gram matrix BBB^*B is a scaled Wishart matrix; when it is invertible, its inverse has the corresponding inverse-Wishart distribution. We need to control both matrices.

For fixed ss, the law of large numbers gives BBIdsB^*B\to\mathrm{Id}_s almost surely as PP\to\infty. Compressed sensing also requires estimates when ss grows with PP.

Proportional growth.

Suppose s,Ps,P\to\infty with s/Pβ(0,1)s/P\to\beta\in(0,1). The empirical eigenvalue distribution of BBB^*B converges almost surely to the Marchenko–Pastur law:

1sj=1sδλj(BB)fβ(λ)dλ,fβ(λ)=(λ+λ)(λλ)2πβλ1[λ,λ+](λ),\frac1s\sum_{j=1}^s\delta_{\lambda_j(B^*B)} \rightharpoonup f_\beta(\lambda)\,\mathrm{d}\lambda, \qquad f_\beta(\lambda)=\frac{\sqrt{(\lambda_+-\lambda)(\lambda-\lambda_-)}} {2\pi\beta\lambda}\,1_{[\lambda_-,\lambda_+]}(\lambda),

where λ±=(1±β)2\lambda_\pm=(1\pm\sqrt\beta)^2. For Gaussian matrices, the extreme eigenvalues also converge to these endpoints. When β<1\beta<1 there is no atom at zero; such an atom appears when s>Ps>P. Figure 12.2 illustrates this convergence.

Figure 12.2. Empirical eigenvalue distributions approaching the Marchenko–Pastur law.

Figure 12.3. Marchenko–Pastur densities fβf_\beta for several aspect ratios β\beta.

Finite-sample concentration.

For a fixed support II of size ss, Gaussian singular-value concentration gives, for t>0t>0, probability at least 12ePt2/21-2e^{-Pt^2/2} that

1s/Ptσmin(AI)σmax(AI)1+s/P+t.(12.1)1-\sqrt{s/P}-t\leqslant\sigma_{\min}(A_I) \leqslant\sigma_{\max}(A_I)\leqslant 1+\sqrt{s/P}+t. \tag{12.1}

In particular, writing a=s/P+ta=\sqrt{s/P}+t, on this event

 ⁣AIAIIds ⁣op2a+a2.|\!| A_I^*A_I-\mathrm{Id}_s |\!|_{\mathrm{op}}\leqslant 2a+a^2.

Thus the singular-value bounds also control the deviation of the Gram matrix from the identity. They show how increasing the measurement count PP relative to the support size ss improves conditioning.

12.2.3 Dual Certificates

We seek both a small 2\ell^2 reconstruction error and exact support recovery at low noise levels. Section 11.2.3 gives a sufficient condition: the Fuchs precertificate (11.16) must be nondegenerate, meaning

 ⁣ηF,Ic ⁣<1whereηF=AAI(AIAI)1sign(x0,I).(12.2)|\!| \eta_{F,I^c} |\!|_\infty<1 \quad \text{where} \quad \eta_F = A^* A_I (A_I^*A_I)^{-1} \mathop{\mathrm{sign}}(x_{0,I}). \tag{12.2}

Figure 11.9 suggests nondegeneracy when PP is sufficiently large relative to  ⁣x0 ⁣0|\!| x_0 |\!|_0. We now quantify this observation.

Coherence-based analysis.

We begin with a bound based on the coherence of A=(aj)j=1NA=(a_j)_{j=1}^N. Assume that each column ajRPa_j\in\mathbb{R}^P has unit norm. The coherence is

μ:=maxijai,aj(12.3)\mu\mathrel{:=}\max_{i\neq j}|\langle a_i,a_j\rangle| \tag{12.3}

This is an entrywise maximum, not the induced \ell^\infty matrix norm used below.

An orthogonal matrix has coherence 0. In general, coherence is at most 1, so μ[0,1]\mu \in [0,1].

Small coherence controls the conditioning of submatrices with few columns and gives a sufficient condition for nondegeneracy of ηF\eta_F.

The proof applies to every sign pattern on every support satisfying the coherence condition. It also yields support containment for arbitrary noise levels when λ\lambda satisfies the noise-dependent ERC bound from the preceding chapter. An arbitrary choice of λ\lambda need not preserve the support.

For N>PN>P, the Welch bound gives

μNPP(N1)(12.5)\mu \geqslant\sqrt{\frac{N-P}{P(N-1)}} \tag{12.5}

which is equivalent to 1/P1/\sqrt{P} for NPN \gg P.

For Gaussian matrices with normalized columns ARP×NA \in \mathbb{R}^{P \times N}, a union bound gives, with high probability when logN\log N is small relative to PP,

μ=O ⁣(logN/P)\mu=O\!\left(\sqrt{\log N/P}\right)

Thus Gaussian matrices attain the Welch scale up to a factor of order logN\sqrt{\log N} when NPN\gg P.

Ignoring logarithmic factors, Proposition 12.1 guarantees support stability for sparsities of order P\sqrt P. This coherence bound is conservative: a direct probabilistic analysis permits sparsities of order PP, again up to logarithmic factors.

Randomized analysis of the Fuchs certificate.

For the probabilistic analysis, we specify independent entries with a common variance and a uniform Gaussian-type tail bound.

Examples include Gaussian matrices with entry variance 1/P1/P and matrices with independent entries taking the values ±1/P\pm1/\sqrt P with equal probability.

Figure 12.4. Maximum of NN independent standard Gaussian variables, compared with the dashed curve 2log(N)\sqrt{2\log(N)}.

In a Gaussian asymptotic regime with s/P0s/P\to0, the leading-order scaling is

P2slog(2N/ε),(12.8)P\gtrsim2s\log(2N/\varepsilon), \tag{12.8}

with slack needed for a finite-sample probability bound. The unspecified constant in Theorem 12.3 applies to general sub-Gaussian ensembles; it should not be identified with this Gaussian leading constant.

This is a nonuniform guarantee: the vector x0x_0 is fixed before the matrix AA is drawn. The RIP theory in Section 12.3 gives a single event on which recovery holds for all sparse vectors simultaneously.

Figure 12.5. Phase transitions. Right: empirical probabilities that recovery criteria hold as sparsity varies. Blue: weak ERC; black: ERC; green:  ⁣ηF ⁣1|\!| \eta_F |\!|_\infty\leqslant 1; red: exact recovery.

12.3 RIP Theory for Uniform Guarantees

12.3.1 Restricted Isometry Constants

For a positive integer ss, the restricted isometry constant δs\delta_s of ARP×NA\in\mathbb{R}^{P\times N} is the smallest nonnegative number such that

zRN, ⁣z ⁣0s(1δs) ⁣z ⁣2 ⁣Az ⁣2(1+δs) ⁣z ⁣2,(12.9)\forall \,z \in \mathbb{R}^N, \quad |\!| z |\!|_{0} \leqslant s \quad\Longrightarrow\quad (1-\delta_{s}) |\!| z |\!|^2 \leqslant|\!| A z |\!|^2 \leqslant(1+\delta_{s}) |\!| z |\!|^2, \tag{12.9}

A small δs\delta_s therefore means that AA approximately preserves the Euclidean norm on every coordinate subspace of dimension at most ss.

A related quantity is the restricted orthogonality constant θs,s\theta_{s,s'}: the smallest nonnegative number such that, whenever  ⁣x ⁣0s|\!| x |\!|_0\leqslant s,  ⁣x ⁣0s|\!| x' |\!|_0\leqslant s' and the supports are disjoint,

Ax,Axθs,s ⁣x ⁣ ⁣x ⁣|\langle A x,\,A x'\rangle| \leqslant\theta_{s,s'} |\!| x |\!| |\!| x' |\!|

The next lemma relates restricted isometry and restricted orthogonality.

Figure 12.6. Evolution of lower bounds δ^k\hat\delta_k on the RIP constant.

The next theorem bounds the number of measurements needed to keep restricted isometry constants small at sparsity level ss.

The proof combines concentration on each support with a union bound over supports.

The RIP condition (12.9) is equivalent to the spectral bound eig(AIAI)[1δs,1+δs]\text{eig}( A_I^* A_I ) \subset [1-\delta_s,1+\delta_s] for every column submatrix AIA_I with Is|I|\leqslant s. Thus the proof reduces to controlling singular values uniformly over supports.

For Gaussian matrices, Section 12.2.2 provides these estimates for BBRs×sB^*B\in\mathbb{R}^{s\times s}, where BRP×sB\in\mathbb{R}^{P\times s} has independent N(0,1/P)\mathcal{N}(0,1/P) entries. The concentration bound (12.1) controls δs\delta_s on each support. Analogous nonasymptotic estimates hold under the stated sub-Gaussian assumptions; finite covariance alone would not suffice.

For a fixed support, the smallest eigenvalue is close to (1s/P)2(1-\sqrt{s/P})^2, a deficit of 2s/Ps/P2\sqrt{s/P}-s/P from 1. Thus a fixed tolerance requires PP to scale with ss. A union bound over all supports adds the logarithmic factor. This step requires nonasymptotic concentration, which the Marchenko–Pastur limit alone does not provide.

12.3.2 RIP Implies Dual Certificates

The following theorem shows that a sufficiently small restricted isometry constant guarantees a valid dual certificate. Theorem 11.11 then yields stable recovery of sparse signals.

Lemma 12.4 gives

δ2s+θs,s+θs,2sδ2s+δ2s+δ3s3δ3s\delta_{2s} + \theta_{s,s} + \theta_{s,2s} \leqslant\delta_{2s}+\delta_{2s}+\delta_{3s} \leqslant 3 \delta_{3s}

so that condition δ2s+θs,s+θs,2s<1\delta_{2s}+\theta_{s,s}+\theta_{s,2s}<1 is implied by δ3s<1/3\delta_{3s}<1/3. Sharper recovery conditions are available, for example δ2s<21\delta_{2s}<\sqrt2-1 for robust recovery [6].

These sufficient bounds on restricted isometry constants are commonly referred to as restricted isometry properties (RIP).

The numerical constants in elementary RIP bounds can be conservative, so the resulting sufficient sample sizes may exceed the observed phase-transition thresholds.

The iterative construction below follows [8], under a slightly stronger hypothesis than the sharpest certificate results. Rather than requiring the Fuchs precertificate ηF\eta_F in (12.2) to be feasible, we correct its large off-support entries. At each step, an interpolant cancels the largest ss entries outside II while preserving the values on the target support.

To construct these corrections to ηF\eta_F, we first bound minimum-norm interpolants using restricted isometry and restricted orthogonality.

We can now prove Theorem 12.6.

12.3.3 RIP Implies Stable Recovery

For uniform stability, it is convenient to use the noise-constrained formulation (Pε(y)\mathcal {P}^\varepsilon (y)). The standard robust RIP estimate [6], together with Theorem 12.5, gives the following statement.

The penalized formulation also admits linear noise-error bounds: combine Theorem 12.6 with Theorem 11.11 and choose λ\lambda accordingly. The bounds hold for every minimizer, but do not assert uniqueness of noisy Lasso solutions. For approximately sparse vectors, the constrained estimate measures the 1\ell^1 approximation tail divided by s\sqrt s, without an additional factor  ⁣A ⁣|\!| A |\!|.

The order of the quantifiers distinguishes uniform from nonuniform recovery. In the noiseless case, this theorem bounds the probability of a single event on which every ss-sparse vector is recovered. Theorem 12.3 instead bounds the recovery probability separately for each vector fixed independently of AA.

For uniform norm recovery, RIP analysis replaces logN\log N by log(eN/s)\log(eN/s). The Fuchs analysis using ηF\eta_F addresses an additional question: stability of the support. The guarantees also differ in their constants. Elementary RIP estimates can be conservative, while Gaussian fixed-signal calculations give a sharp leading constant in their asymptotic regime.

The uniform certificate constructed above need not coincide with the Fuchs precertificate ηF\eta_F.

12.3.4 RIP for Fourier Sampling

Fully independent random measurements can be difficult to implement. A practical alternative is to sample a random subset of coefficients in an orthonormal basis Ξ=(ξω)ω=1N\Xi = (\xi_\omega)_{\omega=1}^N of RN\mathbb{R}^N or CN\mathbb{C}^N:

Ax:=N/P(x,ξω)ωΩ(12.14)A x \mathrel{:=}\sqrt{N/P}\,( \langle x,\,\xi_\omega\rangle )_{\omega\in \Omega} \tag{12.14}

The factor N/P\sqrt{N/P} makes the expected Gram matrix the identity. For a complex basis, the measurements are complex. The index set Ω{1,,N}\Omega\subset\{1,\ldots,N\} is sampled uniformly without replacement, with Ω=P|\Omega|=P.

The following theorem gives an RIP guarantee when the basis vectors are sufficiently spread out, as quantified by

ρ(Ξ):=Nmax1ωN   ⁣ξω ⁣.\rho(\Xi) \mathrel{:=}\sqrt{N} \underset{1 \leqslant\omega\leqslant N}{\max}\; |\!| \xi_\omega |\!|_\infty.

One always has 1ρ(Ξ)2N1 \leqslant\rho(\Xi)^2 \leqslant N.

The worst case is the Dirac basis, Ξ=IdN\Xi=\mathrm{Id}_N, for which ρ(Ξ)2=N\rho(\Xi)^2=N. Indeed, uniform recovery of even one-sparse vectors then requires observing every coordinate, so P=NP=N.

Fourier atoms ξω=(N1/2e2iπNωn)n=1NCN\xi_\omega= (N^{-1/2}e^{\frac{2\mathrm{i}\pi}{N}\omega n} )_{n=1}^N \in \mathbb{C}^N attain the smallest possible value, ρ(Ξ)=1\rho(\Xi)=1; Hadamard bases do so as well. Up to logarithmic factors, the sample count (12.15) then matches the sub-Gaussian scaling (12.13).

Theorem 12.9 assumes that x0x_0 is sparse in the coordinate basis. If instead f0f_0 is sparse in an orthonormal basis Ψ=(ψm)m=1N\Psi=(\psi_m)_{m=1}^N, use the coordinates x=Ψfx = \Psi^* f, so that xx contains the coefficients of ff in Ψ\Psi. The factor ρ(Ξ)\rho(\Xi) in (12.15) is then replaced by the mutual coherence of the sampling and sparsity bases:

ρ(ΨΞ):=Nmax1ω,mN  ψm,ξω.\rho(\Psi^*\Xi) \mathrel{:=}\sqrt{N} \underset{1 \leqslant\omega,m \leqslant N}{\max}\; |\langle \psi_m,\,\xi_\omega\rangle|.

Small mutual coherence therefore yields stronger measurement bounds. Fourier and Dirac bases are maximally incoherent. Fourier and wavelet bases can have large correlations, whereas specially constructed “noiselet” bases have low coherence with suitable wavelets.

Unlike the Gaussian ensemble, these structured measurements are not universal: their recovery guarantees depend on the sparsity basis Ψ\Psi.