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

视觉Transformer的标记-标签对齐

Token-Label Alignment for Vision Transformers

Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Tsinghua University(清华大学);PhiGent Robotics(鉴智机器人)

Han Xiao, Wenzhao Zheng, Zheng Zhu, Jie Zhou, Jiwen Lu

摘要:

数据混合策略(例如,CutMix)已经显示出极大地提高卷积神经网络(CNN)性能的能力。他们混合两张图像作为训练的输入,并为它们分配具有相同比例的混合标签。虽然他们被证明是有效的视觉Transformer(ViTs),我们确定了一个令牌波动现象,抑制了潜在的数据混合策略。我们根据经验观察到,输入令牌的贡献随着前向传播而波动,这可能会在输出令牌中引起不同的混合比。因此,由原始数据混合策略计算的训练目标可能是不准确的,导致训练效率较低。为了解决这个问题,我们提出了一个标记-标签对齐(TL-Align)方法来跟踪转换后的标记和原始标记之间的对应关系,以维护每个标记的标签。我们在每一层重复使用计算的注意力,以实现有效的标记-标签对齐,只引入微不足道的额外训练成本。大量的实验表明,我们的方法提高了图像分类,语义分割,客观检测和迁移学习任务的性能。代码可从以下网址获得:https://github.com/Euphoria16/TL-Align。

英文摘要:

Data mixing strategies (e.g., CutMix) have shown the ability to greatly improve the performance of convolutional neural networks (CNNs). They mix two images as inputs for training and assign them with a mixed label with the same ratio. While they are shown effective for vision transformers (ViTs), we identify a token fluctuation phenomenon that has suppressed the potential of data mixing strategies. We empirically observe that the contributions of input tokens fluctuate as forward propagating, which might induce a different mixing ratio in the output tokens. The training target computed by the original data mixing strategy can thus be inaccurate, resulting in less effective training. To address this, we propose a token-label alignment (TL-Align) method to trace the correspondence between transformed tokens and the original tokens to maintain a label for each token. We reuse the computed attention at each layer for efficient token-label alignment, introducing only negligible additional training costs. Extensive experiments demonstrate that our method improves the performance of ViTs on image classification, semantic segmentation, objective detection, and transfer learning tasks. Code is available at: https://github.com/Euphoria16/TL-Align.

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

↑