EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention

Xinyu Liu, Houwen Peng, Ningxin Zheng, Yuqing Yang, Han Hu +1 more
2/14/2026

No official code found. Best implementation: huggingface/pytorch-image-models (36,732 stars, Apache-2.0, PyTorch, last commit 2026-04-29). 2 more below.

Abstract

Vision transformers have shown great success due to their high model capabilities. However, their remarkable performance is accompanied by heavy computation costs, which makes them unsuitable for real-time applications. In this paper, we propose a family of high-speed vision transformers named Efficient ViT. We find that the speed of existing transformer models is commonly bounded by memory inefficient operations, especially the tensor reshaping and element-wise functions in MHSA. Therefore, we design a new building block with a sandwich layout, i.e., using a single memory-bound MHSA between efficient FFN layers, which improves memory efficiency while enhancing channel communication. Moreover, we discover that the attention maps share high similarities across heads, leading to computational redundancy. To address this, we present a cascaded group attention module feeding attention heads with different splits of the full feature, which not only saves computation cost but also improves attention diversity. Comprehensive experiments demonstrate EfficientViT outperforms existing efficient models, striking a good trade-off between speed and accuracy. For instance, our EfficientViT-M5 surpasses MobileNetV3-Large by 1.9% in accuracy, while getting 40.4% and 45.2% higher throughput on Nvidia V100 GPU and Intel Xeon CPU, respectively. Compared to the recent efficient model MobileViT-XXS, EfficientViT-M2 achieves 1.8% superior accuracy, while running $5.8\times/3.7\times$ faster on the GPU/CPU, and $7.4\times faster$ when converted to ONNX format. Code and models are available at here.

View on arXivView PDF

Code Implementations(3)

PyTorchApache-2.0

The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more

36,7325,148MDX, ShellFeb 2, 20195 months agoApache-2.0
augmixconvnextdistributed-trainingefficientnetimage-classification+15 more
microsoft/CreamCommunity100%
MIT

This is a collection of our NAS and Vision Transformer work.

1,834243C++, CudaOct 12, 20202 years agoMIT
automlefficiencyknowledge-distillationnasrpe+2 more

This is the model zoo for our CVPR 2023 paper: EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention

140May 8, 20232 years ago

Similar Papers

Cite this paper

@article{liu2026efficientvit,
  title  = {EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention},
  author = {Xinyu Liu and Houwen Peng and Ningxin Zheng and Yuqing Yang and Han Hu and Yixuan Yuan},
  year   = {2026},
  eprint = {2305.07027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.07027},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.07027.svg)](https://codeofpaper.com/paper/2305.07027)

Discussion