arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.18042cs.CVcs.LG
收藏

可视化自监督视觉Transformer的损失景观

Visualizing the loss landscape of Self-supervised Vision Transformer

Electronics and Telecommunications Research Institute (ETRI)(电子与电信研究院);Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院)

Youngwan Lee, Jeffrey Ryan Willette, Jonghee Kim, Sung Ju Hwang

AI总结:

本文通过可视化损失景观,发现MAE训练的自监督ViT比监督ViT具有更平滑更宽的损失曲率,且EMA教师能扩大凸性区域加速收敛,首次从优化角度解释其泛化优势。

摘要:

掩码自编码器(MAE)作为一种代表性的自监督方法,因其在视觉Transformer上的掩码图像建模而受到关注。然而,尽管MAE展现出比从零开始的全监督训练更好的泛化能力,其原因尚未被探索。在另一项工作中,提出了重建一致掩码自编码器(RC-MAE),该方法将指数移动平均(EMA)教师形式的自蒸馏方案引入MAE,并已证明EMA教师在优化过程中执行条件梯度校正。为了进一步研究MAE训练的自监督ViT(MAE-ViT)泛化能力更好的原因,以及从优化角度探讨RC-MAE梯度校正的效果,我们可视化了由MAE和RC-MAE训练的自监督视觉Transformer的损失景观,并与监督ViT(Sup-ViT)进行比较。与以往基于分类任务损失的神经网络损失景观可视化不同,我们通过计算预训练任务损失来可视化ViT的损失景观。通过损失景观的视角,我们发现了两个有趣的观察:(1)MAE-ViT的整体损失曲率比Sup-ViT更平滑且更宽。(2)EMA教师使MAE在预训练和线性探测中都能扩大凸性区域,从而加速收敛。据我们所知,这项工作首次通过损失景观的视角研究自监督ViT。

英文摘要:

The Masked autoencoder (MAE) has drawn attention as a representative self-supervised approach for masked image modeling with vision transformers. However, even though MAE shows better generalization capability than fully supervised training from scratch, the reason why has not been explored. In another line of work, the Reconstruction Consistent Masked Auto Encoder (RC-MAE), has been proposed which adopts a self-distillation scheme in the form of an exponential moving average (EMA) teacher into MAE, and it has been shown that the EMA-teacher performs a conditional gradient correction during optimization. To further investigate the reason for better generalization of the self-supervised ViT when trained by MAE (MAE-ViT) and the effect of the gradient correction of RC-MAE from the perspective of optimization, we visualize the loss landscapes of the self-supervised vision transformer by both MAE and RC-MAE and compare them with the supervised ViT (Sup-ViT). Unlike previous loss landscape visualizations of neural networks based on classification task loss, we visualize the loss landscape of ViT by computing pre-training task loss. Through the lens of loss landscapes, we find two interesting observations: (1) MAE-ViT has a smoother and wider overall loss curvature than Sup-ViT. (2) The EMA-teacher allows MAE to widen the region of convexity in both pretraining and linear probing, leading to quicker convergence. To the best of our knowledge, this work is the first to investigate the self-supervised ViT through the lens of the loss landscape.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑