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

被引:434
作者
Graham, Ben
El-Nouby, Alaaeldin
Touvron, Hugo
Stock, Pierre
Joulin, Armand
Jegou, Herve
Douze, Matthijs
机构
来源
2021 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2021) | 2021年
关键词
D O I
10.1109/ICCV48922.2021.01204
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:12239 / 12249
页数:11
相关论文
共 64 条
  • [1] [Anonymous], 2016, ARXIV151100363
  • [2] [Anonymous], 2015, PROCIEEE CONFCOMPUT
  • [3] Beal J., 2020, Toward Transformer-Based Object Detection
  • [4] Bello I., 2021, ARXIV210208602
  • [5] Attention Augmented Convolutional Networks
    Bello, Irwan
    Zoph, Barret
    Vaswani, Ashish
    Shlens, Jonathon
    Le, Quoc V.
    [J]. 2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, : 3285 - 3294
  • [6] Berman Maxim, 2019, ARXIV190205509
  • [7] Beyer Lucas, 2020, ARE WE DONE IMAGENET
  • [8] Brock A, 2021, INT C MACHINE LEARNI, V139
  • [9] Child Rewon, 2019, CORR
  • [10] Chrabaszcz Patryk, 2017, ARXIV170708819