Skip to main content
QUICK REVIEW

[论文解读] Objectives Matter: Understanding the Impact of Self-Supervised Objectives on Vision Transformer Representations

Shashank Shekhar, Florian Bordes|arXiv (Cornell University)|Apr 25, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 3
一句话总结

本文研究了为何使用联合嵌入(JE)目标(如 MoCo-V3 和 DINO)训练的自监督视觉变换器(ViTs)在图像分类的线性探测迁移中优于使用重建(REC)目标(如 MAE)训练的模型。研究发现,JE 特征在不同模型之间更相似,且类别判别性信息集中于最终的 CLS token;而 REC 模型则将此类信息分布在各层之间,需经过微调才能实现有效迁移。微调过程重新组织了 REC 表示,使其与 JE 式的不变性及分层信息分布对齐。

ABSTRACT

Joint-embedding based learning (e.g., SimCLR, MoCo, DINO) and reconstruction-based learning (e.g., BEiT, SimMIM, MAE) are the two leading paradigms for self-supervised learning of vision transformers, but they differ substantially in their transfer performance. Here, we aim to explain these differences by analyzing the impact of these objectives on the structure and transferability of the learned representations. Our analysis reveals that reconstruction-based learning features are significantly dissimilar to joint-embedding based learning features and that models trained with similar objectives learn similar features even across architectures. These differences arise early in the network and are primarily driven by attention and normalization layers. We find that joint-embedding features yield better linear probe transfer for classification because the different objectives drive different distributions of information and invariances in the learned representation. These differences explain opposite trends in transfer performance for downstream tasks that require spatial specificity in features. Finally, we address how fine-tuning changes reconstructive representations to enable better transfer, showing that fine-tuning re-organizes the information to be more similar to pre-trained joint embedding models.

研究动机与目标

  • 理解为何基于联合嵌入(JE)和重建(REC)的自监督学习方法在视觉变换器中产生不同的迁移性能。
  • 分析不同 SSL 目标如何塑造 ViT 各层中学习表示的结构与可访问性。
  • 研究为何 REC 模型在无微调情况下线性探测表现不佳,尽管其预训练效果强大。
  • 考察微调如何重组 REC 表示以提升下游迁移性能。
  • 比较 JE 与 REC 模型在微调过程中参数更新的相对效率。

提出的方法

  • 使用 16x16 图像块分块方式,在 ImageNet 上对比了基于 JE(MoCo-V3、DINO)和 REC(MAE)目标训练的预训练 ViT-Base 模型。
  • 采用表示相似性分析比较各层之间的特征,发现差异在早期出现,并集中于 LayerNorm 和多头自注意力层。
  • 在最终 CLS token 和中间层特征上训练线性探测器,以评估分类任务中信息的可访问性。
  • 应用表示对比解耦建模(RCDM)以可视化微调过程中 CLS 特征所学习的不变性。
  • 通过注意力层参数的相对位移测量微调效率,量化参数空间中的路径效率。
  • 可视化并量化 REC 模型在微调前后各层间信息分布的变化。

实验结果

研究问题

  • RQ1为何基于 JE 的 ViT 在线性探测中取得比基于 REC 的 ViT 更高的准确率?
  • RQ2JE 与 REC 模型在各网络层中的结构与表示差异如何体现?
  • RQ3为何 REC 模型在无微调情况下迁移表现不佳,尽管其预训练效果强大?
  • RQ4微调如何重组 REC 表示以提升可迁移性?
  • RQ5JE 模型与 REC 模型在微调过程中参数更新的相对效率如何?

主要发现

  • 即使在不同架构之间,JE 表示在不同模型间也显著更相似,而 REC 表示则不然,且差异在网络早期即显现。
  • 表示差异的主要驱动因素是 LayerNorm 和多头自注意力层,它们塑造了不变性与信息分布的形态。
  • JE 模型将所有类别判别性信息集中于最终的 CLS token,从而实现高线性探测准确率;而 REC 模型则将此类信息分布在多个层中。
  • 在预训练 REC 模型的中间层上训练线性探测器可提升迁移性能,表明相关信息虽可访问,但未集中于最终层。
  • 微调使 REC 表示发生重组,使类别判别性信息集中于最终 CLS token,从而提升特征的线性可解码性。
  • 微调过程中,REC 模型在参数空间中的路径更高效(相对位移更低),表明其参数更新收敛速度更快。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。