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

面向自动损失感知模型压缩的单路径比特共享方法

Single-path Bit Sharing for Automatic Loss-aware Model Compression

South China University of Technology(华南理工大学);University of Adelaide(阿德莱德大学);Monash University(莫纳什大学);Zhejiang University(浙江大学)

Jing Liu, Bohan Zhuang, Peng Chen, Chunhua Shen, Jianfei Cai, Mingkui Tan

AI总结:

针对模型压缩中剪枝与量化分开优化次优、配置搜索成本高的问题,提出单路径比特共享方法,将剪枝视为量化特例,用单路径模型编码候选配置并结合可学习二值门控自动确定层压缩配置,在大幅降低计算量的同时保持了良好性能。

摘要:

网络剪枝与量化已被证实是深度模型压缩的有效途径。为获得高度紧凑的模型,多数方法先执行网络剪枝,再基于剪枝后的模型开展网络量化。然而,该策略可能忽略二者间的相互影响,因此分开执行可能导致性能次优。为解决这一问题,联合执行剪枝与量化至关重要。但如何在剪枝与量化间取得平衡并非易事。此外,现有压缩方法往往依赖一些预定义的压缩配置。已有部分研究尝试搜索最优配置,但可能产生难以承受的优化成本。\n针对上述问题,我们设计了一种简单且有效的方法,名为单路径比特共享(Single-path Bit Sharing, SBS)。具体而言,我们首先将网络剪枝视为量化的一种特例,这为剪枝与量化提供了统一的视角。随后,我们引入一种单路径模型来编码所有候选压缩配置。通过这种方式,配置搜索问题被转化为子集选择问题,显著减少了参数数量、计算成本与优化难度。\n依托该单路径模型,我们进一步引入可学习的二值门控来编码比特宽度的选择。通过联合训练二值门控与网络参数,可自动确定每一层的压缩配置。在CIFAR-100与ImageNet上开展的大量实验表明,SBS能够在实现可观性能的同时显著降低计算成本。例如,经我们的SBS压缩的MobileNetV2实现了22.6倍的比特运算(Bit-Operation, BOP)量降低,而Top-1准确率仅下降0.1%。

英文摘要:

Network pruning and quantization are proven to be effective ways for deep model compression. To obtain a highly compact model, most methods first perform network pruning and then conduct network quantization based on the pruned model. However, this strategy may ignore that they would affect each other and thus performing them separately may lead to sub-optimal performance. To address this, performing pruning and quantization jointly is essential. Nevertheless, how to make a trade-off between pruning and quantization is non-trivial. Moreover, existing compression methods often rely on some pre-defined compression configurations. Some attempts have been made to search for optimal configurations, which however may take unbearable optimization cost. To address the above issues, we devise a simple yet effective method named Single-path Bit Sharing (SBS). Specifically, we first consider network pruning as a special case of quantization, which provides a unified view for pruning and quantization. We then introduce a single-path model to encode all candidate compression configurations. In this way, the configuration search problem is transformed into a subset selection problem, which significantly reduces the number of parameters, computational cost and optimization difficulty. Relying on the single-path model, we further introduce learnable binary gates to encode the choice of bitwidth. By jointly training the binary gates in conjunction with network parameters, the compression configurations of each layer can be automatically determined. Extensive experiments on both CIFAR-100 and ImageNet show that SBS is able to significantly reduce computational cost while achieving promising performance. For example, our SBS compressed MobileNetV2 achieves 22.6x Bit-Operation (BOP) reduction with only 0.1% drop in the Top-1 accuracy.

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

↑