arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.02254cs.LGstat.ML
收藏

基于两阶段深度强化学习的深度模型压缩

Deep Model Compression Via Two-Stage Deep Reinforcement Learning

Texas Tech University(德州理工大学);The University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)

Huixin Zhan, Wei-Ming Lin, Yongcan Cao

摘要:

除了精度之外,考虑到实际应用中有限的硬件资源,卷积神经网络(CNN)模型的模型大小是另一个重要因素。例如,在移动系统上使用深度神经网络需要设计准确而快速的CNN,以实现分类和目标检测的低延迟。为了满足这一需求,我们的目标是获得CNN模型,同时具有高测试精度和小尺寸,以解决许多嵌入式设备中的资源限制。特别是,本文重点提出了一种通用的基于强化学习的模型压缩方法,在两个阶段的压缩管道:修剪和量化。压缩的第一阶段,即,通过利用深度强化学习(DRL)来共同学习准确性,并且在逐层信道修剪和经由信息丢弃的逐元素变分修剪之后更新FLOP。第二阶段,即,通过类似的DRL方法来实现量化,但是集中于获得各个层的最佳比特表示。我们进一步在CIFAR-10和ImageNet数据集上进行实验结果。对于CIFAR-10数据集,该方法可以将VGGNet的大小从20.04MB减少到2.2MB,精度略有提高。对于ImageNet数据集,所提出的方法可以将VGG-16的大小从138 MB减少到4.14MB,并且没有准确性损失。

英文摘要:

Besides accuracy, the model size of convolutional neural networks (CNN) models is another important factor considering limited hardware resources in practical applications. For example, employing deep neural networks on mobile systems requires the design of accurate yet fast CNN for low latency in classification and object detection. To fulfill the need, we aim at obtaining CNN models with both high testing accuracy and small size to address resource constraints in many embedded devices. In particular, this paper focuses on proposing a generic reinforcement learning-based model compression approach in a two-stage compression pipeline: pruning and quantization. The first stage of compression, i.e., pruning, is achieved via exploiting deep reinforcement learning (DRL) to co-learn the accuracy and the FLOPs updated after layer-wise channel pruning and element-wise variational pruning via information dropout. The second stage, i.e., quantization, is achieved via a similar DRL approach but focuses on obtaining the optimal bits representation for individual layers. We further conduct experimental results on CIFAR-10 and ImageNet datasets. For the CIFAR-10 dataset, the proposed method can reduce the size of VGGNet by 9x from 20.04MB to 2.2MB with a slight accuracy increase. For the ImageNet dataset, the proposed method can reduce the size of VGG-16 by 33x from 138MB to 4.14MB with no accuracy loss.

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

↑