# 无监督表示学习

无监督表示学习训练模型将无标签数据转换为对后续预测任务有用的特征表示，而不依赖任务特定的标签。自监督学习（SSL）是其现代主导形式，属于无监督学习的一个子集，从无标签数据中学习判别性特征，其动机在于收集和标注数据的费用与时间成本。<sup>[1](https://dl.acm.org/doi/10.1109/TPAMI.2024.3415112)</sup> 其输出是一个训练好的编码器，记作 \( f_{\theta} \)；辅助的投影网络和预测网络仅在训练期间使用，之后即被丢弃，因此只有编码器服务于下游任务。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup> 表示通过在有标签任务上微调编码器，或在冻结特征上训练一个简单的读出层来迁移；当预训练拟合良好时，只需精调少数参数。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup>

| 关键事实 | 数值 |
|---|---|
| 产出什么 | 一个训练好的编码器 \( f_{\theta} \)；投影头和预测头在训练后被丢弃<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup> |
| 主要训练目标 | 重建、掩码预测、对比判别、聚类、教师-学生<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup> |
| SimCLR 线性探针 | ImageNet top-1 准确率 76.5%，相对此前最优结果提升 7%，与有监督 ResNet-50 持平<sup>[4](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)</sup> |
| 标签效率 | 仅用 1% 标签微调时 ImageNet top-5 准确率 85.8%，仅用百分之一的标签超越 AlexNet<sup>[4](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)</sup> |
| 迁移与有监督预训练的比较 | MoCo 预训练在 PASCAL VOC、COCO 等数据集的 7 个检测/分割任务上击败了其有监督对应版本<sup>[5](https://openaccess.thecvf.com/content_CVPR_2020/papers/He_Momentum_Contrast_for_Unsupervised_Visual_Representation_Learning_CVPR_2020_paper.pdf)</sup> |
| 语音结果 | Wav2Vec 2.0：53k 小时无标签语音，660 GPU 天的 SSL 计算，仅用十分之一的有监督数据超越此前 ASR 最优结果<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> |
| 计算成本 | 所引综述报告，其研究的特定视觉、语音和文本方法预训练计算量在数百 GPU 天的量级<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> |

## 工作原理

所有变体共享一个理念：从数据本身构造训练信号，迫使编码器捕捉日后可迁移到有标签任务的结构。重建目标要求模型重建其输入。自编码器将输入通过一个瓶颈编码器和一个重建它的预测器进行映射，最小化一个批次上的平均重建距离，

\[ L^{AE}_{\theta,\psi} = \frac{1}{n} \sum_{i=1}^{n} d_{\text{se}}(\hat{x}_{i}, x_{i}) \]

其中 \( \hat{x}_{i} \) 是输入 \( x_{i} \) 的重建。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup> 掩码预测方法将图像分割为不重叠的图块，随机掩蔽一个子集，并重建缺失的图块；极高的掩蔽比例（例如 75%）对于防止模型利用空间冗余并迫使形成高层特征至关重要。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup>

对比目标通过最大化正对之间的一致性并最小化负对之间的一致性，学习一个低维表示 \( h = f(x; \theta) \in \mathbb{R}^{r} \)。<sup>[6](https://www.jmlr.org/papers/volume24/21-1501/21-1501.pdf)</sup> 在 [SimCLR](https://www.edgepedia.org/zh/simclr) 中，正对是同一图像的两个不同增强视图（随机裁剪并缩放加翻转、颜色失真、[高斯模糊](https://www.edgepedia.org/zh/gaussian-blur)），在潜在空间中通过对比损失进行比较。<sup>[4](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)</sup> 基于聚类的方法通过对表示进行聚类来构造类别标签，然后在这些标签上训练分类器；教师-学生方法使用两个网络，其中一个从另一个中提取知识。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup>

## 实现方法

经典方案将 \( h_{0}(x) = x \) 设为原始输入，然后对每一层 \( l \)，在前一层的表示上训练一个无监督模型，产生 \( h_{l}(x) = R_{l}(h_{l-1}(x)) \)；用于有监督场景时，将学到的各层组合起来，再用标签微调。<sup>[7](https://proceedings.mlr.press/v27/bengio12a/bengio12a.pdf)</sup> 现代实践遵循同样的骨架：在大型无标签语料上用 pretext 目标预训练编码器，丢弃投影网络和预测网络，只保留 \( f_{\theta} \)。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup>

为了评估无任务标签下学到的表示，线性评估协议在冻结编码器之上用有标签下游数据训练一个线性分类器，测试准确率即表示质量的代理指标。<sup>[4](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)</sup> 一种常见的替代方案是在下游任务上微调。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC9029566/)</sup>

## 起源

2006 年发表的一种贪心逐层无监督预训练方案，一次训练一层表示，然后用标签微调组合后的模型；它确立了无标签预训练可以先于有监督学习。<sup>[7](https://proceedings.mlr.press/v27/bengio12a/bengio12a.pdf)</sup> 自编码器以输入本身作为构造的目标，瓶颈编码器馈入重建预测器，可视为自监督学习的早期实例。<sup>[9](https://link.springer.com/article/10.1007/s10994-024-06708-7)</sup> 在文本领域，word2vec 通过给定邻居预测中心词（称为连续词袋，CBOW）或给定中心词预测邻居（称为跳元，skip-gram）来产生固定的词嵌入。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup>

## 变体

自编码器家族包括去噪自编码器、堆叠[去噪自编码器](https://www.edgepedia.org/zh/denoising-autoencoder)、收缩自编码器和变分自编码器（VAE）。<sup>[2](https://ar5iv.labs.arxiv.org/html/2308.11455)</sup> [掩码图像建模](https://www.edgepedia.org/zh/masked-image-modeling)有两种主要的已发表形式：基于像素的掩码自编码器（MAE），由[何恺明](https://www.edgepedia.org/zh/kaiming-he)及其同事于 2021 年在 arXiv 上提出，展示了用于下游任务微调的强大初始化，<sup>[10](https://doi.org/10.48550/arxiv.2111.06377)</sup> 以及 SimMIM，一个由谢振达及其同事于 2021 年在 arXiv 上提出的掩码图像建模简单框架。<sup>[11](https://doi.org/10.48550/arxiv.2111.09886)</sup>

在对比方法中，MoCo 由何恺明及其同事于 2019 年在 arXiv 上提出，将对比学习框架化为字典查找，用队列和动量平均编码器构建动态字典，使用实例判别 pretext 任务，其中，如果查询与键是同一图像的编码视图，两者便匹配。<sup>[5](https://openaccess.thecvf.com/content_CVPR_2020/papers/He_Momentum_Contrast_for_Unsupervised_Visual_Representation_Learning_CVPR_2020_paper.pdf)</sup> [BYOL](https://www.edgepedia.org/zh/byol) 由让-巴斯蒂安·格里尔及其同事于 2020 年在 arXiv 上提出，在不使用负对的情况下达到比最优对比方法更高的性能，迭代地将网络输出自举为目标。<sup>[12](https://proceedings.neurips.cc/paper_files/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Paper.pdf)</sup> Barlow Twins 由尤雷·兹邦塔尔及其同事于 2021 年在 arXiv 上提出，以冗余缩减为目标，<sup>[13](https://doi.org/10.48550/arxiv.2103.03230)</sup> VICReg 由阿德里安·巴尔德斯、让·蓬斯和[杨立昆](https://www.edgepedia.org/zh/yann-lecun)于 2021 年在 arXiv 上提出，使用方差-不变性-协方差正则化。<sup>[14](https://doi.org/10.48550/arxiv.2105.04906)</sup> iBOT 由周敬浩及其同事于 2021 年在 arXiv 上提出，将判别损失与掩码重建目标相结合。<sup>[15](https://doi.org/10.48550/arxiv.2111.07832)</sup> DINOv2 由马克西姆·奥卡布及其同事于 2023 年在 arXiv 上提出，无监督地学习鲁棒的视觉特征，<sup>[16](https://doi.org/10.48550/arxiv.2304.07193)</sup> 该谱系延续至 DINOv3。<sup>[17](https://arxiv.org/abs/2508.10104)</sup> 基于聚类的方法包括 DeepCluster 和 SwAV。<sup>[18](https://openaccess.thecvf.com/content/CVPR2022/papers/Gwilliam_Beyond_Supervised_vs._Unsupervised_Representative_Benchmarking_and_Analysis_of_Image_CVPR_2022_paper.pdf)</sup> 一种更新的范式 JEPA（联合嵌入预测架构）预测学习到的潜在空间而非像素空间，从而产生更强大、更高层的特征，<sup>[17](https://arxiv.org/abs/2508.10104)</sup> 一篇 NeurIPS 2025 论文提供了理论证据，表明潜在空间预测相比重建具有可证明的优势。<sup>[19](https://proceedings.neurips.cc/paper_files/paper/2025/file/1fa81061d6d4d7fea88f803d89ae9d6e-Paper-Conference.pdf)</sup>

## 应用

自监督学习已成为现代机器学习的主导范式，驱动着通过在海量文本语料上预训练获得通用表示的大语言模型，尽管计算机视觉的进展落后于此。<sup>[20](https://ai.fb.com/blog/dinov3-self-supervised-vision-model/)</sup> 在视觉领域，SimCLR 的线性探针结果——ImageNet top-1 76.5% / top-5 93.2% 准确率——在 ResNet-50 规模的模型上与有监督学习持平。<sup>[21](https://research.google/blog/advancing-self-supervised-and-semi-supervised-learning-with-simclr/)</sup> MoCo 预训练可迁移到检测和分割，在 [PASCAL VOC](https://www.edgepedia.org/zh/pascal-voc)、COCO 等数据集的 7 个任务上超越有监督预训练。<sup>[5](https://openaccess.thecvf.com/content_CVPR_2020/papers/He_Momentum_Contrast_for_Unsupervised_Visual_Representation_Learning_CVPR_2020_paper.pdf)</sup> 在语音领域，[Wav2Vec 2.0](https://www.edgepedia.org/zh/wav2vec-2-0) 将 transformer 与掩码预测 SSL 结合，在 53k 小时无标签音频上训练，仅用十分之一的有监督数据超越此前 ASR 最优结果，并以百分之一的有监督数据接近该结果。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> 在 NLP 领域，GPT-3 表明巨大的 SSL 模型可以通过少样本适应而非完全微调达到有竞争力的性能，尤其是在语言建模和问答上。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> 在多模态方面，Gemini Embedding 2 将视频、音频、图像和文本嵌入统一表示空间，在多任务多阶段设置中使用带批内负样本的噪声对比估计损失训练；它支持检索、聚类、分类、排序、RAG、推荐和搜索。<sup>[22](https://arxiv.org/abs/2605.27295)</sup>

## 局限与替代方案

坍缩是对比学习的特征性失败模式：模型将所有输入数据映射到同一表示。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC9029566/)</sup> 对策因家族而异：MoCo 使用对正负样本对区别对待的损失，而 BYOL 和 SimSiam 采用停止梯度策略和额外的预测器来抵消负对的缺失。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC9029566/)</sup>

计算是第二道障碍：视觉、语音和文本领域的最优方法分别在 ImageNet、LibriSpeech 和 [Wikipedia](https://www.edgepedia.org/zh/wikipedia) 语料上预训练所需的计算量在数百 GPU 天的量级。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> 迁移并非普遍适用：对于与 ImageNet 差异很大的数据，如高光谱影像或三维 MRI，可能需要领域特定的预训练。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup> 相对于有监督预训练，自监督方法现在在正面交锋中持平或胜出：SimCLR 以线性探针与有监督 ResNet-50 持平<sup>[4](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)</sup>，MoCo 赢得 7 个迁移任务。<sup>[5](https://openaccess.thecvf.com/content_CVPR_2020/papers/He_Momentum_Contrast_for_Unsupervised_Visual_Representation_Learning_CVPR_2020_paper.pdf)</sup> 表示质量也可预测地扩展：已报告的结果表明它是无标签预训练数据量的对数函数。<sup>[3](https://ar5iv.labs.arxiv.org/html/2110.09327)</sup>

## References

1. [A Survey on Self-Supervised Learning: Algorithms, Applications, and Future Trends](https://dl.acm.org/doi/10.1109/TPAMI.2024.3415112)
2. [A Survey on Self-Supervised Representation Learning](https://ar5iv.labs.arxiv.org/html/2308.11455)
3. [Self-Supervised Representation Learning: Introduction, Advances and Challenges](https://ar5iv.labs.arxiv.org/html/2110.09327)
4. [A Simple Framework for Contrastive Learning of Visual Representations (SimCLR)](https://proceedings.mlr.press/v119/chen20j/chen20j.pdf)
5. [Momentum Contrast for Unsupervised Visual Representation Learning (MoCo)](https://openaccess.thecvf.com/content_CVPR_2020/papers/He_Momentum_Contrast_for_Unsupervised_Visual_Representation_Learning_CVPR_2020_paper.pdf)
6. [The Power of Contrast for Feature Learning: A Theoretical Analysis](https://www.jmlr.org/papers/volume24/21-1501/21-1501.pdf)
7. [Deep Learning of Representations for Unsupervised and Transfer Learning](https://proceedings.mlr.press/v27/bengio12a/bengio12a.pdf)
8. [Survey on Self-Supervised Learning: Auxiliary Pretext Tasks and Contrastive Learning Methods in Imaging](https://pmc.ncbi.nlm.nih.gov/articles/PMC9029566/)
9. [A survey on self-supervised methods for visual representation learning](https://link.springer.com/article/10.1007/s10994-024-06708-7)
10. [He, Kaiming and colleagues (2021). Masked Autoencoders Are Scalable Vision Learners. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2111.06377)
11. [Xie, Zhenda and colleagues (2021). SimMIM: A Simple Framework for Masked Image Modeling. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2111.09886)
12. [Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning (BYOL)](https://proceedings.neurips.cc/paper_files/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Paper.pdf)
13. [Zbontar, Jure and colleagues (2021). Barlow Twins: Self-Supervised Learning via Redundancy Reduction. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2103.03230)
14. [Bardes, Adrien, Ponce, Jean, LeCun, Yann (2021). VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2105.04906)
15. [Zhou, Jinghao and colleagues (2021). iBOT: Image BERT Pre-Training with Online Tokenizer. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2111.07832)
16. [Oquab, Maxime and colleagues (2023). DINOv2: Learning Robust Visual Features without Supervision. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2304.07193)
17. [DINOv3](https://arxiv.org/abs/2508.10104)
18. [Beyond Supervised vs. Unsupervised: Representative Benchmarking and Analysis of Image Representation Learning](https://openaccess.thecvf.com/content/CVPR2022/papers/Gwilliam_Beyond_Supervised_vs._Unsupervised_Representative_Benchmarking_and_Analysis_of_Image_CVPR_2022_paper.pdf)
19. [Joint-Embedding vs Reconstruction: Provable Benefits of Latent Space Prediction for Self-Supervised Learning](https://proceedings.neurips.cc/paper_files/paper/2025/file/1fa81061d6d4d7fea88f803d89ae9d6e-Paper-Conference.pdf)
20. [DINOv3: Self-supervised learning for vision at unprecedented scale (Meta AI blog)](https://ai.fb.com/blog/dinov3-self-supervised-vision-model/)
21. [Advancing Self-Supervised and Semi-Supervised Learning with SimCLR (Google AI Blog)](https://research.google/blog/advancing-self-supervised-and-semi-supervised-learning-with-simclr/)
22. [Gemini Embedding 2: A Native Multimodal Embedding Model from Gemini](https://arxiv.org/abs/2605.27295)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/unsupervised-representation-learning

English original: https://www.edgepedia.org/unsupervised-representation-learning
