NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SpComm3D: A Framework for Enabling Sparse Communication in 3D Sparse Kernels

Nabil Abubaker, Torsten HoeflerarXiv 2024 · DOI

Introduction

In High-Performance Computing (HPC), scaling sparse matrix operations across distributed-memory systems remains a significant challenge. While 2D and 3D algorithms are the gold standard for scaling dense matrix operations due to their strict communication upper bounds, they often fail to translate these benefits to sparse kernels. This paper introduces SpComm3D, a framework that brings "sparsity-awareness" to 3D distributed-memory algorithms for kernels such as Sampled Dense-Dense Matrix Multiplication (SDDMM) and Sparse Matrix-Matrix Multiplication (SpMM).

The Problem: Sparsity-Agnostic Communication

Traditional 3D algorithms are typically "sparsity-agnostic." They treat sparse matrices as if they were dense during the communication phase, moving data in bulk. This means entire blocks of dense matrices are sent to processors regardless of whether those processors actually require that specific data to compute their assigned non-zero elements.

Comparison of 1D, 2D, and 3D data distributions for matrix operations.

As shown in the figure above, standard distributions (1D, 2D, and 3D) rely on collective operations like All-Gather and Reduce-Scatter. In a sparse context, this leads to "over-communication" and massive memory waste. Large-scale simulations often crash not due to computational limits, but because they run out of RAM attempting to store unneeded dense rows—a phenomenon known as hitting the "memory wall."

The SpComm3D Framework

SpComm3D addresses these inefficiencies by ensuring that only the data strictly necessary for computation is communicated and stored. The framework is built on several key technical innovations:

1. Sparsity-Aware Communication and Storage

Instead of bulk transfers, SpComm3D identifies the exact "Data Units" (DUs) required by each processor based on the local sparsity pattern of the input matrix. By pruning unrequired communication paths and storage locations, the framework drastically reduces the memory footprint.

SpComm3D's sparsity-aware approach showing (a) 2D distribution, (b) local processor views with unrequired storage, and (c) the communication graph.

2. Three-Phase Execution Model

The framework decouples operations into three distinct phases:

  • PreComm: Gathering only the required input rows.
  • Compute: Performing the actual local computation. This phase is "communication-agnostic," allowing users to plug in any optimized CPU or GPU kernel.
  • PostComm: Reducing partial results across the network.

3. Zero-Copy and Distribution Techniques

To further optimize performance, the authors propose SpC-NB (No Buffers), which uses MPI_Type_Indexed to move data directly from its original memory locations, avoiding intermediate buffer overhead. Additionally, a $\lambda$-aware distribution algorithm assigns ownership of dense matrix rows to processors already on the communication path, minimizing unnecessary network hops.

Evaluation and Results

The framework was rigorously tested using ten massive real-world matrices from the SuiteSparse Matrix Collection, including social networks like twitter7 (1.4B nonzeros) and web crawls like webbase-2001 (1.0B nonzeros).

Key findings include:

  • Runtime Improvement: SpComm3D outperformed state-of-the-art sparsity-agnostic methods by up to 20x.
  • Communication Efficiency: On 900 processors, the framework reduced maximum receive volume by 4.0x to 6.5x compared to dense-style 3D algorithms.
  • Memory Savings: In one instance (kmer_A2a on 1800 processors), SpComm3D saved 10 Terabytes of RAM compared to the baseline, enabling the problem to run on hardware where it previously would have failed due to Out-of-Memory (OOM) errors.

Conclusion and Future Work

SpComm3D proves that the structured communication of a 3D grid can be combined with the surgical precision of sparse transfers. While the current framework assumes a fixed sparsity pattern (common in iterative solvers and machine learning), it sets a new benchmark for memory-efficient sparse kernels. Future work will look into extending this framework to dynamic sparsity patterns and a broader range of 3D sparse kernels.

Summary updated

BibTeX
@misc{abubaker2024spcomm,
  author = {Nabil Abubaker and Torsten Hoefler},
  title = {{SpComm3D: A Framework for Enabling Sparse Communication in 3D Sparse Kernels}},
  year = {2024},
  eprint = {2404.19638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.19638},
}
Figure