Monash University(莫纳什大学);Alibaba Group(阿里巴巴集团);Sun Yat-Sen University(中山大学);Qilu University of Technology(齐鲁工业大学);Shandong Artificial Intelligence(山东人工智能研究院)
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-4x computation reduction and 1.62x real-world acceleration over ResNet-50 and MobileNet with minimal accuracy drops on ImageNet. Code release: https://github.com/changlin31/DS-Net .
DSPNet: Towards Slimmable Pretrained Networks based on Discriminative Self-supervised Learning
University of Chinese Academy of Sciences(中国科学院大学);Megvii Inc.(旷视科技有限公司);Megvii Technology(旷视科技);CAS Center for Excellence in Brain Science and Intelligence Technology(中国科学院脑科学与智能技术卓越创新中心);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Beijing Institute of Basic Medical Sciences(北京基础医学研究所)
AutoSlim: Towards One-Shot Architecture Search for Channel Numbers
University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
我们研究了如何在神经网络中设置通道数,以在受限资源(例如,FLOP、延迟、内存占用或模型大小)。提出了一种简单的一次性解决方案,称为AutoSlim。我们不是训练许多网络样本并使用强化学习进行搜索,而是训练单个可精简的网络来近似不同通道配置的网络精度。然后,我们迭代地评估训练好的可精简模型,并以最小的精度下降对层进行精简。通过这一单通道,我们可以得到不同的资源约束下的最优信道配置。我们使用MobileNet v1,MobileNet v2,ResNet-50和RL搜索的MNasNet对ImageNet分类进行了实验。我们展示了其默认通道配置的显着改进。我们还实现了比最近的通道修剪方法和神经结构搜索方法更好的准确性。值得注意的是,通过设置优化的通道数,我们的AutoSlim-MobileNet-v2在3.05亿FLOPs下实现了74.2%的top-1准确性,比默认MobileNet-v2(3.01亿FLOPs)高2.4%,甚至比RL搜索的MNasNet(3.17亿FLOPs)高0.2%。我们的AutoSlim-ResNet-50在570 M FLOPs下,没有dependencyconvolutions,比MobileNet-v1(569 M FLOPs)高出1.3%。代码和模型将在https://github.com/JiahuiYu/slimmable_networks上提供
DS-Net++: Dynamic Weight Slicing for Efficient Inference in CNNs and Transformers
Monash University(莫纳什大学);Oxford University(牛津大学);Alibaba Group(阿里巴巴集团);Sun Yat-sen University(中山大学);DarkMatter AI Research(暗物质人工智能研究院);Qilu University of Technology(齐鲁工业大学);RMIT University(皇家墨尔本理工大学)