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

探索硬件感知深度神经网络加速器中量化与映射的协同作用

Exploring Quantization and Mapping Synergy in Hardware-Aware Deep Neural Network Accelerators

Brno University of Technology(布拉格技术大学)

Jan Klhufek, Miroslav Safar, Vojtech Mrazek, Zdenek Vasicek, Lukas Sekanina

AI总结:

本文通过扩展Timeloop支持混合量化并提出多目标优化算法,联合优化CNN各层的位宽与映射,在MobileNetV1/V2和Eyeriss/Simba上实现最高37%能耗节省且精度不降。

摘要:

在CNN推理加速器上实现的卷积神经网络(CNN)的能效和内存占用取决于许多因素,包括权重量化策略(即数据类型和位宽)以及映射(即在加速器硬件单元上放置和调度DNN基本操作)。我们表明,在实现过程中启用丰富的混合量化方案可以打开一个此前隐藏的映射空间,从而更有效地利用硬件资源。与优化程度较低的CNN实现相比,利用量化权重和激活以及合适映射的CNN可以显著改善精度、能耗和内存需求之间的权衡。为了发现、分析和利用这些映射,我们:(i)扩展了通用的最先进映射工具(Timeloop)以支持混合量化,该功能目前尚不可用;(ii)提出了一种高效的多目标优化算法,为在加速器上执行的每个DNN层寻找最合适的位宽和映射;以及(iii)进行了详细的实验评估以验证所提出的方法。在两个CNN(MobileNetV1和MobileNetV2)和两个加速器(Eyeriss和Simba)上,我们表明对于给定的质量指标(例如ImageNet上的精度),能耗节省最高可达37%,且没有任何精度下降。

英文摘要:

Energy efficiency and memory footprint of a convolutional neural network (CNN) implemented on a CNN inference accelerator depend on many factors, including a weight quantization strategy (i.e., data types and bit-widths) and mapping (i.e., placement and scheduling of DNN elementary operations on hardware units of the accelerator). We show that enabling rich mixed quantization schemes during the implementation can open a previously hidden space of mappings that utilize the hardware resources more effectively. CNNs utilizing quantized weights and activations and suitable mappings can significantly improve trade-offs among the accuracy, energy, and memory requirements compared to less carefully optimized CNN implementations. To find, analyze, and exploit these mappings, we: (i) extend a general-purpose state-of-the-art mapping tool (Timeloop) to support mixed quantization, which is not currently available; (ii) propose an efficient multi-objective optimization algorithm to find the most suitable bit-widths and mapping for each DNN layer executed on the accelerator; and (iii) conduct a detailed experimental evaluation to validate the proposed method. On two CNNs (MobileNetV1 and MobileNetV2) and two accelerators (Eyeriss and Simba) we show that for a given quality metric (such as the accuracy on ImageNet), energy savings are up to 37% without any accuracy drop.

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

↑