arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.15006cs.CV
收藏

有效的视觉Transformer培训:以数据为中心的观点

Effective Vision Transformer Training: A Data-Centric Perspective

Macau University of Science and Technology(澳门科技大学);Alibaba Group(阿里巴巴集团);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学)

Benjia Zhou, Pichao Wang, Jun Wan, Yanyan Liang, Fan Wang

摘要:

与卷积神经网络(CNN)相比,视觉Transformer(ViTs)已经显示出有前途的性能,但ViTs的训练比CNN困难得多。本文定义了动态数据比例(DDP)和知识同化率(KAR)等指标来考察训练过程,并将其分为形成、成长和探索三个阶段。特别是,在训练的最后阶段,我们观察到只有一小部分训练样本用于优化模型。考虑到ViTs对数据的渴求,我们提出了一个简单但重要的问题:是否有可能在训练的每个阶段提供丰富的“有效”训练样本?为了解决这个问题,我们需要解决两个关键问题,即\ie,如何衡量单个训练样本的“有效性”,以及如何在样本用完时系统地生成足够数量的"有效“样本。为了回答第一个问题,我们发现训练样本的“难度”可以作为衡量训练样本“有效性”的指标。为了解决第二个问题,我们建议在这些进化阶段动态调整训练数据的“难度”分布。为了实现这两个目的,我们提出了一种新的以数据为中心的ViT训练框架,以动态测量训练样本的“难度”,并在不同的训练阶段为模型生成“有效”样本。此外,为了进一步扩大“有效”样本的数量,并减轻过度拟合问题,在后期训练阶段的ViTs,我们提出了一个补丁级擦除策略称为PatchErasing。大量的实验证明了所提出的以数据为中心的ViT训练框架和技术的有效性。

英文摘要:

Vision Transformers (ViTs) have shown promising performance compared with Convolutional Neural Networks (CNNs), but the training of ViTs is much harder than CNNs. In this paper, we define several metrics, including Dynamic Data Proportion (DDP) and Knowledge Assimilation Rate (KAR), to investigate the training process, and divide it into three periods accordingly: formation, growth and exploration. In particular, at the last stage of training, we observe that only a tiny portion of training examples is used to optimize the model. Given the data-hungry nature of ViTs, we thus ask a simple but important question: is it possible to provide abundant ``effective'' training examples at EVERY stage of training? To address this issue, we need to address two critical questions, \ie, how to measure the ``effectiveness'' of individual training examples, and how to systematically generate enough number of ``effective'' examples when they are running out. To answer the first question, we find that the ``difficulty'' of training samples can be adopted as an indicator to measure the ``effectiveness'' of training samples. To cope with the second question, we propose to dynamically adjust the ``difficulty'' distribution of the training data in these evolution stages. To achieve these two purposes, we propose a novel data-centric ViT training framework to dynamically measure the ``difficulty'' of training samples and generate ``effective'' samples for models at different training stages. Furthermore, to further enlarge the number of ``effective'' samples and alleviate the overfitting problem in the late training stage of ViTs, we propose a patch-level erasing strategy dubbed PatchErasing. Extensive experiments demonstrate the effectiveness of the proposed data-centric ViT training framework and techniques.

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

↑