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

什么是视觉Transformer中的好标记器?

What Makes for Good Tokenizers in Vision Transformer?

The Chinese University of Hong Kong(香港中文大学);Amazon AI(亚马逊人工智能部门)

Shengju Qian, Yi Zhu, Wenbo Li, Mu Li, Jiaya Jia

摘要:

最近在视觉任务中蓬勃发展的Transformers架构已经转向了广泛的卷积范式。依赖于将输入分成多个令牌的令牌化过程,Transformers能够使用自我注意力提取它们的成对关系。虽然是Transformers的主干构建块,但在计算机视觉中,什么是好的标记器还没有得到很好的理解。在这项工作中,我们调查这个未知的问题,从信息权衡的角度。除了统一和理解现有的结构修改,我们的推导导致更好的视觉标记器的设计策略。所提出的跨令牌调制(MoTo)通过归一化结合了令牌间建模能力。此外,标准训练机制中包含正则化目标TokenProp。通过对各种Transformer架构进行广泛的实验,我们观察到这两种即插即用设计的性能提高和有趣的特性,计算开销可以忽略不计。这些观察结果进一步表明了在视觉Transformer中经常被忽略的标记器设计的重要性。

英文摘要:

The architecture of transformers, which recently witness booming applications in vision tasks, has pivoted against the widespread convolutional paradigm. Relying on the tokenization process that splits inputs into multiple tokens, transformers are capable of extracting their pairwise relationships using self-attention. While being the stemming building block of transformers, what makes for a good tokenizer has not been well understood in computer vision. In this work, we investigate this uncharted problem from an information trade-off perspective. In addition to unifying and understanding existing structural modifications, our derivation leads to better design strategies for vision tokenizers. The proposed Modulation across Tokens (MoTo) incorporates inter-token modeling capability through normalization. Furthermore, a regularization objective TokenProp is embraced in the standard training regime. Through extensive experiments on various transformer architectures, we observe both improved performance and intriguing properties of these two plug-and-play designs with negligible computational overhead. These observations further indicate the importance of the commonly-omitted designs of tokenizers in vision transformer.

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

↑