Giter Site home page Giter Site logo

greedy_cs's Introduction

greedy_CS

This repository offers a collection of greedy algorithms for sparse recovery and several scripts to evaluate their empirical performance.

In compressed sensing, one wants to find the solution to the sparse recovery problem

$$ \min_{x \in \mathbb{R}^N} |x |_0 ~~ \text{subject to} ~~ y = A\hat{x} \label{eq:sparseRec} $$

given $y\in \mathbb{R}^m$ and $A\in \mathbb{R}^{m \times N}$ where $m \ll N$ and where $|\cdot|_0:=|{i: x_i \neq 0}|$ denotes the 'zero norm' of a vector.

As $\eqref{sparseRec}$ is a combinatorially hard problem, one typically instead solves the convex relaxation, known as the basis pursuit,

$$ \min_{x \in \mathbb{R}^N} |x |_1 ~~ \text{subject to} ~~ y = A\hat{x}. \label{eq:basisPur} $$

Under appropriate conditions on the measurement matrix $A$ and the underlying data $\hat{x}$, it is well known that $\eqref{eq:basisPur}$ has the same unique solution as $\eqref{eq:sparseRec}$.

Although $\eqref{eq:basisPur}$ is convex, one often wants to avoid to use the usual general-purpose solvers due to the typically large sizes of $m,N$ encountered in many applications. Even though there are more efficient, $\ell_1$-tailored solvers available, oftentimes one instead employs the so-called greedy algorithms which typically take $\mathcal{O}(|\hat{x}|_0)$ iterations to return a good estimate of $\hat{x}$. Crucially, these algorithms exploit the fact that $A^\top Ax\approx x$ under appropriate conditions on $A$ and $x$.

Usually the ground truth $\hat{x}$ is not exactly sparse but compressible, which means that only a few entries of $\hat{x}$ are significant. For many greedy algorithms, there exist results that guarantee that stable recovery is possible when solving the regularized problem

$$ \min_{x \in \mathbb{R}^N} |x |_1 ~~ \text{subject to} ~~ |y-A\hat{x}|\leq \eta $$

for a given error threshold $\eta$.

The performance of the different greedy algorithms can be evaluated by running the included scripts, which give empirical results based on several Monte-Carlo simulations in which different parameters of the estimation problem are varied, respectively. Further, these empirical results can be used to plot the phase diagrams of the respective algorithms, which are two-dimensional figures that visualize the empirical probability of successful recovery while varying two of the dimensions $s:=|\hat{x}|_0$, $N$ and $m$, respectively.

List of algorithms

  • COSAMP (COmpressive SAmpling Matching Pursuit), see [N+09].
  • CSMPSP (A hybrid between COSAMP and Subspace Pursuit), see [B+15].
  • GOMP (Generalized Orthogonal Matching Pursuit), see [W+12].
  • NIHT (Normalized Iterative Hard Thresholding), see [B+10].
  • OMP (Orthogonal Matching Pursuit), see [T+07].
  • ROMP (Regularized Orthogonal Matching Pursuit), see [N+09].
  • STOMP (STagewise Orthogonal Matching Pursuit), see [D+12].

Examples and Usage

The above listed algorithms can be used as stand-alone. For the correct usage, including the assignment of the inputs and outputs of the individual algorithms, refer to the comments provided in the respective source codes.

To perform the Monte-Carlo simulations, run the respective files with the prefix 'script'. Additional information is provided in the source codes.

About this repository

Developers:
  • The code of 'Sample_measOp_CS.m' is adapted from Claudio M. Verdun, Technical University Munich.
  • The remaining code is written by Thomas Weinberger ([email protected]).

If you have any problems or questions, please contact me via e-mail.

References

  • [N+09] Needell, Deanna, and Joel A. Tropp. "CoSaMP: Iterative signal recovery from incomplete and inaccurate samples." Applied and computational harmonic analysis 26.3 (2009): 301-321.
  • [B+15] Blanchard, Jeffrey D., and Jared Tanner. "Performance comparisons of greedy algorithms in compressed sensing." Numerical Linear Algebra with Applications 22.2 (2015): 254-282.
  • [W+12] J. Wang, S. Kwon and B. Shim, "Generalized Orthogonal Matching Pursuit," in IEEE Transactions on Signal Processing, vol. 60, no. 12, pp. 6202-6216, Dec. 2012, doi: 10.1109/TSP.2012.2218810.
  • [B+10] T. Blumensath and M. E. Davies, "Normalized Iterative Hard Thresholding: Guaranteed Stability and Performance," in IEEE Journal of Selected Topics in Signal Processing, vol. 4, no. 2, pp. 298-309, April 2010, doi: 10.1109/JSTSP.2010.2042411.
  • [T+07] J. A. Tropp and A. C. Gilbert, "Signal Recovery From Random Measurements Via Orthogonal Matching Pursuit," in IEEE Transactions on Information Theory, vol. 53, no. 12, pp. 4655-4666, Dec. 2007, doi: 10.1109/TIT.2007.909108.
  • [N+09] Needell, D., Vershynin, R. Uniform Uncertainty Principle and Signal Recovery via Regularized Orthogonal Matching Pursuit. Found Comput Math 9, 317โ€“334 (2009).
  • [D+12] D. L. Donoho, Y. Tsaig, I. Drori and J. Starck, "Sparse Solution of Underdetermined Systems of Linear Equations by Stagewise Orthogonal Matching Pursuit," in IEEE Transactions on Information Theory, vol. 58, no. 2, pp. 1094-1121, Feb. 2012, doi: 10.1109/TIT.2011.2173241.

greedy_cs's People

Contributors

thweinberger avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

wcomrade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.