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

ReLeQ:一种神经网络深度Quantization的强化学习方法

ReLeQ: A Reinforcement Learning Approach for Deep Quantization of Neural Networks

University of California San Diego(加州大学圣地亚哥分校);Google Brain(谷歌大脑)

Ahmed T. Elthakeb, Prannoy Pilligundla, FatemehSadat Mireshghallah, Amir Yazdanbakhsh, Hadi Esmaeilzadeh

摘要:

深度神经网络(DNN)在用于计算机视觉应用的推理任务中通常需要大量计算资源。量化可以通过减少网络编码的位宽来显着减少DNN的计算和存储。最近的研究证实,仔细选择每层的量化级别可以保持精度,同时将位宽推到8位以下。然而,如果没有艰苦的手动工作,这种深度量化可能会导致显著的准确性损失,使其处于可疑的实用位置。因此,深度量化打开了一个大的超参数空间(层的位宽),对其的探索是一个重大挑战。我们提出了一种系统的方法来解决这个问题,通过端到端的深度强化学习框架(ReLeQ)自动化发现量化级别的过程。我们调整策略优化方法的量化问题,并专注于寻找最佳的设计决策,选择状态和动作空间,网络架构和训练框架,以及各种超参数的调整。我们展示了ReLeQ如何平衡速度和质量,并为各种深度网络(AlexNet,CIFAR-10,LeNet,MobileNet-V1,ResNet-20,SVHN和VGG-11)的量化提供了一种非对称的通用解决方案,几乎保留了准确性(=< 0.3%损失),同时最大限度地减少了计算和存储成本。通过这些DNN,ReLeQ使传统硬件能够在8位执行上实现2.2倍的加速。同样,与8位运行相比,自定义DNN加速器实现了2.0倍的加速和能耗降低。这些令人鼓舞的结果标志着ReLeQ是实现神经网络深度量化自动化的第一步。

英文摘要:

Deep Neural Networks (DNNs) typically require massive amount of computation resource in inference tasks for computer vision applications. Quantization can significantly reduce DNN computation and storage by decreasing the bitwidth of network encodings. Recent research affirms that carefully selecting the quantization levels for each layer can preserve the accuracy while pushing the bitwidth below eight bits. However, without arduous manual effort, this deep quantization can lead to significant accuracy loss, leaving it in a position of questionable utility. As such, deep quantization opens a large hyper-parameter space (bitwidth of the layers), the exploration of which is a major challenge. We propose a systematic approach to tackle this problem, by automating the process of discovering the quantization levels through an end-to-end deep reinforcement learning framework (ReLeQ). We adapt policy optimization methods to the problem of quantization, and focus on finding the best design decisions in choosing the state and action spaces, network architecture and training framework, as well as the tuning of various hyperparamters. We show how ReLeQ can balance speed and quality, and provide an asymmetric general solution for quantization of a large variety of deep networks (AlexNet, CIFAR-10, LeNet, MobileNet-V1, ResNet-20, SVHN, and VGG-11) that virtually preserves the accuracy (=< 0.3% loss) while minimizing the computation and storage cost. With these DNNs, ReLeQ enables conventional hardware to achieve 2.2x speedup over 8-bit execution. Similarly, a custom DNN accelerator achieves 2.0x speedup and energy reduction compared to 8-bit runs. These encouraging results mark ReLeQ as the initial step towards automating the deep quantization of neural networks.

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

↑