EfficientViT:用于高分辨率密集预测的多尺度线性注意力

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

韩松 Song Han · MIT · 2022-05-29 · arXiv:2205.14756 ↗ · 被引 106

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

高分辨率密集预测支持许多有吸引力的实际应用,如计算摄影、自动驾驶等。然而,巨大的计算成本使得在硬件设备上部署最先进的高分辨率密集预测模型变得困难。本文提出了 EfficientViT,一种新的高分辨率视觉模型家族,具有新颖的多尺度线性注意力。与先前依赖繁重的 softmax 注意力、硬件低效的大核卷积或复杂拓扑结构以获得良好性能的高分辨率密集预测模型不同,我们的多尺度线性注意力仅使用轻量且硬件高效的操作即可实现全局感受野和多尺度学习(高分辨率密集预测的两个理想特性)。因此,EfficientViT 在多种硬件平台(包括移动 CPU、边缘 GPU 和云 GPU)上,相比先前最先进的模型取得了显著的性能提升和大幅加速。在 Cityscapes 上无性能损失的情况下,我们的 EfficientViT 相比 SegFormer 和 SegNeXt 分别提供了高达 13.9 倍和 6.2 倍的 GPU 延迟降低。对于超分辨率,EfficientViT 相比 Restormer 提供了高达 6.4 倍的加速,同时 PSNR 提高了 0.11dB。对于 Segment Anything,EfficientViT 在 A100 GPU 上提供了 48.9 倍的吞吐量提升,同时在 COCO 上实现了略优的零样本实例分割性能。

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$\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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 13)

阅读逐段中英对照全文 →