arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.03738eess.SYcs.LGcs.SY
收藏

BasisN:基于基组合的免重编程RRAM存内计算用于深度神经网络

BasisN: Reprogramming-Free RRAM-Based In-Memory-Computing by Basis Combination for Deep Neural Networks

Technical University of Munich(慕尼黑工业大学);Technical University of Darmstadt(达姆施塔特工业大学);Zhejiang University(浙江大学);National Cheng Kung University(成功大学);University of Siegen(锡根大学)

Amro Eldebiky, Grace Li Zhang, Xunzhao Yin, Cheng Zhuo, Ing-Chao Lin, Ulf Schlichtmann, Bing Li

AI总结:

BasisN框架通过将DNN卷积核表示为全局共享基向量与量化系数的组合,实现无需重编程的RRAM存内计算加速,在大规模DNN上使推理周期和能量延迟积降至重编程方案的1%以下。

摘要:

深度神经网络(DNNs)在图像识别和语言处理等多个领域取得了突破性进展。DNNs执行数亿次乘累加(MAC)运算。为了高效加速此类计算,利用电阻式RAM(RRAM)等新兴器件的模拟存内计算平台应运而生。然而,此类加速器面临一个障碍:需要有足够的片上交叉开关阵列来容纳DNN的全部权重。否则,交叉开关阵列中的RRAM单元需要被重新编程以处理后续层,由于RRAM单元的写入和验证极其缓慢,这会造成巨大的时间/能量开销。因此,目前在工业界仍无法部署此类加速器来处理大规模DNNs。为了解决这一问题,我们提出了BasisN框架,可在任意数量的可用交叉开关阵列上加速DNNs而无需重编程。BasisN引入了一种新颖的表示方法,将DNN层中的卷积核表示为所有层之间共享的全局基向量与量化系数的组合。这些基向量只需写入交叉开关阵列一次,即可在仅需少量硬件修改的情况下用于所有层的计算。BasisN还提供了一种新颖的训练方法,以增强利用全局基向量的计算并行化,并优化用于构建卷积核的系数。实验结果表明,在ImageNet和CIFAR100数据集上处理DenseNet和ResNet等大规模DNNs时,与在交叉开关阵列上应用重编程相比,每次推理的周期数和能量延迟积降低到1%以下,而训练和硬件成本可以忽略不计。

英文摘要:

Deep neural networks (DNNs) have made breakthroughs in various fields including image recognition and language processing. DNNs execute hundreds of millions of multiply-and-accumulate (MAC) operations. To efficiently accelerate such computations, analog in-memory-computing platforms have emerged leveraging emerging devices such as resistive RAM (RRAM). However, such accelerators face the hurdle of being required to have sufficient on-chip crossbars to hold all the weights of a DNN. Otherwise, RRAM cells in the crossbars need to be reprogramed to process further layers, which causes huge time/energy overhead due to the extremely slow writing and verification of the RRAM cells. As a result, it is still not possible to deploy such accelerators to process large-scale DNNs in industry. To address this problem, we propose the BasisN framework to accelerate DNNs on any number of available crossbars without reprogramming. BasisN introduces a novel representation of the kernels in DNN layers as combinations of global basis vectors shared between all layers with quantized coefficients. These basis vectors are written to crossbars only once and used for the computations of all layers with marginal hardware modification. BasisN also provides a novel training approach to enhance computation parallelization with the global basis vectors and optimize the coefficients to construct the kernels. Experimental results demonstrate that cycles per inference and energy-delay product were reduced to below 1% compared with applying reprogramming on crossbars in processing large-scale DNNs such as DenseNet and ResNet on ImageNet and CIFAR100 datasets, while the training and hardware costs are negligible.

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

↑