Exploring and Improving Mobile Level Vision Transformers
arXiv:2108.13015
Abstract
We study the vision transformer structure in the mobile level in this paper, and find a dramatic performance drop. We analyze the reason behind this phenomenon, and propose a novel irregular patch embedding module and adaptive patch fusion module to improve the performance. We conjecture that the vision transformer blocks (which consist of multi-head attention and feed-forward network) are more suitable to handle high-level information than low-level features. The irregular patch embedding module extracts patches that contain rich high-level information with different receptive fields. The transformer blocks can obtain the most useful information from these irregular patches. Then the processed patches pass the adaptive patch merging module to get the final features for the classifier. With our proposed improvements, the traditional uniform vision transformer structure can achieve state-of-the-art results in mobile level. We improve the DeiT baseline by more than 9\% under the mobile-level settings and surpass other transformer architectures like Swin and CoaT by a large margin.
arXiv comment10 pages; 5 figures; preprint
References in corpus (9)
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour
- EfficientNetV2: Smaller Models and Faster Training
- AutoAugment: Learning Augmentation Policies from Data
- Generating Long Sequences with Sparse Transformers
- LocalViT: Analyzing Locality in Vision Transformers
- LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference
- Are we done with ImageNet?
- ConTNet: Why not use convolution and transformer at the same time?