[Paper Review] Serpens: A High Bandwidth Memory Based Accelerator for General-Purpose Sparse Matrix-Vector Multiplication
Serpens is an HBM-based FPGA accelerator designed for general-purpose sparse matrix-vector multiplication (SpMV), leveraging memory-centric processing engines and index coalescing to optimize memory access and URAM utilization. It achieves up to 60.55 GFLOP/s and 3.79× higher throughput than GraphLily, with 6.25× better energy efficiency than a K80 GPU on SuiteSparse matrices.
Sparse matrix-vector multiplication (SpMV) multiplies a sparse matrix with a dense vector. SpMV plays a crucial role in many applications, from graph analytics to deep learning. The random memory accesses of the sparse matrix make accelerator design challenging. However, high bandwidth memory (HBM) based FPGAs are a good fit for designing accelerators for SpMV. In this paper, we present Serpens, an HBM based accelerator for general-purpose SpMV.Serpens features (1) a general-purpose design, (2) memory-centric processing engines, and (3) index coalescing to support the efficient processing of arbitrary SpMVs. From the evaluation of twelve large-size matrices, Serpens is 1.91x and 1.76x better in terms of geomean throughput than the latest accelerators GraphLiLy and Sextans, respectively. We also evaluate 2,519 SuiteSparse matrices, and Serpens achieves 2.10x higher throughput than a K80 GPU. For the energy/bandwidth efficiency, Serpens is 1.71x/1.99x, 1.90x/2.69x, and 6.25x/4.06x better compared with GraphLily, Sextans, and K80, respectively. After scaling up to 24 HBM channels, Serpens achieves up to 60.55~GFLOP/s (30,204~MTEPS) and up to 3.79x over GraphLily. The code is available at https://github.com/UCLA-VAST/Serpens.
Motivation & Objective
- Address the challenge of irregular memory access patterns in SpMV by designing a memory-optimized accelerator.
- Overcome limitations in existing FPGA accelerators like GraphLily and Sextans, which are not fully customized for SpMV or underutilize memory bandwidth.
- Enable high performance and scalability for arbitrary sparse matrices without re-prototyping, supporting general-purpose deployment in data centers.
- Maximize utilization of HBM and on-chip memory (BRAM/URAM) to reduce off-chip memory latency and improve throughput and energy efficiency.
- Achieve competitive performance against GPUs while maintaining low energy and bandwidth overhead for sparse workloads.
Proposed method
- Employ memory-centric processing engines that process sparse matrices in a streaming, output-stationary fashion to minimize off-chip memory access.
- Implement index coalescing to pack non-zero indices efficiently into on-chip URAMs, improving memory bandwidth utilization and reducing access latency.
- Partition the dense input vector into segments and accumulate results in on-chip BRAMs/URAMs to enable high-throughput, low-latency computation.
- Use a custom data layout and preprocessing pipeline to convert sparse matrix formats into accelerator-friendly storage, compatible with arbitrary SpMV workloads.
- Leverage HBM-based FPGAs (U280) with up to 24 HBM channels, using TAPA and Autobridge tools to resolve place-and-route congestion at scale.
- Design a scalable, reconfigurable architecture that maintains high performance across diverse sparse matrices without reconfiguration.
Experimental results
Research questions
- RQ1Can an HBM-based FPGA accelerator achieve higher throughput and energy efficiency than existing GPU and FPGA accelerators for general-purpose SpMV?
- RQ2How effective is index coalescing in improving URAM utilization and reducing memory access overhead in SpMV workloads?
- RQ3To what extent can memory-centric processing engines reduce reliance on off-chip memory and improve performance on irregular sparse data?
- RQ4How does scaling HBM channels from 16 to 24 impact performance and scalability in SpMV acceleration?
- RQ5Can a custom FPGA accelerator outperform a high-end GPU like K80 in both throughput and energy efficiency across a broad set of real-world sparse matrices?
Key findings
- Serpens achieves a geomean throughput of 1.91× higher than GraphLily and 1.76× higher than Sextans on 12 large sparse matrices.
- On 2,519 SuiteSparse matrices, Serpens delivers 2.10× higher throughput and 6.25× better energy efficiency than a K80 GPU.
- With 24 HBM channels, Serpens reaches a peak performance of 60.55 GFLOP/s and 30,204 MTEPS, achieving up to 3.79× speedup over GraphLily.
- Serpens improves bandwidth efficiency by 4.06× and energy efficiency by 6.25× compared to the K80 GPU across the SuiteSparse benchmark suite.
- Despite higher BRAM usage, Serpens consumes fewer LUTs, FFs, DSPs, and URAMs than GraphLily due to its SpMV-specific customization.
- The 24-channel version of Serpens maintains a 270 MHz clock frequency and successfully overcomes place-and-route congestion using TAPA and Autobridge tools.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.