Skip to main content
QUICK REVIEW

[Paper Review] Vision Transformers for Mobile Applications: A Short Survey

Nahid Alam, Steven Kolawole|arXiv (Cornell University)|May 30, 2023
CCD and CMOS Imaging SensorsEngineering3 citations
TL;DR

This survey investigates vision transformer (ViT) architectures optimized for mobile deployment, focusing on architectural modifications that reduce latency and parameter count while maintaining accuracy. It identifies key design patterns—such as hybrid CNN-Transformer blocks, sparse attention, and subquadratic operators—and demonstrates that models like EfficientFormer-L3 achieve 82.4% ImageNet Top-1 accuracy with just 3ms latency on iPhone12.

ABSTRACT

Vision Transformers (ViTs) have demonstrated state-of-the-art performance on many Computer Vision Tasks. Unfortunately, deploying these large-scale ViTs is resource-consuming and impossible for many mobile devices. While most in the community are building for larger and larger ViTs, we ask a completely opposite question: How small can a ViT be within the tradeoffs of accuracy and inference latency that make it suitable for mobile deployment? We look into a few ViTs specifically designed for mobile applications and observe that they modify the transformer's architecture or are built around the combination of CNN and transformer. Recent work has also attempted to create sparse ViT networks and proposed alternatives to the attention module. In this paper, we study these architectures, identify the challenges and analyze what really makes a vision transformer suitable for mobile applications. We aim to serve as a baseline for future research direction and hopefully lay the foundation to choose the exemplary vision transformer architecture for your application running on mobile devices.

Motivation & Objective

  • To identify vision transformer architectures specifically designed for efficient mobile deployment with low latency and high accuracy.
  • To analyze architectural modifications that reduce the computational burden of standard ViTs, especially the quadratic complexity of multi-head self-attention.
  • To evaluate the effectiveness of pruning, sparsity, and attention-free alternatives in maintaining performance while reducing model size and inference time.
  • To provide a comparative analysis of state-of-the-art mobile-friendly ViTs based on accuracy, parameter count, and inference latency on edge devices.
  • To guide future research by identifying promising directions such as subquadratic attention operators and token reduction techniques without retraining.

Proposed method

  • Surveyed 8 vision transformer models specifically designed for mobile applications, including hybrid CNN-Transformer, sparse, and efficient attention variants.
  • Analyzed architectural changes such as depth-wise convolution, pooling layers after attention, and token mixture modules (e.g., PoolFormer) to reduce FLOPs and increase receptive field.
  • Evaluated pruning frameworks like oViT and dynamic sparse networks to achieve 50% sparsity with minimal accuracy drop, using iterative pruning and fine-tuning.
  • Explored attention-free alternatives such as gating mechanisms and subquadratic Hyena operators that replace standard self-attention with lower-complexity operations.
  • Measured inference latency using CoreML on iPhone12 for direct comparison across models under identical conditions (224x224 resolution, 300 epochs).
  • Compared model performance using standard metrics: Top-1 accuracy on ImageNet-1K, number of parameters, and latency in milliseconds.
Figure 1: Abstract Vision Transformer Architectures From Left to Right: Vanilla Transformer; Efficient-Former; PoolFormer; EdgeNext; EfficientViT; LeViT; NextViT; MobileViT
Figure 1: Abstract Vision Transformer Architectures From Left to Right: Vanilla Transformer; Efficient-Former; PoolFormer; EdgeNext; EfficientViT; LeViT; NextViT; MobileViT

Experimental results

Research questions

  • RQ1What architectural modifications enable vision transformers to achieve low latency and high accuracy on mobile devices?
  • RQ2How effective are pruning and sparsity techniques in reducing ViT size and inference time without significant accuracy loss?
  • RQ3Can attention-free or subquadratic attention mechanisms replace standard multi-head self-attention in mobile-optimized ViTs while preserving performance?
  • RQ4What is the trade-off between model size, inference speed, and accuracy in mobile-friendly ViT architectures?
  • RQ5Which design patterns—such as hybrid CNN-Transformer blocks or token reduction—most effectively balance efficiency and accuracy for edge deployment?

Key findings

  • EfficientFormer-L3 achieves 82.4% Top-1 accuracy on ImageNet-1K with only 3ms latency on iPhone12, demonstrating strong efficiency-accuracy trade-offs.
  • NextViT-S achieves 82.5% Top-1 accuracy with 3.5ms latency, showing that even larger ViTs can be viable on mobile if optimized with pooling and channel reduction.
  • Models like MobileViT-XS (2.3M parameters) and EdgeNeXt (5.6M parameters) achieve competitive accuracy with significantly reduced parameter counts compared to standard ViTs.
  • Pruning frameworks like oViT achieve 50% sparsity in EfficientFormer-L1 with only 0.9% accuracy drop (78% vs 78.9% for dense model), indicating high sparsity efficiency.
  • Dynamic sparse networks achieve 50% sparsity in DeiT-Small with 4.4% lower inference time and 0.28% higher accuracy, defying expectations of accuracy degradation under pruning.
  • Subquadratic attention operators like Hyena show 20% less compute and 100× faster inference at long sequence lengths, suggesting strong potential for future mobile ViTs.
Figure 2: Top-1 Accuracy vs. Latency for Image Classification on ImageNet-1K using CoreML on iPhone12
Figure 2: Top-1 Accuracy vs. Latency for Image Classification on ImageNet-1K using CoreML on iPhone12

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.