A Pipelined FPGA Architecture for Banded Sparse Matrix Dense Matrix Multiplication in Longformer
Phillip Pramberger, Athanasios Tziouvaras, Shreejith Shanker, George Floros
Abstract
Sparse attention mechanisms have become increasingly important for transformer models processing long input sequences due to their lower computational and memory complexity compared to full self-attention. Longformer achieves this through a sliding-window attention mechanism that produces a structured banded sparse attention matrix. However, existing sparse transformer accelerators primarily target attention generation or unstructured sparsity, leaving sparse matrix--dense matrix multiplication (SpMM) for structured sparse attention largely unexplored. This paper presents a pipelined FPGA architecture for accelerating banded SpMM in Longformer. The proposed design exploits the predictable sparsity pattern of Longformer's attention matrix through a custom row-wise storage scheme with implicit indexing, eliminating the overhead of conventional sparse matrix formats while enabling regular memory accesses. The architecture employs parallel processing elements, pipelined adder trees, and a dual-path computation strategy to maximize throughput and hardware utilization. Implemented in Verilog and evaluated on an RFSoC platform using Vivado 2024.2, the accelerator sustains one complete dot-product result per clock cycle after an initial latency of 11 cycles while maintaining power consumption below 2.9 W. Operating at 100 MHz, the design achieves over 100 million dot-product outputs per second, demonstrating the effectiveness of directly exploiting structured sparsity for sparse transformer acceleration.
Create a lesson
Metadata
- Comments
- Accepted at ICECS 2026
Related papers
SUSpMV: A High Frequency Sparse Matrix Vector Multiplier on HBM Enabled FPGA written in SUS
Shared title terminologycs.ARLennart Van Hirtum, David Volz, Andreas Koch et al.
StreamHD: A Streaming FPGA Architecture for Graph Classification with Hyperdimensional Computing
Shared title terminologycs.ARJebacyril Arockiaraj, Dhruv Parikh, Viktor Prasanna
Native Block-Quantized Matrix Multiplication and Explicit K/V Residency with Dual-View Access for LLM Inference on RISC-V Vector Processors
Shared title terminologycs.ARWeiying Wang, Yuanyang Xiang, Zhiwei Zhang
Synapse: An HBM-Coordinated HBF Near-Memory Computing Architecture for Pipelined Agentic AI Execution
Shared title terminologycs.ARJuhyeong Jin, Hyunjun Cho, Joo-Young Kim
Detection of Single Stuck-at and Bridging Faults in Cluster-based FPGA Architectures
Shared title terminologycs.ARNachiketa Das, Sudip Ghosh, H. Rahaman
ESL-former: Event Sparse Linear Transformer for FPGA-Accelerated Malware Detection
Shared title terminologycs.ARJun Yang, Yumeng Cao, Yingxuan Xiao et al.