arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.15322cs.LG
收藏

硬件感知的DNN压缩:通过多样化剪枝与混合精度量化

Hardware-Aware DNN Compression via Diverse Pruning and Mixed-Precision Quantization

Aristotle University of Thessaloniki(亚里士多德大学);Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院);Southern Illinois University Carbondale(南伊利诺伊大学卡本代尔分校);University of Patras(帕特雷大学)

Konstantinos Balaskas, Andreas Karatzas, Christos Sad, Kostas Siozios, Iraklis Anagnostopoulos, Georgios Zervakis, Jörg Henkel

AI总结:

提出硬件感知的DNN压缩框架,联合多样化剪枝与混合精度量化,利用强化学习优化配置,在CIFAR和ImageNet上实现39%能耗降低且精度损失仅1.7%。

摘要:

深度神经网络(DNN)在众多领域展现出显著优势。然而,DNN正以指数级速度变得计算密集且能耗巨大,同时,在资源受限的嵌入式设备上运行复杂的基于DNN的服务需求巨大。本文针对嵌入式DNN加速器上的能效推理问题。为此,我们提出了一种自动化框架,通过联合应用剪枝和量化,以硬件感知的方式压缩DNN。我们首次在同一DNN架构中探索逐层的细粒度与粗粒度剪枝,此外还采用低比特宽度的权重和激活混合精度量化。使用强化学习(RL)来探索相关设计空间,并确定剪枝-量化配置,以在预测精度损失保持在可接受水平的同时最小化能耗。通过我们新颖的复合RL智能体,我们能够提取能效解决方案,而无需重新训练和/或微调。我们在广泛使用的DNN以及CIFAR-10/100和ImageNet数据集上进行的大量实验评估表明,我们的框架实现了平均39%的能耗降低,平均精度损失仅为1.7%,显著优于最先进的方法。

英文摘要:

Deep Neural Networks (DNNs) have shown significant advantages in a wide variety of domains. However, DNNs are becoming computationally intensive and energy hungry at an exponential pace, while at the same time, there is a vast demand for running sophisticated DNN-based services on resource constrained embedded devices. In this paper, we target energy-efficient inference on embedded DNN accelerators. To that end, we propose an automated framework to compress DNNs in a hardware-aware manner by jointly employing pruning and quantization. We explore, for the first time, per-layer fine- and coarse-grained pruning, in the same DNN architecture, in addition to low bit-width mixed-precision quantization for weights and activations. Reinforcement Learning (RL) is used to explore the associated design space and identify the pruning-quantization configuration so that the energy consumption is minimized whilst the prediction accuracy loss is retained at acceptable levels. Using our novel composite RL agent we are able to extract energy-efficient solutions without requiring retraining and/or fine tuning. Our extensive experimental evaluation over widely used DNNs and the CIFAR-10/100 and ImageNet datasets demonstrates that our framework achieves $39\%$ average energy reduction for $1.7\%$ average accuracy loss and outperforms significantly the state-of-the-art approaches.

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

↑