SpeedDETR: Speed-aware Transformers for End-to-end Object Detection
Peiyan Dong, Zhenglun Kong, Xin Meng, Peng Zhang, Hao Tang, Yanzhi Wang, Chih-Hsien Chou
摘要
Vision Transformers (ViTs) have continuously achieved new milestones in object detection. However, the considerable computation and memory burden compromise their efficiency and generalization of deployment on resource-constraint devices. Besides, efficient transformer-based detectors designed by existing works can hardly achieve a realistic speedup, especially on multicore processors (e.g., GPUs). The main issue is that the current literature solely concentrates on building algorithms with minimal computation, oblivious that the practical latency can also be affected by the memory access cost and the degree of parallelism. Therefore, we propose SpeedDETR, a novel speed-aware transformer for end-to-end object detectors, achieving high-speed inference on multiple devices. Specifically, we design a latency prediction model which can directly and accurately estimate the network latency by analyzing network properties, hardware memory access pattern, and degree of parallelism. Following the effective local-to-global visual modeling process and the guidance of the latency prediction model, we build our hardware-oriented architecture design and develop a new family of SpeedDETR. Experiments on the MS COCO dataset show SpeedDETR outperforms current DETR-based methods by 1.5%∼9.2% AP with 1.09×∼3.6× speedup on Tesla V100. Even acceptable speed inference can be achieved on edge GPUs, i.e., 4 FPS for NVIDIA JETSON TX2 (1.4×∼4×faster than other counterparts), 1 FPS for NVIDIA NANO (1.5×∼6.7×faster). Codes release SpeedDETR.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- HotBEV: Hardware-oriented Transformer-based Multi-View 3D Detector for BEV Perception 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- HotBEV: Hardware-oriented Transformer-based Multi-View 3D Detector for BEV Perception 引用了 MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer
- HotBEV: Hardware-oriented Transformer-based Multi-View 3D Detector for BEV Perception 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- DECO: Unleashing the Potential of ConvNets for Query-based Detection and Segmentation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- DECO: Unleashing the Potential of ConvNets for Query-based Detection and Segmentation 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- DECO: Unleashing the Potential of ConvNets for Query-based Detection and Segmentation 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- DECO: Unleashing the Potential of ConvNets for Query-based Detection and Segmentation 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- 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 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
引用它的顶会 Paper2
它引用的 Paper23
- 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 次引用
- Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li 等ICLR 2021 · 7,353 次引用
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan 等ICCV 2021 · 4,909 次引用
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision TransformerSachin Mehta, Mohammad RastegariICLR 2022 · 2,162 次引用
相关 Paper
- DETRs Beat YOLOs on Real-time Object DetectionYian Zhao, Wenyu Lv, Shangliang Xu, Jinman Wei 等CVPR 2024 · 3,046 次引用
- Revisiting Real-Time Detection Transformer with Efficient Encoder DesignJiannan Huang, Aditya Kane, Fengzhe Zhou, Yunchao Wei, Humphrey ShiCVPR Findings 2026
- Latency-aware Spatial-wise Dynamic NetworksYizeng Han, Zhihang Yuan, Yifan Pu, Chenhao Xue 等NeurIPS 2022 · 30 次引用
- ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-DesignHaoran You, Zhanyi Sun, Huihong Shi, Zhongzhi Yu 等HPCA 2023 · 124 次引用
- EfficientFormer: Vision Transformers at MobileNet SpeedYanyu Li, Geng Yuan, Yang Wen, Ju Hu 等NeurIPS 2022 · 742 次引用
