Slimmable Neural Networks

Jiahui Yu, Linjie Yang, Ning Xu, Jianchao Yang, Thomas Huang
12/21/2018
cs.CVcs.AI

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

Abstract

We present a simple and general method to train a single neural network executable at different widths (number of channels in a layer), permitting instant and adaptive accuracy-efficiency trade-offs at runtime. Instead of training individual networks with different width configurations, we train a shared network with switchable batch normalization. At runtime, the network can adjust its width on the fly according to on-device benchmarks and resource constraints, rather than downloading and offloading different models. Our trained networks, named slimmable neural networks, achieve similar (and in many cases better) ImageNet classification accuracy than individually trained models of MobileNet v1, MobileNet v2, ShuffleNet and ResNet-50 at different widths respectively. We also demonstrate better performance of slimmable models compared with individual ones across a wide range of applications including COCO bounding-box object detection, instance segmentation and person keypoint detection without tuning hyper-parameters. Lastly we visualize and discuss the learned features of slimmable networks. 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

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

Similar Papers

Cite this paper

@article{yu2018slimmable,
  title  = {Slimmable Neural Networks},
  author = {Jiahui Yu and Linjie Yang and Ning Xu and Jianchao Yang and Thomas Huang},
  year   = {2018},
  eprint = {1812.08928},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.08928}
}

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

Discussion