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

NEON:在基于电阻RAM的神经网络加速器中实现对非线性运算的有效支持

NEON: Enabling Efficient Support for Nonlinear Operations in Resistive RAM-based Neural Network Accelerators

ETH Zürich(苏黎世联邦理工学院);Galicia Supercomputing Center (CESGA)(加利西亚超级计算中心(CESGA))

Aditya Manglik, Minesh Patel, Haiyu Mao, Behzad Salami, Jisung Park, Lois Orosa, Onur Mutlu

摘要:

电阻式随机存取存储器(RRAM)非常适合加速神经网络(NN)工作负载,因为基于RRAM的内存处理(PIM)架构本身支持高度并行的乘法累加(MAC)运算,这些运算构成了大多数NN工作负载的主干。不幸的是,NN工作负载(如Transformers)需要支持非MAC操作(例如,softmax),RRAM无法提供。因此,现有技术的工作要么集成额外的数字逻辑电路以支持非MAC操作,要么将非MAC操作卸载到CPU/GPU,从而由于数据移动而导致显著的性能和能效开销。在这项工作中,我们提出了NEON,一种新的编译器优化,使端到端执行的NN工作负载在RRAM。NEON的核心思想是将每个非MAC操作转换为轻量级但高度准确的神经网络。利用神经网络来近似非MAC操作提供了两个优点:1)我们可以利用RRAM的密钥强度,即,高度并行的MAC操作,灵活高效地执行内存中的非MAC操作。2)我们可以通过消除额外的数字逻辑电路来简化RRAM的微架构,同时减少数据移动开销。与理想化的基于数字逻辑的RRAM相比,内存中非MAC操作的加速使NEON能够实现2.28倍的加速比。我们分析了与转型相关的权衡,并在不同的基板上展示了NEON的可行用例。

英文摘要:

Resistive Random-Access Memory (RRAM) is well-suited to accelerate neural network (NN) workloads as RRAM-based Processing-in-Memory (PIM) architectures natively support highly-parallel multiply-accumulate (MAC) operations that form the backbone of most NN workloads. Unfortunately, NN workloads such as transformers require support for non-MAC operations (e.g., softmax) that RRAM cannot provide natively. Consequently, state-of-the-art works either integrate additional digital logic circuits to support the non-MAC operations or offload the non-MAC operations to CPU/GPU, resulting in significant performance and energy efficiency overheads due to data movement. In this work, we propose NEON, a novel compiler optimization to enable the end-to-end execution of the NN workload in RRAM. The key idea of NEON is to transform each non-MAC operation into a lightweight yet highly-accurate neural network. Utilizing neural networks to approximate the non-MAC operations provides two advantages: 1) We can exploit the key strength of RRAM, i.e., highly-parallel MAC operation, to flexibly and efficiently execute non-MAC operations in memory. 2) We can simplify RRAM's microarchitecture by eliminating the additional digital logic circuits while reducing the data movement overheads. Acceleration of the non-MAC operations in memory enables NEON to achieve a 2.28x speedup compared to an idealized digital logic-based RRAM. We analyze the trade-offs associated with the transformation and demonstrate feasible use cases for NEON across different substrates.

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

↑