面向高效DNN推理的分布感知对数Posit编码的算法-硬件协同设计
Algorithm-Hardware Co-Design of Distribution-Aware Logarithmic-Posit Encodings for Efficient DNN Inference
AI总结:
本文提出算法-硬件协同设计方法,引入对数Posit(LP)数据类型动态适应DNN参数分布,开发基于遗传算法的LPQ框架优化逐层参数,并设计统一混合精度LPA加速器,在保持<1%准确率下降的同时实现约2倍性能和2.2倍能效提升。
摘要:
传统的深度神经网络(DNN)量化方法使用整数、定点或浮点数据类型,在低精度下难以捕捉多样的DNN参数分布,且常需要大的硅片开销和密集的量化感知训练。在本研究中,我们引入了Logarithmic Posits(LP),一种受posits启发的自适应、硬件友好的数据类型,通过参数化LP位字段动态适应DNN权重/激活分布。我们还开发了一个新颖的基于遗传算法的框架,LP Quantization(LPQ),以寻找最优的逐层LP参数,同时通过一个新颖的全局-局部对比目标减少量化模型与全精度模型之间的表示差异。此外,我们设计了一个统一的混合精度LP加速器(LPA)架构,包含在计算数据路径中融入LP的处理单元(PEs)。我们的算法-硬件协同设计在各种CNN和ViT模型上平均实现了<1%的top-1准确率下降。与使用不同数据类型的最先进量化加速器相比,它还实现了约2倍的单位面积性能提升和2.2倍的能效增益。
英文摘要:
Traditional Deep Neural Network (DNN) quantization methods using integer, fixed-point, or floating-point data types struggle to capture diverse DNN parameter distributions at low precision, and often require large silicon overhead and intensive quantization-aware training. In this study, we introduce Logarithmic Posits (LP), an adaptive, hardware-friendly data type inspired by posits that dynamically adapts to DNN weight/activation distributions by parameterizing LP bit fields. We also develop a novel genetic-algorithm based framework, LP Quantization (LPQ), to find optimal layer-wise LP parameters while reducing representational divergence between quantized and full-precision models through a novel global-local contrastive objective. Additionally, we design a unified mixed-precision LP accelerator (LPA) architecture comprising of processing elements (PEs) incorporating LP in the computational datapath. Our algorithm-hardware co-design demonstrates on average <1% drop in top-1 accuracy across various CNN and ViT models. It also achieves ~ 2x improvements in performance per unit area and 2.2x gains in energy efficiency compared to state-of-the-art quantization accelerators using different data types.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。