Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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

Ben Graham, Alaaeldin El-Nouby, Hugo Touvron, Pierre Stock, Armand Joulin, Herv\'e J\'egou, Matthijs Douze• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy76.6
1866
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)82.6
1155
Image ClassificationImageNet-1k (val)
Top-1 Accuracy80
840
Image ClassificationImageNet-1K
Top-1 Acc76.6
836
Image ClassificationImageNet-ReaL
Precision@182.6
195
Image ClassificationImageNet-1k (val)
Top-1 Acc82.6
188
Image ClassificationImageNet 1k (test val)
Top-1 Accuracy81.6
41
Image ClassificationImageNet-1K V2 (val)
Top-1 Acc70
35
Image ClassificationImageNet-1k 1.0 (test val)
Top-1 Acc81.6
24
3D Human Pose EstimationDHP19 (test)
MPJPE 2D7.68
8
Showing 10 of 10 rows

Other info

Follow for update