arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.12638cs.ARcs.LG
收藏

ARTEMIS:用于Transformer神经网络的混合模拟-随机存内DRAM加速器

ARTEMIS: A Mixed Analog-Stochastic In-DRAM Accelerator for Transformer Neural Networks

Salma Afifi, Ishan Thakkar, Sudeep Pasricha

AI总结:

ARTEMIS是一种混合模拟-随机存内DRAM加速器,通过最小化DRAM改动并利用新型电容器支持随机计算和模拟累加,在加速Transformer时相比GPU、TPU等实现至少3.0倍速度提升和1.9倍能效改善。

摘要:

Transformer已成为自然语言处理(NLP)和计算机视觉的强大工具。通过注意力机制,与循环神经网络(RNN)和卷积神经网络(CNN)等传统方法相比,这些模型展现出了显著的性能提升。然而,由于计算量庞大且内存占用巨大,Transformer通常需要较长的执行时间。存内处理(PIM)和近内存计算(NMC)是加速Transformer的有前景的解决方案,因为它们提供了高计算并行性和内存带宽。然而,设计支持Transformer神经网络中复杂操作和层间海量数据移动的PIM/NMC架构仍然是一个挑战。我们提出了ARTEMIS,一种用于Transformer模型的混合模拟-随机存内DRAM加速器。通过对传统DRAM阵列进行最小改动,ARTEMIS利用一种新颖的存内金属-氧化物-金属电容器支持乘法的随机计算和时间模拟累加,从而有效降低了Transformer模型执行的成本。我们的分析表明,与GPU、TPU、CPU以及最先进的PIM Transformer硬件加速器相比,ARTEMIS至少实现了3.0倍的加速、1.8倍的能量降低和1.9倍的能效提升。

英文摘要:

Transformers have emerged as a powerful tool for natural language processing (NLP) and computer vision. Through the attention mechanism, these models have exhibited remarkable performance gains when compared to conventional approaches like recurrent neural networks (RNNs) and convolutional neural networks (CNNs). Nevertheless, transformers typically demand substantial execution time due to their extensive computations and large memory footprint. Processing in-memory (PIM) and near-memory computing (NMC) are promising solutions to accelerating transformers as they offer high compute parallelism and memory bandwidth. However, designing PIM/NMC architectures to support the complex operations and massive amounts of data that need to be moved between layers in transformer neural networks remains a challenge. We propose ARTEMIS, a mixed analog-stochastic in-DRAM accelerator for transformer models. Through employing minimal changes to the conventional DRAM arrays, ARTEMIS efficiently alleviates the costs associated with transformer model execution by supporting stochastic computing for multiplications and temporal analog accumulations using a novel in-DRAM metal-on-metal capacitor. Our analysis indicates that ARTEMIS exhibits at least 3.0x speedup, 1.8x lower energy, and 1.9x better energy efficiency compared to GPU, TPU, CPU, and state-of-the-art PIM transformer hardware accelerators.

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

↑