A Cascaded ReRAM-based Crossbar Architecture for Transformer Neural Network Acceleration
Open Access
- 13 December 2024
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Design Automation of Electronic Systems
- Vol. 30 (1) , 1-23
Abstract
Emerging resistive random-access memory (ReRAM) based processing-in-memory (PIM) accelerators have been increasingly explored in recent years because they can efficiently perform in-situ matrix-vector multiplication (MVM) operations involved in a wide spectrum of artificial neural networks. However, there remain significant challenges to apply existing ReRAM-based PIM accelerators to the most popular Transformer neural networks. Since Transformers involve a series of matrix-matrix multiplication (MatMul) operations with data dependencies, they should write intermediate results of MatMuls to ReRAM crossbar arrays for further processing. Conventional ReRAM-based PIM accelerators often suffer from high latency of ReRAM writes and intra-layer pipeline stalls. In this paper, we propose ReCAT, a ReRAM-based PIM accelerator designed particularly for Transformers. ReCAT exploits transimpedance amplifiers (TIAs) to cascade a pair of crossbar arrays for MatMul operations involved in the self-attention mechanism. The intermediate result of a MatMul generated by one crossbar array can be directly mapped to another crossbar array, avoiding costly analog-to-digital conversions. In this way, ReCAT allows MVM operations to overlap with the corresponding data mapping, hiding the high latency of ReRAM writes. Furthermore, we propose an analog-to-digital converter (ADC) virtualization scheme to dynamically share scarce ADCs among a group of crossbar arrays, and thus significantly improve the utilization of ADCs to eliminate the performance bottleneck of MVM operations. Experimental results show that ReCAT achieves 207.3×, 2.11×, and 3.06× performance improvement on average compared with other Transformer acceleration solutions—GPUs, ReBert, and ReTransformer, respectively.Keywords
Funding Information
- National Key Research and Development Program of China (2022YFB4500303)
- National Natural Science Foundation of China (62072198, 62332011)
- Natural Science Foundation of Hubei Province (2021CFA037)
This publication has 38 references indexed in Scilit:
- A hybrid memory architecture supporting fine-grained data migrationFrontiers of Computer Science, 2024
- Memristive dynamics enabled neuromorphic computing systemsScience China Information Sciences, 2023
- ReCSA: a dedicated sort accelerator using ReRAM-based content addressable memoryFrontiers of Computer Science, 2022
- A Simulation Framework for Memristor-Based Heterogeneous Computing ArchitecturesIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2022
- Rerec: In-ReRAM Acceleration with Access-Aware Mapping for Personalized Recommendation2021
- A Framework for Accelerating Transformer-Based Language Model on ReRAM-Based ArchitectureIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2021
- Cascaded Architecture for Memristor Crossbar Array Based Larger-Scale Neuromorphic ComputingIEEE Access, 2019
- NeuroSim: A Circuit-Level Macro Model for Benchmarking Neuro-Inspired Architectures in Online LearningIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2018
- ImageNet Large Scale Visual Recognition ChallengeInternational Journal of Computer Vision, 2015
- ORION3.0: A Comprehensive NoC Router Estimation ToolIEEE Embedded Systems Letters, 2015