Latency-aware Unified Dynamic Networks for Efficient Image Recognition

Yizeng Han, Zeyu Liu, Zhihang Yuan, Yifan Pu, Chaofei Wang +2 more
8/30/2023
38 citations
cs.CV

Official code: LeapLabTHU/LAUDNet (53 stars, Jupyter Notebook, last commit 2025-03-20).

Abstract

Dynamic computation has emerged as a promising avenue to enhance the inference efficiency of deep networks. It allows selective activation of computational units, leading to a reduction in unnecessary computations for each input sample.

Show full abstract

However, the actual efficiency of these dynamic models can deviate from theoretical predictions. This mismatch arises from: 1) the lack of a unified approach due to fragmented research; 2) the focus on algorithm design over critical scheduling strategies, especially in CUDA-enabled GPU contexts; and 3) challenges in measuring practical latency, given that most libraries cater to static operations. Addressing these issues, we unveil the Latency-Aware Unified Dynamic Networks (LAUDNet), a framework that integrates three primary dynamic paradigms-spatially adaptive computation, dynamic layer skipping, and dynamic channel skipping. To bridge the theoretical and practical efficiency gap, LAUDNet merges algorithmic design with scheduling optimization, guided by a latency predictor that accurately gauges dynamic operator latency. We've tested LAUDNet across multiple vision tasks, demonstrating its capacity to notably reduce the latency of models like ResNet-101 by over 50% on platforms such as V100, RTX3090, and TX2 GPUs. Notably, LAUDNet stands out in balancing accuracy and efficiency. Code is available at: https://www.github.com/LeapLabTHU/LAUDNet.

View on arXivView PDF

Code Implementations(1)

LeapLabTHU/LAUDNetOfficial100%

[IEEE TPAMI] Latency-aware Unified Dynamic Networks for Efficient Image Recognition

531Jupyter Notebook, PythonAug 21, 20231 years ago

Similar Papers

Cite this paper

@article{han2023latencyaware,
  title  = {Latency-aware Unified Dynamic Networks for Efficient Image Recognition},
  author = {Yizeng Han and Zeyu Liu and Zhihang Yuan and Yifan Pu and Chaofei Wang and Shiji Song and Gao Huang},
  year   = {2023},
  eprint = {2308.15949},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15949v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.15949.svg)](https://codeofpaper.com/paper/2308.15949)

Discussion