arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.15255cs.AR
收藏

RePAST:一个用于DNN二阶训练的ReRAM-based PIM加速器

RePAST: A ReRAM-based PIM Accelerator for Second-order Training of DNN

Yilong Zhao, Li Jiang, Mingyu Gao, Naifeng Jing, Chengyang Gu, Qidong Tang, Fangxin Liu, Tao Yang, Xiaoyao Liang

摘要:

在DNN训练中,二阶训练方法可以比一阶优化器更快地收敛。这是因为二阶训练利用二阶信息(SOI)矩阵的求逆来找到更准确的下降方向和步长。然而,在GPU和CPU等传统架构中,庞大的SOI矩阵带来了显著的计算和存储开销。另一方面,基于ReRAM的内存处理(PIM)技术适合于二阶训练,因为以下三个原因:首先,PIM的计算发生在内存中,这减少了数据移动开销:其次,ReRAM交叉杆可以在$O\left(1\right)$时间内计算SOI的逆;第三,如果架构正确,ReRAM crossbar可以执行矩阵求逆和向量矩阵乘法,这对二阶训练算法很重要。然而,目前基于ReRAM的PIM技术仍然面临着加速二阶训练的关键挑战。现有的基于ReRAM的矩阵求逆电路只能支持8位精度的矩阵求逆,计算精度对于需要至少16位精度的矩阵求逆的二阶训练来说是不够的。在这项工作中,我们提出了一种方法,以实现高精度矩阵求逆的基础上证明8位矩阵求逆(INV)电路和向量矩阵乘法(VMM)电路。我们设计了\archname{},一个基于ReRAM的PIM加速器架构,用于二阶训练。此外,我们提出了一个软件映射方案,\archname{}进一步优化性能融合VMM和INV交叉开关。实验表明,与GPU对应物和大规模DNN上的PipeLayer相比,\archname{}可以实现平均115.8 $\times$ /11.4 $\times$加速和41.9 $\times$ /12.8 $\times$节能。

英文摘要:

The second-order training methods can converge much faster than first-order optimizers in DNN training. This is because the second-order training utilizes the inversion of the second-order information (SOI) matrix to find a more accurate descent direction and step size. However, the huge SOI matrices bring significant computational and memory overheads in the traditional architectures like GPU and CPU. On the other side, the ReRAM-based process-in-memory (PIM) technology is suitable for the second-order training because of the following three reasons: First, PIM's computation happens in memory, which reduces data movement overheads; Second, ReRAM crossbars can compute SOI's inversion in $O\left(1\right)$ time; Third, if architected properly, ReRAM crossbars can perform matrix inversion and vector-matrix multiplications which are important to the second-order training algorithms. Nevertheless, current ReRAM-based PIM techniques still face a key challenge for accelerating the second-order training. The existing ReRAM-based matrix inversion circuitry can only support 8-bit accuracy matrix inversion and the computational precision is not sufficient for the second-order training that needs at least 16-bit accurate matrix inversion. In this work, we propose a method to achieve high-precision matrix inversion based on a proven 8-bit matrix inversion (INV) circuitry and vector-matrix multiplication (VMM) circuitry. We design \archname{}, a ReRAM-based PIM accelerator architecture for the second-order training. Moreover, we propose a software mapping scheme for \archname{} to further optimize the performance by fusing VMM and INV crossbar. Experiment shows that \archname{} can achieve an average of 115.8$\times$/11.4$\times$ speedup and 41.9$\times$/12.8$\times$energy saving compared to a GPU counterpart and PipeLayer on large-scale DNNs.

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

↑