eMamba: Efficient Acceleration Framework for Mamba Models in Edge Computing
Authors:
- Jiyong KimJKJiyong Kim
- Jaeho LeeJLJaeho Lee
- Jiahao LinJLJiahao Lin
- Alish KananiAKAlish Kanani
- Miao SunMSMiao Sun
- Umit Y. OgrasUOUmit Y. Ogras
- Jaehyun ParkJPJaehyun Park
Preprint
Abstract
State Space Model (SSM)-based machine learning architectures have recently gained significant attention for processing sequential data. Mamba, a recent sequence-to-sequence SSM, offers competitive accuracy with superior computational efficiency compared to state-of-the-art transformer models. While this advantage makes Mamba particularly promising for resource-constrained edge devices, no hardware acceleration frameworks are currently optimized for deploying it in such environments. This paper presents eMamba, a comprehensive end-to-end hardware acceleration framework explicitly designed for deploying Mamba models on edge platforms. eMamba maximizes computational efficiency by replacing complex normalization layers with lightweight hardware-aware alternatives and approximating expensive operations, such as SiLU activation and exponentiation, considering the target applications. Then, it performs an approximation-aware neural architecture search (NAS) to tune the learnable parameters used during approximation. Evaluations with Fashion-MNIST, CIFAR-10, and MARS, an open-source human pose estimation dataset, show eMamba achieves comparable accuracy to state-of-the-art techniques using 1.63-19.9$\times$ fewer parameters. In addition, it generalizes well to large-scale natural language tasks, demonstrating stable perplexity across varying sequence lengths on the WikiText2 dataset. We also quantize and implement the entire eMamba pipeline on an AMD ZCU102 FPGA and ASIC using GlobalFoundries (GF) 22 nm technology. Experimental results show 4.95-5.62$\times$ lower latency and 2.22-9.95$\times$ higher throughput, with 4.77$\times$ smaller area, 9.84$\times$ lower power, and 48.6$\times$ lower energy consumption than baseline solutions while maintaining competitive accuracy.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- ViTA: A Vision Transformer Inference Accelerator for Edge Applications2023
- ReAFM: A Reconfigurable Nonlinear Activation Function Module for Neural NetworksIEEE Transactions on Circuits and Systems II: Express Briefs, 2023
- AI and ML Accelerator Survey and Trends2022
- An Efficient CNN Accelerator for Low-Cost Edge SystemsACM Transactions on Embedded Computing Systems, 2022
- A 16 nJ/Classification FPGA-Based Wired-Logic DNN Accelerator Using Fixed-Weight Non-Linear Neural NetIEEE Journal on Emerging and Selected Topics in Circuits and Systems, 2021
- MARS: mmWave-based Assistive Rehabilitation System for Smart HealthcareACM Transactions on Embedded Computing Systems, 2021
- A Survey of Accelerator Architectures for Deep Neural NetworksEngineering, 2020
- HAQ: Hardware-Aware Automated Quantization With Mixed Precision2019
- Escher: A CNN Accelerator with Flexible Buffering to Minimize Off-Chip Transfer2017
- EyerissACM SIGARCH Computer Architecture News, 2016