PQA:探索乘积量化在深度神经网络硬件加速中的潜力
PQA: Exploring the Potential of Product Quantization in DNN Hardware Acceleration
AI总结:
本文提出PQA硬件加速器,通过乘积量化将MAC替换为内存查找,并实证研究PQ参数化与训练方法,在紧凑型DNN上实现单位面积性能最高提升3.1倍且准确率损失极小。
摘要:
传统的乘累加(MAC)运算长期以来主导着深度神经网络(DNN)的计算时间,尤其是卷积神经网络(CNN)。近年来,乘积量化(PQ)已被应用于这些工作负载,用对预计算点积的内存查找取代MAC运算。为了更好地理解乘积量化深度神经网络(PQ-DNN)的效率权衡,我们设计了一款定制硬件加速器,用于并行化和加速最近邻搜索与点积查找。此外,我们开展了一项实证研究,以探究不同PQ参数化方式和训练方法在效率与准确率之间的权衡。我们识别出了一些PQ配置,这些配置使ResNet20的单位面积性能提升最高达3.1倍,即使与高度优化的传统DNN加速器相比也是如此,并且在另外两个紧凑型DNN上也取得了类似的改进。与近期的PQ解决方案相比,我们的工作在单位面积性能上高出4倍,同时仅有0.6%的准确率下降。最后,我们降低了PQ运算的位宽,以研究其对硬件效率和准确率的影响。在三个紧凑型DNN上仅使用2至6位精度,我们就能够保持DNN准确率,从而无需使用DSP。
英文摘要:
Conventional multiply-accumulate (MAC) operations have long dominated computation time for deep neural networks (DNNs), espcially convolutional neural networks (CNNs). Recently, product quantization (PQ) has been applied to these workloads, replacing MACs with memory lookups to pre-computed dot products. To better understand the efficiency tradeoffs of product-quantized DNNs (PQ-DNNs), we create a custom hardware accelerator to parallelize and accelerate nearest-neighbor search and dot-product lookups. Additionally, we perform an empirical study to investigate the efficiency--accuracy tradeoffs of different PQ parameterizations and training methods. We identify PQ configurations that improve performance-per-area for ResNet20 by up to 3.1$\times$, even when compared to a highly optimized conventional DNN accelerator, with similar improvements on two additional compact DNNs. When comparing to recent PQ solutions, we outperform prior work by $4\times$ in terms of performance-per-area with a 0.6% accuracy degradation. Finally, we reduce the bitwidth of PQ operations to investigate the impact on both hardware efficiency and accuracy. With only 2-6-bit precision on three compact DNNs, we were able to maintain DNN accuracy eliminating the need for DSPs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。