PUMA:一种基于忆阻器的可编程超高效机器学习推理加速器
PUMA: A Programmable Ultra-efficient Memristor-based Accelerator for Machine Learning Inference
摘要:
忆阻器交叉开关是能够执行模拟矩阵向量乘法的电路,克服了数字逻辑的基本能量效率限制。它们已被证明是有效的专用加速器有限的一组神经网络应用。我们提出了基于可编程超高效忆阻器的加速器(Programmable Ultra-efficient Memristor-based Accelerator,简称MERA),它通过通用执行单元增强了忆阻器交叉开关,从而能够加速各种机器学习(ML)推理工作负载。通过专用指令集架构(ISA)公开的微架构技术保留了存内计算和模拟电路的效率,而不影响可编程性。我们还介绍了将高级代码翻译为CAXA ISA的CAXA编译器。编译器对计算图进行分区,并优化指令调度和寄存器分配,以生成用于大型复杂工作负载的代码,从而在数千个空间核上运行。我们已经开发了一个详细的架构模拟器,该模拟器结合了CNOAA组件的功能、时序和功耗模型,以评估性能和能耗。在1GHz下运行的MATA加速器可以分别达到$577~GOPS/s/mm^2$和$837~GOPS/s/W$的面积和功率效率。我们对图像识别、机器翻译和语言建模(5 M-800 M突触)等多种ML应用程序的评估表明,与最先进的GPU相比,MGA在推理方面实现了高达$2,446\times$能量和$66\times$延迟的改善。与特定于应用的基于忆阻器的加速器相比,在类似的推理延迟和增加的可编程性下,CHTA产生小的能量开销。
英文摘要:
Memristor crossbars are circuits capable of performing analog matrix-vector multiplications, overcoming the fundamental energy efficiency limitations of digital logic. They have been shown to be effective in special-purpose accelerators for a limited set of neural network applications. We present the Programmable Ultra-efficient Memristor-based Accelerator (PUMA) which enhances memristor crossbars with general purpose execution units to enable the acceleration of a wide variety of Machine Learning (ML) inference workloads. PUMA's microarchitecture techniques exposed through a specialized Instruction Set Architecture (ISA) retain the efficiency of in-memory computing and analog circuitry, without compromising programmability. We also present the PUMA compiler which translates high-level code to PUMA ISA. The compiler partitions the computational graph and optimizes instruction scheduling and register allocation to generate code for large and complex workloads to run on thousands of spatial cores. We have developed a detailed architecture simulator that incorporates the functionality, timing, and power models of PUMA's components to evaluate performance and energy consumption. A PUMA accelerator running at 1 GHz can reach area and power efficiency of $577~GOPS/s/mm^2$ and $837~GOPS/s/W$, respectively. Our evaluation of diverse ML applications from image recognition, machine translation, and language modelling (5M-800M synapses) shows that PUMA achieves up to $2,446\times$ energy and $66\times$ latency improvement for inference compared to state-of-the-art GPUs. Compared to an application-specific memristor-based accelerator, PUMA incurs small energy overheads at similar inference latency and added programmability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。