# 稀疏贝叶斯学习

稀疏贝叶斯学习（Sparse Bayesian learning, SBL）是一种贝叶斯机器学习方法，它通过为每个权重赋予各自的稀疏诱导先验来拟合线性回归和分类模型，从而在训练过程中自动剪除无关基函数。其典型实例是相关向量机（relevance vector machine, RVM），这是一种稀疏线性模型，函数形式与支持向量机（support vector machine, SVM）相同，但与SVM不同，它产生概率输出，并接受任意基函数，包括非Mercer核。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup> 训练最大化边际似然（第二类证据）而非权重本身，保留下来的非零权重标识保留的基函数；在常见RVM设置中，这些基函数与训练输入相关联，这些输入随后被称为相关向量。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup>

| 关键事实 | 值 |
|---|---|
| 提出文献 | 蒂平（Tipping），NIPS 2000会议版和JMLR 2001（第1卷，第211–244页） |
| 目标 | 边际似然 \( L(\alpha) = -\tfrac{1}{2}[N\log 2\pi + \log|C| + t^{\mathrm T} \cdot C^{-1} \cdot t] \)，\( C = \sigma^2 \cdot I + \Phi \cdot A^{-1} \cdot \Phi^{\mathrm T} \) |
| 稀疏机制 | 每个权重一个精度超参数 \( \alpha_i \)；\( \alpha_i \to \infty \) 剪除基函数 \( i \) |
| 稀疏性对比SVM | 4个对38个核（Ripley合成数据集，测试误差9.3%对10.6%）；在200例数据集上3个对44个核 |
| 训练成本 | \( O(N^2) \) 内存，\( O(N^3) \) 计算；原始形式在超过约5000例时不可行 |
| 压缩感知 | 全局最小值位于最大稀疏解，且局部极小值通常少于基追踪等MAP方法 |

## 工作原理

模型是广义线性基模型 \( t = \Phi \cdot w + \epsilon \)，其中高斯噪声 \( \epsilon \sim \mathcal N(0, \sigma^2) \)。每个权重 \( w_i \) 获得零均值高斯先验，并带有自己的精度 \( \alpha_i \)；这种每个权重一个超参数的方案是自动相关性确定（automatic relevance determination, ARD）的一种形式，正是产生稀疏性的特征。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)</sup> 在伽马超先验下对 \( \alpha_i \) 积分，得到边际权重先验，它是学生t分布的乘积，像用作L1正则化器的拉普拉斯先验一样在零处形成尖锐峰值。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup>

训练期间，许多 \( \alpha_i \) 趋向无穷大，相应 \( w_i \) 的后验在零处变得无限尖锐，这些基函数被剪除。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)</sup> 在回归中，由此产生的相关学习等价于协方差为 \( C = \sigma^2 \cdot I + \Phi \cdot A^{-1} \cdot \Phi^{\mathrm T} \) 的[高斯过程](https://www.edgepedia.org/zh/gaussian-process)模型。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup>

## 实现方式

权重后验为高斯分布，协方差 \( \Sigma = (A + \sigma^{-2} \cdot \Phi^{\mathrm T} \cdot \Phi)^{-1} \)，均值 \( \mu = \sigma^{-2} \cdot \Sigma \cdot \Phi^{\mathrm T} \cdot t \)，其中 \( A = \mathrm{diag}(\alpha_1, \ldots, \alpha_M) \)。<sup>[3](https://miketipping.com/papers/met-fastsbl.pdf)</sup> 训练最大化对数边际似然 \( L(\alpha) = -\tfrac{1}{2}[N\log 2\pi + \log|C| + t^{\mathrm T} \cdot C^{-1} \cdot t] \)，其中 \( C = \sigma^2 \cdot I + \Phi \cdot A^{-1} \cdot \Phi^{\mathrm T} \)。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2001/file/02b1be0d48924c327124732726097157-Paper.pdf)</sup>

超参数更新在EM式重估计 \( \alpha_i^{\mathrm{new}} = 1/(\Sigma_{ii} + \mu_i^2) \) 和更快的直接更新 \( \alpha_i^{\mathrm{new}} = \gamma_i/\mu_i^2 \)（其中 \( \gamma_i = 1 - \alpha_i\Sigma_{ii} \)）之间交替，同时重新估计噪声方差。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)</sup> 福尔（Faul）和蒂平表明，\( L(\alpha) \) 在每个单独的 \( \alpha_i \) 上具有唯一的闭式最大值，并且只要准则 \( Q_i^2 - S_i \) 为负，该最大值就位于 \( \alpha_i = \infty \)，等价于移除基函数 \( i \)；\( Q_i \) 衡量 \( \phi_i \) 帮助解释数据的程度，\( S_i \) 衡量将其纳入会使 \( C \) 膨胀多少。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2001/file/02b1be0d48924c327124732726097157-Paper.pdf)</sup> 由于序贯单超参数优化的驻点不是鞍点，闭式解还允许评估并添加模型之外的基函数，从而支持构造性算法。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2001/file/02b1be0d48924c327124732726097157-Paper.pdf)</sup> 对于分类，边际似然无法解析积分，因此使用拉普拉斯（高斯）近似；对数后验是凹的，支持该近似。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)</sup>

## 起源

该方法建立在早期ARD式贝叶斯方法和第二类证据流程之上。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup> RVM的动机来自SVM，后者是一种函数形式相同的模型，但缺乏概率输出，并施加权衡参数和Mercer核限制，而RVM避免了这些限制；SVM归功于博泽（Boser）、居永（Guyon）和瓦普尼克（Vapnik）（1992）。<sup>[5](https://dl.acm.org/doi/10.1162/15324430152748236)</sup>

## 变体

**快速边际似然最大化。** 在第九届人工智能与统计国际研讨会（PMLR R4，第276–283页）上提出了一种加速算法。<sup>[6](https://proceedings.mlr.press/r4/tipping03a.html)</sup> 它从空模型开始初始化，并使用 \( \theta_i = q_i^2 - s_i \) 顺序添加或删除基函数：如果 \( \theta_i > 0 \) 且 \( \alpha_i = \infty \)，则添加 \( \phi_i \) 并更新 \( \alpha_i \)；如果 \( \theta_i \le 0 \) 且 \( \alpha_i < \infty \)，则删除 \( \phi_i \) 并令 \( \alpha_i = \infty \)。<sup>[3](https://miketipping.com/papers/met-fastsbl.pdf)</sup> 与原始数值剪枝相比，解析删除提高了稀疏性。<sup>[3](https://miketipping.com/papers/met-fastsbl.pdf)</sup>

**变分SBL。** 变分推断求解RVM，给出参数和超参数两者的后验分布，而不是第二类点估计；该解法计算上更昂贵，但预期在小数据集上帮助最大。<sup>[7](https://www.miketipping.com/papers/Bishop-VRVM-UAI-00.pdf)</sup> 舒京（Shutin）、布赫格拉伯（Buchgraber）、库尔卡尼（Kulkarni）和普尔（Poor）后来为叠加信号开发了快速变分SBL，其剪枝条件与快速边际似然最大化相同，并对应于移除信噪比低于0 dB阈值的分量。<sup>[8](https://www.princeton.edu/~kulkarni/Papers/Journals/j080_2011_ShuBuchKulPoor_TransSP.pdf)</sup>

**用于基选择的SBL。** 威普夫（Wipf）和拉奥（Rao）于2004年在《IEEE信号处理汇刊》上将SBL用于从过完备字典中进行基选择。<sup>[9](https://doi.org/10.1109/tsp.2004.831016)</sup> 贝叶斯回填RVM将每个更新周期的训练成本降至 \( O(N^2) \)，而标准RVM为 \( O(N^3) \)。<sup>[10](https://icml.cc/Conferences/2004/proceedings/papers/115.pdf)</sup>

## 应用

除回归和分类基准外，SBL还用于从过完备字典中进行稀疏恢复，模拟显示其恢复效果优于基追踪和FOCUSS类算法。<sup>[9](https://doi.org/10.1109/tsp.2004.831016)</sup> 在每个条件1000次运行的蒙特卡罗试验中，SBL在字典冗余度 \( M/N \) 高达5、非零权重多达30个的情况下，包括单位幅度非零权重的最坏情况，都比基追踪和OMP更好地恢复稀疏向量。<sup>[11](https://papers.nips.cc/paper_files/paper/2005/file/d8e1344e27a5b08cdfd5d027d9b8d6de-Paper.pdf)</sup> 文中列举的稀疏表示应用包括神经电磁源定位、压缩感知、稀疏成分分析、特征选择、图像恢复与压缩以及神经编码，并在大型不适定神经影像问题上取得良好效果。<sup>[12](https://escholarship.org/uc/item/1kh6989n)</sup> 在通信中，SBL通过将每个信道项的方差视为稀疏强制权重来估计大规模MIMO信道，这些权重是在从模型中将信道边缘化后估计的。<sup>[13](https://doi.org/10.48550/arxiv.2501.07969)</sup>

## 局限与替代方法

主要缺点是计算成本：内存和计算随基函数数量的平方和立方增长，使原始算法对数千个训练样本不可行。<sup>[1](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)</sup> EM和麦凯（MacKay）更新不能确保全局收敛，因为它们可能陷入不动点而非边际似然的驻点，并且EM在数值上收敛缓慢。<sup>[14](https://raw.githubusercontent.com/mlresearch/v235/main/assets/wang24al/wang24al.pdf)</sup> SBL依赖为解析可处理性而选择的先验，这可能与实际信号统计不匹配并导致过度收缩。<sup>[15](https://eurasip.org/Proceedings/Eusipco/Eusipco2026/pdfs/0000911.pdf)</sup>

与替代方法相比，几乎所有竞争的稀疏恢复方法，包括OMP、基追踪（LASSO）和最小 \( L_p \) 拟范数方法，都使用固定的稀疏诱导先验执行MAP估计，而SBL是一种经验贝叶斯证据最大化方法。<sup>[12](https://escholarship.org/uc/item/1kh6989n)</sup> 在稀疏恢复中，SBL的全局最小值总是在最大稀疏解处达到，这与基追踪代价函数不同，且局部极小值通常少于可比的MAP方法。<sup>[12](https://escholarship.org/uc/item/1kh6989n)</sup> 与SVM相比，RVM在精度相当的同时，所需基函数少得多，且能产生概率输出，但在大型数据集上训练更慢。<sup>[2](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)</sup>

近期工作澄清了收敛性。流行的SBL算法，包括基于EM的方法和蒂平的乘性更新，可以推导为共同主化器上的主化-最小化下降步骤，从而为该类算法提供了此前未知的收敛保证。<sup>[16](https://arxiv.org/html/2604.02513)</sup> 一种基于凹凸过程的迭代Min-Min方法从任意起点全局收敛到边际似然的局部极小值或鞍点，且无需固定噪声水平。<sup>[14](https://raw.githubusercontent.com/mlresearch/v235/main/assets/wang24al/wang24al.pdf)</sup>

## References

1. [Sparse Bayesian Learning and the Relevance Vector Machine (Tipping, JMLR 2001)](https://jmlr.org/papers/volume1/tipping01a/tipping01a.pdf)
2. [The Relevance Vector Machine (Tipping, NeurIPS 1999 conference, NIPS 12, 2000 proceedings)](https://proceedings.neurips.cc/paper_files/paper/1999/file/f3144cefe89a60d6a1afaf7859c5076b-Paper.pdf)
3. [Fast Marginal Likelihood Maximisation for Sparse Bayesian Models (Tipping & Faul)](https://miketipping.com/papers/met-fastsbl.pdf)
4. [Analysis of Sparse Bayesian Learning (Faul & Tipping, NIPS 2001)](https://proceedings.neurips.cc/paper_files/paper/2001/file/02b1be0d48924c327124732726097157-Paper.pdf)
5. [Sparse bayesian learning and the relevance vector machine, JMLR Volume 1, Pages 211-244, DOI 10.1162/15324430152748236, published 01 September 2001](https://dl.acm.org/doi/10.1162/15324430152748236)
6. [Fast Marginal Likelihood Maximisation for Sparse Bayesian Models (PMLR record)](https://proceedings.mlr.press/r4/tipping03a.html)
7. [Variational Relevance Vector Machines (Bishop & Tipping, UAI 2000)](https://www.miketipping.com/papers/Bishop-VRVM-UAI-00.pdf)
8. [Fast Variational Sparse Bayesian Learning With Automatic Relevance Determination for Superimposed Signals (Shutin, Buchgraber, Kulkarni, Poor, IEEE Trans. Signal Processing, 2011)](https://www.princeton.edu/~kulkarni/Papers/Journals/j080_2011_ShuBuchKulPoor_TransSP.pdf)
9. [D.P. Wipf, B.D. Rao (2004). Sparse Bayesian Learning for Basis Selection. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2004.831016)
10. [The Bayesian Backfitting Relevance Vector Machine (ICML 2004)](https://icml.cc/Conferences/2004/proceedings/papers/115.pdf)
11. [Comparing the Effects of Different Weight Distributions on Finding Sparse Representations (Wipf & Rao, NIPS 2005)](https://papers.nips.cc/paper_files/paper/2005/file/d8e1344e27a5b08cdfd5d027d9b8d6de-Paper.pdf)
12. [Bayesian methods for finding sparse representations (Wipf PhD thesis, UC San Diego, 2006)](https://escholarship.org/uc/item/1kh6989n)
13. [Arjas, Arttu, Atzeni, Italo (2025). Enhanced Sparse Bayesian Learning Methods with Application to Massive MIMO Channel Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2501.07969)
14. [An Iterative Min-Min Optimization Method for Sparse Bayesian Learning (PMLR v235, 2024)](https://raw.githubusercontent.com/mlresearch/v235/main/assets/wang24al/wang24al.pdf)
15. [Cross-Predictive Sparse Bayesian Learning with application to near-field XL-MIMO channel estimation (EUSIPCO 2026)](https://eurasip.org/Proceedings/Eusipco/Eusipco2026/pdfs/0000911.pdf)
16. [Sparse Bayesian Learning Algorithms Revisited: From Learning Majorizers to Structured Algorithmic Learning using Neural Networks](https://arxiv.org/html/2604.02513)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Feature selection and feature engineering

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sparse-bayesian-learning

English original: https://www.edgepedia.org/sparse-bayesian-learning
