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

超越随机增强:使用困难视图进行预训练

Beyond Random Augmentations: Pretraining with Hard Views

University of Freiburg(弗莱堡大学);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分所)

Fabio Ferreira, Ivo Rapant, Jörg K. H. Franke, Frank Hutter

AI总结:

本文提出困难视图预训练(HVP)策略,通过对抗性选择高损失视图对来增强自监督学习,在ImageNet-1k上显著提升多种SSL方法和ViT模型的性能。

摘要:

自监督学习(SSL)方法通常依赖随机图像增强(即视图)来使模型对不同变换具有不变性。我们假设,基于传统随机视图采样的预训练流程可以通过显式选择有利于学习进程的视图来增强其效果。一种简单而有效的方法是选择能产生更高损失的困难视图。在本文中,我们提出了困难视图预训练(Hard View Pretraining,HVP),这是一种无需学习的策略,通过在SSL预训练期间让模型接触更具挑战性的样本来扩展随机视图生成。HVP包含以下迭代步骤:1)随机采样多个视图,并将每个视图通过预训练模型进行前向传播;2)创建由两个视图组成的配对并计算其损失;3)根据当前模型状态,对抗性地选择产生最高损失的配对;4)使用所选配对执行反向传播。与现有的困难视图文献相比,我们是首个在大规模上证明困难视图预训练有效性的工作,特别是在完整的ImageNet-1k数据集上进行训练,并在多种SSL方法、ConvNet和ViT上进行评估。结果表明,HVP在DINO ViT-B/16上达到了新的最优水平,线性评估准确率达到78.8%(提升了0.6%),并且在100和300轮预训练中均获得1%的一致提升,同时在DINO、SimSiam、iBOT和SimCLR的迁移任务中也取得了类似的改进。

英文摘要:

Self-Supervised Learning (SSL) methods typically rely on random image augmentations, or views, to make models invariant to different transformations. We hypothesize that the efficacy of pretraining pipelines based on conventional random view sampling can be enhanced by explicitly selecting views that benefit the learning progress. A simple yet effective approach is to select hard views that yield a higher loss. In this paper, we propose Hard View Pretraining (HVP), a learning-free strategy that extends random view generation by exposing models to more challenging samples during SSL pretraining. HVP encompasses the following iterative steps: 1) randomly sample multiple views and forward each view through the pretrained model, 2) create pairs of two views and compute their loss, 3) adversarially select the pair yielding the highest loss according to the current model state, and 4) perform a backward pass with the selected pair. In contrast to existing hard view literature, we are the first to demonstrate hard view pretraining's effectiveness at scale, particularly training on the full ImageNet-1k dataset, and evaluating across multiple SSL methods, ConvNets, and ViTs. As a result, HVP sets a new state-of-the-art on DINO ViT-B/16, reaching 78.8% linear evaluation accuracy (a 0.6% improvement) and consistent gains of 1% for both 100 and 300 epoch pretraining, with similar improvements across transfer tasks in DINO, SimSiam, iBOT, and SimCLR.

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

↑