[Paper Review] ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Bias
ViTAE introduces intrinsic inductive biases from convolutions into vision transformers via parallel locality and multi-scale reduction cells, achieving data- and training-efficient ImageNet performance.
Transformers have shown great potential in various computer vision tasks owing to their strong capability in modeling long-range dependency using the self-attention mechanism. Nevertheless, vision transformers treat an image as 1D sequence of visual tokens, lacking an intrinsic inductive bias (IB) in modeling local visual structures and dealing with scale variance. Alternatively, they require large-scale training data and longer training schedules to learn the IB implicitly. In this paper, we propose a novel Vision Transformer Advanced by Exploring intrinsic IB from convolutions, ie, ViTAE. Technically, ViTAE has several spatial pyramid reduction modules to downsample and embed the input image into tokens with rich multi-scale context by using multiple convolutions with different dilation rates. In this way, it acquires an intrinsic scale invariance IB and is able to learn robust feature representation for objects at various scales. Moreover, in each transformer layer, ViTAE has a convolution block in parallel to the multi-head self-attention module, whose features are fused and fed into the feed-forward network. Consequently, it has the intrinsic locality IB and is able to learn local features and global dependencies collaboratively. Experiments on ImageNet as well as downstream tasks prove the superiority of ViTAE over the baseline transformer and concurrent works. Source code and pretrained models will be available at GitHub.
Motivation & Objective
- Motivate integrating intrinsic inductive biases into vision transformers to improve local and scale-aware feature learning.
- Design ViTAE with reduction and normal cells that embed multi-scale context and model locality in parallel with self-attention.
- Demonstrate improved data and training efficiency, classification accuracy, and downstream generalization.
- Provide ablations to show the contribution of convolution-based modules and fusion strategies.
Proposed method
- Introduce two cell types: Reduction Cells (RC) that embed multi-scale context via a Pyramid Reduction Module with multiple dilation rates and downsampling, and Normal Cells (NC) that fuse MHSA with a Parallel Convolutional Module (PCM).
- RCs downsample input by 4x, 2x, and 2x to produce tokens of size H/16 x W/16; RC outputs are flattened and concatenated with a class token before NCs.
- RCs’ Pyramid Reduction Module uses dilated convolutions with diverse rates to create multi-scale features; an MHSA branch processes the ms context, and a PCM branch injects local features before fusion with FFN.
- NCs maintain token length, apply MHSA in parallel with a PCM, fuse via addition, and pass through FFN with layer normalization and skip connections.
- The model uses three RCs followed by several NCs, with ViTAE-T and ViTAE-S configurations, and is trained on ImageNet with standard augmentations for fair comparison.
- Training and evaluation use AdamW, cosine scheduler, 300 epochs, and 8 V100 GPUs; models compare against CNNs and transformers of similar size.
Experimental results
Research questions
- RQ1Can intrinsic inductive biases from CNNs (locality and scale-invariance) be effectively integrated into vision transformers to improve data efficiency and learning of multi-scale features?
- RQ2Does a parallel fusion approach (local + global modeling within each layer) outperform serial locality-then-attention structures in Vision Transformers?
- RQ3How do RCs and NCs contribute individually and jointly to accuracy, training efficiency, and downstream generalization?
- RQ4What is ViTAE’s data and training efficiency relative to baselines like T2T-ViT and DeiT on ImageNet and smaller datasets?
Key findings
- ViTAE-T achieves 75.3% Top-1 accuracy on ImageNet with 4.8M params and ViTAE-S achieves 82.0% Top-1 with 23.6M params.
- ViTAE shows superior data efficiency and training efficiency, outperforming the baseline T2T-ViT under reduced data and epochs.
- Ablation studies demonstrate that PCM (locality) and RCs (multi-scale) substantially improve performance, with pre-fusion fusion and BN providing best results.
- ViTAE demonstrates strong generalization on downstream tasks (CIFAR-10/100, iNaturalist, Cars, Flowers, Pets) with comparable or fewer parameters than many baselines.
- Visual analyses indicate ViTAE concentrates attention more accurately on targets and handles scale variance better than pure transformers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.