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

Panacea:采用保精度非对称量化与节能位片稀疏性的新型DNN加速器

Panacea: Novel DNN Accelerator using Accuracy-Preserving Asymmetric Quantization and Energy-Saving Bit-Slice Sparsity

Pohang University of Science and Technology (POSTECH)(浦项科技大学);University of Michigan(密歇根大学)

Dongyun Kam, Myeongji Yun, Sunwoo Yoo, Seungwoo Hong, Zhengya Zhang, Youngjoo Lee

AI总结:

针对传统对称量化精度损失、现有非对称量化位片难以压缩导致的DNN推理效率问题,提出AQS-GEMM与两种协同优化方法,设计Panacea加速器,兼顾高精度与硬件效率,性能优于现有方案。

摘要:

低比特精度及其位片稀疏性近年来被研究用于加速大规模深度神经网络(DNN)推理过程中的通用矩阵乘法(GEMM)。传统对称量化虽能通过位片稀疏性对权重和激活值进行低分辨率处理,但其由激活值非对称分布导致的精度损失难以接受,尤其对于大规模DNN而言。为缓解这一精度损失,近期研究已在无需额外运算的前提下,积极将非对称量化应用于激活值。然而,当前最先进的非对称量化会产生大量非零位片,这些位片无法被现有的位片GEMM加速器压缩和跳过,处理量化后的DNN模型自然会消耗更多运算能耗。\n为同时实现大规模DNN推理的高精度与硬件效率,本文首次提出非对称量化位片GEMM(AQS-GEMM)。与以往仅跳过零位片运算的位片计算不同,AQS-GEMM对非对称量化产生的高频非零位片进行压缩,并跳过其运算。为提升激活值的位片级稀疏性,我们还提出了两种算法-硬件协同优化方法:零点操纵法和基于分布的位切分法。为在硬件层面支持所提出的AQS-GEMM及优化方案,我们全新设计了DNN加速器Panacea,它可高效处理分块AQS-GEMM的稀疏/密集工作负载,以提升数据复用率与利用率。Panacea支持专用数据流和游程编码,可最大化数据复用并最小化外部存储器访问,显著提升了硬件效率。我们的基准测试评估表明,Panacea的性能优于现有DNN加速器。

英文摘要:

Low bit-precisions and their bit-slice sparsity have recently been studied to accelerate general matrix-multiplications (GEMM) during large-scale deep neural network (DNN) inferences. While the conventional symmetric quantization facilitates low-resolution processing with bit-slice sparsity for both weight and activation, its accuracy loss caused by the activation's asymmetric distributions cannot be acceptable, especially for large-scale DNNs. In efforts to mitigate this accuracy loss, recent studies have actively utilized asymmetric quantization for activations without requiring additional operations. However, the cutting-edge asymmetric quantization produces numerous nonzero slices that cannot be compressed and skipped by recent bit-slice GEMM accelerators, naturally consuming more processing energy to handle the quantized DNN models. To simultaneously achieve high accuracy and hardware efficiency for large-scale DNN inferences, this paper proposes an Asymmetrically-Quantized bit-Slice GEMM (AQS-GEMM) for the first time. In contrast to the previous bit-slice computing, which only skips operations of zero slices, the AQS-GEMM compresses frequent nonzero slices, generated by asymmetric quantization, and skips their operations. To increase the slice-level sparsity of activations, we also introduce two algorithm-hardware co-optimization methods: a zero-point manipulation and a distribution-based bit-slicing. To support the proposed AQS-GEMM and optimizations at the hardware-level, we newly introduce a DNN accelerator, Panacea, which efficiently handles sparse/dense workloads of the tiled AQS-GEMM to increase data reuse and utilization. Panacea supports a specialized dataflow and run-length encoding to maximize data reuse and minimize external memory accesses, significantly improving its hardware efficiency. Our benchmark evaluations show Panacea outperforms existing DNN accelerators.

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

↑