Latency-aware Spatial-wise Dynamic Networks
Yizeng Han, Zhihang Yuan, Yifan Pu, Chenhao Xue, Shiji Song, Guangyu Sun, Gao Huang
Abstract
Spatial-wise dynamic convolution has become a promising approach to improving the inference efficiency of deep networks. By allocating more computation to the most informative pixels, such an adaptive inference paradigm reduces the spatial redundancy in image features and saves a considerable amount of unnecessary computation. However, the theoretical efficiency achieved by previous methods can hardly translate into a realistic speedup, especially on the multi-core processors (e.g. GPUs). The key challenge is that the existing literature has only focused on designing algorithms with minimal computation, ignoring the fact that the practical latency can also be influenced by scheduling strategies and hardware properties. To bridge the gap between theoretical computation and practical efficiency, we propose a latency-aware spatial-wise dynamic network (LASNet), which performs coarse-grained spatially adaptive inference under the guidance of a novel latency prediction model. The latency prediction model can efficiently estimate the inference latency of dynamic networks by simultaneously considering algorithms, scheduling strategies, and hardware properties. We use the latency predictor to guide both the algorithm design and the scheduling optimization on various hardware platforms. Experiments on image classification, object detection and instance segmentation demonstrate that the proposed framework significantly improves the practical inference efficiency of deep networks. For example, the average latency of a ResNet-101 on the ImageNet validation set could be reduced by 36% and 46% on a server GPU (Nvidia Tesla-V100) and an edge device (Nvidia Jetson TX2 GPU) respectively without sacrificing the accuracy. Code is available at https://github.com/LeapLabTHU/LASNet .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
16 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Rank-DETR for High Quality Object Detection cites Adaptive Rotated Convolution for Rotated Object Detection
- Rank-DETR for High Quality Object Detection cites Dynamic Perceiver for Efficient Visual Recognition
- FLatten Transformer: Vision Transformer using Focused Linear Attention cites Resolution Adaptive Networks for Efficient Inference
- FLatten Transformer: Vision Transformer using Focused Linear Attention cites Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification
- FLatten Transformer: Vision Transformer using Focused Linear Attention cites Adaptive Rotated Convolution for Rotated Object Detection
- FLatten Transformer: Vision Transformer using Focused Linear Attention cites Dynamic Perceiver for Efficient Visual Recognition
- Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification cites Resolution Adaptive Networks for Efficient Inference
- Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification cites Designing Network Design Spaces
- CF-ViT: A General Coarse-to-Fine Method for Vision Transformer cites Resolution Adaptive Networks for Efficient Inference
- CF-ViT: A General Coarse-to-Fine Method for Vision Transformer cites Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification
- Adaptive Rotated Convolution for Rotated Object Detection cites Resolution Adaptive Networks for Efficient Inference
- Adaptive Rotated Convolution for Rotated Object Detection cites Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification
- Adaptive Rotated Convolution for Rotated Object Detection cites Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inference
- Adaptive Rotated Convolution for Rotated Object Detection cites Dynamic Perceiver for Efficient Visual Recognition
- Dynamic Perceiver for Efficient Visual Recognition cites Batch-shaping for learning conditional channel gated networks
- Dynamic Perceiver for Efficient Visual Recognition cites Resolution Adaptive Networks for Efficient Inference
- Dynamic Perceiver for Efficient Visual Recognition cites Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image Classification
- Dynamic Perceiver for Efficient Visual Recognition cites Designing Network Design Spaces
- Dynamic Perceiver for Efficient Visual Recognition cites Dynamic Convolutions: Exploiting Spatial Sparsity for Faster Inference
Cited by top-tier papers16
- FLatten Transformer: Vision Transformer using Focused Linear AttentionDongchen Han, Xuran Pan, Yizeng Han, Shiji Song et al.ICCV 2023 · 358 citations
- Adaptive Rotated Convolution for Rotated Object DetectionYifan Pu, Yiru Wang, Zhuofan Xia, Yizeng Han et al.ICCV 2023 · 154 citations
- Rank-DETR for High Quality Object DetectionYifan Pu, Weicong Liang, Yiduo Hao, Yuhui Yuan et al.NeurIPS 2023 · 138 citations
- CF-ViT: A General Coarse-to-Fine Method for Vision TransformerMengzhao Chen, Mingbao Lin, Ke Li, Yunhang Shen et al.AAAI 2023 · 105 citations
- Dynamic Perceiver for Efficient Visual RecognitionYizeng Han, Dongchen Han, Zeyu Liu, Yulin Wang et al.ICCV 2023 · 45 citations
Builds on5
- Glance and Focus: a Dynamic Approach to Reducing Spatial Redundancy in Image ClassificationYulin Wang, Kangchen Lv, Rui Huang, Shiji Song et al.NeurIPS 2020 · 179 citations
- Batch-shaping for learning conditional channel gated networksBabak Ehteshami Bejnordi, Tijmen Blankevoort, Max WellingICLR 2020 · 82 citations
- Resolution Adaptive Networks for Efficient InferenceLe Yang, Yizeng Han, Xi Chen, Shiji Song et al.CVPR 2020
- Designing Network Design SpacesIlija Radosavovic, Raj Prateek Kosaraju, Ross B. Girshick, Kaiming He et al.CVPR 2020
- Dynamic Convolutions: Exploiting Spatial Sparsity for Faster InferenceThomas Verelst, Tinne TuytelaarsCVPR 2020
Related papers
- NeuLens: spatial-based dynamic acceleration of convolutional neural networks on edgeXueyu Hou, Yongjie Guan, Tao HanMobiCom 2022 · 12 citations
- SpeedDETR: Speed-aware Transformers for End-to-end Object DetectionPeiyan Dong, Zhenglun Kong, Xin Meng, Peng Zhang et al.ICML 2023 · 21 citations
- BRP-NAS: Prediction-based NAS using GCNsLukasz Dudziak, Thomas Chau, Mohamed S. Abdelfattah, Royson Lee et al.NeurIPS 2020 · 233 citations
- ZeroBN: Learning Compact Neural Networks For Latency-Critical Edge SystemsShuo Huai, Lei Zhang, Di Liu, Weichen Liu et al.DAC 2021 · 16 citations
- Dynamic Resolution NetworkMingjian Zhu, Kai Han, Enhua Wu, Qiulin Zhang et al.NeurIPS 2021 · 71 citations
