arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.13677cs.CV
收藏

SWAT:Token内部及Token之间的空间结构

SWAT: Spatial Structure Within and Among Tokens

Stony Brook University(石溪大学)

Kumara Kahatapitiya, Michael S. Ryoo

AI总结:

本文提出SWAT模型,通过在Token化阶段保留图像块的空间结构并在混合阶段显式利用该结构,提出结构感知Token化与混合方法,在ImageNet和ADE20K等基准上显著提升了DeiT等模型的性能。

摘要:

近年来,使用注意力机制、前馈网络或卷积将视觉数据建模为Token(即图像块)一直非常有效。此类方法通常具有一个通用流程:一种Token化方法,随后是一组用于在Token内部及Token之间进行信息混合的层/块。当图像块被转换为Token时,它们通常被展平,从而丢弃了每个块内部的空间结构。因此,随后进行的任何处理(例如:多头自注意力)可能无法恢复和/或利用此类信息。在本文中,我们认为如果在Token化过程中保留空间结构,并在混合阶段显式地使用它,模型可以获得显著的性能提升。我们提出了两项关键贡献:(1)结构感知Token化(Structure-aware Tokenization)和(2)结构感知混合(Structure-aware Mixing),这两者均能以极小的代价与现有模型相结合。我们引入了一系列模型(SWAT),在包括ImageNet分类和ADE20K分割在内的多个基准测试中,相较于DeiT、MLP-Mixer和Swin Transformer等模型展现出了性能改进。我们的代码可在https://github.com/kkahatapitiya/SWAT获取。

英文摘要:

Modeling visual data as tokens (i.e., image patches) using attention mechanisms, feed-forward networks or convolutions has been highly effective in recent years. Such methods usually have a common pipeline: a tokenization method, followed by a set of layers/blocks for information mixing, both within and among tokens. When image patches are converted into tokens, they are often flattened, discarding the spatial structure within each patch. As a result, any processing that follows (eg: multi-head self-attention) may fail to recover and/or benefit from such information. In this paper, we argue that models can have significant gains when spatial structure is preserved during tokenization, and is explicitly used during the mixing stage. We propose two key contributions: (1) Structure-aware Tokenization and, (2) Structure-aware Mixing, both of which can be combined with existing models with minimal effort. We introduce a family of models (SWAT), showing improvements over the likes of DeiT, MLP-Mixer and Swin Transformer, across multiple benchmarks including ImageNet classification and ADE20K segmentation. Our code is available at https://github.com/kkahatapitiya/SWAT.

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

↑