An Efficient Sparse Hardware Accelerator for Spike-Driven Transformer

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Zhengke, Mao, Wendong, Zhang, Siyu, Dong, Qiwei, Wang, Zhongfeng
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929675040718848
author Li, Zhengke
Mao, Wendong
Zhang, Siyu
Dong, Qiwei
Wang, Zhongfeng
author_facet Li, Zhengke
Mao, Wendong
Zhang, Siyu
Dong, Qiwei
Wang, Zhongfeng
contents Recently, large models, such as Vision Transformer and BERT, have garnered significant attention due to their exceptional performance. However, their extensive computational requirements lead to considerable power and hardware resource consumption. Brain-inspired computing, characterized by its spike-driven methods, has emerged as a promising approach for low-power hardware implementation. In this paper, we propose an efficient sparse hardware accelerator for Spike-driven Transformer. We first design a novel encoding method that encodes the position information of valid activations and skips non-spike values. This method enables us to use encoded spikes for executing the calculations of linear, maxpooling and spike-driven self-attention. Compared with the single spike input design of conventional SNN accelerators that primarily focus on convolution-based spiking computations, the specialized module for spike-driven self-attention is unique in its ability to handle dual spike inputs. By exclusively utilizing activated spikes, our design fully exploits the sparsity of Spike-driven Transformer, which diminishes redundant operations, lowers power consumption, and minimizes computational latency. Experimental results indicate that compared to existing SNNs accelerators, our design achieves up to 13.24$\times$ and 1.33$\times$ improvements in terms of throughput and energy efficiency, respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2501_07825
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Efficient Sparse Hardware Accelerator for Spike-Driven Transformer
Li, Zhengke
Mao, Wendong
Zhang, Siyu
Dong, Qiwei
Wang, Zhongfeng
Hardware Architecture
Recently, large models, such as Vision Transformer and BERT, have garnered significant attention due to their exceptional performance. However, their extensive computational requirements lead to considerable power and hardware resource consumption. Brain-inspired computing, characterized by its spike-driven methods, has emerged as a promising approach for low-power hardware implementation. In this paper, we propose an efficient sparse hardware accelerator for Spike-driven Transformer. We first design a novel encoding method that encodes the position information of valid activations and skips non-spike values. This method enables us to use encoded spikes for executing the calculations of linear, maxpooling and spike-driven self-attention. Compared with the single spike input design of conventional SNN accelerators that primarily focus on convolution-based spiking computations, the specialized module for spike-driven self-attention is unique in its ability to handle dual spike inputs. By exclusively utilizing activated spikes, our design fully exploits the sparsity of Spike-driven Transformer, which diminishes redundant operations, lowers power consumption, and minimizes computational latency. Experimental results indicate that compared to existing SNNs accelerators, our design achieves up to 13.24$\times$ and 1.33$\times$ improvements in terms of throughput and energy efficiency, respectively.
title An Efficient Sparse Hardware Accelerator for Spike-Driven Transformer
topic Hardware Architecture
url https://arxiv.org/abs/2501.07825