Rethinking Vision Transformers for MobileNet Size and Speed
Yanyu Li, Ju Hu, Yang Wen, Georgios Evangelidis, Kamyar Salahi, Yanzhi Wang, Sergey Tulyakov, Jian Ren
摘要
With the success of Vision Transformers (ViTs) in computer vision tasks, recent arts try to optimize the performance and complexity of ViTs to enable efficient deployment on mobile devices. Multiple approaches are proposed to accelerate attention mechanism, improve inefficient designs, or incorporate mobile-friendly lightweight convolutions to form hybrid architectures. However, ViT and its variants still have higher latency or considerably more parameters than lightweight CNNs, even true for the years-old MobileNet. In practice, latency and size are both crucial for efficient deployment on resource-constraint hardware. In this work, we investigate a central question, can transformer models run as fast as MobileNet and maintain a similar size? We revisit the design choices of ViTs and propose a novel supernet with low latency and high parameter efficiency. We further introduce a novel fine-grained joint search strategy for transformer models that can find efficient architectures by optimizing latency and number of parameters simultaneously. The proposed models, EfficientFormerV2, achieve 3.5% higher top-1 accuracy than MobileNetV2 on ImageNet-1K with similar latency and parameters. This work demonstrate that properly designed and optimized vision transformers can achieve high performance even with MobileNet-level size and speed 1 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 36 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- TransNeXt: Robust Foveal Visual Perception for Vision Transformers 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- TransNeXt: Robust Foveal Visual Perception for Vision Transformers 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- TransNeXt: Robust Foveal Visual Perception for Vision Transformers 引用了 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
- 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
- Rep ViT: Revisiting Mobile CNN From ViT Perspective 引用了 SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Mamba YOLO: A Simple Baseline for Object Detection with State Space Model 引用了 TransNeXt: Robust Foveal Visual Perception for Vision Transformers
- Mamba YOLO: A Simple Baseline for Object Detection with State Space Model 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Mamba YOLO: A Simple Baseline for Object Detection with State Space Model 引用了 Rep ViT: Revisiting Mobile CNN From ViT Perspective
- 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
- SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
引用它的顶会 Paper36
- Rep ViT: Revisiting Mobile CNN From ViT PerspectiveAo Wang, Hui Chen, Zijia Lin, Jungong Han 等CVPR 2024 · 500 次引用
- TransNeXt: Robust Foveal Visual Perception for Vision TransformersDai ShiCVPR 2024 · 313 次引用
- SnapFusion: Text-to-Image Diffusion Model on Mobile Devices within Two SecondsYanyu Li, Huan Wang, Qing Jin, Ju Hu 等NeurIPS 2023 · 300 次引用
- Mamba YOLO: A Simple Baseline for Object Detection with State Space ModelZeyu Wang, Chen Li, Huiying Xu, Xinzhong Zhu 等AAAI 2025 · 136 次引用
- SHViT: Single-Head Vision Transformer with Memory Efficient Macro DesignSeokju Yun, Youngmin RoCVPR 2024 · 117 次引用
它引用的 Paper47
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar 等NeurIPS 2021 · 9,661 次引用
- Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le 等ICCV 2019 · 9,163 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
相关 Paper
- EfficientFormer: Vision Transformers at MobileNet SpeedYanyu Li, Geng Yuan, Yang Wen, Ju Hu 等NeurIPS 2022 · 742 次引用
- ElasticViT: Conflict-aware Supernet Training for Deploying Fast Vision Transformer on Diverse Mobile DevicesChen Tang, Li Lyna Zhang, Huiqiang Jiang, Jiahang Xu 等ICCV 2023 · 15 次引用
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision TransformerSachin Mehta, Mohammad RastegariICLR 2022 · 2,162 次引用
- An Efficient Hybrid Vision Transformer for Tinyml ApplicationsFanhong Zeng, Huanan Li, Juntao Guan, Rui Fan 等ICCV 2025 · 5 次引用
- Mobile Attention: Mobile-Friendly Linear-Attention for Vision TransformersZhiyu Yao, Jian Wang, Haixu Wu, Jingdong Wang 等ICML 2024 · 6 次引用
