Abstract
Distributed Sparse Matrix-Matrix Multiplication (SpMM) is a critical operation in Graph Neural Networks (GNNs) and scientific computing, yet it is often bottlenecked by communication overhead. We present SHIRO, a framework that minimizes data transfer by modeling communication as a graph optimization problem and utilizing a hierarchical strategy tailored for modern GPU clusters. SHIRO achieves up to 221.5× speedup over existing baselines and demonstrates strong scalability up to 128 GPUs.
Introduction
Sparse Matrix-Matrix Multiplication (SpMM)—multiplying a large sparse matrix by a dense one—is fundamental to many large-scale applications. As datasets grow beyond the memory capacity of a single GPU, they must be distributed across clusters. However, in these environments, GPUs often spend over 80% of their time waiting for network data transfer rather than performing computation.
Existing distributed SpMM solutions typically suffer from two main issues. First, they often exhibit high redundancy by ignoring the specific sparsity patterns of the matrices, leading to unnecessary data transfer. Second, they are "topology-blind," treating all network links as equal and failing to exploit the high-speed intra-node interconnects (like NVLink) versus slower inter-node links (like InfiniBand).
Methodology
SHIRO addresses these challenges through two primary innovations: joint row-column sparsity awareness and a hierarchical communication strategy.
Joint Row-Column Sparsity Awareness
Traditional methods often focus on either fetching required rows of the dense matrix or sending partial results. SHIRO recognizes that every non-zero entry in the sparse matrix represents a data dependency that can be satisfied in either way. By modeling this as a Minimum Weighted Vertex Cover problem on a bipartite graph and solving it using the Max-Flow Min-Cut theorem, SHIRO identifies the mathematically optimal strategy to minimize total data volume.
Hierarchical Communication Strategy
Modern GPU clusters feature a significant bandwidth gap—often up to 18×—between internal node links and external network cables. SHIRO exploits this hierarchy by performing two-tier communication. It uses fast intra-node links to aggregate and deduplicate data locally before sending a single, optimized package across the slower inter-node network. This approach significantly reduces congestion on the most constrained links.
Evaluation
The performance of SHIRO was evaluated on the TSUBAME4.0 supercomputer using up to 128 NVIDIA H100 GPUs. The benchmarks utilized 13 diverse matrices from the SuiteSparse Matrix Collection, representing social networks, web graphs, scientific simulations, and knowledge graphs. These datasets provide a wide range of sparsity patterns to test the robustness of SHIRO's optimization strategies.
Key Results
SHIRO demonstrates substantial performance improvements over state-of-the-art baselines, including CAGNET, SPA, BCL, and CoLa.
- Performance Gains: SHIRO achieved a geometric mean speedup of 221.5× over CAGNET and 8.8× over CoLa.
- Communication Reduction: On the
mawidataset, SHIRO reduced total communication volume by 96.3% compared to standard methods. - Scalability: While many baselines plateau or degrade in performance beyond 8 GPUs due to network saturation, SHIRO maintains strong scalability up to 128 GPUs.
Conclusion and Future Work
SHIRO effectively mitigates the communication bottleneck in distributed SpMM by combining combinatorial optimization with topology-aware scheduling. While the current implementation focuses on static 1D row-partitioning and requires an offline preprocessing step, future work will explore extending these near-optimal strategies to 2D/3D partitioning and dynamic sparsity patterns.
Summary updated