paper-with-me

Papers

EfficientFormer: Vision Transformers at MobileNet Speed

2022-06-02 · Yanyu Li, Geng Yuan, Yang Wen, Ju Hu, Georgios Evangelidis, Sergey Tulyakov, Yanzhi Wang, Jian Ren

Vision Transformers (ViT) have shown rapid progress in computer vision tasks, achieving promising results on various benchmarks. However, due to the massive number of parameters and model design, \textit{e.g.}, attention mechanism, ViT-based models are generally times slower than lightweight convolutional networks. Therefore, the deployment of ViT for real-time applications is particularly challenging, especially on resource-constrained hardware such as mobile devices. Recent efforts try to reduce the computation complexity of ViT through network architecture search or hybrid design with MobileNet block, yet the inference speed is still unsatisfactory. This leads to an important question: can transformers run as fast as MobileNet while obtaining high performance? To answer this, we first revisit the network architecture and operators used in ViT-based models and identify inefficient designs. Then we introduce a dimension-consistent pure transformer (without MobileNet blocks) as a design paradigm. Finally, we perform latency-driven slimming to get a series of final models dubbed EfficientFormer. Extensive experiments show the superiority of EfficientFormer in performance and speed on mobile devices. Our fastest model, EfficientFormer-L1, achieves $79.2\%$ top-1 accuracy on ImageNet-1K with only $1.6$ ms inference latency on iPhone 12 (compiled with CoreML), which runs as fast as MobileNetV2$\times 1.4$ ($1.6$ ms, $74.7\%$ top-1), and our largest model, EfficientFormer-L7, obtains $83.3\%$ accuracy with only $7.0$ ms latency. Our work proves that properly designed transformers can reach extremely low latency on mobile devices while maintaining high performance.

📄 PDF Abstract BibTeX arXiv:2206.01191

Code (13)

rwightman/pytorch-image-models 공식 구현 pytorch
snap-research/efficientformer 공식 구현 pytorch
2023-MindSpore-1/ms-code-1/tree/main/MobileNet mindspore
2023-MindSpore-4/Code10/tree/main/MobileNet mindspore
2023-MindSpore-4/Code11/tree/main/ssd_inceptionv2 mindspore
2024-MindSpore-1/Code2/tree/main/model-1/efficientformer mindspore
code-implementation1/Code5/tree/main/mobilenetv3_large mindspore
code-implementation1/Code9/tree/main/MobileNet mindspore
leondgarse/keras_cv_attention_models/tree/main/keras_cv_attention_models/efficientformer tf
mindspore-courses/External-Attention-MindSpore/blob/main/model/backbone/EfficientFormer.py mindspore
open-mmlab/mmclassification pytorch
yangyucheng000/University/tree/main/model-2/efficientformer mindspore
https://gitlab.com/birder/birder pytorch

Methods 이 논문이 사용한 방법론

PoolFormer PoolFormer is instantiated from MetaFormer by specifying the token mixer as extremely simple operator, pooling. PoolFormer is utilized as a tool to verify MetaFormer hypothesis…
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Pointwise Convolution Pointwise Convolution is a type of convolution that uses a 1x1 kernel: a kernel that iterates through every single point. This…
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…
Batch Normalization 설명 없음
Depthwise Convolution Depthwise Convolution is a type of convolution where we apply a single convolutional filter for each input channel. In the regular 2D…
Depthwise Separable Convolution While standard convolution performs the channelwise and spatial-wise computation in one step, Depthwise Separable Convolution
1x1 Convolution A 1 x 1 Convolution is a convolution with some special properties in that it can be used for dimensionality reduction,…

Similar Papers 제목 키워드 기반

Rethinking Vision Transformers for MobileNet Size and Speed

2022-12-15 · ICCV 2023 1 · Yanyu Li, Ju Hu, Yang Wen, Georgios Evangelidis 외

With the success of Vision Transformers (ViTs) in computer vision tasks, recent arts try to optimize the performance and complexity of ViTs to enable efficient deployment on mobile devices. Multiple approaches are propos…

MobileViG: Graph-Based Sparse Attention for Mobile Vision Applications

2023-07-01 · Mustafa Munir, William Avery, Radu Marculescu

Traditionally, convolutional neural networks (CNN) and vision transformers (ViT) have dominated computer vision. However, recently proposed vision graph neural networks (ViG) provide a new avenue for exploration. Unfortu…

Graph Attentionimage-classificationImage ClassificationInstance Segmentation+3

Q-HyViT: Post-Training Quantization of Hybrid Vision Transformers with Bridge Block Reconstruction for IoT Systems

2023-03-22 · Jemin Lee, Yongin Kwon, Sihyeong Park, Misun Yu 외

Recently, vision transformers (ViTs) have superseded convolutional neural networks in numerous applications, including classification, detection, and segmentation. However, the high computational requirements of ViTs hin…

Quantization

EAPruning: Evolutionary Pruning for Vision Transformers and CNNs

2022-10-01 · Qingyuan Li, Bo Zhang, Xiangxiang Chu

Structured pruning greatly eases the deployment of large neural networks in resource-constrained environments. However, current methods either involve strong domain expertise, require extra hyperparameter tuning, or are …

Spatial Gated Multi-Layer Perceptron for Land Use and Land Cover Mapping

2023-08-09 · Ali Jamali, Swalpa Kumar Roy, Danfeng Hong, Peter M Atkinson 외

Convolutional Neural Networks (CNNs) are models that are utilized extensively for the hierarchical extraction of features. Vision transformers (ViTs), through the use of a self-attention mechanism, have recently achieved…

image-classificationImage Classification