Dense computer vision tasks such as object detection and segmentation require effective multi-scale feature representation for detecting or classifying objects or regions with varying sizes. While Convolutional Neural Networks (CNNs) have been the dominant architectures for such tasks, recently introduced Vision Transformers (ViTs) aim to replace them as a backbone. Similar to CNNs, ViTs build a simple multi-stage structure (i.e., fine-to-coarse) for multi-scale representation with single-scale patches. In this work, with a different perspective from existing Transformers, we explore multi-scale patch embedding and multi-path structure, constructing the Multi-Path Vision Transformer (MPViT). MPViT embeds features of the same size~(i.e., sequence length) with patches of different scales simultaneously by using overlapping convolutional patch embedding. Tokens of different scales are then independently fed into the Transformer encoders via multiple paths and the resulting features are aggregated, enabling both fine and coarse feature representations at the same feature level. Thanks to the diverse, multi-scale feature representations, our MPViTs scaling from tiny~(5M) to base~(73M) consistently achieve superior performance over state-of-the-art Vision Transformers on ImageNet classification, object detection, instance segmentation, and semantic segmentation. These extensive results demonstrate that MPViT can serve as a versatile backbone network for various vision tasks. Code will be made publicly available at \url{https://git.io/MPViT}.
翻译:在这项工作中,以与现有变换器不同的角度,我们探索多尺度补丁嵌入和多路径结构,建设多面图变换器(MPVIT) 。 MPVIT通过使用重叠的变换补接合嵌入,同时将相同大小(即,序列长度)的特征嵌入不同尺度的补丁。 不同尺度的调制器随后通过多种途径独立地输入变换器编码器的多阶段结构(即,细到粗),由此产生的特征是汇总的,使得与现有变换器不同,我们探索多尺度补丁嵌入和多路径结构,建设多面图变换器(MPVIT)。 MPVIT同时将相同大小(即,序列长度)的特征嵌入不同,同时使用重叠的变换换补嵌嵌嵌。 不同尺度的调制器可以通过多种路径独立地输入变换码的变换码器编码,从而能够在同一地段进行精细和剖析(多面图变换) 。 借助多样化、多层次图变变现式图变换图变式图解图解图解图解图解图解图解图解图解图解图解图解图解图解图段,通过不同的图解图解图解图解图解图解图解。