arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.12182cs.AR
收藏

块级混合精度量化:为实用化ReRAM基DNN加速器实现高效率

Block-Wise Mixed-Precision Quantization: Enabling High Efficiency for Practical ReRAM-based DNN Accelerators

Xueying Wu, Edward Hanson, Nansu Wang, Qilin Zheng, Xiaoxuan Yang, Huanrui Yang, Shiyu Li, Feng Cheng, Partha Pratim Pande, Janardhan Rao Doppa, Krishnendu Chakrabarty, Hai Li

AI总结:

针对ReRAM存内计算并行度受限问题,本文提出算法-架构协同框架BWQ,通过块级混合精度量化和精度感知权重映射,实现平均6.08倍加速和17.47倍节能。

摘要:

基于阻变随机存取存储器(ReRAM)的存内计算(PIM)架构已展现出加速深度神经网络(DNN)训练与推理的巨大潜力。然而,模拟PIM的计算精度因非理想特性(如ReRAM单元的导电导变化)而受损。这些非理想特性的影响随着同时激活的字线和位线数量增加而加剧。为保证计算精度,交叉阵列中只能同时开启有限数量的字线和位线,这显著降低了架构可实现的并行度。虽然并行度限制制约了加速器的效率,但它们也为细粒度混合精度量化提供了新的机遇。为了在实用化ReRAM基加速器上实现高效DNN推理,我们提出了一种算法-架构协同设计框架,称为块级混合精度量化(BWQ)。在算法层面,BWQ-A引入了一种块级混合精度量化方案,在几乎不损失精度的情况下实现了较高的权重和激活压缩率。我们还提出了硬件架构设计BWQ-H,它利用BWQ-A获得的低位宽模型在ReRAM器件上执行高效DNN推理。BWQ-H还采用了一种新颖的精度感知权重映射方法,以提高ReRAM交叉阵列的吞吐量。我们的评估证明了BWQ的有效性,与现有ReRAM基架构相比,平均实现了6.08倍的加速和17.47倍的能耗节省。

英文摘要:

Resistive random access memory (ReRAM)-based processing-in-memory (PIM) architectures have demonstrated great potential to accelerate Deep Neural Network (DNN) training/inference. However, the computational accuracy of analog PIM is compromised due to the non-idealities, such as the conductance variation of ReRAM cells. The impact of these non-idealities worsens as the number of concurrently activated wordlines and bitlines increases. To guarantee computational accuracy, only a limited number of wordlines and bitlines of the crossbar array can be turned on concurrently, significantly reducing the achievable parallelism of the architecture. While the constraints on parallelism limit the efficiency of the accelerators, they also provide a new opportunity for fine-grained mixed-precision quantization. To enable efficient DNN inference on practical ReRAM-based accelerators, we propose an algorithm-architecture co-design framework called \underline{B}lock-\underline{W}ise mixed-precision \underline{Q}uantization (BWQ). At the algorithm level, BWQ-A introduces a mixed-precision quantization scheme at the block level, which achieves a high weight and activation compression ratio with negligible accuracy degradation. We also present the hardware architecture design BWQ-H, which leverages the low-bit-width models achieved by BWQ-A to perform high-efficiency DNN inference on ReRAM devices. BWQ-H also adopts a novel precision-aware weight mapping method to increase the ReRAM crossbar's throughput. Our evaluation demonstrates the effectiveness of BWQ, which achieves a 6.08x speedup and a 17.47x energy saving on average compared to existing ReRAM-based architectures.

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

↑