Lune

ICCV2023顶会

SwiftFormer: Efficient Additive Attention for Transformer-based Real-time Mobile Vision Applications

Abdelrahman M. Shaker, Muhammad Maaz, Hanoona Abdul Rasheed, Salman H. Khan, Ming-Hsuan Yang, Fahad Shahbaz Khan

摘要

Self-attention has become a defacto choice for capturing global context in various vision applications. However, its quadratic computational complexity with respect to image resolution limits its use in real-time applications, especially for deployment on resource-constrained mobile devices. Although hybrid approaches have been proposed to combine the advantages of convolutions and self-attention for a better speed-accuracy trade-off, the expensive matrix multiplication operations in self-attention remain a bottleneck. In this work, we introduce a novel efficient additive attention mechanism that effectively replaces the quadratic matrix multiplication operations with linear element-wise multiplications. Our design shows that the key-value interaction can be replaced with a linear layer without sacrificing any accuracy. Unlike previous state-of-the-art methods, our efficient formulation of self-attention enables its usage at all stages of the network. Using our proposed efficient additive attention, we build a series of models called "SwiftFormer" which achieves state-of-the-art performance in terms of both accuracy and mobile inference speed. Our small variant achieves 78.5% top-1 ImageNet-1K accuracy with only 0.8 ms latency on iPhone 14, which is more accurate and 2× faster compared to MobileViT-v2. Our code and models: https://tinyurl.com/5ft8v46w

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training 引用了 Searching for MobileNetV3
  • MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training 引用了 Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Rep ViT: Revisiting Mobile CNN From ViT Perspective 引用了 Searching for MobileNetV3
  • Rep ViT: Revisiting Mobile CNN From ViT Perspective 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Rep ViT: Revisiting Mobile CNN From ViT Perspective 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Rep ViT: Revisiting Mobile CNN From ViT Perspective 引用了 Training data-efficient image transformers & distillation through attention
  • Spike-driven Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Spike-driven Transformer 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Spike-driven Transformer 引用了 Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design 引用了 Searching for MobileNetV3
  • SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design 引用了 Training data-efficient image transformers & distillation through attention
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper16

  1. Rep ViT: Revisiting Mobile CNN From ViT PerspectiveAo Wang, Hui Chen, Zijia Lin, Jungong Han 等CVPR 2024 · 500 次引用
  2. Spike-driven TransformerMan Yao, Jiakui Hu, Zhaokun Zhou, Li Yuan 等NeurIPS 2023 · 368 次引用
  3. SHViT: Single-Head Vision Transformer with Memory Efficient Macro DesignSeokju Yun, Youngmin RoCVPR 2024 · 117 次引用
  4. MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced TrainingPavan Kumar Anasosalu Vasu, Hadi Pouransari, Fartash Faghri, Raviteja Vemulapalli 等CVPR 2024 · 29 次引用
  5. SfPUEL: Shape from Polarization under Unknown Environment LightYouwei Lyu, Heng Guo, Kailong Zhang, Si Li 等NeurIPS 2024 · 18 次引用

它引用的 Paper26

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le 等ICCV 2019 · 9,163 次引用
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  5. Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li 等ICLR 2021 · 7,353 次引用

相关 Paper

  1. Iformer: Integrating ConvNet and Transformer for Mobile ApplicationChuanyang ZhengICLR 2025
  2. EfficientFormer: Vision Transformers at MobileNet SpeedYanyu Li, Geng Yuan, Yang Wen, Ju Hu 等NeurIPS 2022 · 742 次引用
  3. Efficient Modulation for Vision NetworksXu Ma, Xiyang Dai, Jianwei Yang, Bin Xiao 等ICLR 2024 · 30 次引用
  4. EfficientViT: Lightweight Multi-Scale Attention for High-Resolution Dense PredictionHan Cai, Junyan Li, Muyan Hu, Chuang Gan 等ICCV 2023 · 265 次引用
  5. MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision TransformerSachin Mehta, Mohammad RastegariICLR 2022 · 2,162 次引用
黄昏的海面,两侧是细线勾勒的悬崖