Skip to main content
QUICK REVIEW

[Paper Review] Sparse Matrix Multiplication with Bandwidth Restricted All-to-All Communication.

Keren Censor-Hillel, Dean Leitersdorf|arXiv (Cornell University)|Feb 13, 2018
Complexity and Algorithms in GraphsComputer Science23 references3 citations
TL;DR

This paper presents a deterministic, sparsity-aware algorithm for sparse matrix multiplication in the Congested Clique model, where nodes communicate via bandwidth-restricted all-to-all rounds. By restructuring matrix elements to ensure balanced, non-consecutive task assignment, the method reduces communication costs and achieves improved round complexity for matrices with o(n²) non-zero elements, outperforming prior work even when only one matrix is sparse.

ABSTRACT

We show how to multiply two $n imes n$ matrices over semirings in the Congested Clique model, where $n$ nodes synchronously communicate in an all-to-all manner using $O(\log n)$-bit messages, within a round complexity that depends on the number of non-zero elements in the input matrices. By leveraging the sparsity of the input matrices, our algorithm reduces communication costs and thus improves upon the state-of-the-art for matrices with $o(n^2)$ nonzero elements. Moreover, our algorithm exhibits the additional strength of surpassing previous solutions also in the case where only one of the two matrices is such. Particularly, this allows to efficiently raise a sparse matrix to a power greater than 2. As applications, we show how to speed up the computation on non-dense graphs of 3- and 4-cycle counting, as well as of all-pairs-shortest-paths. Our algorithmic contribution is a new deterministic method of restructuring the input matrices in a sparsity-aware manner, which assigns each node with element-wise multiplication tasks that are not necessarily consecutive but guarantee a balanced element distribution, providing for communication-efficient multiplication. As such, our technique may be useful in additional computational models.

Motivation & Objective

  • To reduce communication overhead in sparse matrix multiplication within the Congested Clique model, where all-to-all communication is limited to O(log n)-bit messages.
  • To improve round complexity for matrices with o(n²) non-zero elements by exploiting sparsity in a communication-efficient manner.
  • To develop a deterministic method that assigns non-consecutive, balanced multiplication tasks to nodes, ensuring load balancing and reduced data movement.
  • To enable efficient computation of sparse matrix powers greater than 2, even when only one input matrix is sparse.
  • To accelerate fundamental graph algorithms such as 3- and 4-cycle counting and all-pairs shortest-paths on non-dense graphs.

Proposed method

  • The algorithm restructures input matrices in a sparsity-aware way to assign each node a set of non-consecutive, balanced element-wise multiplication tasks.
  • It uses a deterministic data distribution strategy that ensures load balancing across nodes while minimizing communication volume.
  • Each node performs local multiplications on assigned matrix elements and communicates only the necessary partial results via O(log n)-bit messages.
  • The method supports asymmetric sparsity, meaning it performs well even when only one input matrix is sparse.
  • The algorithm leverages the structure of semiring operations to minimize redundant computation and communication.
  • It achieves communication efficiency by avoiding redundant data transfers and ensuring that each non-zero element contributes to exactly one multiplication task per node.

Experimental results

Research questions

  • RQ1Can sparse matrix multiplication be performed more efficiently in the Congested Clique model by exploiting sparsity and bandwidth restrictions?
  • RQ2How can non-consecutive, balanced task assignment improve load balancing and reduce communication in all-to-all models?
  • RQ3Does the proposed method outperform existing algorithms when only one input matrix is sparse?
  • RQ4To what extent can this approach accelerate graph algorithms like 3- and 4-cycle counting and all-pairs shortest-paths?
  • RQ5Can the method be generalized to other computational models beyond the Congested Clique?

Key findings

  • The algorithm achieves improved round complexity for sparse matrix multiplication when the input matrices have o(n²) non-zero elements, outperforming previous methods.
  • The method maintains efficiency even when only one of the two matrices is sparse, enabling efficient computation of sparse matrix powers greater than 2.
  • Communication costs are significantly reduced by restructuring matrices to assign non-consecutive, balanced tasks to nodes.
  • The approach enables faster computation of 3- and 4-cycle counting and all-pairs shortest-paths on non-dense graphs by leveraging sparse matrix operations.
  • The deterministic, sparsity-aware data distribution ensures load balancing and minimizes redundant communication in the Congested Clique model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.