arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.02024cs.ARcs.AI
收藏

评估STT-MRAM作为ML加速器训练中暂存存储器的效果

Evaluation of STT-MRAM as a Scratchpad for Training in ML Accelerators

Purdue University(普渡大学);Iowa State University(爱荷华州立大学)

Sourjya Roy, Cheng Wang, Anand Raghunathan

AI总结:

本研究评估STT-MRAM作为ML训练加速器暂存存储器的效果,通过跨层仿真框架优化写入电压和持续时间,提出异构内存配置,实现训练收敛并显著提升系统能量效率。

摘要:

过去十年中,人工智能和机器学习的进步得益于训练更大规模的深度神经网络(DNN)的能力,这导致了计算需求远远超过了摩尔定律所提供的硬件性能增长。训练DNN是一个极其消耗内存的过程,不仅需要存储模型权重,还需要存储整个小批量的激活值和梯度。提供高密度和低漏电的片上存储器的需求,促使人们探索新兴的非易失性存储器用于训练加速器。自旋转移矩MRAM(STT-MRAM)为训练加速器提供了多项理想特性,包括比SRAM高3-4倍的密度、显著降低的漏电功耗、高耐久性以及合理的访问时间。另一方面,由于需要确保可靠的翻转,MRAM的写操作需要较高的写入能量和延迟。在本研究中,我们对STT-MRAM进行了全面的器件到系统的评估和协同优化,以实现高效的ML训练加速器设计。我们设计了一个跨层仿真框架,以评估STT-MRAM作为基于脉动阵列的DNN加速器中替代SRAM的暂存存储器的有效性。为了解决STT-MRAM中写入效率低下的问题,我们提出降低写入电压和持续时间。为了评估由此产生的准确性与效率之间的权衡,我们对训练过程中输入激活值、权重和误差的容错能力进行了深入分析。我们提出了异构内存配置,能够在保持良好准确性的情况下实现训练收敛。我们表明,在等容量和等面积场景下,MRAM在一套DNN基准测试中可提供高达15-22倍的系统能量改进。进一步优化STT-MRAM的写操作,可以在应用级训练精度仅有微小下降的情况下,提供超过2倍的写入能量改进。

英文摘要:

Progress in artificial intelligence and machine learning over the past decade has been driven by the ability to train larger deep neural networks (DNNs), leading to a compute demand that far exceeds the growth in hardware performance afforded by Moore's law. Training DNNs is an extremely memory-intensive process, requiring not just the model weights but also activations and gradients for an entire minibatch to be stored. The need to provide high-density and low-leakage on-chip memory motivates the exploration of emerging non-volatile memory for training accelerators. Spin-Transfer-Torque MRAM (STT-MRAM) offers several desirable properties for training accelerators, including 3-4x higher density than SRAM, significantly reduced leakage power, high endurance and reasonable access time. On the one hand, MRAM write operations require high write energy and latency due to the need to ensure reliable switching. In this study, we perform a comprehensive device-to-system evaluation and co-optimization of STT-MRAM for efficient ML training accelerator design. We devised a cross-layer simulation framework to evaluate the effectiveness of STT-MRAM as a scratchpad replacing SRAM in a systolic-array-based DNN accelerator. To address the inefficiency of writes in STT-MRAM, we propose to reduce write voltage and duration. To evaluate the ensuing accuracy-efficiency trade-off, we conduct a thorough analysis of the error tolerance of input activations, weights, and errors during the training. We propose heterogeneous memory configurations that enable training convergence with good accuracy. We show that MRAM provide up to 15-22x improvement in system level energy across a suite of DNN benchmarks under iso-capacity and iso-area scenarios. Further optimizing STT-MRAM write operations can provide over 2x improvement in write energy for minimal degradation in application-level training accuracy.

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

↑