LeViT: a Vision Transformer in ConvNet’s Clothing for Faster Inference

By Benjamin Graham, Alaaeldin El-Nouby, Hugo Touvron, Pierre Stock, Armand Joulin, Herv'e J'egou, Matthijs Douze. 2021

1,047 citations recorded by the source corpus.

We design a family of image classification architectures that optimize the trade-off between accuracy and efficiency in a high-speed regime. Our work exploits recent findings in attention-based architectures, which are competitive on highly parallel processing hardware. We revisit principles from the extensive literature on convolutional neural networks to apply them to transformers, in particular activation maps with decreasing resolutions. We also introduce the attention bias, a new way to integrate positional information in vision transformers.As a result, we propose LeViT: a hybrid neural network for fast inference image classification. We consider different measures of efficiency on different hardware platforms, so as to best reflect a wide range of application scenarios. Our extensive experiments empirically validate our technical choices and show they are suitable to most architectures. Overall, LeViT significantly outperforms existing convnets and vision transformers with respect to the speed/accuracy tradeoff. For example, at 80% ImageNet top-1 accuracy, LeViT is 5 times faster than EfficientNet on CPU. We release the code at https://github.com/facebookresearch/LeViT.

Subfields: Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Xiaogang Wang
  5. Jiashi Feng
  6. Trevor Darrell
  7. Chunhua Shen
  8. Jitendra Malik

In Electrical and Electronic Engineering

  1. Dacheng Tao
  2. Jing Zhang
  3. Luke Melas-Kyriazi
  4. Lu Yuan
  5. Yonghong Tian
  6. Christoph Feichtenhofer
  7. Yanghao Li
  8. Shiji Song

In Model Architectures

  1. Lu Yuan
  2. Jianfeng Gao
  3. Gao Huang
  4. Christoph Feichtenhofer
  5. Jianwei Yang
  6. Bin Xiao
  7. Shuicheng Yan
  8. Hongsheng Li

Citations in the corpus