# 深度主动学习

深度主动学习让模型自己决定下一次该由人类标注者标注哪些未标注样本，从而用更少的标注样本训练深度神经网络。它运行在基于池的设定下：一个小规模的已标注种子集、一个大规模的未标注池，以及反复进行的轮次——每一轮由采集函数为池中样本打分，再把一个批次送交神谕标注。在小规模图像基准上，所报告的标注效率相对随机采样只是中等程度的提升；但重新评估发现，在标准任务上学习曲线下面积的增益很有限，而流行算法在 ImageNet 规模上根本胜不过随机采样。因此收益高度取决于数据集、预算与训练流程。

| 关键事实 | 数值 |
|---|---|
| 设定 | 基于池的、批量模式的深度网络主动学习；逐条查询被批量查询取代，因为在少量新数据上频繁重训效率低且易过拟合 <sup>[1](https://dl.acm.org/doi/10.1145/3472291)</sup> |
| 深度主动学习奠基论文 | 加尔（Gal）、伊斯拉姆（Islam）与加赫拉马尼（Ghahramani）的《基于图像数据的深度贝叶斯主动学习》（2017）；MNIST 上 5% 测试误差，ISIC 2016 皮肤病变诊断 AUC 为 0.71/0.75 <sup>[2](https://doi.org/10.48550/arxiv.1703.02910)</sup><sup> • </sup><sup>[3](https://www.mdpi.com/2076-3417/12/16/8103)</sup> |
| 核心集变体 | 将批量选择建模为 k-Center 问题，用贪心的 2-OPT 近似求解 <sup>[4](https://doi.org/10.48550/arxiv.1708.00489)</sup> |
| BatchBALD 结果 | 在 CINIC-10 上用预训练 VGG-16，1170 个标注点达到 59% 准确率，BALD 则需 1330 个（6 次试验的中位数）<sup>[5](https://doi.org/10.48550/arxiv.1906.08158)</sup> |
| 典型效率 | 配合数据增强，ResNet-18 在 CIFAR-10 上约 13k 标注点即超过 90% 准确率；效率为 1.3×（CIFAR-100）至 4.5×（MNIST）<sup>[6](https://arxiv.org/pdf/2106.15324v3.pdf)</sup> |
| 反证 | 标准不确定性策略的 AUBC 一般只比随机高 1%–3%，各方法之间无显著优劣（均 p > 0.05）<sup>[7](https://ar5iv.labs.arxiv.org/html/2203.13450)</sup> |
| 文本分类 | 用 DAL 方法选出 10%–20% 的标签来微调 BERT，效果可达到或超过全数据集微调 <sup>[8](https://arxiv.org/html/2405.00334)</sup> |

## 运作方式

学习器用采集函数为每个未标注样本打分，并标注那些预期最能提升模型的样本。判据分为三类：基于不确定性、基于多样性、基于预期模型变化。<sup>[9](https://openaccess.thecvf.com/content_CVPR_2019/papers/Yoo_Learning_Loss_for_Active_Learning_CVPR_2019_paper.pdf)</sup>

**不确定性函数**利用模型的预测分布。熵采样按类别分布的熵选出前 \( B \) 个样本。<sup>[10](https://ar5iv.labs.arxiv.org/html/1906.03671)</sup> 边际采样利用最高两个预测概率之间的差距 \( M = P(y_1 \mid x) - P(y_2 \mid x) \)，选取边际最小者。<sup>[1](https://dl.acm.org/doi/10.1145/3472291)</sup>

**BALD**（基于分歧的[贝叶斯主动学习](https://www.edgepedia.org/zh/bayesian-active-learning)）只度量认知不确定性，以区别于标签噪声造成的偶然不确定性，其度量是预测与模型参数之间的互信息 <sup>[11](https://jmlr.org/papers/volume24/22-0937/22-0937.pdf)</sup>：

\[ I(y;\omega \mid x, D_{\mathrm{train}}) = H(y \mid x, D_{\mathrm{train}}) - \mathbb{E}_{p(\omega \mid D_{\mathrm{train}})} H(y \mid x, \omega, D_{\mathrm{train}}) \]

在深度网络中，权重 \( \omega \) 上的后验用 MC-dropout 近似：推断时随机丢弃神经元，让模型多次运行 <sup>[12](https://arxiv.org/html/2310.14230v3)</sup>；这是一种低成本的后验采样技术，已被证明等价于变分推断。<sup>[1](https://dl.acm.org/doi/10.1145/3472291)</sup>

**多样性与混合函数**针对的是批量冗余。核心集方法把选择问题转化为特征空间的 k-Center 覆盖。<sup>[4](https://doi.org/10.48550/arxiv.1708.00489)</sup> BADGE 在模型最可能的标签下，以对最后一层的梯度幅值度量不确定性，再用 k-means++ 对这些梯度嵌入聚类，从而构造出多样的批次。<sup>[10](https://ar5iv.labs.arxiv.org/html/1906.03671)</sup> 学习损失方法在目标网络上挂一个小的损失预测模块，预测未标注输入上的损失，标出模型很可能预测错误的数据。<sup>[9](https://openaccess.thecvf.com/content_CVPR_2019/papers/Yoo_Learning_Loss_for_Active_Learning_CVPR_2019_paper.pdf)</sup>

## 实施流程

一次基于池的深度主动学习运行会反复执行同一个循环 <sup>[8](https://arxiv.org/html/2405.00334)</sup>：

1. 从一个小规模随机种子集开始，在当前标注集上训练网络。
2. 在未标注池上做推断，为每个样本计算采集函数 \( \alpha(\cdot) \)。
3. 选出大小为 \( b \) 的批次 \( Q^i \)；若判据只考虑不确定性，则采用兼顾多样性的规则。
4. 由神谕（即人类标注者，在[医学影像](https://www.edgepedia.org/zh/medical-imaging)中则是医师）为该批次打标签。<sup>[12](https://arxiv.org/html/2310.14230v3)</sup>
5. 把标签加入训练集并重训；预算 \( Q \) 用尽或达到目标性能时停止。

在 1000、3000、6000 个查询实例这三种批量规模下评估，对测试准确率或标注效率影响都不大。<sup>[6](https://arxiv.org/pdf/2106.15324v3.pdf)</sup> 在医学影像中，采用信息量函数加采样策略的批量模式池式选择是默认做法。<sup>[12](https://arxiv.org/html/2310.14230v3)</sup>

## 起源

先驱是经典方法。[不确定性采样](https://www.edgepedia.org/zh/uncertainty-sampling)查询学习器最不确定的实例，由戴维·D·刘易斯（David D. Lewis）与贾森·卡特利特（Jason Catlett）于 1994 年为监督学习发表 <sup>[13](https://doi.org/10.1016/b978-1-55860-335-6.50026-x)</sup>；委员会分歧与基于分歧的查询策略早于深度网络。基于池的采样——小标注集加大未标注池，按信息量贪心查询——是深度主动学习所继承的框架。<sup>[14](https://burrsettles.com/pub/settles.activelearning.pdf)</sup>

深度版本在 2017 年从两个方向到来。加尔、伊斯拉姆与加赫拉马尼在 DBAL 中把[贝叶斯深度学习](https://www.edgepedia.org/zh/bayesian-deep-learning)与主动学习结合起来用于高维图像数据，论文发表于 arXiv，在 MNIST 与 ISIC 2016 上演示了 MC-dropout 不确定性 <sup>[2](https://doi.org/10.48550/arxiv.1703.02910)</sup>；他们的不确定性估计建立在加尔与加赫拉马尼 2015 年发表于 arXiv 的结论之上：随机失活是一种贝叶斯近似。<sup>[15](https://doi.org/10.48550/arxiv.1506.02142)</sup> 同年，塞纳（Sener）与萨瓦雷塞（Savarese）把面向 CNN 的主动学习表述为核心集选择，同样发表于 arXiv，他们主张经典不确定性方法对 CNN 适用性有限，因为批量采样会在被选样本之间引入相关性。<sup>[4](https://doi.org/10.48550/arxiv.1708.00489)</sup> 整合紧随其后：波普（Pop）与菲洛普（Fulop）的 DEBAL（2018）<sup>[16](https://doi.org/10.48550/arxiv.1811.03897)</sup>、基尔施（Kirsch）、范阿默斯福特（van Amersfoort）与加尔的 BatchBALD（2019）<sup>[5](https://doi.org/10.48550/arxiv.1906.08158)</sup>、阿什（Ash）及其同事的 BADGE（2019）<sup>[10](https://ar5iv.labs.arxiv.org/html/1906.03671)</sup>，以及舒（Shui）及其同事提出的统一的、基于 Wasserstein 距离的 WAAL（2019）。<sup>[17](https://proceedings.mlr.press/v108/shui20a/shui20a.pdf)</sup> 多数综述把 DBAL 视为深度主动学习的开创性工作 <sup>[12](https://arxiv.org/html/2310.14230v3)</sup>；而 2024 年的一篇综述指出，更早的贝叶斯神经网络组合才开创了这条路线，DBAL 随后提出了面向高维图像的基于不确定性的查询策略。<sup>[8](https://arxiv.org/html/2405.00334)</sup>

## 变体

- **DBAL（MC-dropout BALD）。** 用 BALD 打分的贝叶斯 CNN；可视为由随机失活采样出的一组模型构成的集成。<sup>[7](https://ar5iv.labs.arxiv.org/html/2203.13450)</sup>
- **BatchBALD。** 通过估计 \( a_{\mathrm{BatchBALD}} = I(y_1, \dots, y_b; \omega \mid x_1, \dots, x_b, D_{\mathrm{train}}) \) 对批次整体打分，配合贪心的线性时间选择，最坏情况下是最优解的 \( 1 - 1/e \) 近似。<sup>[5](https://doi.org/10.48550/arxiv.1906.08158)</sup>
- **核心集。** 贪心 k-Center 选择，最大化对特征空间的覆盖。<sup>[4](https://doi.org/10.48550/arxiv.1708.00489)</sup>
- **DEBAL。** 把集成与 MC-dropout 结合，以解决变分推断中的模式坍缩——正是它使 DBAL 的预测过度自信 <sup>[16](https://doi.org/10.48550/arxiv.1811.03897)</sup>；多个分类器的集成给出的不确定性分数优于 MC-dropout。<sup>[7](https://ar5iv.labs.arxiv.org/html/2203.13450)</sup>
- **LLAL（学习损失）。** 与任务无关的损失预测模块；在图像分类、目标检测与人体姿态估计上验证，稳定优于随机、熵与核心集采样。<sup>[9](https://openaccess.thecvf.com/content_CVPR_2019/papers/Yoo_Learning_Loss_for_Active_Learning_CVPR_2019_paper.pdf)</sup>
- **BADGE。** 对梯度嵌入做 k-means++ 聚类，对冗余数据稳健。<sup>[10](https://ar5iv.labs.arxiv.org/html/1906.03671)</sup>
- **WAAL。** 通过 Wasserstein 距离显式地在不确定性与多样性之间权衡。<sup>[17](https://proceedings.mlr.press/v108/shui20a/shui20a.pdf)</sup>
- **O-MedAL。** 把在线主动深度学习用于医学图像分析。<sup>[18](https://doi.org/10.1002/widm.1353)</sup>

## 应用

在 MNIST 与 ISIC 2016 皮肤病变诊断上，DBAL 的 BALD 选择达到 5% 测试误差与 0.71/0.75 的 AUC，显著优于既有主动学习方法。<sup>[2](https://doi.org/10.48550/arxiv.1703.02910)</sup><sup> • </sup><sup>[3](https://www.mdpi.com/2076-3417/12/16/8103)</sup> 核心集方法在 CIFAR-10、CIFAR-100、SVHN 与 Caltech-256 上优于随机、经验不确定性以及 MC-dropout 基线，在弱监督模型上优势最大。<sup>[4](https://doi.org/10.48550/arxiv.1708.00489)</sup> 在自然语言处理中，用 DAL 选出的 10%–20% 标签就足以让 BERT 微调到全数据集水平。<sup>[8](https://arxiv.org/html/2405.00334)</sup> 医学影像是主要的落地领域，不过增益也可能反转：在 PneumoniaMNIST 上，变异比率策略的 AUBC 比随机低 4.5%，而 KCenter 达到 0.9189 准确率，用全量数据训练则为 0.9039。<sup>[7](https://ar5iv.labs.arxiv.org/html/2203.13450)</sup>

2023 年之后，基础模型改变了局面：使用 DINOv2 或 OpenCLIP 特征并配合简单的多样性度量时，朴素的不确定性查询（熵、边际、BALD）反而胜过那些显式引入多样性的策略。<sup>[19](https://ar5iv.labs.arxiv.org/html/2401.14555)</sup> PEAL 只训练 DINOv2 ViT-g/14 参数中 0.03% 的 LoRA 适配器，用 250 个（Featdist）或 200 个（熵）标签就在组织学图像上达到 90% 准确率，而随机选择需要 400 个。<sup>[20](https://arxiv.org/html/2406.09296v2)</sup> 如今大语言模型既做选择也做标注：马库斯·拜尔（Markus Bayer）2025 年发表于《技术、和平与安全》的 ActiveLLM，以完全无监督的方式让大语言模型评估不确定性与多样性。<sup>[21](https://doi.org/10.1007/978-3-658-48778-2_7)</sup>

## 局限与替代方案

**选择真的胜过随机吗？** 文献并不一致。一项大规模评估在配合数据增强时发现 2×–4× 的标注效率 <sup>[6](https://arxiv.org/pdf/2106.15324v3.pdf)</sup>；另一项工作重新实现了 19 种高被引方法，只发现 1%–3% 的 AUBC 增益，且各方法间无统计显著差异。<sup>[7](https://ar5iv.labs.arxiv.org/html/2203.13450)</sup> 在文本分类中，标准主动学习仅在 60.9% 的情形下胜过 i.i.d. 采样；只有 37.5% 的数据集迁移设置（采集模型与后继模型不同）胜过 i.i.d. 基线，因为采集到的数据集与采集模型相耦合。<sup>[22](https://arxiv.org/pdf/1807.04801.pdf)</sup>

**批量冗余与模式坍缩。** 直接取排名最高的样本会得到几乎相同的查询，因此批次必须既具信息量又具多样性。<sup>[14](https://burrsettles.com/pub/settles.activelearning.pdf)</sup> 在带高斯噪声的重复 MNIST 数字上，取前 \( b \) 个的 BALD 表现不如随机，而 BatchBALD 仍能保持良好表现。<sup>[5](https://doi.org/10.48550/arxiv.1906.08158)</sup>

**冷启动。** 当池本身多样、冗余度低时，主动选择在早期可能不如随机，且投入的选择成本无法收回。<sup>[3](https://www.mdpi.com/2076-3417/12/16/8103)</sup> 补救办法包括早期混入随机采样、用 MoCo 之类的自监督初始化 <sup>[3](https://www.mdpi.com/2076-3417/12/16/8103)</sup>，以及 ALPS——它用预训练语言模型的掩码语言建模损失来选取第一批样本。<sup>[8](https://arxiv.org/html/2405.00334)</sup>

**计算成本。** 核心集选择需要在未标注样本上构造一个大型距离矩阵 <sup>[17](https://proceedings.mlr.press/v108/shui20a/shui20a.pdf)</sup>；在 ImageNet 规模上，Coreset 与 BADGE 的内存开销高得无法承受，必须采用分区变体。<sup>[23](https://ar5iv.labs.arxiv.org/html/2111.12880)</sup> BALD 在大批量规模下需要数量大到难以处理的[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)样本。<sup>[6](https://arxiv.org/pdf/2106.15324v3.pdf)</sup>

**替代方案。** 半监督与自监督学习往往收益更多：在 25% 的 ImageNet 标签下，配合随机采样的 MoCo v2 预训练带来 18.15 个百分点的提升，而 VAAL 算法只带来 1.5 个百分点；在该规模上，流行的主动学习算法未能胜过随机。<sup>[23](https://ar5iv.labs.arxiv.org/html/2111.12880)</sup> 二者原则上互补：半监督学习为置信度高的样本打伪标签，主动学习则查询不确定的样本。<sup>[3](https://www.mdpi.com/2076-3417/12/16/8103)</sup>

## References

1. [A Survey of Deep Active Learning (Ren et al., ACM Computing Surveys)](https://dl.acm.org/doi/10.1145/3472291)
2. [Gal, Yarin, Islam, Riashat, Ghahramani, Zoubin (2017). Deep Bayesian Active Learning with Image Data. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1703.02910)
3. [Deep Active Learning for Computer Vision Tasks: Methodologies, Applications, and Challenges (Applied Sciences)](https://www.mdpi.com/2076-3417/12/16/8103)
4. [Sener, Ozan, Savarese, Silvio (2017). Active Learning for Convolutional Neural Networks: A Core-Set Approach. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1708.00489)
5. [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)
6. [Effective Evaluation of Deep Active Learning on Image Classification Tasks](https://arxiv.org/pdf/2106.15324v3.pdf)
7. [A Comparative Survey of Deep Active Learning (DeepAL+ toolkit)](https://ar5iv.labs.arxiv.org/html/2203.13450)
8. [A Survey on Deep Active Learning: Recent Advances and New Frontiers (2024)](https://arxiv.org/html/2405.00334)
9. [Learning Loss for Active Learning (CVPR 2019)](https://openaccess.thecvf.com/content_CVPR_2019/papers/Yoo_Learning_Loss_for_Active_Learning_CVPR_2019_paper.pdf)
10. [Deep Batch Active Learning by Diverse, Uncertain Gradient Lower Bounds (BADGE)](https://ar5iv.labs.arxiv.org/html/1906.03671)
11. [A Framework and Benchmark for Deep Batch Active Learning for Regression (JMLR 2023)](https://jmlr.org/papers/volume24/22-0937/22-0937.pdf)
12. [A comprehensive survey on deep active learning in medical image analysis](https://arxiv.org/html/2310.14230v3)
13. [David D. Lewis, Jason Catlett (1994). Heterogeneous Uncertainty Sampling for Supervised Learning. Elsevier eBooks.](https://doi.org/10.1016/b978-1-55860-335-6.50026-x)
14. [Active Learning Literature Survey (Settles, 2009/2010)](https://burrsettles.com/pub/settles.activelearning.pdf)
15. [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)
16. [Pop, Remus, Fulop, Patric (2018). Deep Ensemble Bayesian Active Learning : Addressing the Mode Collapse issue in Monte Carlo dropout via Ensembles. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1811.03897)
17. [Deep Active Learning: Unified and Principled Method for Query and Training (WAAL, ICML 2020)](https://proceedings.mlr.press/v108/shui20a/shui20a.pdf)
18. [Asim Smailagic and colleagues (2020). O‐MedAL: Online active deep learning for medical image analysis. Wiley Interdisciplinary Reviews Data Mining and Knowledge Discovery.](https://doi.org/10.1002/widm.1353)
19. [Revisiting Active Learning in the Era of Vision Foundation Models](https://ar5iv.labs.arxiv.org/html/2401.14555)
20. [Parameter-Efficient Active Learning for Foundational models (PEAL)](https://arxiv.org/html/2406.09296v2)
21. [Markus Bayer (2025). ActiveLLM: Large Language Model-based Active Learning for Textual Few-Shot Scenarios. Technology, peace and security.](https://doi.org/10.1007/978-3-658-48778-2_7)
22. [Practical Obstacles to Deploying Active Learning (EMNLP 2018)](https://arxiv.org/pdf/1807.04801.pdf)
23. [Active Learning at the ImageNet Scale](https://ar5iv.labs.arxiv.org/html/2111.12880)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: 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/deep-active-learning

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