arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14547cs.ARcs.ETcs.LG
收藏

用于深度神经网络训练的基于忆阻器的批量切换存内计算模块

Bulk-Switching Memristor-based Compute-In-Memory Module for Deep Neural Network Training

University of Michigan(密歇根大学);Applied Materials, Inc.(应用材料公司)

Yuting Wu, Qiwen Wang, Ziyu Wang, Xinxin Wang, Buvna Ayyagari, Siddarth Krishnan, Michael Chudzik, Wei D. Lu

AI总结:

本研究提出一种基于批量切换忆阻器CIM模块的混合精度训练方案,通过片上系统实现LeNet快速收敛至97.73%,并验证了其在大型DNN训练中的高效性与对硬件变化的鲁棒性。

摘要:

对具有更高性能和更好功能的深度神经网络(DNN)模型的需求导致了超大模型的激增。然而,模型训练需要大量的计算时间和能量。基于忆阻器的存内计算(CIM)模块可以原位且并行地执行向量-矩阵乘法(VMM),在DNN推理应用中展现出了巨大前景。然而,由于非线性权重更新、器件变化和模拟计算电路的低精度,基于CIM的模型训练面临挑战。在这项工作中,我们实验性地实现了一种混合精度训练方案,使用批量切换忆阻器CIM模块来减轻这些影响。低精度CIM模块用于加速昂贵的VMM操作,而高精度权重更新在数字单元中累积。仅当累积的权重更新值超过预定义阈值时,才改变忆阻器器件。所提出的方案通过一个完全集成的模拟CIM模块和数字子系统的片上系统(SoC)实现,显示出LeNet训练快速收敛至97.73%。使用现实的硬件参数评估了训练更大模型的功效,结果表明模拟CIM模块能够实现高效的混合精度DNN训练,其精度可与全精度软件训练的模型相媲美。此外,在芯片上训练的模型本质上对硬件变化具有鲁棒性,允许直接映射到CIM推理芯片而无需额外重新训练。

英文摘要:

The need for deep neural network (DNN) models with higher performance and better functionality leads to the proliferation of very large models. Model training, however, requires intensive computation time and energy. Memristor-based compute-in-memory (CIM) modules can perform vector-matrix multiplication (VMM) in situ and in parallel, and have shown great promises in DNN inference applications. However, CIM-based model training faces challenges due to non-linear weight updates, device variations, and low-precision in analog computing circuits. In this work, we experimentally implement a mixed-precision training scheme to mitigate these effects using a bulk-switching memristor CIM module. Lowprecision CIM modules are used to accelerate the expensive VMM operations, with high precision weight updates accumulated in digital units. Memristor devices are only changed when the accumulated weight update value exceeds a pre-defined threshold. The proposed scheme is implemented with a system-on-chip (SoC) of fully integrated analog CIM modules and digital sub-systems, showing fast convergence of LeNet training to 97.73%. The efficacy of training larger models is evaluated using realistic hardware parameters and shows that that analog CIM modules can enable efficient mix-precision DNN training with accuracy comparable to full-precision software trained models. Additionally, models trained on chip are inherently robust to hardware variations, allowing direct mapping to CIM inference chips without additional re-training.

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

↑