Universally Slimmable Networks and Improved Training Techniques

Jiahui Yu, Thomas Huang
3/12/2019
cs.CVcs.AI

Official code: JiahuiYu/slimmable_networks (926 stars, Python, last commit 2023-03-09).

Abstract

Slimmable networks are a family of neural networks that can instantly adjust the runtime width. The width can be chosen from a predefined widths set to adaptively optimize accuracy-efficiency trade-offs at runtime.

Show full abstract

In this work, we propose a systematic approach to train universally slimmable networks (US-Nets), extending slimmable networks to execute at arbitrary width, and generalizing to networks both with and without batch normalization layers. We further propose two improved training techniques for US-Nets, named the sandwich rule and inplace distillation, to enhance training process and boost testing accuracy. We show improved performance of universally slimmable MobileNet v1 and MobileNet v2 on ImageNet classification task, compared with individually trained ones and 4-switch slimmable network baselines. We also evaluate the proposed US-Nets and improved training techniques on tasks of image super-resolution and deep reinforcement learning. Extensive ablation experiments on these representative tasks demonstrate the effectiveness of our proposed methods. Our discovery opens up the possibility to directly evaluate FLOPs-Accuracy spectrum of network architectures. Code and models are available at: https://github.com/JiahuiYu/slimmable_networks

View on arXivView PDF

Code Implementations(1)

Slimmable Networks, AutoSlim, and Beyond, ICLR 2019, and ICCV 2019

926135PythonNov 21, 20183 years agoNOASSERTION
adaptiveautomatededge-devicesefficientneural-architecture-search+2 more

Similar Papers

Cite this paper

@article{yu2019universally,
  title  = {Universally Slimmable Networks and Improved Training Techniques},
  author = {Jiahui Yu and Thomas Huang},
  year   = {2019},
  eprint = {1903.05134},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.05134}
}

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

Discussion