Skip to content

TriSpark: A Sparse Ternary Spiking Transformer with Event-Driven Acceleration on Edge FPGAs

Jun Yang, Yingxuan Xiao, Feiyang Li, Tingyang Zou, Yumeng Cao, Changhong Li

cs.AR

Abstract

Spiking Transformers have shown strong potential for image classification, but their deployment on resource-constrained edge devices remains difficult due to the limited representation capability of binary spikes and the high computational cost of attention and projection layers. In this work, we present TriSpark, a sparse ternary Spiking Transformer framework for FPGA edge platforms. TriSpark introduces ternary spikes into the Q/K/V branches to preserve positive and negative responses, while block-wise learnable scaling is employed to adjust the magnitude of attention outputs. RIA-guided 8:16 semi-structured weight pruning is further applied to the Q/K/V and MLP projection layers to reduce redundant computation and storage overhead while retaining important weights and preserving classification accuracy. TriSpark adopts an ExSpikeinspired event-driven architecture with nonzero event detection, 8:16 sparsity, and an attention core supporting positive and negative spike computation to translate spike and weight sparsity into practical hardware acceleration. Experimental evaluation demonstrates that TriSpark preserves classification accuracy while turning spike and weight sparsity into measured speed and energy gains. On a PYNQ-Z2 FPGA, TriSpark reaches an areanormalised energy efficiency of 10.32 GOPS/W/kLUTs, which is 1.46x and 2.8x higher than ExSpike and FireFly-T, and RIA 8:16 lowers its energy per image by 25% over dense weights.

Create a lesson

Metadata

Comments
6 pages, 4 figures, 2 tables.This work is supported in part by the Outstanding Young Scholars Program of the Scientific Research Projects of the Education Department of Hunan Province (25B0813)