[Paper Review] PUMA: A Programmable Ultra-efficient Memristor-based Accelerator for Machine Learning Inference
PUMA is a programmable, ultra-efficient memristor-based accelerator for machine learning inference that integrates analog memristor crossbars with digital processing units via a custom Instruction Set Architecture (ISA). It achieves up to 2,446× energy efficiency and 66× latency improvement over state-of-the-art GPUs by enabling general-purpose ML workloads while preserving in-memory computing efficiency.
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\ imes$ energy and $66\ imes$ 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.
Motivation & Objective
- To overcome the limited programmability and workload specificity of existing memristor-based accelerators for machine learning.
- To enable efficient execution of diverse ML inference workloads—including CNNs, RNNs, and transformers—on a single accelerator architecture.
- To maintain high energy efficiency and storage density of memristor crossbars while adding general-purpose computation capabilities.
- To co-design a specialized ISA, compiler, and microarchitecture that minimize area and power overheads for complex workloads.
- To demonstrate that programmable memristor accelerators can outperform GPUs and ASICs in both energy efficiency and latency.
Proposed method
- PUMA uses a spatial architecture with thousands of processing cores, each integrating a memristor crossbar for matrix-vector multiplication and a digital execution unit for scalar and vector operations.
- A custom Instruction Set Architecture (ISA) enables compact encoding of ML operations, reducing decoder complexity and supporting diverse neural network types.
- Temporal SIMD units and ROM-embedded RAM are used for efficient execution of linear and transcendental functions like ReLU and softmax.
- The PUMA compiler performs graph partitioning, instruction scheduling, and register allocation to generate optimized code for large-scale models.
- A detailed architecture simulator models timing, power, and area to evaluate performance and energy efficiency across diverse workloads.
- The design employs 1T1R memristor configuration for manufacturability and high storage density, with data movement optimized via flexible control units.
Experimental results
Research questions
- RQ1Can a memristor-based accelerator achieve high energy efficiency while supporting a broad range of machine learning inference workloads?
- RQ2How can programmability be added to memristor crossbars without sacrificing their inherent energy efficiency and storage density?
- RQ3What is the performance and energy overhead of adding general-purpose execution units to memristor crossbars for mixed-precision and non-MVM operations?
- RQ4To what extent can a custom ISA and compiler enable efficient mapping of complex neural networks to a spatial memristor accelerator?
- RQ5How does a programmable memristor accelerator compare to GPUs and application-specific ASICs in terms of energy-delay product and scalability?
Key findings
- PUMA achieves an area efficiency of 577 GOPS/s/mm² and a power efficiency of 837 GOPS/s/W at 1 GHz, significantly outperforming digital accelerators.
- For image recognition, machine translation, and language modeling workloads (5M–800M synapses), PUMA delivers up to 2,446× lower energy consumption than state-of-the-art GPUs.
- PUMA reduces inference latency by up to 66× compared to GPUs while maintaining high storage density and low area overhead.
- Compared to application-specific memristor accelerators, PUMA incurs only small energy overheads at similar latency, with the added benefit of full programmability.
- The PUMA compiler successfully partitions and optimizes large-scale models, enabling efficient code generation for thousands of spatial cores.
- The use of 1T1R memristor configuration ensures manufacturability, with industry partners like TSMC and UMC already advancing 40nm CMOS-integrated memristor technology.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.