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

利用DRAM处理加速神经网络推理:从边缘到云

Accelerating Neural Network Inference with Processing-in-DRAM: From the Edge to the Cloud

ETH Zürich(苏黎世联邦理工学院);Google(谷歌)

Geraldo F. Oliveira, Juan Gómez-Luna, Saugata Ghose, Amirali Boroumand, Onur Mutlu

摘要:

神经网络(NN)的重要性和复杂性都在增长。神经网络的性能(和能量效率)可以受到计算或存储器资源的限制。内存处理(PIM)范式,其中计算被放置在内存阵列附近或内部,是一个可行的解决方案,以加速内存限制的神经网络。然而,PIM架构在形式上不同,其中不同的PIM方法导致不同的权衡。我们的目标是分析,讨论和对比基于DRAM的PIM架构的NN性能和能源效率。为此,我们分析了三种最先进的PIM架构:(1)UPMEM,它将处理器和DRAM阵列集成到单个2D芯片中;(2)Mensa,一种为边缘设备量身定制的基于3D堆栈的PIM架构;(3)SIMDRAM,它使用DRAM的模拟原理来执行位串行操作。我们的分析表明,PIM极大地有利于内存受限的NN:(1)当GPU需要内存超额订阅时,UPMEM提供了高端GPU的23倍性能一般矩阵向量乘法内核;(2)对于24个Google边缘NN模型,Mensa将能源效率和吞吐量提高了3.0倍和3.1倍于Google Edge TPU;(3)对于三个二进制神经网络,SIMDRAM的性能比CPU/GPU高16.7倍/1.4倍。我们的结论是,理想的PIM架构NN模型取决于模型的独特属性,由于固有的架构设计的选择。

英文摘要:

Neural networks (NNs) are growing in importance and complexity. A neural network's performance (and energy efficiency) can be bound either by computation or memory resources. The processing-in-memory (PIM) paradigm, where computation is placed near or within memory arrays, is a viable solution to accelerate memory-bound NNs. However, PIM architectures vary in form, where different PIM approaches lead to different trade-offs. Our goal is to analyze, discuss, and contrast DRAM-based PIM architectures for NN performance and energy efficiency. To do so, we analyze three state-of-the-art PIM architectures: (1) UPMEM, which integrates processors and DRAM arrays into a single 2D chip; (2) Mensa, a 3D-stack-based PIM architecture tailored for edge devices; and (3) SIMDRAM, which uses the analog principles of DRAM to execute bit-serial operations. Our analysis reveals that PIM greatly benefits memory-bound NNs: (1) UPMEM provides 23x the performance of a high-end GPU when the GPU requires memory oversubscription for a general matrix-vector multiplication kernel; (2) Mensa improves energy efficiency and throughput by 3.0x and 3.1x over the Google Edge TPU for 24 Google edge NN models; and (3) SIMDRAM outperforms a CPU/GPU by 16.7x/1.4x for three binary NNs. We conclude that the ideal PIM architecture for NN models depends on a model's distinct attributes, due to the inherent architectural design choices.

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

↑