# 贝叶斯主动学习

贝叶斯主动学习是一种机器学习方法，它通过衡量每个候选数据点能在多大程度上降低贝叶斯模型的不确定性，来选择哪些无标注数据点应当被标注，目标是以比随机采样更少的标注达到目标精度，不过它有时也可能不如随机采集。它通常在基于池的设置中运行，即对一个大型无标注池反复打分，但也存在基于流和连续采样的变体；基于池的方式在机器学习中最为常见。<sup>[1](https://www.cse.iitk.ac.in/users/piyush/courses/tpmi_winter21/readings/BayesianAL.pdf)</sup> 其收益在于标注成本：在 MNIST 上，一个贝叶斯 CNN 用 295 张标注图像达到了 5% 的测试误差，而随机采样需要 835 张，这意味着要达到相同精度，专家需要标注两倍以上的图像。<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心采集目标 | BALD 互信息 \( I(y;\omega \mid x, D) \)<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup> |
| 头条级标注节省 | MNIST：295 个标注达到 5% 测试误差，随机采样需 835 个<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup> |
| NLP 结果 | 用 20% 的标注达到全数据集 NER 性能的 98–99%；i.i.d. 基线需要 50%<sup>[4](https://aclanthology.org/D18-1318.pdf)</sup> |
| 批次选择 | BatchBALD 用贪心算法联合打分一个批次，运行时间为线性，具有 \( 1 - 1/e \) 近似保证<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup> |
| 深度网络实现 | MC dropout 在测试时保持 dropout 活跃，并通过随机前向传播对近似后验进行边缘化<sup>[5](https://doi.org/10.48550/arxiv.1506.02142)</sup> |
| LLM 时代结果 | BAL-PM 在两个人类偏好数据集上需要少 33% 到 68% 的偏好标注<sup>[6](https://papers.nips.cc/paper_files/paper/2024/file/d5e256c988bdee59a0f4d7a9bc1dd6d9-Paper-Conference.pdf)</sup> |
| 注意事项 | 在标准图像分类上，重新实现的不确定性策略平均仅比随机高 1%–3%，方法之间无显著差异<sup>[7](https://arxiv.org/pdf/2203.13450)</sup> |

## 工作原理

该方法维护模型参数 \( \theta \) 上的后验分布 \( p(\theta \mid D) \)，而不是单个拟合模型。对于每个无标注点 \( x \)，它计算短视[期望信息增益](https://www.edgepedia.org/zh/expected-information-gain)

\[ U(x) = H[p(\theta \mid D)] - \mathbb{E}_{p(y \mid x, D)} H[p(\theta \mid D, x, y)], \]

即在 \( x \) 处观测到 \( y \) 后后验熵的期望减少量。<sup>[1](https://www.cse.iitk.ac.in/users/piyush/courses/tpmi_winter21/readings/BayesianAL.pdf)</sup> 在长序列采集中优化该量，就采集序列长度而言是 NP 难的，因此短视的、一次一步的方法成为标准。<sup>[1](https://www.cse.iitk.ac.in/users/piyush/courses/tpmi_winter21/readings/BayesianAL.pdf)</sup>

直接计算参数空间熵代价高昂，因此霍尔茨比及其同事将目标重排到输出空间，作为条件互信息

\[ I[y, \theta \mid x, D] = H[y \mid x, D] - \mathbb{E}_{\theta \sim p(\theta \mid D)} H[y \mid x, \theta], \]

并将其命名为基于分歧的贝叶斯主动学习（BALD）：它选择那些不同后验参数设置对预测结果分歧最大的点。<sup>[8](https://doi.org/10.48550/arxiv.1112.5745)</sup>

BALD 不同于使用点估计模型的普通不确定性采样，后者查询正类后验概率最接近 0.5 的实例。<sup>[9](https://gwern.net/doc/www/burrsettles.com/28ddbada5da6ba1459d640121430f6310a38b4fb.pdf)</sup> 一个相关准则——最大熵采样——选择最大的预测熵；仅对观测噪声恒定的模型，这才等于 BALD，而在分类或异方差模型上会失败，因为它将参数不确定性与观测噪声混为一谈。<sup>[1](https://www.cse.iitk.ac.in/users/piyush/courses/tpmi_winter21/readings/BayesianAL.pdf)</sup>

## 如何执行

基于池的循环的一次迭代如下运行。<sup>[10](https://arxiv.org/html/2405.00334)</sup>

1. 从一个小种子标注集开始，训练一个能暴露参数不确定性的模型：[高斯过程](https://www.edgepedia.org/zh/gaussian-process)、用 MC dropout 训练的[贝叶斯神经网络](https://www.edgepedia.org/zh/bayesian-neural-network)，或深度集成。
2. 用采集函数对无标注池打分。
3. 选择得分最高的点或批次，将其发送给预言机进行标注。
4. 重新训练，并重复直到达到预算或目标性能。<sup>[10](https://arxiv.org/html/2405.00334)</sup>

对整个池打分是昂贵的阶段。BaaL 库发现，将不确定性估计限制在池的不到 25% 的随机子集上不影响性能，并将该阶段加速 3 倍。<sup>[11](https://ar5iv.labs.arxiv.org/html/2006.09916)</sup>

## 起源

用期望信息增益来评估数据价值是贝叶斯实验设计中的一种方法。<sup>[8](https://doi.org/10.48550/arxiv.1112.5745)</sup> 麦凯 1992 年在《神经计算》上的论文《用于主动数据选择的基于信息的目标函数》在贝叶斯框架内推导了衡量候选测量期望信息量的目标函数；他将参数熵版本称为总信息增益。<sup>[12](https://psycnet.apa.org/doi/10.1162/neco.1992.4.4.590)</sup> 与此同时，承、奥珀和索姆波林斯基在 1992 年提出了“委员会查询”过滤器，弗罗因德、承、沙米尔和蒂什比在 NIPS 1992 上证明，如果一个双成员委员会的信息增益存在正的下界，则预测误差随查询次数指数下降。<sup>[13](https://proceedings.neurips.cc/paper/1992/file/3871bd64012152bfb53fdf04b401193f-Paper.pdf)</sup> 文本分类器的[不确定性采样](https://www.edgepedia.org/zh/uncertainty-sampling)由刘易斯和盖尔在 1994 年描述。<sup>[14](https://doi.org/10.1007/978-1-4471-2099-5_1)</sup> 霍尔茨比及其同事于 2011 年在剑桥大学工程系出版物数据库中引入了 BALD，<sup>[8](https://doi.org/10.48550/arxiv.1112.5745)</sup> 加尔、伊斯拉姆和加赫拉马尼在 2017 年展示了其与深度神经网络的结合使用。<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup>

## 变体

**BatchBALD** 通过 \( I(y_1, \ldots, y_b; \omega \mid x_1, \ldots, x_b, D_{\text{train}}) \) 联合打分整个批次，使用贪心算法在线性时间内选择批次，具有 \( 1 - 1/e \) 近似保证；它要求一致的 MC dropout，即跨点使用相同的采样参数，以捕获输入之间的依赖关系。<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup>

**ACS-FW** 将批次构建重新表述为对期望完整数据对数后验的稀疏子集近似，受贝叶斯核心集启发，用 Frank-Wolfe 算法求解，产生覆盖数据流形的多样化批次。<sup>[15](https://doi.org/10.48550/arxiv.1908.02144)</sup> **EPIG** 在预测空间而非参数空间中衡量期望信息增益，

\[ \mathrm{EPIG}(x) = \mathbb{E}_{p^*(x^*)\, p_\phi(y \mid x)} \big[ H[p_\phi(y^* \mid x^*)] - H[p_\phi(y^* \mid x^*, x, y)] \big], \]

并在低维和高维输入以及多个模型上优于 BALD，被提议作为即插即用的替代品。<sup>[16](https://doi.org/10.48550/arxiv.2304.08151)</sup> **深度集成**可以代替 dropout 提供不确定性：贝卢赫及其同事发现，基于集成的主动学习在 14,500 张图像后在 CIFAR-10 上达到 91.5% 的准确率，而 MC dropout 为 88.4%，且集成不确定性校准更好。<sup>[17](https://openaccess.thecvf.com/content_cvpr_2018/CameraReady/1487.pdf)</sup>

## 应用

报告的标注效率结果跨越多个领域。在 MNIST 上，贝叶斯 CNN 系统用 295 张标注图像达到 5% 测试误差，而随机采样为 835 张。<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup> 原始 BALD 论文报告，在九个 UCI 分类数据集和三个[偏好学习](https://www.edgepedia.org/zh/preference-learning)数据集上，竞争方法通常需要多 20–50% 的数据点才能达到相同精度。<sup>[18](https://arxiv.org/abs/1112.5745)</sup> 在 NLP 中，带有 dropout 或 Bayes-by-Backprop 不确定性的贝叶斯主动学习显著优于 i.i.d. 基线，且通常优于经典不确定性采样；在命名实体识别上，它仅标注 20% 的样本就达到全数据集性能的大约 98–99%，而 i.i.d. 基线需要 50%。<sup>[4](https://aclanthology.org/D18-1318.pdf)</sup> 在医学影像中，BALD 在 ISIC 2016 黑色素瘤任务上比均匀采集更快达到更好的 AUC，在四步各 100 张图像的采集后超过了全池模型的 AUC。<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup>

## 局限与替代方案

**失效模式。** 麦凯将模型正确的假设确定为基于信息的数据选择的“阿喀琉斯之踵”。<sup>[12](https://psycnet.apa.org/doi/10.1162/neco.1992.4.4.590)</sup> MC dropout 的变分近似在采集估计器中引入显著噪声，变分推断中的模式崩溃可能产生深度贝叶斯主动学习特有的过度自信预测。<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup> 批次冗余是一个有记录的失效：在添加高斯噪声的重复 MNIST 数字上，朴素地选取得分最高的 b 个点的 BALD 比随机采集表现更差，因为个体信息量大的点联合起来并不具有信息量，而 BatchBALD 保持良好性能。<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup> 当测试集不平衡时，BALD 和 BatchBALD 也表现不佳，因为它们旨在学习所有类别，不遵循数据集密度。<sup>[3](https://doi.org/10.48550/arxiv.1906.08158)</sup> 在欠拟合模型下，BALD 相对于随机的增益变为负值，这是冷启动失效。<sup>[11](https://ar5iv.labs.arxiv.org/html/2006.09916)</sup>

**不一致的基准证据。** 已发表的比较在典型增益大小上存在分歧。一项对 19 种深度主动学习方法的重新实现大型研究发现，基于不确定性的策略在平均性能上通常仅比随机高 1%–3%，没有方法显著优于其他方法，在医学任务 PneumoniaMNIST 上 VarRatio 比随机低 4.5%。<sup>[7](https://arxiv.org/pdf/2203.13450)</sup> 各篇综述对这类方法的评价同样存在差异：一篇指出贝叶斯[深度主动学习](https://www.edgepedia.org/zh/deep-active-learning)方法可以解释为什么选择样本，但需要大量先验知识，且通常在表示学习上不如标准深度模型，<sup>[10](https://arxiv.org/html/2405.00334)</sup> 而 2017 年的图像研究发现，传播不确定性的贝叶斯模型在早期达到更高准确率，并收敛到比确定性模型更高的总体准确率。<sup>[2](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)</sup>

**替代方案。** 核心集方法选择覆盖整个数据分布的批次，例如在倒数第二层特征空间中测量，一项核心集分析认为，基于 dropout 的置信度估计与使用网络 softmax 响应作为不确定性采样表现相似。<sup>[10](https://arxiv.org/html/2405.00334)</sup> 多样性感知方法约束批次组成，但仅多样性不能确保信息量，而基于分歧的方法计算更昂贵且对模型错误设定敏感。<sup>[19](https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2026.1844765/full)</sup> 期望误差减少接近最优，但是计算最昂贵的查询框架，且主动学习有时即使在同一模型类别下也可能需要比被动学习更多的标注实例。<sup>[9](https://gwern.net/doc/www/burrsettles.com/28ddbada5da6ba1459d640121430f6310a38b4fb.pdf)</sup>

**近期发展。** BAL-PM 是一种用于 LLM 偏好建模的随机贝叶斯采集策略，针对偏好模型的高认知不确定性，同时最大化 LLM 特征空间中已采集提示分布的熵，实现为冻结 LLM 上轻量适配器的集成；它在两个流行的人类偏好数据集上需要少 33% 到 68% 的偏好标注。<sup>[6](https://papers.nips.cc/paper_files/paper/2024/file/d5e256c988bdee59a0f4d7a9bc1dd6d9-Paper-Conference.pdf)</sup>

## References

1. [Bayesian Active Learning (thesis chapter on the information-theoretic framework and BALD)](https://www.cse.iitk.ac.in/users/piyush/courses/tpmi_winter21/readings/BayesianAL.pdf)
2. [Deep Bayesian Active Learning with Image Data (Gal, Islam, Ghahramani, ICML 2017)](https://proceedings.mlr.press/v70/gal17a/gal17a.pdf)
3. [Kirsch, Andreas, van Amersfoort, Joost, Gal, Yarin (2019). BatchBALD: Efficient and Diverse Batch Acquisition for Deep Bayesian Active Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1906.08158)
4. [Deep Bayesian Active Learning for Natural Language Processing: Results of a Large-Scale Empirical Study (Siddhant & Lipton, EMNLP 2018)](https://aclanthology.org/D18-1318.pdf)
5. [Gal, Yarin, Ghahramani, Zoubin (2015). Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1506.02142)
6. [Deep Bayesian Active Learning for Preference Modeling in Large Language Models (BAL-PM, NeurIPS 2024)](https://papers.nips.cc/paper_files/paper/2024/file/d5e256c988bdee59a0f4d7a9bc1dd6d9-Paper-Conference.pdf)
7. [Deep Active Learning: Unified and Principled Baseline (DeepAL+)](https://arxiv.org/pdf/2203.13450)
8. [Houlsby, Neil and colleagues (2011). Bayesian Active Learning for Classification and Preference Learning. Cambridge University Engineering Department Publications Database.](https://doi.org/10.48550/arxiv.1112.5745)
9. [Active Learning Literature Survey (Settles)](https://gwern.net/doc/www/burrsettles.com/28ddbada5da6ba1459d640121430f6310a38b4fb.pdf)
10. [A Survey on Deep Active Learning: Recent Advances and New Frontiers](https://arxiv.org/html/2405.00334)
11. [Bayesian active learning for production, a systematic study and a reusable library (BaaL, 2020)](https://ar5iv.labs.arxiv.org/html/2006.09916)
12. [Information-Based Objective Functions for Active Data Selection (MacKay, Neural Computation 1992)](https://psycnet.apa.org/doi/10.1162/neco.1992.4.4.590)
13. [Information, Prediction, and Query by Committee (Freund, Seung, Shamir, Tishby, NIPS 1992)](https://proceedings.neurips.cc/paper/1992/file/3871bd64012152bfb53fdf04b401193f-Paper.pdf)
14. [David D. Lewis, William A. Gale (1994). A Sequential Algorithm for Training Text Classifiers. .](https://doi.org/10.1007/978-1-4471-2099-5_1)
15. [Pinsler, Robert and colleagues (2019). Bayesian Batch Active Learning as Sparse Subset Approximation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1908.02144)
16. [Smith, Freddie Bickford and colleagues (2023). Prediction-Oriented Bayesian Active Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2304.08151)
17. [The power of ensembles for active learning in image classification (Beluch et al., CVPR 2018)](https://openaccess.thecvf.com/content_cvpr_2018/CameraReady/1487.pdf)
18. [Bayesian Active Learning for Classification and Preference Learning (arXiv 1112.5745 overview)](https://arxiv.org/abs/1112.5745)
19. [Beyond uncertainty in modern active learning for trustworthy AI (Frontiers in AI, 2026)](https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2026.1844765/full)

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

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

Copyright 2026 Edgepedia

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

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

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