Sextans: A Streaming Accelerator for General-Purpose Sparse-Matrix Dense-Matrix Multiplication

Linghao Song, Yuze Chi, Atefeh Sohrabizadeh, Young-kyu Choi, Jason Lau, Jason Cong

Abstract

Sparse-Matrix Dense-Matrix multiplication (SpMM) is a critical kernel in modern workloads such as Graph Neural Networks and social network analysis. However, its acceleration on FPGAs is hindered by workload imbalance, memory access inefficiencies, and rigid hardware designs. This paper presents Sextans, a streaming FPGA accelerator that utilizes an out-of-order scheduling strategy and a novel "HFlex" architecture to provide high performance and flexibility. Sextans supports matrices of arbitrary dimensions without hardware re-synthesis and leverages High Bandwidth Memory (HBM) for efficient data streaming. Evaluation on 1,400 configurations shows that Sextans achieves a 2.5x geomean speedup over NVIDIA K80 GPUs and significant energy efficiency gains.

Introduction

Sparse-Matrix Dense-Matrix multiplication (SpMM) serves as the computational backbone for diverse applications, including Graph Neural Networks (GNNs) and scientific simulations. Despite its importance, accelerating SpMM remains challenging due to three primary factors: workload imbalance caused by irregular sparsity patterns, the "memory wall" resulting from random off-chip accesses, and the lack of hardware flexibility in traditional FPGA accelerators, which often require time-consuming re-synthesis for different matrix sizes.

Methods and Architecture

Sextans addresses these challenges through a combination of architectural innovations and software-assisted scheduling.

HFlex (Hardware Flexibility)

Sextans decouples matrix dimensions from the hardware bitstream using an iteration pointer list ($Q$). This list acts as a lightweight instruction queue, guiding the hardware through sub-matrix boundaries and allowing a single bitstream to process matrices of any size. This removes the "hardware nightmare" of waiting hours for re-synthesis when data dimensions change.

PE-Aware Non-Zero Scheduling

To maintain a high pipeline throughput (Initiation Interval of 1), Sextans employs an out-of-order scheduling strategy. This logic, implemented as a host-side pre-processing step, reorders non-zero elements to avoid Read-After-Write (RAW) conflicts in the result scratchpads. By moving this complexity to software, the hardware remains streamlined and can operate at higher frequencies.

HBM-Centric Design

The architecture is optimized for High Bandwidth Memory (HBM). Matrices are partitioned into shards aligned with HBM pseudo-channels, enabling parallel, sequential streaming into on-chip scratchpad memories (URAMs and BRAMs). This approach effectively tames random memory access by restricting it to on-chip fast memory while ensuring all off-chip HBM access is sequential and batched.

High-level HBM-centric architecture of Sextans showing the data flow from HBM through Processing Element Groups (PEGs) to the final computation.

The internal structure of the Processing Elements (PEs) is designed to handle the streaming data efficiently, as shown in the detailed architecture below.

Detailed Processing Element (PE) architecture illustrating the HFlex logic and the data path for sparse matrix elements (a_val, a_col, a_row) and dense matrix blocks (B Mem).

Evaluation

The researchers conducted a massive evaluation using 1,400 SpMM configurations derived from 200 real-world sparse matrices from the SNAP (social networks, web graphs) and SuiteSparse (scientific computing) collections. The matrices ranged in size from 5 rows to over 500,000 rows, with non-zero counts up to 37 million.

Key Results

Sextans demonstrates significant performance and efficiency advantages over traditional GPU solutions:

  • Speedup: The Sextans prototype on a Xilinx U280 achieved a 2.50x geomean speedup over the NVIDIA Tesla K80 GPU. A projected version, Sextans-P, achieved a 1.14x geomean speedup over the much more powerful NVIDIA V100.
  • Energy Efficiency: Sextans proved to be 6.25x more energy-efficient than the K80 and 3.20x more efficient than the V100.
  • Peak Throughput: The prototype reached a peak performance of 181.1 GFLOP/s.

Conclusion and Future Work

Sextans successfully addresses the core difficulties of SpMM acceleration by decoupling structure from logic and optimizing for HBM streaming. While host-side scheduling introduces a one-time cost, the resulting hardware flexibility and performance gains are substantial. Future work may involve integrating more complex graph operations directly into the streaming pipeline to further reduce data movement overhead.

Summary updated

BibTeX
@inproceedings{song2022sextans,
  author = {Linghao Song and Yuze Chi and Atefeh Sohrabizadeh and Young-kyu Choi and Jason Lau and Jason Cong},
  title = {{Sextans: A Streaming Accelerator for General-Purpose Sparse-Matrix Dense-Matrix Multiplication}},
  booktitle = {FPGA},
  year = {2022},
  doi = {10.1145/3490422.3502357},
}
Figure