Orthogonal Matching Pursuit (OMP)

Matching pursuit (MP) and its improvement orthogonal matching pursuit (OMP) are both popular algorithms in compressive sensing (CS). Compared to MP, OMP can offer better performance, e.g. in respects of higher precision and faster convergency. This post aims to summarize the detailed procedure of OMP.

Given a NP-hard problem

L:arg⁡min⁡x∥x∥0subject toAx=b\begin{aligned}\mathcal{L}:\quad &\arg\min_{\mathbf{x}}\|\mathbf{x}\|_0\\\mathrm{subject~to}\quad & \mathbf{Ax} = \mathbf{b}\end{aligned}

where

  • A∈Cm×n\mathbf{A} \in \mathbb{C}^{m \times n} is a short-fat matrix, i.e., n≫mn \gg m.
  • b∈Cm\mathbf{b}\in\mathbb{C}^m.
  • x∈Cn\mathbf{x}\in\mathbb{C}^n.

    • ∥x∥0\|\mathbf{x}\|_0 is ℓ0\ell_0 norm of x\mathbf{x}, i.e., the number of non-zero elements of x\mathbf{x}, a.k.a. the sparsity of x\mathbf{x};
    • The set comprising the indices of all non-zero elements in x\mathbf{x} is termed the support of x\mathbf{x}, denoted by

      supp(x)≜{i∣[x]i≠0}.\begin{aligned}\mathrm{supp}(\mathbf{x}) \triangleq \{i \mid [\mathbf{x}]_i \neq 0\}.\end{aligned}

OMP is an iterative algorithm, in which supp(x)\mathrm{supp}(\mathbf{x}) is determined one by one and in each iteration the problem is optimally solved based on the current info. The detailed procedure of the algorithm can be listed below.

Input:A\mathbf{A}, b\mathbf{b}.
Result:xk\mathbf{x}_k
Initialization:r0=b\mathbf{r}_0 = \mathbf{b}, S0=∅\mathcal{S}_0 = \emptyset.
fork=1,2,…k=1,2,\ldots do
step-1λk=arg⁡max⁡i∉Sk−1∣[A]iTrk−1∣\lambda_k = \arg\max\limits_{i\notin\mathcal{S}_{k-1}}\vert[\mathbf{A}]_i^T \mathbf{r}_{k-1}\vert
step-2Sk=Sk−1⋃{λk}\mathcal{S}_k = \mathcal{S}_{k-1} \bigcup \{\lambda_k\}
step-3[xk]Sk=arg⁡min⁡x∣∣[A]Skx−b∣∣2[\mathbf{x}_k]_{\mathcal{S}_k} = \arg\min\limits_{\mathbf{x}}\vert\vert[\mathbf{A}]_{\mathcal{S}_k}\mathbf{x} - \mathbf{b}\vert\vert_2
[xk]Sk‾=0n−∣Sk∣[\mathbf{x}_k]_{\overline{\mathcal{S}_k}}=\mathbf{0}_{n-\vert\mathcal{S}_k\vert}
step-4b^k=[A]Sk[xk]Sk=Axk\hat{\mathbf{b}}_k = [\mathbf{A}]_{\mathcal{S}_k}[\mathbf{x}_k]_{\mathcal{S}_k} = \mathbf{A}\mathbf{x}_k
step-5rk=b−b^k\mathbf{r}_k = \mathbf{b} - \hat{\mathbf{b}}_k
end
  • In step-1, the component most correlated with the residual is selected by traversing the candidates in the dictionary but outside S\mathcal{S}.
  • In step-2, the support of x\mathbf{x}, i.e., supp(x)\mathrm{supp}(\mathbf{x}) is updated by adding the resultant index obtained in step-1.
  • In step-3, least square (LS) regression is conducted based on the latest support of x\mathbf{x}, i.e., supp(x)\mathrm{supp}(\mathbf{x}),

    [xk]Sk=[A]Sk†b\begin{aligned}[\mathbf{x}_k]_{\mathcal{S}_k} = [\mathbf{A}]_{\mathcal{S}_k}^\dagger\mathbf{b}\end{aligned}

    where [A]Sk†=([A]SkH[A]Sk)−1[A]SkH[\mathbf{A}]_{\mathcal{S}_k}^\dagger = \left([\mathbf{A}]_{\mathcal{S}_k}^H [\mathbf{A}]_{\mathcal{S}_k}\right)^{-1}[\mathbf{A}]_{\mathcal{S}_k}^H is the Moore Penrose inverse of [A]Sk[\mathbf{A}]_{\mathcal{S}_k}.

  • In step-4, the overall contributions of the components in the support are reconstructed.
  • In step-5, residual is updated by subtracting the contributions reconstructed in step-4 from b\mathbf{b}.