Skip to main content
QUICK 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 Science被引用 35
一句话总结

EfficientViT 引入一个多尺度线性注意力模块,提供全局感受野和多尺度学习,使用轻量级运算,在高分辨率密集预测任务上实现强大性能并带来显著的硬件加速。

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.

研究动机与目标

  • 为现实世界应用动机化高效的高分辨率密集预测。
  • 设计一种对硬件友好的注意力机制,保留全局上下文和多尺度特征。
  • 开发将所提模块集成到骨干-头部框架中的 EfficientViT 架构。
  • 在语义分割、超分辨率和 Segment Anything 上进行评估,以证明在尽量少的性能损失下实现加速。

提出的方法

  • 提出 ReLU 线性注意力以实现全局感受野,复杂度线性。
  • 用小核的深度卷积对 ReLU 线性注意力进行增强,以注入局部和多尺度信息。
  • 通过群卷积聚合邻近的 Q/K/V token 以形成多尺度 token,并对它们应用 ReLU 线性注意力。
  • 将多尺度线性注意力模块插入骨干的 Stage 3–4,并在简单头部融合多尺度特征。
  • 在 FFN 层中加入深度卷积(FFN+DWConv),以增强局部特征提取。
  • 提供一系列 EfficientViT 模型(B0–B3 用于边缘/云端,L 系列用于云端),具可配置的效率。

实验结果

研究问题

  • RQ1ReLU 线性注意力是否能在不牺牲准确性的前提下替代 softmax 注意力用于高分辨率密集预测?
  • RQ2引入多尺度 token 聚合是否提升线性注意力在局部和全局上下文中的能力?
  • RQ3在不同硬件(移动 CPU、边缘 GPU、云端 GPU)上,针对分割、超分辨率和 SAM 任务,能够实现的加速和效率提升是多少?
  • RQ4与 Cityscapes、ADE20K、DIV2K/BSD100、FFHQ 以及 SAM 基准测试上的最先进分割和 SR 模型相比,EfficientViT 的表现如何?

主要发现

  • EfficientViT 在 Cityscapes 和 ADE20K 的语义分割方面相比以前的 SOTA 模型实现显著加速,且 mIoU 具有竞争力或更高。
  • 在 Cityscapes(1024x2048)上,EfficientViT-B2 达到 82.1 mIoU,参数 15M,MACs 74G;EfficientViT-B3 达到 83.0 mIoU,参数 40M,MACs 179G。
  • EfficientViT 在各硬件上显示出显著的延迟降低:在边缘 GPU 上相对于 SegFormer,MACs 最多降低 13x,延迟最多降低 8.8x;在相似性能下,A100 的吞吐量比 SegNeXt 高出最多 3.9x。
  • 在超分辨率方面,EfficientViT 在 FFHQ 上相对 Restormer 最高实现 6.4x 的 GPU 加速,PSNR 提升 0.11 dB,同时在速度方面超越最先进的基于 ViT 的 SR 方法,且保持 PSNR/SSIM。
  • EfficientViT-SAM 变体在吞吐量上明显高于 SAM-ViT-H,在 COCO 和 LVIS 上的零-shot 分割性能具有竞争力,实现强劲的性能-效率权衡。
  • 总体来说,EfficientViT 提供全局感受野和多尺度学习,采用对硬件友好的运算,在不影响精度的前提下实现跨任务的显著加速。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。