# 正交匹配追踪

正交匹配追踪（Orthogonal Matching Pursuit, OMP）是一种用于稀疏逼近的贪心算法：它将信号表示为少数几个原子（即字典的列）的加权和，并能从少于信号维数的测量中恢复稀疏信号。它被广泛描述为稀疏逼近的典范贪心算法。<sup>[1](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)</sup> 每次迭代加入与当前残差最相关的原子，然后用最小二乘重新拟合所有已选系数，使残差与已选原子保持正交；算法之名即源于这种正交性。<sup>[2](https://www.khoury.northeastern.edu/home/eelhami/courses/EE290A/OMP_Krishnaprasad.pdf)</sup><sup> • </sup><sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup><sup> • </sup><sup>[4](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)</sup> 对于含 N 个原子的字典，OMP 至多经过 N 步便收敛到信号在字典张成空间上的投影，且在任意有限次迭代后，它返回的是迄今所选原子上的最优逼近。<sup>[2](https://www.khoury.northeastern.edu/home/eelhami/courses/EE290A/OMP_Krishnaprasad.pdf)</sup>

| 关键事实 | 陈述 | 来源 |
| --- | --- | --- |
| 输出 | 字典上的稀疏系数向量；对于 N 个原子，至多 N 步收敛到字典张成空间上的投影 | <sup>[2](https://www.khoury.northeastern.edu/home/eelhami/courses/EE290A/OMP_Krishnaprasad.pdf)</sup> |
| 核心循环 | 选择与残差最相关的原子，用最小二乘重新拟合；重新拟合使残差与所有已选原子正交 | <sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup><sup> • </sup><sup>[5](https://tisp.indigits.com/sparse_approx/omp_sa)</sup> |
| 测量数（无噪声高斯情形） | \( O(m \ln d) \) 次测量以超过 \( 1 - 2\delta \) 的概率恢复 d 维空间中的 m-稀疏信号；渐近意义下 \( m = 2k \log(n-k) \) 即足够 | <sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup><sup> • </sup><sup>[7](https://papers.nips.cc/paper_files/paper/2009/file/8d6dc35e506fc23349dd10ee68dabb64-Paper.pdf)</sup> |
| RIP 保证 | \( \delta_{K+1} < 1/(3\sqrt{K}) \) 即足以在 K 次迭代内精确恢复任意 K-稀疏信号，且在此常数之上几乎不可能再改进 | <sup>[1](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)</sup> |
| 代价 | 总计 \( O(mNd) \)，主要花在相关步骤上；使用 QR 分解时，第 t 次迭代的最小二乘边际代价为 \( O(tN) \) | <sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup> |
| 停止条件 | 残差范数低于阈值 \( \epsilon \)，或达到稀疏度上限；在 scikit-learn 中，`n_nonzero_coefs` 默认为 `n_features` 的 10% 或 1（取较大者），而 `tol` 会覆盖它 | <sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup><sup> • </sup><sup>[8](https://sklearn.org/stable/modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html)</sup> |

## 工作原理

OMP 维护一个残差 \( r = y - \Phi x \)，即信号 y 中尚未被字典 \( \Phi \) 上当前逼近所解释的部分。每次迭代找出与残差内积最大的原子，将其加入已选支撑集，并一次性用最小二乘重新拟合所有已选系数，

\[ x_{\Lambda} = (\Phi_{\Lambda}^{H}\Phi_{\Lambda})^{-1}\Phi_{\Lambda}^{H}y, \]

这是用所选原子所能达到的最优平方误差逼近。<sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup><sup> • </sup><sup>[9](https://www.compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/BDGP07.pdf)</sup> 重新拟合使残差与每个已选列正交，这正是算法名称的由来，且已选列永远不会被重新考虑。<sup>[5](https://tisp.indigits.com/sparse_approx/omp_sa)</sup> 每个新加入的列都与之前的列线性无关，从而为信号增添一种正交的解释。<sup>[4](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)</sup> 如果 OMP 正确选出了某个 K-稀疏表示中的每一个原子，它就能在恰好 K 次迭代内恢复该表示。<sup>[1](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)</sup><sup> • </sup><sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup>

**与普通匹配追踪的区别。** 由马拉（Mallat）和张（Zhang）提出的匹配追踪将信号分解为冗余字典中波形的一组展开，但当新原子到来时不会重新拟合此前的系数。<sup>[10](https://psycnet.apa.org/doi/10.1109/78.258082)</sup>

## 具体做法

实践者从零系数向量、空支撑集和设为信号的残差出发，运行以下循环：<sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup><sup> • </sup><sup>[4](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)</sup>

1. 计算残差与每个字典列的内积，选出最大的一个。
2. 将该列加入支撑集。
3. 在支撑集上用最小二乘重新拟合系数。
4. 减去拟合贡献，更新残差。
5. 当残差幅度低于用户定义的阈值 \( \epsilon \)，或支撑集达到选定大小时停止。<sup>[3](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup>

在 scikit-learn 的 `OrthogonalMatchingPursuit` 中，稀疏度由 `n_nonzero_coefs`（默认为 `n_features` 的 10% 或 1，取较大者）和 `tol`（最大残差平方范数，会覆盖 `n_nonzero_coefs`）设定；该包还提供 `orthogonal_mp`、`orthogonal_mp_gram` 和 `OrthogonalMatchingPursuitCV`，用于交叉验证选择稀疏度。<sup>[8](https://sklearn.org/stable/modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html)</sup> 基于 QR 分解或乔列斯基分解的高效实现是存在的，但它们需要额外存储，在大规模问题上可能成为负担。<sup>[9](https://www.compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/BDGP07.pdf)</sup> 运行时间主要花在相关步骤上，总代价为 \( O(mNd) \)；使用 QR 分解时，第 t 次迭代的最小二乘步骤代价为 \( O(tN) \)。<sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup> 由于正交化的代价随迭代次数呈二次增长，当信号不够稀疏时，OMP 可能不是好选择。<sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup>

## 起源

正交匹配追踪由 S. G. 马拉（S. G. Mallat）和张智峰（Zhifeng Zhang）于 1993 年在《IEEE 信号处理汇刊》上提出，是对他们匹配追踪算法的改进，在每一步都保持残差的完全后向正交性。<sup>[10](https://psycnet.apa.org/doi/10.1109/78.258082)</sup> 已发表文献中的前身包括用于非线性系统辨识的正交最小二乘方法，由 S. 陈（S. Chen）、S. A. 比林斯（S. A. Billings）和 W. 罗（W. Luo）于 1989 年在《国际控制杂志》上描述，<sup>[11](https://doi.org/10.1080/00207178908953472)</sup> 以及由彼得·J. 休伯（Peter J. Huber）于 1985 年在《统计年鉴》上描述的投影追踪。<sup>[12](https://doi.org/10.1214/aos/1176349519)</sup> OMP 的一个原型以分阶段回归之名出现在统计学界。<sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup>

## 变体

**经典变体。** ROMP 是第一个提供一致保证的稳定贪心算法，弥合了贪心方法与 ℓ1 最小化之间的鸿沟。<sup>[13](https://arxiv.org/abs/0812.2202)</sup> CoSaMP 由尼德尔（Needell）和特罗普（Tropp）于 2008 年报告，改进了 ROMP 的稳定性界和限制等距要求，在许多情形下运行时间为 \( O(N \log N) \)。<sup>[14](https://doi.org/10.48550/arxiv.0803.2392)</sup><sup> • </sup><sup>[13](https://arxiv.org/abs/0812.2202)</sup> StOMP 由多诺霍（Donoho）、柴格（Tsaig）、德罗里（Drori）和斯塔克（Starck）于 2012 年报告，以分阶段方式求解欠定系统。<sup>[15](https://doi.org/10.1109/tit.2011.2173241)</sup> 梯度追踪和近似共轭梯度追踪由布卢门萨特（Blumensath）和戴维斯（Davies）于 2008 年报告，在达到匹配追踪级别内存需求的同时接近 OMP 的性能。<sup>[16](https://doi.org/10.1109/tsp.2007.916124)</sup><sup> • </sup><sup>[9](https://www.compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/BDGP07.pdf)</sup> OLS，又称前向选择、顺序递归匹配追踪或优化正交匹配追踪，最小化残差与原子之间的夹角而非最大化内积；它代价更高，每次迭代执行的线性求逆次数与非活跃原子数相同，而且在实验中 OLS 与 OMP 并无绝对优劣之分。<sup>[17](https://ar5iv.labs.arxiv.org/html/1111.0522)</sup> 鲁宾斯坦（Rubinstein）、齐布莱夫斯基（Zibulevsky）和埃拉德（Elad）于 2008 年提出的批量 OMP 实现是 scikit-learn 的基础。<sup>[8](https://sklearn.org/stable/modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html)</sup> S-OMP 将 OMP 扩展到同时处理多个输入信号，对单个信号则退化为标准 OMP。<sup>[18](https://cse.umich.edu/awards/pdfs/SP_paper.pdf)</sup>

**近期变体。** 广义 OMP（gOMP）将贪心选择扩展到每次迭代选择多个原子，同时保持 OMP 的收敛性。<sup>[19](https://arxiv.org/html/2404.00146)</sup> OMP-SR（2024）通过在新选原子上回归并对先前系数回溯，避免了对不断增长的支撑矩阵求伪逆，返回与 OMP 完全相同的结果，但比基于 QR 的实现更快。<sup>[19](https://arxiv.org/html/2404.00146)</sup>

## 应用

在压缩感知中，d 维 m-稀疏信号可以从 \( N = O(m \log(d/m)) \) 次随机测量中恢复，而 OMP 被呈现为最简单的贪心恢复方法。<sup>[4](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)</sup> 具体应用包括单像素相机、哈勃望远镜通信和小儿 MRI——在后者中，更少的测量角度可缩短无法保持静止的儿童的扫描时间。<sup>[4](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)</sup> 在软件方面，scikit-learn 提供了 `OrthogonalMatchingPursuit` 及上述相关函数。<sup>[8](https://sklearn.org/stable/modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html)</sup> 在 MIMO 信道估计中，MOMPnet 以无监督、在线的方式通过反向传播学习物理参数化字典，性能优于最优方向法基线，且收敛更快。<sup>[20](https://hal.science/hal-05458154/document)</sup> 在生理信号处理中，将 SOOMP 应用于 MIT-BIH 心律失常数据集上的 ECG 压缩，在相同重建质量下比其他基于变换的技术取得了更好的压缩效果。<sup>[21](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0325555)</sup>

## 局限与替代方案

**失效模式。** OMP 一旦选定某个原子就永不剔除，这是一个严重的局限：对任何小于 1 的相干性 M，都存在一个 M-相干字典和一个处于阈值稀疏度的稀疏信号，贪心算法永远无法精确恢复该信号，因为它在第一步就从字典的糟糕部分选错了原子，并且可能永远选不到正确的原子。<sup>[22](https://www.sciencedirect.com/science/article/pii/S0021904511000657)</sup> 当特罗普的精确恢复条件不成立时，存在某个信号使 OMP 在最初几次迭代中选错原子。<sup>[23](https://dl.acm.org/doi/10.1109/TIT.2004.834793)</sup> 这些保证是非一致的：OMP 对固定的信号和测量矩阵以高概率成立，因此必然对某些稀疏信号和矩阵失效。<sup>[13](https://arxiv.org/abs/0812.2202)</sup> 此外还存在某些字典，其中某些子集永远无法被 OMP 恢复，而 OLS 不会出现这种现象。<sup>[17](https://ar5iv.labs.arxiv.org/html/1111.0522)</sup> 在噪声下，若满足互相干性质（MIP）且非零系数满足最小幅度条件，OMP 以高概率精确恢复真实支撑集；MIP 蕴含 RIP 和 ERC，但反之不成立，且在含噪情形下它是紧的。<sup>[24](http://stat.wharton.upenn.edu/~tcai/paper/OMP.pdf)</sup>

**与 ℓ1 最小化和 OLS 的比较。** 经验证据表明，基追踪（一种用于稀疏信号恢复的 ℓ1 最小化优化方法）比 OMP 更强大，而 OMP 的主要优势在于其简单、快速的实现。<sup>[23](https://dl.acm.org/doi/10.1109/TIT.2004.834793)</sup> 当信号高度稀疏时，OMP 比基追踪更快；对于稠密无结构矩阵，基追踪可在 \( O(N^{2}d^{3/2}) \) 内求解，而贪心算法通常更易于实现。<sup>[6](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)</sup> 测量数的标度关系 \( m = 2k \log(n-k) \) 恰好与 lasso 在相似信噪比标度条件下检测稀疏模式的要求相匹配，因此在该情形下 lasso 的额外复杂度并不必要。<sup>[7](https://papers.nips.cc/paper_files/paper/2009/file/8d6dc35e506fc23349dd10ee68dabb64-Paper.pdf)</sup>

## References

1. [Analysis of Orthogonal Matching Pursuit (Davenport & Wakin, IEEE Trans. Info. Theory)](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)
2. [Orthogonal Matching Pursuit: Recursive Function Approximation with Applications to Wavelet Decomposition (Pati, Rezaiifar, Krishnaprasad, 27th Asilomar Conference, Nov. 1993)](https://www.khoury.northeastern.edu/home/eelhami/courses/EE290A/OMP_Krishnaprasad.pdf)
3. [The OMP Algorithm, sparse-plex documentation](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)
4. [Compressed Sensing and Orthogonal Matching Pursuit (Jeff Phillips, University of Utah, Data Mining book chapter)](https://users.cs.utah.edu/~jeffp/DMBook/L18-OMP.pdf)
5. [Orthogonal Matching Pursuit, Topics in Signal Processing (textbook chapter)](https://tisp.indigits.com/sparse_approx/omp_sa)
6. [Signal Recovery From Random Measurements Via Orthogonal Matching Pursuit (Tropp & Gilbert, IEEE Trans. Inf. Theory 53(12), pp. 4655–4666, 2007; author preprint at tropp.caltech.edu)](https://psycnet.apa.org/doi/10.1109/TIT.2007.909108)
7. [Orthogonal Matching Pursuit From Noisy Random Measurements: A New Analysis (Fletcher, Rangan, Goyal, NeurIPS 2009)](https://papers.nips.cc/paper_files/paper/2009/file/8d6dc35e506fc23349dd10ee68dabb64-Paper.pdf)
8. [OrthogonalMatchingPursuit, scikit-learn documentation](https://sklearn.org/stable/modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html)
9. [Gradient Pursuits (Blumensath, Davies, Gudmundson, Pearson)](https://www.compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/BDGP07.pdf)
10. [Matching pursuits with time-frequency dictionaries (Mallat & Zhang, IEEE Transactions on Signal Processing, vol. 41, no. 12, pp. 3397–3415, December 1993)](https://psycnet.apa.org/doi/10.1109/78.258082)
11. [S. CHEN, S. A. BILLINGS, W. LUO (1989). Orthogonal least squares methods and their application to non-linear system identification. International Journal of Control.](https://doi.org/10.1080/00207178908953472)
12. [Peter J. Huber (1985). Projection Pursuit. The Annals of Statistics.](https://doi.org/10.1214/aos/1176349519)
13. [Greedy Signal Recovery Review (Needell & Vershynin)](https://arxiv.org/abs/0812.2202)
14. [Needell, D., Tropp, J. A. (2008). CoSaMP: Iterative signal recovery from incomplete and inaccurate samples. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.0803.2392)
15. [David L. Donoho and colleagues (2012). Sparse Solution of Underdetermined Systems of Linear Equations by Stagewise Orthogonal Matching Pursuit. IEEE Transactions on Information Theory.](https://doi.org/10.1109/tit.2011.2173241)
16. [T. Blumensath, M.E. Davies (2008). Gradient Pursuits. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2007.916124)
17. [Joint k-step analysis of Orthogonal Matching Pursuit and Orthogonal Least Squares (arXiv 1111.0522)](https://ar5iv.labs.arxiv.org/html/1111.0522)
18. [Simultaneous sparse approximation via greedy pursuit (S-OMP)](https://cse.umich.edu/awards/pdfs/SP_paper.pdf)
19. [Fast Orthogonal Matching Pursuit through Successive Regression (OMP-SR, arXiv 2404.00146, 2024)](https://arxiv.org/html/2404.00146)
20. [Physically constrained unfolded multi-dimensional OMP for large MIMO systems (MOMPnet)](https://hal.science/hal-05458154/document)
21. [Simultaneous optimized orthogonal matching pursuit with application to ECG compression (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0325555)
22. [On performance of greedy algorithms (Journal of Approximation Theory)](https://www.sciencedirect.com/science/article/pii/S0021904511000657)
23. [Greed is good: algorithmic results for sparse approximation (Tropp, IEEE Trans. Inf. Theory 50(10), 2004; report version at ices.utexas.edu)](https://dl.acm.org/doi/10.1109/TIT.2004.834793)
24. [Orthogonal Matching Pursuit for Sparse Signal Recovery With Noise (Cai, Wang, Xu)](http://stat.wharton.upenn.edu/~tcai/paper/OMP.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Titles Mo to W

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/orthogonal-matching-pursuit

English original: https://www.edgepedia.org/orthogonal-matching-pursuit
