# 稀疏优化

稀疏优化是一类寻求仅含少量非零变量之解的优化方法，通常的做法是在一个原本标准的估计或重构问题上，加入能诱导稀疏性的惩罚项或约束。支撑在少数变量上的解之所以可取，是因为它可解释、可压缩，而且在反问题中，能从远少于环境维度所暗示的测量数中恢复出来。例如，lasso 倾向于产生恰好为 0 的系数，从而得到可解释的模型。<sup>[1](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup>

| 关键事实 | 内容 |
|---|---|
| ℓ0 问题 | 组合性的，一般是 NP 难的；ℓ1 替代问题是凸的，可在多项式时间内求解<sup>[2](https://ww3.math.ucla.edu/camreport/cam14-82.pdf)</sup><sup> • </sup><sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC153464/)</sup> |
| 样本复杂度 | 对 N 维信号的 s-稀疏恢复，\( m \ge C \cdot s \cdot \ln(N/s) \) 个测量即足够；该界是最优的<sup>[4](https://link.springer.com/book/10.1007/978-0-8176-4948-7)</sup> |
| RIP 保证 | 若 \( \delta_{2k} < \sqrt{2} - 1 \)，基追踪可恢复所有 k-稀疏向量；最锐利的充分条件是 \( \delta_{2k} < 1/2 \)<sup>[5](https://ar5iv.labs.arxiv.org/html/1203.3815)</sup> |
| Lasso 阈值 | 对均匀高斯系综，在非零系数满足最小信号强度条件的前提下，当 n > 2k log(p − k) 时 Lasso 以趋于 1 的概率恢复稀疏模式，低于此值则以趋于 1 的概率失败<sup>[6](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)</sup> |
| OMP 保证 | 在高斯测量下，OMP 以高于 \( 1 - 2\delta \) 的概率，从 \( N \ge K \cdot m \cdot \ln(d/\delta) \) 个样本中重构 \( R^{d} \) 中的 m-稀疏信号，其中 \( K \le 20 \)<sup>[7](https://tropp.caltech.edu/papers/TG07-Signal-Recovery-preprint.pdf)</sup> |
| 经 RIP 证明的测量数 | ℓ1：n > 317k；IHT：n > 907k；子空间追踪：n > 3124k；CoSaMP：n > 4923k<sup>[8](https://people.maths.ox.ac.uk/tanner/papers/BCTT_Greedy.pdf)</sup> |
| 相变 | 在（欠采样比，稀疏度比例）平面上存在锐利阈值，阈值以下 ℓ1 成功，阈值以上失败；非负性会抬高该阈值<sup>[9](https://compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/Donoho_Tanner_CISS_2006.pdf)</sup> |

## 工作原理

典型问题是求解 \( Ax = b \)，且 x 中非零元最少，可写成在约束 \( Ax = b \) 下最小化 ℓ0“范数”\( \|x\|_{0} \)。这是对支撑集的组合搜索，一般是 NP 难的。<sup>[2](https://ww3.math.ucla.edu/camreport/cam14-82.pdf)</sup> ℓ1 范数是最接近 ℓ0 拟范数的凸函数，因此用 ℓ1 替代 ℓ0 是一种凸松弛，可用标准科学计算软件在多项式时间内求解。<sup>[10](https://tropp.caltech.edu/papers/Tro06-Just-Relax-pretint.pdf)</sup> 具体而言，[基追踪](https://www.edgepedia.org/zh/basis-pursuit)把问题改写为线性规划，即使字典非常大，也可用内点法求解；对一个长度为 8192 的信号和小波包字典，等价的规划规模为 8192 乘 212,992。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC153464/)</sup><sup> • </sup><sup>[11](https://dl.acm.org/doi/10.1137/S1064827596304010)</sup>

恢复保证依赖于 A 的几何条件。只要信号由字典中少于 \( \mathrm{Spark}(D)/2 \) 个原子构成，最稀疏表示的唯一性即成立，其中 Spark 是最小的线性相关列数；精确的 ℓ1 恢复需要更强的条件，例如零空间性质。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC153464/)</sup> 限制等距性质要求对所有 k-稀疏的 x 都有 \( (1-\delta_{k})\|x\|_{2}^{2} \le \|Ax\|_{2}^{2} \le (1+\delta_{k})\|x\|_{2}^{2} \)；若 \( \delta_{2k} < \sqrt{2} - 1 \)，ℓ1 最小化可恢复每个 k-稀疏向量，而最锐利的充分条件是 \( \delta_{2k} < 1/2 \)，且无法再改进。<sup>[5](https://ar5iv.labs.arxiv.org/html/1203.3815)</sup> 零空间性质可衡量最优处的锐利程度，并通过单一几何量——最小锥限制奇异值——同时控制统计恢复与计算复杂度。<sup>[12](https://academic.oup.com/imaiai/article/9/1/1/5288445)</sup> 对 s-稀疏信号，O(s log p) 个观测即足以实现稳定的 ℓ1 恢复。<sup>[12](https://academic.oup.com/imaiai/article/9/1/1/5288445)</sup>

## 求解方法

求解器主要有三大类。凸方法直接求解基追踪或 lasso 规划；内点法在 \( O(m^{2} \cdot N^{1.5}) \) 时间内达到固定精度，同伦法（LARS）和迭代重加权最小二乘是替代方案，其中 LARS 每一步只向活动集添加元素。<sup>[13](https://www.math.unipd.it/~marcuzzi/DIDATTICA/LEZ&ESE_PIAI_Matematica/FornasierLinz.pdf)</sup> [近端梯度法](https://www.edgepedia.org/zh/proximal-gradient-method)（ISTA 及其加速版本 FISTA）使用软阈值算子，这是 ℓ1 问题的关键数值工具；在基准测试中，LARS 在几乎所有小规模情形下都优于其他所有方法，而 FISTA 除一种情形外均胜过 ISTA，且在高相关或弱正则化下差距最大。<sup>[14](https://dl.acm.org/doi/10.1561/2200000015)</sup><sup> • </sup><sup>[2](https://ww3.math.ucla.edu/camreport/cam14-82.pdf)</sup>

贪婪追踪法逐步构建支撑集。CoSaMP 维护一个 2s-稀疏近似，对结构化字典，总运行时间为 \( O(N \log^{2} N) \)，在压缩采样问题上实际比 OMP 更快、更有效——也许超稀疏情形除外——但比凸松弛更快，通常效果较差。<sup>[7](https://tropp.caltech.edu/papers/TG07-Signal-Recovery-preprint.pdf)</sup><sup> • </sup><sup>[15](https://pages.cs.wisc.edu/~brecht/cs838docs/09.TroppWright.pdf)</sup> 迭代硬阈值法按 \( x_{k+1} = [x_{k} + \Phi^{*} r_{k}]_{s} \) 更新，对信号近似而非残差做阈值处理，从而免去伪逆并降低成本；它在 \( \delta_{2s} < 1 \) 下带有误差保证。<sup>[15](https://pages.cs.wisc.edu/~brecht/cs838docs/09.TroppWright.pdf)</sup><sup> • </sup><sup>[8](https://people.maths.ox.ac.uk/tanner/papers/BCTT_Greedy.pdf)</sup> CoSaMP、子空间追踪和 IHT 各自表现出自己的相变：在临界稀疏度以下可恢复所有 k-稀疏向量，以上则不能。<sup>[8](https://people.maths.ox.ac.uk/tanner/papers/BCTT_Greedy.pdf)</sup>

## 起源

lasso，即最小绝对收缩与选择算子，是 [Robert Tibshirani](https://www.edgepedia.org/zh/robert-tibshirani) 1996 年发表于《[皇家统计学会杂志](https://www.edgepedia.org/zh/journal-of-the-royal-statistical-society)》B 辑的论文的主题；该方法在系数绝对值之和小于某常数的约束下最小化残差平方和，文中指出子集选择可解释但因其离散而极不稳定，而岭回归连续但不会把任何系数设为零。<sup>[1](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup> 基追踪，即把信号分解为字典元素叠加、且系数 ℓ1 范数最小的原则，是 Scott Shaobing Chen、David L. Donoho 和 Michael A. Saunders 1998 年发表于《SIAM 科学计算杂志》的论文的主题；该文将 BP 与框架法、匹配追踪和最佳正交基作对比，并强调 BP 是一种优化原则，而非算法。<sup>[11](https://dl.acm.org/doi/10.1137/S1064827596304010)</sup> 一种基于熵的最佳基选择算法出现在 R.R. Coifman 和 M.V. Wickerhauser 1992 年发表于《IEEE 信息论汇刊》的论文中。<sup>[16](https://doi.org/10.1109/18.119732)</sup> D.L. Donoho 2006 年发表于同一期刊的《压缩感知》一文表明，具有 m 个像素的自然图像类只需少量非自适应的非像素样本，即可通过基追踪恢复。<sup>[17](https://doi.org/10.1109/tit.2006.871582)</sup> Joel A. Tropp 和 Anna C. Gilbert 2007 年发表于《IEEE 信息论汇刊》的论文给出了上文引用的 OMP 恢复分析，D. Needell 和 J.A. Tropp 2008 年发表于《应用与计算调和分析》的论文提出了 CoSaMP。<sup>[7](https://tropp.caltech.edu/papers/TG07-Signal-Recovery-preprint.pdf)</sup><sup> • </sup><sup>[18](https://doi.org/10.1016/j.acha.2008.07.002)</sup> Hui Zou 和 Trevor Hastie 2005 年发表于《皇家统计学会杂志》B 辑的论文是弹性网的参考文献，融合 lasso 则出现在 Robert Tibshirani 及其同事 2005 年的论文中。<sup>[19](https://doi.org/10.1111/j.1467-9868.2005.00503.x)</sup><sup> • </sup><sup>[20](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup>

## 变体

在普通 ℓ1 之外，融合 lasso 对系数及其逐次差分的 ℓ1 范数都施加惩罚，促使系数剖面既稀疏又局部恒定；当特征数 p 远大于样本量 N 时尤其有用。<sup>[20](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup> 结构化稀疏的扩展包括组 lasso、分层惩罚和稀疏 PCA，后者约束主成分组合中非零系数的个数，是组合难的，因而推动了凸松弛的研究。<sup>[14](https://dl.acm.org/doi/10.1561/2200000015)</sup><sup> • </sup><sup>[21](https://people.eecs.berkeley.edu/%7Eelghaoui/Pubs/SPCAhandbookSV.pdf)</sup> SCAD 和 MCP 等非凸惩罚各有取舍，下文讨论。<sup>[22](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup>

## 应用

统计学中的[稀疏回归](https://www.edgepedia.org/zh/sparse-regression)和子集选择是经典用途，ℓ1 惩罚形式也可直接用于子集选择。<sup>[10](https://tropp.caltech.edu/papers/Tro06-Just-Relax-pretint.pdf)</sup> 融合 lasso 在蛋白质质谱和基因表达数据上有所演示。<sup>[20](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup> 压缩感知 MRI、基因组学回归、稀疏逆协方差和字典学习等领域特定的基准，尚未由已发表的比较得出结论。

## 局限与替代方法

相关设计是 ℓ1 方法的主要失效模式。当互相干条件不成立时，基于 ℓ1 的估计量不一致，而非凸惩罚（SCAD、MCP）最终能完美恢复支撑集；实验中，基于 [Lasso](https://www.edgepedia.org/zh/lasso-statistics) 的估计量至少返回 80% 的不相关特征，而 SCAD 和 MCP 尽管具有 oracle 性质，仍表现出 15–30% 的误检率。<sup>[22](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup> 在一项六种情形的比较中，凸整数优化（CIO）和 MCP 在所有情形下表现最佳，高相关强烈阻碍 Lasso 和弹性网，中度阻碍 SCAD，而对 CIO、子集选择和 MCP 仅略有影响；所有非 glmnet 方法都比 glmnet 慢一到两个数量级。<sup>[22](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup> 与岭回归相比，lasso 以稳定性换取精确的零；与最佳子集选择相比，它以离散性换取可处理性。<sup>[1](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup> 还有两个限制：ℓ1 最小化会收缩信号幅度，Bregman 迭代通过每次迭代把残差加回而部分恢复；当噪声水平未知时，选择调节参数 λ 并不直接，而沿整条路径做交叉验证很耗时。<sup>[2](https://ww3.math.ucla.edu/camreport/cam14-82.pdf)</sup> 噪声也会收窄可恢复的范围：当测量数仅随 p 线性增长时，与无噪声基追踪相比，可恢复的支撑集大小从维度的线性比例下降到亚线性比例。<sup>[6](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)</sup> 甚至理论也有未决之处：所有已知的良好测量矩阵构造都涉及随机性，构造最优的显式矩阵仍是未决问题。<sup>[4](https://link.springer.com/book/10.1007/978-0-8176-4948-7)</sup>

## References

1. [Robert Tibshirani (1996). Regression Shrinkage and Selection Via the Lasso. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)
2. [Can we trust optimization? (ℓ1 optimization, UCLA CAM Report 14-82)](https://ww3.math.ucla.edu/camreport/cam14-82.pdf)
3. [Optimally sparse representation in general (nonorthogonal) dictionaries via ℓ1 minimization (Donoho & Elad, PNAS)](https://pmc.ncbi.nlm.nih.gov/articles/PMC153464/)
4. [A Mathematical Introduction to Compressive Sensing (Foucart & Rauhut, 2013)](https://link.springer.com/book/10.1007/978-0-8176-4948-7)
5. [Theory and Applications of Compressed Sensing (survey)](https://ar5iv.labs.arxiv.org/html/1203.3815)
6. [Sharp thresholds for high-dimensional and noisy recovery of sparsity using ℓ1-constrained quadratic programming (Wainwright)](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)
7. [Signal Recovery from Random Measurements via Orthogonal Matching Pursuit (Tropp & Gilbert)](https://tropp.caltech.edu/papers/TG07-Signal-Recovery-preprint.pdf)
8. [Phase Transitions for Greedy Sparse Approximation Algorithms](https://people.maths.ox.ac.uk/tanner/papers/BCTT_Greedy.pdf)
9. [Sparse nonnegative solution of underdetermined linear equations by linear programming / Thresholds for the Recovery of Sparse Solutions (Donoho & Tanner, CISS 2006)](https://compressed-sensing.eng.ed.ac.uk/sites/compressed-sensing.eng.ed.ac.uk/files/publications/Donoho_Tanner_CISS_2006.pdf)
10. [Just Relax: Convex Programming Methods for Identifying Sparse Signals in Noise (Tropp)](https://tropp.caltech.edu/papers/Tro06-Just-Relax-pretint.pdf)
11. [Atomic Decomposition by Basis Pursuit (SIAM Journal on Scientific Computing)](https://dl.acm.org/doi/10.1137/S1064827596304010)
12. [Computational complexity versus statistical performance on sparse recovery problems (Information and Inference: A Journal of the IMA)](https://academic.oup.com/imaiai/article/9/1/1/5288445)
13. [Numerical methods for sparse recovery (Fornasier lecture notes)](https://www.math.unipd.it/~marcuzzi/DIDATTICA/LEZ&ESE_PIAI_Matematica/FornasierLinz.pdf)
14. [Optimization with Sparsity-Inducing Penalties (Foundations and Trends in Machine Learning, Bach, Jenatton, Mairal, Obozinski)](https://dl.acm.org/doi/10.1561/2200000015)
15. [Computational Methods for Sparse Solution of Linear Inverse Problems (Tropp & Wright)](https://pages.cs.wisc.edu/~brecht/cs838docs/09.TroppWright.pdf)
16. [R.R. Coifman, M.V. Wickerhauser (1992). Entropy-based algorithms for best basis selection. IEEE Transactions on Information Theory.](https://doi.org/10.1109/18.119732)
17. [D.L. Donoho (2006). Compressed sensing. IEEE Transactions on Information Theory.](https://doi.org/10.1109/tit.2006.871582)
18. [D. Needell, J.A. Tropp (2008). CoSaMP: Iterative signal recovery from incomplete and inaccurate samples. Applied and Computational Harmonic Analysis.](https://doi.org/10.1016/j.acha.2008.07.002)
19. [Hui Zou, Trevor Hastie (2005). Regularization and Variable Selection Via the Elastic Net. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2005.00503.x)
20. [Sparsity and smoothness via the fused lasso (Tibshirani, Saunders, Rosset, Zhu, Knight)](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)
21. [Sparse PCA: Convex Relaxations, Algorithms and Applications](https://people.eecs.berkeley.edu/%7Eelghaoui/Pubs/SPCAhandbookSV.pdf)
22. [Sparse regression: Scalable algorithms and empirical performance](https://ar5iv.labs.arxiv.org/html/1902.06547)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Optimization and dynamic programming › Mathematical programming methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sparse-optimization

English original: https://www.edgepedia.org/sparse-optimization
