EfficientViT: Multi-Scale Linear Attention for High-Resolution Dense Prediction

Han Cai, Junyan Li, Muyan Hu, Chuang Gan, Song Han
5/29/2022
129 citations
cs.CV

Official code: huggingface/pytorch-image-models (37,303 stars, Python, Apache-2.0, PyTorch, last commit 2026-04-29). 1 more implementation below.

Abstract

High-resolution dense prediction enables many appealing real-world applications, such as computational photography, autonomous driving, etc. However, the vast computational cost makes deploying state-of-the-art high-resolution dense prediction models on hardware devices difficult.

Show full abstract

This work presents EfficientViT, a new family of high-resolution vision models with novel multi-scale linear attention. Unlike prior high-resolution dense prediction models that rely on heavy softmax attention, hardware-inefficient large-kernel convolution, or complicated topology structure to obtain good performances, our multi-scale linear attention achieves the global receptive field and multi-scale learning (two desirable features for high-resolution dense prediction) with only lightweight and hardware-efficient operations. As such, EfficientViT delivers remarkable performance gains over previous state-of-the-art models with significant speedup on diverse hardware platforms, including mobile CPU, edge GPU, and cloud GPU. Without performance loss on Cityscapes, our EfficientViT provides up to 13.9$\times$ and 6.2$\times$ GPU latency reduction over SegFormer and SegNeXt, respectively. For super-resolution, EfficientViT delivers up to 6.4x speedup over Restormer while providing 0.11dB gain in PSNR. For Segment Anything, EfficientViT delivers 48.9x higher throughput on A100 GPU while achieving slightly better zero-shot instance segmentation performance on COCO.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
huggingface/pytorch-image-modelsOfficial37,303PythonApache-2.02026-04-29
mit-han-lab/efficientvitOfficial3,379PythonApache-2.02025-09-05
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

37,3035,234Python, MDXFeb 2, 20197 months agoApache-2.0
augmixconvnextdistributed-trainingefficientnetimage-classification+15 more
Apache-2.0

Efficient vision foundation models for high-resolution generation and perception.

3,379260Python, ShellApr 5, 20231 years agoApache-2.0
deep-compression-autoencoderefficient-diffusion-modelefficientvithigh-resolutionimagenet+3 more

Similar Papers

Cite this paper

@article{cai2022efficientvit,
  title  = {EfficientViT: Multi-Scale Linear Attention for High-Resolution Dense Prediction},
  author = {Han Cai and Junyan Li and Muyan Hu and Chuang Gan and Song Han},
  year   = {2022},
  eprint = {2205.14756},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14756}
}

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/2205.14756.svg)](https://codeofpaper.com/paper/2205.14756)

Discussion