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

所有代币都很重要:用于训练更好的视觉Transformer的代币标签

All Tokens Matter: Token Labeling for Training Better Vision Transformers

National University of Singapore(新加坡国立大学);ByteDance(字节跳动)

Zihang Jiang, Qibin Hou, Li Yuan, Daquan Zhou, Yujun Shi, Xiaojie Jin, Anran Wang, Jiashi Feng

摘要:

在本文中,我们提出了标记-一个新的训练目标,训练高性能的视觉Transformer(ViTs)。与计算额外可训练类令牌上的分类损失的ViTs的标准训练目标不同,我们提出的方法利用所有图像块令牌以密集的方式计算训练损失。具体来说,令牌标记重新制定的图像分类问题到多个令牌级的识别问题,并分配每个补丁令牌与机器注释器生成的一个单独的位置特定的监督。实验表明,令牌标记可以清楚地和一致地提高各种ViT模型的性能在很宽的频谱。以一个具有26 M可学习参数的视觉Transformer为例,通过标记,该模型在ImageNet上可以达到84.4%的Top-1准确率。通过将模型大小略微扩展到150 M,结果可以进一步增加到86.4%,从而提供先前模型(250 M+)中的最小尺寸模型,达到86%。我们还表明,令牌标记可以明显提高预训练模型在具有密集预测的下游任务上的泛化能力,例如语义分割。我们的代码和所有培训细节将在https://github.com/zihangJiang/TokenLabeling上公开。

英文摘要:

In this paper, we present token labeling -- a new training objective for training high-performance vision transformers (ViTs). Different from the standard training objective of ViTs that computes the classification loss on an additional trainable class token, our proposed one takes advantage of all the image patch tokens to compute the training loss in a dense manner. Specifically, token labeling reformulates the image classification problem into multiple token-level recognition problems and assigns each patch token with an individual location-specific supervision generated by a machine annotator. Experiments show that token labeling can clearly and consistently improve the performance of various ViT models across a wide spectrum. For a vision transformer with 26M learnable parameters serving as an example, with token labeling, the model can achieve 84.4% Top-1 accuracy on ImageNet. The result can be further increased to 86.4% by slightly scaling the model size up to 150M, delivering the minimal-sized model among previous models (250M+) reaching 86%. We also show that token labeling can clearly improve the generalization capability of the pre-trained models on downstream tasks with dense prediction, such as semantic segmentation. Our code and all the training details will be made publicly available at https://github.com/zihangJiang/TokenLabeling.

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

↑