# 自标注（机器学习）

自标注是一类半监督与无监督训练流程，模型为无标签数据分配标签（称为伪标签），然后像对待真实标签一样在这些标签上训练。<sup>[1](https://www.jair.org/index.php/jair/article/view/19656)</sup> 经典的自标注技术遵循迭代流程，通过接受模型自身的预测为正确来扩充标注集，分为自训练与协同训练两类。<sup>[2](https://link.springer.com/article/10.1007/s10115-013-0706-y)</sup> 朴素自训练在单个监督分类器自身最有信心的预测上重新训练该分类器<sup>[3](https://link.springer.com/article/10.1007/s10994-019-05855-6)</sup>；自标注方法超越了逐样本置信度，通过聚类、最优传输（在分布之间以最低成本搬运质量的数学框架）或图传播来全局分配标签，从而使标签分配本身成为一个优化问题。

| 关键事实 | 数值 |
|---|---|
| 核心循环 | 在有标签数据上训练，为无标签数据打伪标签，在并集上重新训练，迭代<sup>[2](https://link.springer.com/article/10.1007/s10115-013-0706-y)</sup> |
| SeLa 分配 | 带等分约束的最优传输，由 Sinkhorn-Knopp 求解；每次更新代价为 \( O(N \cdot K) \)，在 GPU 上于 ImageNet 上 2 分钟内收敛<sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup> |
| FixMatch，CIFAR-10 | 250 个标签下达到 94.93% 准确率；40 个标签（每类 4 个）下达到 88.61%<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> |
| Noisy Student，ImageNet | 使用 3 亿张无标签图像达到 88.4% top-1 准确率，比此前在 35 亿张弱标注 Instagram 图像上训练的最优结果高 2.0%<sup>[6](https://openaccess.thecvf.com/content_CVPR_2020/papers/Xie_Self-Training_With_Noisy_Student_Improves_ImageNet_Classification_CVPR_2020_paper.pdf)</sup> |
| 置信度阈值 | FixMatch 的 0.95 阈值给出最低误差；较小阈值损失超过 1.5% 准确率<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> |
| 主要失效模式 | 确认偏差：对错误伪标签过拟合，可通过 mixup 和每个小批次最少标注样本数来缓解<sup>[7](https://ar5iv.labs.arxiv.org/html/1908.02983)</sup> |

## 工作原理

三种机制生成伪标签。置信度阈值化仅在模型对弱增强图像的 softmax 分数较高时保留其预测，然后训练模型在同一图像的强增强版本上复现该标签。<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> 最优传输将标签分配视为全局问题：SeLa 最大化标签与输入索引之间的信息量，这将交叉熵最小化扩展为用快速 Sinkhorn-Knopp 变体求解的最优传输问题。<sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup> Sinkhorn 标签分配（SLA）在随机优化内部使用同样的机制，分配代价为 \( C_{ij}(\theta) = -\log p_{\theta}(j \mid x_i) \)。<sup>[8](https://arxiv.org/pdf/2102.08622)</sup> 图传播在由网络自身嵌入构建的最近邻图上直推式地推断伪标签，按基于熵的确定性对样本加权，而非依赖网络预测。<sup>[9](https://openaccess.thecvf.com/content_CVPR_2019/papers/Iscen_Label_Propagation_for_Deep_Semi-Supervised_Learning_CVPR_2019_paper.pdf)</sup>

在这些标签上训练之所以有效，原因与熵最小化相同：伪标签的经典深度学习表述被论证为等价于熵最小化，在低密度分离和聚类假设下增大决策间隔。<sup>[1](https://www.jair.org/index.php/jair/article/view/19656)</sup> SeLa 增加了等分约束，要求标签将数据划分为等大小的子集，以避免将所有点分配给同一标签的退化解。<sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup>

## 实施方法

实践者的循环包含五个阶段。在经典外循环自训练工作流中，首先在有标签集上训练监督分类器，然后为置信度分数超过阈值的无标签样本生成伪标签，扩充标注数据集并重新训练；FixMatch 等方法则在线生成伪标签，并在每个训练迭代内联合优化有标签和无标签损失。<sup>[10](https://arxiv.org/pdf/2202.12040)</sup> 第三，过滤或分配：FixMatch 使用固定阈值<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup>；SLA 用退火分配调度 \( \rho_t = (t-1)/(T-1) \) 替代手动阈值选择，优先处理最高置信度的预测<sup>[8](https://arxiv.org/pdf/2102.08622)</sup>；课程自训练在每个轮次按置信度对无标签数据排序，仅对前 \( k \)% 打伪标签，直到所有标签用尽。<sup>[1](https://www.jair.org/index.php/jair/article/view/19656)</sup> 第四，重新训练，理想情况下每轮重新初始化模型，相比微调至少提升 1%，因为限制了过往伪标签的残留影响。<sup>[11](https://ar5iv.labs.arxiv.org/html/2001.06001)</sup> 第五，迭代直到满足停止准则：所有无标签实例均已标注、达到固定迭代预算，或学习到的假设不再变化。<sup>[2](https://link.springer.com/article/10.1007/s10115-013-0706-y)</sup>

## 起源

Yuki Markus Asano、Christian Rupprecht 和 Andrea Vedaldi 在《通过同时聚类与表示学习的自标注》中提出了 SeLa，一种基于最优传输的自标注方法，该文于 2019 年发布，发表于 ICLR 2020。<sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup><sup> • </sup><sup>[12](https://github.com/yukimasano/self-label/)</sup> 它建立在 Mathilde Caron 及同事的《用于视觉特征无监督学习的深度聚类》（2018）之上，后者将交叉熵最小化与 K 均值聚类结合，但缺乏单一总体目标，仅通过实现选择来避免退化解。<sup>[13](https://doi.org/10.48550/arxiv.1807.05520)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup> 同一时期的相关工作包括不变信息聚类（IIC），一种用于无监督聚类的互信息目标，以及教师-学生自训练路线：Qizhe Xie 及同事的 Noisy Student 训练（2019）<sup>[14](https://doi.org/10.48550/arxiv.1911.04252)</sup>、David Berthelot 及同事的 MixMatch（2019）<sup>[15](https://doi.org/10.48550/arxiv.1905.02249)</sup>、Hieu Pham 及同事的 Meta Pseudo Labels（2020）<sup>[16](https://doi.org/10.48550/arxiv.2003.10580)</sup>，以及 Kihyuk Sohn 及同事的 FixMatch（NeurIPS 2020）。<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> 自训练本身远早于深度学习；综述将其描述为围绕监督分类器的迭代包装器。

## 变体

各变体的主要区别在于标签分配方式。FixMatch 将一致性正则化与固定置信度阈值结合。<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> Noisy Student 在无噪声教师的伪标签上训练一个更大、加噪的学生模型（RandAugment、dropout、随机深度），然后以学生为教师进行迭代。<sup>[6](https://openaccess.thecvf.com/content_CVPR_2020/papers/Xie_Self-Training_With_Noisy_Student_Improves_ImageNet_Classification_CVPR_2020_paper.pdf)</sup> MixMatch 使用对 \( K \) 种增强的锐化平均预测来打伪标签，然后用 MixUp 混合样本。<sup>[1](https://www.jair.org/index.php/jair/article/view/19656)</sup> FlexMatch 以课程伪标签扩展 FixMatch，按类别调整阈值——困难类别调低、简单类别调高——且无需额外前向传播。<sup>[1](https://www.jair.org/index.php/jair/article/view/19656)</sup> SLA 退火标签分配而非阈值化<sup>[8](https://arxiv.org/pdf/2102.08622)</sup>；CSA 仅对高置信度样本通过最优传输分配标签，用 top-1 与 top-2 分数之间的 Welch T 检验过滤，消除了预定义阈值。<sup>[17](https://arxiv.org/pdf/2206.05880v5.pdf)</sup> 基于图的标签传播从嵌入邻域推断标签。<sup>[9](https://openaccess.thecvf.com/content_CVPR_2019/papers/Iscen_Label_Propagation_for_Deep_Semi-Supervised_Learning_CVPR_2019_paper.pdf)</sup> SeLaVi 将自标注扩展到多模态视频<sup>[18](https://doi.org/10.48550/arxiv.2006.13662)</sup>，Suave 和 Daino 通过将监督交叉熵与聚类分配多任务化，把自监督方法 SwAV 和 DINO 转变为半监督学习器。<sup>[19](https://arxiv.org/html/2306.07483v1)</sup>

## 应用

[图像分类](https://www.edgepedia.org/zh/image-classification)是主要领域。FixMatch 在 CIFAR-10 上以 250 个标签达到 94.93%，以 40 个标签达到 88.61%。<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> Noisy Student 在完整 ImageNet 上达到 88.4% top-1，并将 ImageNet-A top-1 从 61.0% 提升至 83.7%。<sup>[6](https://openaccess.thecvf.com/content_CVPR_2020/papers/Xie_Self-Training_With_Noisy_Student_Improves_ImageNet_Classification_CVPR_2020_paper.pdf)</sup> SLA 在 CIFAR-10 上以 40 个标签达到 94.83% 平均准确率，与 FixMatch 的 250 标签结果持平。<sup>[8](https://arxiv.org/pdf/2102.08622)</sup> 在 CIFAR-100 上以 400、2,500 和 10,000 个标签，Suave 分别达到 64.6%、77.0% 和 81.6%，而 FixMatch 为 50.1%、71.4% 和 76.8%。<sup>[19](https://arxiv.org/html/2306.07483v1)</sup> 在图像之外，自训练是无监督域适应的标准工具，伪标注的目标样本被逐步加入源训练集<sup>[10](https://arxiv.org/pdf/2202.12040)</sup>；CSA 在多个表格基准上报告了相对于全监督学习约 6% 的提升，适用于增强和[前置任务](https://www.edgepedia.org/zh/pretext-task)不适用的情况。<sup>[17](https://arxiv.org/pdf/2206.05880v5.pdf)</sup> 基础模型改变了基线：仅使用有标签数据对视觉基础模型进行参数高效微调，往往即使没有无标签数据也超过传统半监督方法，而 V-PET 在单轮自训练中跨 [PEFT](https://www.edgepedia.org/zh/peft) 方法和骨干网络集成伪标签。<sup>[20](https://proceedings.neurips.cc/paper_files/paper/2025/file/558159930b584e7f137a1dcbd380d9fd-Paper-Conference.pdf)</sup>

## 局限与替代方案

确认偏差是核心失效模式：朴素伪标签对错误伪标签过拟合，当标注样本很少时伪标签项主导损失。<sup>[7](https://ar5iv.labs.arxiv.org/html/1908.02983)</sup> 级联错误雪球式累积，微小标注集的随机采样增加数据偏差。<sup>[10](https://arxiv.org/pdf/2202.12040)</sup> 软伪标签优于硬独热标签<sup>[7](https://ar5iv.labs.arxiv.org/html/1908.02983)</sup>，每轮重新初始化限制漂移。<sup>[11](https://ar5iv.labs.arxiv.org/html/2001.06001)</sup> 没有等分约束，基于聚类的分配会坍缩为单一标签。<sup>[4](https://ar5iv.labs.arxiv.org/html/1911.05371)</sup>

超参数敏感性显著。FixMatch 在小阈值下准确率下降超过 1.5%，增强顺序错误时准确率峰值 45% 后坍缩至 12%。<sup>[5](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)</sup> 移除 SLA 的退火使 CIFAR-10 40 标签误差从 5.17 ± 0.32% 升至 13.67 ± 1.83%。<sup>[8](https://arxiv.org/pdf/2102.08622)</sup> 深度网络校准不良，因此原始 softmax 分数是弱置信度度量；温度缩放和基于熵的选择是提出的补救措施<sup>[21](https://ar5iv.labs.arxiv.org/html/2301.07294)</sup>，将伪标签选择视为具有鲁棒效用函数的决策问题可带来显著准确率提升。<sup>[22](https://proceedings.mlr.press/v215/rodemann23a/rodemann23a.pdf)</sup> 固定阈值通常不如动态阈值。<sup>[10](https://arxiv.org/pdf/2202.12040)</sup> 近期方法直接针对这些弱点：SST 每个训练周期推导一次类别特定阈值，而非每次迭代更新<sup>[23](https://arxiv.org/pdf/2506.00467)</sup>；CG 将动态可控过滤与长尾数据的贝叶斯最优分类器构建相结合<sup>[24](https://papers.nips.cc/paper_files/paper/2025/file/abcd225747ec4a176a5ff59e56e0d2eb-Paper-Conference.pdf)</sup>；SelfPrompt 将视觉-语言模型的校准不良识别为错误伪标签的来源。<sup>[25](https://arxiv.org/html/2501.14148v2)</sup>

与替代方案比较：协同训练在彼此的置信预测上训练多个分类器，需要视图多样性<sup>[3](https://link.springer.com/article/10.1007/s10994-019-05855-6)</sup>；一致性正则化和基于对比或聚类的自监督预训练从无标签数据中学习而无需类别标签，混合流水线将二者结合，如 Suave 的多任务目标<sup>[19](https://arxiv.org/html/2306.07483v1)</sup> 和 ReSA 对编码器聚类特性的自引导利用。<sup>[26](https://proceedings.mlr.press/v267/weng25a.html)</sup>

## References

1. [A Review of Pseudo-Labeling for Computer Vision (Journal of Artificial Intelligence Research)](https://www.jair.org/index.php/jair/article/view/19656)
2. [Self-labeled techniques for semi-supervised learning: taxonomy, software and empirical study (Triguero et al., Knowledge and Information Systems, 2013)](https://link.springer.com/article/10.1007/s10115-013-0706-y)
3. [A survey on semi-supervised learning (van Engelen & Hoos, Machine Learning journal)](https://link.springer.com/article/10.1007/s10994-019-05855-6)
4. [Self-labelling via simultaneous clustering and representation learning (SeLa; Asano, Rupprecht, Vedaldi, ICLR 2020)](https://ar5iv.labs.arxiv.org/html/1911.05371)
5. [FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence (NeurIPS 2020)](https://proceedings.neurips.cc/paper/2020/file/06964dce9addb1c5cb5d6e3d9838f733-Paper.pdf)
6. [Self-Training With Noisy Student Improves ImageNet Classification (CVPR 2020)](https://openaccess.thecvf.com/content_CVPR_2020/papers/Xie_Self-Training_With_Noisy_Student_Improves_ImageNet_Classification_CVPR_2020_paper.pdf)
7. [Pseudo-Labeling and Confirmation Bias in Deep Semi-Supervised Learning (Arazo et al., IJCNN 2020; arXiv preprint 2019)](https://ar5iv.labs.arxiv.org/html/1908.02983)
8. [Sinkhorn Label Allocation: Semi-Supervised Classification via Annealed Self-Training (Tai, Bailis, Valiant, ICML 2021)](https://arxiv.org/pdf/2102.08622)
9. [Label Propagation for Deep Semi-Supervised Learning (Iscen et al., CVPR 2019)](https://openaccess.thecvf.com/content_CVPR_2019/papers/Iscen_Label_Propagation_for_Deep_Semi-Supervised_Learning_CVPR_2019_paper.pdf)
10. [A Survey on Self-Training Methods (arXiv 2202.12040)](https://arxiv.org/pdf/2202.12040)
11. [Curriculum Labeling: Revisiting Pseudo-Labeling for Semi-Supervised Learning (AAAI 2021)](https://ar5iv.labs.arxiv.org/html/2001.06001)
12. [yukimasano/self-label (official code repository)](https://github.com/yukimasano/self-label/)
13. [Caron, Mathilde and colleagues (2018). Deep Clustering for Unsupervised Learning of Visual Features. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1807.05520)
14. [Xie, Qizhe and colleagues (2019). Self-training with Noisy Student improves ImageNet classification. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1911.04252)
15. [Berthelot, David and colleagues (2019). MixMatch: A Holistic Approach to Semi-Supervised Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1905.02249)
16. [Pham, Hieu and colleagues (2020). Meta Pseudo Labels. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2003.10580)
17. [Confident Sinkhorn Allocation for Pseudo-Labeling (CSA)](https://arxiv.org/pdf/2206.05880v5.pdf)
18. [Asano, Yuki M. and colleagues (2020). Labelling unlabelled videos from scratch with multi-modal self-supervision. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2006.13662)
19. [Semi-supervised learning made simple with self-supervised clustering (Suave/Daino; Fini et al., 2023)](https://arxiv.org/html/2306.07483v1)
20. [Revisiting Semi-Supervised Learning in the Era of Foundation Models (V-PET, NeurIPS 2025)](https://proceedings.neurips.cc/paper_files/paper/2025/file/558159930b584e7f137a1dcbd380d9fd-Paper-Conference.pdf)
21. [Enhancing Self-Training Methods](https://ar5iv.labs.arxiv.org/html/2301.07294)
22. [In All Likelihoods: Robust Selection of Pseudo-Labeled Data (Rodemann et al., PMLR v215, 2023)](https://proceedings.mlr.press/v215/rodemann23a/rodemann23a.pdf)
23. [Self-training with Self-Adaptive Thresholding (SST)](https://arxiv.org/pdf/2506.00467)
24. [Keep It on a Leash: Controllable Pseudo-label Generation Towards Realistic Long-Tailed Semi-Supervised Learning (CPG, NeurIPS 2025)](https://papers.nips.cc/paper_files/paper/2025/file/abcd225747ec4a176a5ff59e56e0d2eb-Paper-Conference.pdf)
25. [SelfPrompt: Confidence-Aware Semi-Supervised Tuning for Robust Vision-Language Model Adaptation](https://arxiv.org/html/2501.14148v2)
26. [Clustering Properties of Self-Supervised Learning (ReSA, ICML 2025, PMLR v267)](https://proceedings.mlr.press/v267/weng25a.html)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/self-labeling-machine-learning

English original: https://www.edgepedia.org/self-labeling-machine-learning
