arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.13258cs.CV
收藏

动态精简网络

Dynamic Slimmable Network

Monash University(莫纳什大学);Alibaba Group(阿里巴巴集团);Sun Yat-Sen University(中山大学);Qilu University of Technology(齐鲁工业大学);Shandong Artificial Intelligence(山东人工智能研究院)

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

摘要:

现有的动态网络和动态剪枝方法在降低理论计算复杂度方面表现出了良好的性能。然而,由于索引、权重复制或零掩码的额外负担,卷积滤波器上的动态稀疏模式在现实实现中无法实现实际加速。在这里,我们探索了一个动态的网络瘦身制度,命名为动态瘦身网络(DS-Net),其目的是通过在测试时动态调整网络的滤波器数量,以实现良好的硬件效率相对于不同的输入,同时保持过滤器静态和连续存储在硬件中,以防止额外的负担。我们的DS-Net被赋予了动态推理的能力,提出了双头动态门,包括一个注意头和一个瘦身头预测性地调整网络的宽度,可以忽略不计的额外计算成本。为了保证每个候选结构的通用性和门的公平性,我们提出了一个解纠缠的两阶段训练方案的启发一次性NAS。在第一阶段,提出了一种新的权值共享网络的训练技术,称为原地Encourage Bootstrapping,以提高超网的训练效率。在第二阶段,提出了三明治门稀疏化,通过在线识别容易和困难的样本来辅助门训练。大量的实验表明,我们的DS-Net始终优于其静态同行以及最先进的静态和动态模型压缩方法的大幅度(高达5.9%)。通常情况下,DS-Net在ResNet-50和MobileNet上实现了2- 4倍的计算减少和1.62倍的真实世界加速,而ImageNet上的准确性下降最小。代码发布:https://github.com/changlin31/DS-Net。

英文摘要:

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 .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑