Sparse matrix multiplication and triangle listing in the congested clique model

Keren Censor-Hillel, Dean Leitersdorf, Elia Turner

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We show how to multiply two n×n matrices S and T over semirings in the Congested Clique model, where n nodes communicate in a fully connected synchronous network using O(log n)bit messages, within O(nz(S)1/3nz(T)1/3/n + 1) rounds of communication, where nz(S) and nz(T) denote the number of non-zero elements in S and T, respectively. By leveraging the sparsity of the input matrices, our algorithm greatly reduces communication costs compared with general multiplication algorithms [Censor-Hillel et al., PODC 2015], and thus improves upon the state-of-the-art for matrices with o(n2) non-zero 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 4-cycle counting and 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. Moreover, this new deterministic method for restructuring matrices may be used to restructure the adjacency matrix of input graphs, enabling faster deterministic solutions for graph related problems. As an example, we present a new sparsity aware, deterministic algorithm which solves the triangle listing problem in O(m/n5/3 + 1) rounds, a complexity that was previously obtained by a randomized algorithm [Pandurangan et al., SPAA 2018], and that matches the known lower bound of Ω(n1/3) when m = n2 of [Izumi and Le Gall, PODC 2017, Pandurangan et al., SPAA 2018]. Naturally, our triangle listing algorithm also implies triangle counting within the same complexity of O(m/n5/3 + 1) rounds, which is (possibly more than) a cubic improvement over the previously known deterministic O(m2/n3)-round algorithm [Dolev et al., DISC 2012].

Original languageEnglish
Title of host publication22nd International Conference on Principles of Distributed Systems, OPODIS 2018
EditorsJiannong Cao, Faith Ellen, Luis Rodrigues, Bernardo Ferreira
ISBN (Electronic)9783959770989
DOIs
StatePublished - 1 Jan 2019
Event22nd International Conference on Principles of Distributed Systems, OPODIS 2018 - Hong Kong, China
Duration: 17 Dec 201819 Dec 2018

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume125

Conference

Conference22nd International Conference on Principles of Distributed Systems, OPODIS 2018
Country/TerritoryChina
CityHong Kong
Period17/12/1819/12/18

Keywords

  • Congested clique
  • Matrix multiplication
  • Triangle listing

All Science Journal Classification (ASJC) codes

  • Software

Fingerprint

Dive into the research topics of 'Sparse matrix multiplication and triangle listing in the congested clique model'. Together they form a unique fingerprint.

Cite this