Accelerating Sparse Matrix-Matrix Multiplication on GPUs with Processing Near HBMs

Shiju Li, Younghoon Min, Hane Yie, Hoshik Kim, Soohong Ahn, Joonseop Sim, Chul-Ho Lee, Jongryool KimarXiv 2025 · DOI

Abstract

Sparse General Matrix-Matrix Multiplication (SpGEMM) is a critical operation for Graph Neural Networks (GNNs) and large-scale graph analytics. However, its irregular memory access patterns often lead to significant performance bottlenecks on traditional GPU architectures. This paper proposes AIA (Acceleration of Indirect Memory Access), a hardware-software co-design that integrates custom processing logic near High Bandwidth Memory (HBM). By transforming irregular data lookups into efficient sequential streams, AIA achieves up to a 6.87× throughput improvement over NVIDIA’s cuSPARSE.

Introduction: The Challenge of Sparse Math

Unlike dense matrix operations, sparse math is inherently irregular. In SpGEMM, the locations of non-zero elements are unknown until runtime, necessitating "indirect" memory lookups. For example, a GPU might look at an index to find a pointer, then jump to that pointer’s location in memory. This pattern results in frequent cache misses and underutilization of compute cores as they wait for data from memory—a classic manifestation of the "memory wall."

Hardware-Software Co-Design: AIA

The proposed solution, AIA, addresses these bottlenecks through a two-pronged approach involving both architectural changes and software optimizations.

Hardware: Processing Near HBM (PNHBM)

The core of the hardware innovation is the integration of "AIA engines" directly into the HBM controller at the base of the memory stacks. Instead of the GPU core issuing multiple individual requests for indirect data, it sends a single "range request" to the AIA engine.

The AIA engine performs the complex indirect lookups locally within the HBM stack and returns a clean, sequential stream of data to the GPU. This drastically reduces the number of round-trips between the processor and memory, smoothing out the irregularity of sparse math.

Architectural overview of the GPU with AIA Engines (AIAIE) integrated into the HBM stacks.

Software: Optimized Multi-phase SpGEMM

On the software side, the researchers developed a three-phase SpGEMM framework:

  1. Row-grouping: Analyzes workload intensity.
  2. Allocation: Predicts the output structure.
  3. Accumulation: Calculates the actual values.

To ensure balanced execution, they employ logarithmic binning to group rows by their workload. This prevents "straggler" threads from delaying the entire operation while other cores remain idle.

Evaluation and Results

The framework was evaluated using diverse datasets, including general sparse matrices from the University of Florida collection and large-scale GNN benchmarks like ogbn-products.

Key Performance Metrics

  • Throughput: AIA achieved an average 6.87× throughput increase compared to NVIDIA cuSPARSE for matrix self-products.
  • Runtime Reduction: The system demonstrated an average 80.5% reduction in runtime for general sparse matrices.
  • Graph Analytics: Execution times for Markov Clustering (MCL) and Graph Contraction were reduced by 58.4% and 76.5%, respectively.
  • GNN Training: Across architectures like GCN and GraphSAGE, the hybrid approach delivered up to 4.18× gains on large-scale datasets.

Insights on Efficiency

AIA significantly improves cache efficiency. The L1 cache hit ratio increased from approximately 64% to over 88% in certain phases. Furthermore, the benefits of AIA scale with the size of the dataset, showing its greatest advantages on massive graphs like ogbn-products (2.4M nodes).

Conclusion and Future Directions

AIA demonstrates that moving address-gathering logic closer to memory is a highly effective strategy for overcoming the memory wall in sparse computations. While implementation requires physical changes to HBM controller logic, the performance gains suggest a promising path for future high-performance computing and AI hardware. Future work may explore extending these benefits to other sparse formats like COO or specialized GNN tiling, as well as conducting detailed energy efficiency analyses.

Summary updated

BibTeX
@misc{li2025accelerating,
  author = {Shiju Li and Younghoon Min and Hane Yie and Hoshik Kim and Soohong Ahn and Joonseop Sim and Chul-Ho Lee and Jongryool Kim},
  title = {{Accelerating Sparse Matrix-Matrix Multiplication on GPUs with Processing Near HBMs}},
  year = {2025},
  eprint = {2512.12036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.12036},
}
Figure