Adaptive Depth Networks with Skippable Sub-Paths

Woochul Kang
12/1/2023
6 citations

Official code: wchkang/depth (6 stars, Python, last commit 2026-03-22). 1 more implementation below.

Abstract

Predictable adaptation of network depths can be an effective way to control inference latency and meet the resource condition of various devices. However, previous adaptive depth networks do not provide general principles and a formal explanation on why and which layers can be skipped, and, hence, their approaches are hard to be generalized and require long and complex training steps.

Show full abstract

In this paper, we present a practical approach to adaptive depth networks that is applicable to various networks with minimal training effort. In our approach, every hierarchical residual stage is divided into two sub-paths, and they are trained to acquire different properties through a simple self-distillation strategy. While the first sub-path is essential for hierarchical feature learning, the second one is trained to refine the learned features and minimize performance degradation if it is skipped. Unlike prior adaptive networks, our approach does not train every target sub-network in an iterative manner. At test time, however, we can connect these sub-paths in a combinatorial manner to select sub-networks of various accuracy-efficiency trade-offs from a single network. We provide a formal rationale for why the proposed training method can reduce overall prediction errors while minimizing the impact of skipping sub-paths. We demonstrate the generality and effectiveness of our approach with convolutional neural networks and transformers.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
wchkang/depthOfficial6Python–2026-03-22
HyungseopLee/RetinaNet-ADNCommunity0Python–2025-03-30
wchkang/depthOfficial100%
60PythonSep 28, 20248 months ago

Experiments with RetinaNet in ‘Adaptive Depth Networks with Skippable Sub-Paths’ (NeurIPS 2024).

00Python, Jupyter NotebookJun 9, 20241 years ago

Similar Papers

Cite this paper

@article{kang2023adaptive,
  title  = {Adaptive Depth Networks with Skippable Sub-Paths},
  author = {Woochul Kang},
  year   = {2023},
  eprint = {2312.16392},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.16392},
  journal = {NEURIPS 2024 2024}
}

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/2312.16392.svg)](https://codeofpaper.com/paper/2312.16392)

Discussion