CVApr 2, 2021

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

arXiv:2104.01136v21016 citationsHas Code
AI Analysis

This work addresses the need for faster image classification models in real-world applications, offering a practical improvement over existing convnets and vision transformers.

The authors tackled the trade-off between accuracy and efficiency in image classification by proposing LeViT, a hybrid neural network that integrates convolutional principles into vision transformers, resulting in significantly faster inference; for instance, at 80% ImageNet top-1 accuracy, LeViT is 5 times faster than EfficientNet on CPU.

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

Code Implementations12 repos

Data from Papers with Code (CC-BY-SA-4.0)

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes