# 稀疏分解（信号处理）

稀疏分解将信号表示为少量元素的线性组合，这些元素称为原子，从更大的、通常是冗余的字典中选取。稀疏编码——即把数据向量建模为基元素的稀疏线性组合——这一任务在机器学习、神经科学、信号处理和统计学中被广泛使用。<sup>[1](https://jmlr.org/papers/volume11/mairal10a/mairal10a.pdf)</sup>

存在两个模型族。在合成模型中，信号由 \( x = D \cdot \gamma \) 生成，其中 \( \gamma \) 是稀疏系数向量；在分析模型中，余稀疏约束要求某个分析算子将信号映射为少数非零值。两者仅在完备情形 \( (L = N) \) 下、当字典为双正交时才一致，在其他情形下可能差异巨大。<sup>[2](https://elad.cs.technion.ac.il/wp-content/uploads/2018/02/IEEE_Proc_Dictionary.pdf)</sup>

| 关键事实 | 陈述 |
|---|---|
| 问题形式 | 给定 N × L 字典 F，其中 L ≫ N，寻找 g 使得 F g = x，且仅使用 K ≪ N 个非零系数；当 F 行满秩且系统相容时，无约束系统有无穷多解，而稀疏约束问题可以有零个、一个或多个可行解。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> |
| 贪婪追踪的起源 | 匹配追踪（Matching Pursuit）将信号分解为从冗余字典中选取的波形的展开，由 S.G. 马拉（S.G. Mallat）与张智峰（Zhifeng Zhang）于 1993 年提出。<sup>[4](https://doi.org/10.1109/78.258082)</sup> |
| 凸松弛 | 基追踪（Basis Pursuit）由陈少兵（Scott Shaobing Chen）、大卫·L·多诺霍（David L. Donoho）和迈克尔·A·桑德斯（Michael A. Saunders）于 1998 年提出，选择系数 ℓ1 范数最小的分解。<sup>[5](https://doi.org/10.1137/s1064827596304010)</sup> |
| OMP 保证 | 若正交匹配追踪（Orthogonal Matching Pursuit）选对了支撑集，则它恰好在 K 次迭代中恢复 K-稀疏表示。<sup>[6](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup> |
| 学习字典的增益 | 在图像压缩中，K-SVD 学习得到的字典在每像素 1.5 比特以下的码率下，性能比其他字典最多好 1–2 dB，此时稀疏模型成立。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> |
| 复杂度 | CoSaMP 是用于压缩感知的 OMP 衍生算法，对长度为 \( N \) 的可压缩信号运行时间为 \( O(N \log^{2} N) \)。<sup>[7](https://doi.org/10.48550/arxiv.0803.2392)</sup> |
| 困难性 | 寻找线性系统的最稀疏解一般是 NP 难的，因此保证仅在诸如 \( k_{0} < \mathrm{spark}(A)/2 \) 的条件下成立。<sup>[8](https://freddy.cs.technion.ac.il/wp-content/uploads/2017/12/From-Sparse-Solutions-of.pdf)</sup> |

## 工作原理

稀疏编码问题从一个“反向超定”的线性系统出发：对于维度为 N 的观测 x 和维度为 N × L 且 L ≫ N 的字典 F，寻找维度为 L 的 g 满足 F g = x。由于原子数多于信号维度，存在无穷多解，目标是找到非零项最少的那个。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> 在约束形式下，这即是

\[ \hat{g} \in \mathop{\mathrm{argmin}}_{z} \|y - A \cdot z\|_{2}^{2} \quad \text{满足} \quad \|z\|_{0} \leq k, \]

其中 ℓ0 伪范数计数非零项。<sup>[9](https://arxiv.org/html/2505.15661v1)</sup> 由于 ℓ0 不可微且难以优化，实际目标函数会将其替换：稀疏编码目标最小化重构项 \( \|x - \sum_{i} a_{i} \phi_{i}\|^{2} \) 加上稀疏惩罚 \( \lambda \sum_{i} S(a_{i}) \)，常见选择为 \( S(a_{i}) = |a_{i}|_{1} \) 或对数惩罚 \( S(a_{i}) = \log(1 + a_{i}^{2}) \)。<sup>[10](https://ufldl.stanford.edu/tutorial/unsupervised/SparseCoding/)</sup> Lasso 求解带 ℓ1 约束 \( \|\alpha\|_{1} \leq \mu \) 的二次规划，其中 µ 控制数据拟合与稀疏性之间的权衡；基追踪去噪是同一思想，只是将 ℓ1 项作为惩罚而非约束。<sup>[11](https://lear.inrialpes.fr/people/mairal/resources/pdf/review_sparse_arxiv.pdf)</sup>

精确恢复并非自动成立。若系统 Ax = b 有一个含 \( k_{0} \) 个非零项的稀疏解，且 \( k_{0} < \mathrm{spark}(A)/2 \)，则该解必然是最稀疏的解且唯一；要保证匹配追踪或基追踪等特定算法能够找到它，还需要额外的精确恢复条件或非相干条件。<sup>[8](https://freddy.cs.technion.ac.il/wp-content/uploads/2017/12/From-Sparse-Solutions-of.pdf)</sup> 对于 ℓ1 最小化，可靠重构需要对传感矩阵施加条件，如限制等距性质（RIP）、零空间性质或非相干性。<sup>[12](https://ar5iv.labs.arxiv.org/html/1808.05403)</sup> 多诺霍和埃拉德（Elad）将此类 ℓ1 结果从正交基对推广到一般字典：在互不相干且稀疏度足够时，最稀疏表示唯一且可通过凸优化找到。<sup>[13](https://www.pnas.org/doi/abs/10.1073/pnas.0437847100)</sup>

## 实现方式

**贪婪追踪。** 匹配追踪迭代地选取与当前残差最匹配的字典原子并更新系数。<sup>[4](https://doi.org/10.1109/78.258082)</sup> 正交匹配追踪增加一个最小二乘步骤：在第 k 次迭代，计算残差 \( r^{k} = y - \Phi \cdot x^{k} \)，选择与残差最匹配的列的新索引 \( \lambda^{k+1} \)，并在目前已选原子构成的子字典上通过最小二乘重新计算当前估计。这使残差与已选原子正交，因此每个原子只会被选中一次。<sup>[6](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)</sup> 基于残差的停止规则在 \( \|r_{k}\|_{2} \) 降至阈值以下时终止迭代。<sup>[8](https://freddy.cs.technion.ac.il/wp-content/uploads/2017/12/From-Sparse-Solutions-of.pdf)</sup>

**凸松弛。** 基追踪用 ℓ1 最小化替代 ℓ0 目标，可解为线性规划。代价相当大：对长度为 8192 的信号使用小波包字典，等价的线性规划规模为 8192 × 212,992，只有借助内点法才可处理。<sup>[5](https://doi.org/10.1137/s1064827596304010)</sup> 在比较基准中，MP 是复杂度最低的算法，OMP 在复杂度略高时表现出明显的性能增益，而 ℓ1 最小化的性能几乎与循环 OOMP 相当，但实际中复杂度更高。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup>

## 起源

马拉与张于 1993 年在《IEEE 信号处理汇刊》上报告了匹配追踪，作为一种将任意信号分解为从冗余字典中选取的波形的线性展开、以最佳匹配信号结构的算法。<sup>[4](https://doi.org/10.1109/78.258082)</sup> 该论文启发了一系列扩展，包括正交匹配追踪、优化正交匹配追踪、梯度追踪和互补匹配追踪变体。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> 陈、多诺霍和桑德斯于 1998 年在《SIAM 科学计算杂志》上提出了基追踪，将其与更早的分解方法（包括框架方法、匹配追踪和最佳正交基）相对照。<sup>[5](https://doi.org/10.1137/s1064827596304010)</sup> OMP 背后的变量选择思想可追溯到 1950 年代的回归工作。<sup>[14](https://pages.cs.wisc.edu/~brecht/cs838docs/09.TroppWright.pdf)</sup> 后来的里程碑记录包括特罗普（Tropp）2004 年在《IEEE 信息论汇刊》上的保证分析、<sup>[15](https://doi.org/10.1109/tit.2004.834793)</sup> [K-SVD](https://www.edgepedia.org/zh/k-svd) [字典学习](https://www.edgepedia.org/zh/dictionary-learning)论文、<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> CoSaMP、<sup>[7](https://doi.org/10.48550/arxiv.0803.2392)</sup> 以及在线字典学习。<sup>[1](https://jmlr.org/papers/volume11/mairal10a/mairal10a.pdf)</sup>

## 变体

字典要么是解析的（如多个尺度下变换的并集），要么通过聚类和字典训练方法（如 K-means 和 K-SVD）从数据中学习。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> 使用 Gabor 字典时，匹配追踪定义了一种自适应时频变换，并在时频平面上给出无干涉项的信号能量分布。<sup>[4](https://doi.org/10.1109/78.258082)</sup>

**K-SVD 与 MOD。** K-SVD 是一种迭代方法，在给定当前字典对训练样本进行稀疏编码与更新字典原子以更好地拟合数据之间交替，推广了 K-means；它可以与任何追踪方法配合使用，包括基追踪、FOCUSS 或匹配追踪。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup> 最优方向法（MOD）在稀疏编码与字典更新步骤之间交替，更新为 D = XΓ⁺，但受矩阵求逆的高复杂度之累。<sup>[2](https://elad.cs.technion.ac.il/wp-content/uploads/2018/02/IEEE_Proc_Dictionary.pdf)</sup>

**在线学习。** 迈拉尔（Mairal）、巴赫（Bach）、庞塞（Ponce）和萨皮罗（Sapiro）提出了一种基于随机近似的在线优化字典学习算法，可扩展到包含数百万训练样本的数据集，并给出了收敛性证明以及在自然图像和基因组数据上的实验。<sup>[1](https://jmlr.org/papers/volume11/mairal10a/mairal10a.pdf)</sup>

## 应用

在压缩感知中，OMP 及其衍生算法从压缩测量中恢复稀疏或近似稀疏的信号。<sup>[16](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)</sup> CoSaMP 提供与最佳优化方法相同的保证，并对计算成本和存储给出严格界；在限制等距条件下，它产生 2s-稀疏近似 a 满足 \( \|x-a\|_{2} \leq C \cdot \max\{\eta, \tfrac{1}{\sqrt{s}}\|x-x_{s}\|_{1} + \|e\|_{2}\} \)，其中 \( x_{s} \) 是最佳 s-稀疏近似，e 是噪声。<sup>[7](https://doi.org/10.48550/arxiv.0803.2392)</sup> 学习字典（代替小波等预定义字典）在纹理合成、音频处理和图像分类中取得了强劲结果，尽管在图像去噪中基于深度学习的方法目前占据最优水平。<sup>[1](https://jmlr.org/papers/volume11/mairal10a/mairal10a.pdf)</sup> K-SVD 在每像素 1.5 比特以下取得 1–2 dB 的压缩增益是一个有代表性的定量结果。<sup>[3](https://link.springer.com/article/10.1186/1687-6180-2011-34)</sup>

## 局限与替代方案

寻找最稀疏解一般是 NP 难的，因此所有多项式时间方法都依赖可能在实际中失效的条件。<sup>[8](https://freddy.cs.technion.ac.il/wp-content/uploads/2017/12/From-Sparse-Solutions-of.pdf)</sup> ℓ1 松弛引入额外偏差，可能无法用最少的观测重构信号，并可能给出稀疏度不足的解，这促使人们采用非凸正则化器。<sup>[12](https://ar5iv.labs.arxiv.org/html/1808.05403)</sup> 使用 K-SVD 和 MOD 的字典学习高度非凸：两者都可能陷入局部极小或[鞍点](https://www.edgepedia.org/zh/saddle-point)，且所得无结构字典应用起来相对昂贵，主要适合图像块等小信号。<sup>[2](https://elad.cs.technion.ac.il/wp-content/uploads/2018/02/IEEE_Proc_Dictionary.pdf)</sup> 稀疏 PCA 是一种替代方案，通过旋转、惩罚或 ℓ0/ℓ1 约束对主成分施加稀疏性，但其公式常常受困于局部最优、缺乏收敛保证，且可能内存密集或速度缓慢。<sup>[17](https://link.springer.com/article/10.1007/s11336-021-09773-2)</sup>

## References

1. [Online Learning for Matrix Factorization and Sparse Coding (JMLR, 2010)](https://jmlr.org/papers/volume11/mairal10a/mairal10a.pdf)
2. [Dictionaries for Sparse Representation Modeling (Proceedings of the IEEE)](https://elad.cs.technion.ac.il/wp-content/uploads/2018/02/IEEE_Proc_Dictionary.pdf)
3. [Greedy sparse decompositions: a comparative study](https://link.springer.com/article/10.1186/1687-6180-2011-34)
4. [S.G. Mallat, Zhifeng Zhang (1993). Matching pursuits with time-frequency dictionaries. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/78.258082)
5. [Scott Shaobing Chen, David L. Donoho, Michael A. Saunders (1998). Atomic Decomposition by Basis Pursuit. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/s1064827596304010)
6. [The OMP Algorithm, sparse-plex documentation](https://sparse-plex.readthedocs.io/en/latest/book/pursuit/omp/algorithm.html)
7. [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)
8. [From Sparse Solutions of Systems of Equations to Sparse Modeling of Signals and Images (SIAM Review)](https://freddy.cs.technion.ac.il/wp-content/uploads/2017/12/From-Sparse-Solutions-of.pdf)
9. [Deep greedy unfolding: Sorting out argsorting in greedy sparse recovery algorithms](https://arxiv.org/html/2505.15661v1)
10. [Sparse Coding, Unsupervised Feature Learning and Deep Learning Tutorial (Stanford UFLDL)](https://ufldl.stanford.edu/tutorial/unsupervised/SparseCoding/)
11. [Sparse Modeling for Image and Vision Processing (Mairal et al., review)](https://lear.inrialpes.fr/people/mairal/resources/pdf/review_sparse_arxiv.pdf)
12. [A Survey on Nonconvex Regularization Based Sparse and Low-Rank Recovery](https://ar5iv.labs.arxiv.org/html/1808.05403)
13. [Optimally sparse representation in general (nonorthogonal) dictionaries via l1 minimization | PNAS](https://www.pnas.org/doi/abs/10.1073/pnas.0437847100)
14. [Computational Methods for Sparse Solution of Linear Inverse Problems (Tropp & Wright, Acta Numerica)](https://pages.cs.wisc.edu/~brecht/cs838docs/09.TroppWright.pdf)
15. [J.A. Tropp (2004). Greed is Good: Algorithmic Results for Sparse Approximation. IEEE Transactions on Information Theory.](https://doi.org/10.1109/tit.2004.834793)
16. [Analysis of Orthogonal Matching Pursuit](https://users.ece.utexas.edu/~sanghavi/courses/papers/davenport_wakin_omp.pdf)
17. [A Guide for Sparse PCA: Model Comparison and Applications (Psychometrika)](https://link.springer.com/article/10.1007/s11336-021-09773-2)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Fourier and signal transforms

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sparse-decomposition-signal-processing

English original: https://www.edgepedia.org/sparse-decomposition-signal-processing
