A Theoretical Analysis of Self-Supervised Learning for Vision Transformers

📄 arXiv: 2403.02233v3 📥 PDF

作者: Yu Huang, Zixin Wen, Yuejie Chi, Yingbin Liang

分类: cs.LG, math.OC, stat.ML

发布日期: 2024-03-04 (更新: 2025-02-05)

备注: Accepted by ICLR 2025


💡 一句话要点

提出理论分析以揭示自监督学习在视觉变换器中的表现差异

🎯 匹配领域: 支柱二:RL算法与架构 (RL & Architecture)

关键词: 自监督学习 视觉变换器 特征学习 掩码自编码器 对比学习 理论分析 计算机视觉

📋 核心要点

  1. 现有的自监督学习方法在理论理解上存在不足,尤其是在视觉变换器架构下的表现差异尚未得到充分解释。
  2. 论文通过建模视觉数据的全局与局部特征,分析了特征不平衡对训练动态的影响,提供了理论上的解释。
  3. 研究结果表明,掩码自编码器训练的视觉变换器能够同时学习全局和局部特征,而对比学习则主要集中于全局特征。

📝 摘要(中文)

自监督学习已成为计算机视觉的基石,主要分为基于重建的方法(如掩码自编码器)和判别性方法(如对比学习)。近期的实证观察表明,掩码自编码器和对比学习捕获了不同类型的表示:对比学习倾向于关注全局模式,而掩码自编码器则能同时捕获全局和细微的局部信息。尽管已有大量实证研究探讨这一差异,但理论理解仍然有限,特别是在视觉变换器架构上。本文通过建模视觉数据分布,考虑主导的全局特征和相对微小的局部特征,研究这些特征之间的不平衡对训练动态的影响。分析表明,掩码自编码器训练的视觉变换器能够有效学习全局和局部特征,而对比学习训练的视觉变换器则主要偏向全局特征。

🔬 方法详解

问题定义:本文旨在解决自监督学习方法(掩码自编码器与对比学习)在视觉变换器中的表现差异,现有研究对其理论理解不足。

核心思路:通过建模视觉数据的全局与局部特征,分析特征不平衡对训练动态的影响,以提供理论解释。

技术框架:研究采用了一层softmax的视觉变换器架构,使用梯度下降法分析在掩码自编码器和对比学习目标下的训练动态。

关键创新:论文的创新在于理论上揭示了掩码自编码器与对比学习在特征学习上的本质差异,特别是在全局与局部特征的捕获能力上。

关键设计:研究中考虑了全局特征与局部特征的比例,分析了不同程度的不平衡对模型学习效果的影响,提出了相应的训练动态分析方法。

📊 实验亮点

实验结果表明,掩码自编码器训练的视觉变换器在特征学习上表现优异,能够有效捕获全局和局部特征,而对比学习训练的视觉变换器则主要集中于全局特征。这一发现为理解不同自监督学习方法的特性提供了理论依据。

🎯 应用场景

该研究为自监督学习在计算机视觉中的应用提供了理论支持,尤其是在视觉变换器架构下的特征学习。其结果可为未来的模型设计与优化提供指导,推动自监督学习方法在更复杂任务中的应用,如图像分类、目标检测等。

📄 摘要(原文)

Self-supervised learning has become a cornerstone in computer vision, primarily divided into reconstruction-based methods like masked autoencoders (MAE) and discriminative methods such as contrastive learning (CL). Recent empirical observations reveal that MAE and CL capture different types of representations: CL tends to focus on global patterns, while MAE adeptly captures both global and subtle local information simultaneously. Despite a flurry of recent empirical investigations to shed light on this difference, theoretical understanding remains limited, especially on the dominant architecture vision transformers (ViTs). In this paper, to provide rigorous insights, we model the visual data distribution by considering two types of spatial features: dominant global features and comparatively minuscule local features, and study the impact of imbalance among these features. We analyze the training dynamics of one-layer softmax-based ViTs on both MAE and CL objectives using gradient descent. Our analysis shows that as the degree of feature imbalance varies, ViTs trained with the MAE objective effectively learn both global and local features to achieve near-optimal reconstruction, while the CL-trained ViTs favor predominantly global features, even under mild imbalance. These results provide a theoretical explanation for distinct behaviors of MAE and CL observed in empirical studies.