Super Vision Transformer

Mingbao Lin, Mengzhao Chen, Yuxin Zhang, Chunhua Shen, Rongrong Ji +1 more
5/23/2022
cs.CV
transformer-attention

Official code: lmbxmu/SuperViT (43 stars, Python, last commit 2023-08-03).

Abstract

We attempt to reduce the computational costs in vision transformers (ViTs), which increase quadratically in the token number. We present a novel training paradigm that trains only one ViT model at a time, but is capable of providing improved image recognition performance with various computational costs.

Show full abstract

Here, the trained ViT model, termed super vision transformer (SuperViT), is empowered with the versatile ability to solve incoming patches of multiple sizes as well as preserve informative tokens with multiple keeping rates (the ratio of keeping tokens) to achieve good hardware efficiency for inference, given that the available hardware resources often change from time to time. Experimental results on ImageNet demonstrate that our SuperViT can considerably reduce the computational costs of ViT models with even performance increase. For example, we reduce 2x FLOPs of DeiT-S while increasing the Top-1 accuracy by 0.2% and 0.7% for 1.5x reduction. Also, our SuperViT significantly outperforms existing studies on efficient vision transformers. For example, when consuming the same amount of FLOPs, our SuperViT surpasses the recent state-of-the-art (SOTA) EViT by 1.1% when using DeiT-S as their backbones. The project of this work is made publicly available at https://github.com/lmbxmu/SuperViT.

View on arXivView PDF

Code Implementations(1)

lmbxmu/SuperViTOfficial100%

Official Pytorch implementation of Super Vision Transformer (IJCV)

437PythonMay 19, 20223 years ago

Similar Papers

Cite this paper

@article{lin2022super,
  title  = {Super Vision Transformer},
  author = {Mingbao Lin and Mengzhao Chen and Yuxin Zhang and Chunhua Shen and Rongrong Ji and Liujuan Cao},
  year   = {2022},
  eprint = {2205.11397},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11397}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.11397.svg)](https://codeofpaper.com/paper/2205.11397)

Discussion