Quiz: compressed sensing

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. A signal of 256 samples has 8 nonzero samples. Why might far fewer than 256 measurements be enough, and why is it not obvious?

Count the information; then ask whether we know where the nonzeros are.

The signal is described by 8 values plus their positions (48.5 bits for the positions), so a few dozen numbers could be enough. It is not obvious because we do not know the positions in advance, and with fewer equations than unknowns the linear system has infinitely many solutions. A sparsity prior (ℓ1) picks the right one if the measurements are incoherent.


Q2. You keep every 4th Fourier coefficient of a spike signal and zero-fill. What do you see? And if you keep the same number at random?

Regular undersampling in frequency is aliasing in space.

Every 4th coefficient: each spike appears 4 times, a quarter of the signal length apart, all copies equally tall (coherent aliasing): no method can tell which copy is real. Random: the spikes appear at their positions above low-level, noise-like junk spread everywhere (incoherent aliasing), which thresholding can remove.


Q3. Why are random pixel samples useless for a signal made of a few spikes, while random Fourier coefficients work?

Which measurements “see” a given spike?

A pixel sample sees only its own sample: most random pixels land between the spikes and measure 0; an unsampled spike is lost. Every Fourier coefficient is a weighted sum over all samples, so each one carries a little information about every spike. Pixels and Fourier are incoherent; pixels and spikes are the same basis (maximally coherent).


Q4. Of all solutions of an underdetermined A\mathbf x = \mathbf y, which one does least squares (minimum norm) choose, and which one does ℓ1 choose?

Picture the line of solutions, a circle and a diamond.

Minimum norm picks the solution closest to the origin in ℓ2: it spreads the weight over all unknowns (for the 2 × 4 example: (1.2, −0.6, 2.1, 0.3)). ℓ1 picks the point where the solution set touches the smallest diamond, usually a vertex or low-dimensional face: a sparse solution ((0, 0, 3, 0)).


Q5. Roughly how many measurements are needed to recover K nonzeros out of N? Why does a Gaussian random matrix work for any sparsity basis?

K\log(N/K); rotate a Gaussian matrix.

Of the order of K\log(N/K), a few times K in practice. A Gaussian matrix times any orthonormal basis is again a Gaussian matrix (the distribution is rotation invariant), so it is incoherent with every fixed basis.


Q6. In a phase diagram, what is on the axes, and what does “phase transition” mean?

δ and ρ.

δ = M/N (measurements per unknown) and ρ = K/M (nonzeros per measurement); each cell shows the fraction of random trials recovered. The transition is sharp: below a curve recovery succeeds almost always, above it fails almost always, and the band in between narrows as N grows.


Q7. With too few measurements, compressed sensing fails. Why is that failure dangerous in practice?

What does a failed ℓ1 reconstruction look like?

The failure is abrupt and the result still looks clean and sparse: a plausible but wrong image, not an obviously noisy one. Nothing in the picture warns you; you have to know that you were below the phase transition, or validate with extra measurements.


Q8. (math) The null space of A contains \mathbf h = (1, -1, 0, 0). Can ℓ1 recover every 1-sparse signal from A\mathbf x?

Null space property with S = \{1\}.

No. For S = \{1\}, \|\mathbf h_S\|_1 = 1 and \|\mathbf h_{S^c}\|_1 = 1: not strictly smaller. Indeed \mathbf x = (1, 0, 0, 0) and \mathbf x - \mathbf h = (0, 1, 0, 0) give the same measurements and the same ℓ1 norm, so ℓ1 cannot prefer the true one.