Skip to main content
QUICK REVIEW

[Paper Review] EfficientViT: Multi-Scale Linear Attention for High-Resolution Dense Prediction

Han Cai, Li, Junyan|arXiv (Cornell University)|May 29, 2022
Image Retrieval and Classification TechniquesComputer Science35 citations
TL;DR

EfficientViT introduces a multi-scale linear attention module that provides global receptive field and multi-scale learning with lightweight operations, delivering strong performance with substantial hardware speedups for high-resolution dense prediction tasks.

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. 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$ imes$ and 6.2$ imes$ 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.

Motivation & Objective

  • Motivate efficient high-resolution dense prediction for real-world applications.
  • Design a hardware-friendly attention mechanism that preserves global context and multi-scale features.
  • Develop EfficientViT architectures that integrate the proposed module into a backbone-head framework.
  • Evaluate on semantic segmentation, super-resolution, and Segment Anything to demonstrate speedups with minimal performance loss.

Proposed method

  • Propose ReLU linear attention to achieve a global receptive field with linear complexity.
  • Augment ReLU linear attention with small-kernel depthwise convolutions to inject local and multi-scale information.
  • Aggregate nearby Q/K/V tokens to form multi-scale tokens via group convolutions and apply ReLU linear attention to them.
  • Insert the multi-scale linear attention module into Stages 3–4 of a backbone and fuse multi-scale features in a simple head.
  • Add depthwise convolutions into FFN layers (FFN+DWConv) to enhance local feature extraction.
  • Provide a family of EfficientViT models (B0–B3 for edge/cloud, L series for cloud) with configurable efficiency.

Experimental results

Research questions

  • RQ1Can ReLU linear attention replace softmax attention for high-resolution dense prediction without sacrificing accuracy?
  • RQ2Does incorporating multi-scale token aggregation improve the capacity of linear attention for local and global context?
  • RQ3What is the achievable speedup and efficiency gain across diverse hardware (mobile CPU, edge GPU, cloud GPU) for segmentation, super-resolution, and SAM tasks?
  • RQ4How does EfficientViT perform compared to state-of-the-art segmentation and SR models on Cityscapes, ADE20K, DIV2K/BSD100, FFHQ, and SAM benchmarks?

Key findings

  • EfficientViT achieves significant speedups over previous SOTA models in semantic segmentation on Cityscapes and ADE20K, with competitive or superior mIoU.
  • On Cityscapes (1024x2048), EfficientViT-B2 attains 82.1 mIoU with 15M params and 74G MACs, and EfficientViT-B3 attains 83.0 mIoU with 40M params and 179G MACs.
  • EfficientViT shows substantial latency reductions across hardware: up to 13x MACs reduction and up to 8.8x latency reduction versus SegFormer on edge GPUs; up to 3.9x higher throughput on A100 versus SegNeXt at similar performance.
  • In super-resolution, EfficientViT yields up to 6.4x GPU speedup over Restormer with a PSNR gain of 0.11 dB on FFHQ, and outperforms SOTA ViT-based SR methods in speed while maintaining PSNR/SSIM.
  • EfficientViT-SAM variants achieve markedly higher throughput than SAM-ViT-H with competitive zero-shot segmentation performance on COCO and LVIS, enabling a strong performance-efficiency trade-off.
  • Overall, EfficientViT delivers global receptive field and multi-scale learning with hardware-friendly operations, achieving substantial cross-task speedups without compromising accuracy.

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.