Level 3 · intermediate · ~9 h
Compressed sensing with OMP and basis pursuit — sparse-signal recovery
Recover sparse signals from 20% Gaussian measurements using orthogonal matching pursuit and L1 minimization, and map the recovery phase transition. Sweep sparsity 1% to 20% and record the phase-transition boundary where recovery collapses.
Prerequisites
Problem statement
- 01Recover sparse signals from 20% Gaussian measurements using orthogonal matching pursuit and L1 minimization, and map the recovery phase transition. Sweep sparsity 1% to 20% and record the phase-transition boundary where recovery collapses.
Real-world motivation
- 01L1 convex relaxation and greedy pursuit solve the same inverse problem with very different computational and statistical behavior. The sparse-signal recovery setting forces concrete choices about data, scale and evaluation.
Learning objectives
- 01Implement OMP from scratch
- 02Solve the L1 problem with an ADMM solver
- 03Compare recovery thresholds
- 04Report support recovery F1 score alongside the baseline metrics.
Technical architecture
- 01measurement matrix with normalized columns
- 02greedy residual correlation loop
- 03ADMM with soft thresholding
Mathematical foundations
- 01$\min_x\lVert x\rVert_1$ subject to $Ax=y$
- 02OMP selection $j=\arg\max_i|a_i^\top r|$
Dataset and sources
- 01synthetic Bernoulli-Gaussian sparse vectors
- 02MNIST 8x8 patch dictionary
Step-by-step tasks
- 01Frame the task and freeze the sparse-signal recovery evaluation protocol with a fixed random seed.
- 02Implementation 1: Implement OMP with QR re-orthogonalization
- 03Implementation 2: Implement ADMM with rho=1 and 200 iterations
- 04Implementation 3: Sweep measurement ratio m/n
- 05Verification 1: Verify exact recovery for a 1-sparse vector
- 06Verification 2: Check ADMM primal residual decreases
- 07Run the ablation grid and report support recovery F1 score over three independent trials.
Implementation requirements
- 01Implement OMP with QR re-orthogonalization
- 02Implement ADMM with rho=1 and 200 iterations
- 03Sweep measurement ratio m/n
- 04Log all hyperparameters and the random seed for the sparse-signal recovery run.
Testing requirements
- 01Verify exact recovery for a 1-sparse vector
- 02Check ADMM primal residual decreases
- 03Measure support recovery F1 score over at least three seeds.
Evaluation metrics
- 01reconstruction SNR
- 02support F1
- 03runtime
- 04support recovery F1 score
Expected outputs
- 01phase-transition heatmap
- 02example reconstructions
Common failure modes
- 01coherent measurement matrices cause OMP misselection
- 02ADMM converges slowly for small rho
- 03coherent dictionaries break the restricted isometry property
Stretch goals
- 01add LASSO with cvxpy
- 02test structured sparsity with group LASSO
- 03plot the Donoho-Tanner style phase transition
Research extensions
- 01derive the restricted isometry constant for Bernoulli matrices
- 02study greedy versus convex recovery near the threshold
GitHub submission requirements
- 01A repository whose README states the sparse-signal recovery protocol and the exact command to reproduce it.
- 02Source for the scratch implementation, a test file, and a results table with uncertainty estimates.
- 03A two-page report explaining failures on synthetic Bernoulli-Gaussian sparse vectors and what the ablation revealed.
Completion rubric
- 01OMP and ADMM correct
- 02phase transition measured
- 03coherence effect explained
- 04Extra credit: plot the Donoho-Tanner style phase transition
Submit when every rubric item is satisfied and your repository contains runnable code plus a reproduction command.