arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.08617cs.LGcs.AIcs.ARcs.CV
收藏

PIM-QAT:用于存储器处理(PIM)系统的神经网络Quantization

PIM-QAT: Neural Network Quantization for Processing-In-Memory (PIM) Systems

Northeastern University(东北大学);Rice Univeristy(莱斯大学);Snap Inc.(Snap公司)

Qing Jin, Zhiyu Chen, Jian Ren, Yanyu Li, Yanzhi Wang, Kaiyuan Yang

摘要:

内存处理(PIM)是一种越来越多地被研究的神经形态硬件,它承诺为深度学习推理提供能量和吞吐量方面的改进。利用存储器内部的大规模并行和高效模拟计算,PIM绕过了传统数字硬件中数据移动的瓶颈。然而,需要额外的量化步骤(即,PIM量化)来将模拟计算结果转换到数字域,由于硬件约束,额外的量化步骤通常具有有限的分辨率。同时,由于模/数接口的不完善,PIM量化中普遍存在非理想效应,进一步影响了推理精度。在本文中,我们提出了一种方法来训练量化网络,将PIM量化,这是无处不在的所有PIM系统。具体来说,我们提出了一个PIM量化感知训练(PIM-QAT)算法,并通过分析训练动态,以促进训练收敛在向后和向前传播过程中引入重新缩放技术。我们还提出了两种技术,即批量归一化(BN)校准和调整精度训练,以抑制非理想的线性和随机热噪声在真正的PIM芯片的不利影响。我们的方法进行了验证,在三个主流的PIM分解方案,并在一个原型芯片上的物理。与直接在PIM系统上部署常规训练的量化模型相比,该方法没有考虑到这种额外的量化步骤,因此失败,我们的方法提供了显着的改进。它还在PIM系统上实现了与数字硬件上的传统量化模型相当的推理精度,跨CIFAR 10和CIFAR 100数据集,使用各种网络深度用于最流行的网络拓扑。

英文摘要:

Processing-in-memory (PIM), an increasingly studied neuromorphic hardware, promises orders of energy and throughput improvements for deep learning inference. Leveraging the massively parallel and efficient analog computing inside memories, PIM circumvents the bottlenecks of data movements in conventional digital hardware. However, an extra quantization step (i.e. PIM quantization), typically with limited resolution due to hardware constraints, is required to convert the analog computing results into digital domain. Meanwhile, non-ideal effects extensively exist in PIM quantization because of the imperfect analog-to-digital interface, which further compromises the inference accuracy. In this paper, we propose a method for training quantized networks to incorporate PIM quantization, which is ubiquitous to all PIM systems. Specifically, we propose a PIM quantization aware training (PIM-QAT) algorithm, and introduce rescaling techniques during backward and forward propagation by analyzing the training dynamics to facilitate training convergence. We also propose two techniques, namely batch normalization (BN) calibration and adjusted precision training, to suppress the adverse effects of non-ideal linearity and stochastic thermal noise involved in real PIM chips. Our method is validated on three mainstream PIM decomposition schemes, and physically on a prototype chip. Comparing with directly deploying conventionally trained quantized model on PIM systems, which does not take into account this extra quantization step and thus fails, our method provides significant improvement. It also achieves comparable inference accuracy on PIM systems as that of conventionally quantized models on digital hardware, across CIFAR10 and CIFAR100 datasets using various network depths for the most popular network topology.

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

↑