Skip to main navigation Skip to search Skip to main content

Dynamic Slimmable Network

  • Changlin Li
  • , Guangrun Wang
  • , Bing Wang
  • , Xiaodan Liang
  • , Zhihui Li
  • , Xiaojun Chang

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

Abstract

Current dynamic networks and dynamic pruning methods have shown their promising capability in reducing theoretical computation complexity. However, dynamic sparse patterns on convolutional filters fail to achieve actual acceleration in real-world implementation, due to the extra burden of indexing, weight-copying, or zero-masking. Here, we explore a dynamic network slimming regime, named Dynamic Slimmable Network (DS-Net), which aims to achieve good hardware-efficiency via dynamically adjusting filter numbers of networks at test time with respect to different inputs, while keeping filters stored statically and contiguously in hardware to prevent the extra burden. Our DS-Net is empowered with the ability of dynamic inference by the proposed double-headed dynamic gate that comprises an attention head and a slimming head to predictively adjust network width with negligible extra computation cost. To ensure generality of each candidate architecture and the fairness of gate, we propose a disentangled two-stage training scheme inspired by one-shot NAS. In the first stage, a novel training technique for weight-sharing networks named In-place Ensemble Bootstrapping is proposed to improve the supernet training efficacy. In the second stage, Sandwich Gate Sparsification is proposed to assist the gate training by identifying easy and hard samples in an online way. Extensive experiments demonstrate our DS-Net consistently outperforms its static counterparts as well as state-of-the-art static and dynamic model compression methods by a large margin (up to 5.9%). Typically, DS-Net achieves 2-4× computation reduction and 1.62× real-world acceleration over ResNet-50 and MobileNet with minimal accuracy drops on ImageNet.

Original languageEnglish
Title of host publicationProceedings - 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2021
EditorsMargaux Masson-Forsythe, Eric Mortensen
Place of PublicationPiscataway NJ USA
PublisherIEEE, Institute of Electrical and Electronics Engineers
Pages8603-8613
Number of pages11
ISBN (Electronic)9781665445092
ISBN (Print)9781665445108
DOIs
Publication statusPublished - 2021
EventIEEE Conference on Computer Vision and Pattern Recognition 2021 - Online, Virtual, Online, United States of America
Duration: 19 Jun 202125 Jun 2021
https://cvpr2021.thecvf.com/ (Website)
https://ieeexplore.ieee.org/xpl/conhome/9577055/proceeding (Proceedings)

Publication series

NameProceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition
PublisherIEEE, Institute of Electrical and Electronics Engineers
ISSN (Print)1063-6919
ISSN (Electronic)2575-7075

Conference

ConferenceIEEE Conference on Computer Vision and Pattern Recognition 2021
Abbreviated titleCVPR 2021
Country/TerritoryUnited States of America
CityVirtual, Online
Period19/06/2125/06/21
Internet address

Cite this