arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.08815cs.LGcs.AI
收藏

利用历史数据提高基于强化学习的自动剪枝算法的收敛性

Boosting the Convergence of Reinforcement Learning-based Auto-pruning Using Historical Data

Hong Kong University of Science and Technology (HKUST)(香港科技大学);Alibaba Group(阿里巴巴集团)

Jiandong Mu, Mengdi Wang, Feiwen Zhu, Jun Yang, Wei Lin, Wei Zhang

摘要:

最近,神经网络压缩方案(如通道修剪)已被广泛用于降低深度神经网络(DNN)的模型大小和计算复杂性,以用于诸如嵌入式系统的功率受限场景中的应用。已经进一步提出了基于强化学习(RL)的自动修剪来自动化DNN修剪过程,以避免昂贵的手工制作工作。然而,基于RL的剪枝器涉及耗时的训练过程,并且每个样本的高费用进一步加剧了这个问题。这些障碍极大地限制了基于RL的自动剪枝的实际应用。因此,在本文中,我们提出了一个有效的自动修剪框架,解决了这个问题,利用历史数据从以前的自动修剪过程。在我们的框架中,我们首先通过迁移学习来提高RL剪枝器的收敛性。然后,提出了一种增强的迁移学习方案,通过提高可迁移性来进一步加快训练过程。最后,提出了一种辅助学习过程,以提高RL代理的样本效率。实验表明,对于ResNet 20,我们的框架可以将自动修剪过程加速1.5-2.5倍,对于其他神经网络,如ResNet 56,ResNet 18和MobileNet v1,可以加速1.81-2.375倍。

英文摘要:

Recently, neural network compression schemes like channel pruning have been widely used to reduce the model size and computational complexity of deep neural network (DNN) for applications in power-constrained scenarios such as embedded systems. Reinforcement learning (RL)-based auto-pruning has been further proposed to automate the DNN pruning process to avoid expensive hand-crafted work. However, the RL-based pruner involves a time-consuming training process and the high expense of each sample further exacerbates this problem. These impediments have greatly restricted the real-world application of RL-based auto-pruning. Thus, in this paper, we propose an efficient auto-pruning framework which solves this problem by taking advantage of the historical data from the previous auto-pruning process. In our framework, we first boost the convergence of the RL-pruner by transfer learning. Then, an augmented transfer learning scheme is proposed to further speed up the training process by improving the transferability. Finally, an assistant learning process is proposed to improve the sample efficiency of the RL agent. The experiments have shown that our framework can accelerate the auto-pruning process by 1.5-2.5 times for ResNet20, and 1.81-2.375 times for other neural networks like ResNet56, ResNet18, and MobileNet v1.

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

↑