arXiv:2610.32836cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.32836

Compressed Boolean Matrix Multiplication using Bicliques

Nicolás Araya, José Zagal, Cecilia Hernández, Gonzalo Navarro

Abstract

Boolean matrix multiplication is a fundamental operation in many graph-based applications, including web and social network analysis, information retrieval, and graph query evaluation. However, conventional sparse representations such as CSR/CSC still incur significant space and time costs on large graphs. In this work, we introduce a method for multiplying Boolean matrices based on a biclique-based compressed representation that decomposes them into dense bipartite subgraphs, thereby capturing large sets of implicit edges. We first improve the iterative biclique extraction algorithm of Hernández and Navarro by introducing percentile-based parameter adaptation that dynamically adjusts its parameters according to the degree distribution, enhancing both extraction efficiency and compression ratio. We then extend the Schoor multiplication algorithm to operate directly on biclique-encoded matrices, thereby enabling a compositional form of multiplication.

*Corresponding author

Email addresses: naraya2018@udec.cl (Nicolás Araya), jzagal2018@inf.udec.cl (José Zagal), cecihernandez@udec.cl (Cecilia Hernández), gnavarro@dcc.uchile.cl (Gonzalo Navarro) where the output can also be represented as a collection of bicliques. Our experimental results on large real-world web and social graphs show that our approach achieves substantial reductions in space and computation time with respect to CSR/CSC-based representations. For example, using biclique extraction just as a tool to speed up multiplication (but retaining the CSR/CSC format) yields up to 34-fold speedups. Further, using the biclique-based representation for input and output yields up to a 10-fold reduction in space and up to a 290-fold speedup for matrix multiplication. These results demonstrate that our representation based on bicliques is both space- and time-effective to support an algebra of Boolean matrices.

Keywords: Boolean matrix multiplication, compressed graph representation, bicliques, sparse matrices, graph compression

1. Introduction

Graphs play a fundamental role in modeling a wide range of problems in many areas, including social networks [1], knowledge graphs [2], the Web [3], and scientific applications such as gene sharing [4] or de Bruijn graphs [5]. A common representation for graphs is adjacency matrices, which enable algebraic operations between graphs using Boolean matrix arithmetic: transposing matrices, Boolean sums, matrix-vector and matrix-matrix multiplication, and transitive closures are fundamental in a wide range of tasks, including context-free grammar parsing and query processing in graph databases, multi-hop reachability computation, diffusion or influence analysis in social networks, and dynamism in evolving graphs.

Most of those applications involve sparse graphs, which means that their adjacency matrices have comparatively few non-zeros. The best known representations for sparse matrices include the classic Compressed Sparse Row (CSR) format, which stores non-zero elements in row-major order, along with column indices and the starting position of each row. The Compressed Sparse Column (CSC) format is the analogous structure for indexing columns. The space required by these representations is proportional to the number of edges in the graph. Further, they operate on sparse matrices much faster than the standard dense matrix representation.

On large sparse graphs and matrices, however, the space and operation time remains and issue, especially on the most costly operations like matrix multiplication and transitive closure. In this paper we focus on the former operation, as it appears more frequently in applications. One of the best practical sparse matrix multiplication algorithms is due to Schoor [6], which has an average time complexity of O(CxCy/N)O(C_x C_y / N) for multiplying matrices X×YX \times Y of dimensions M×NM \times N and N×LN \times L, where CxC_x and CyC_y are the number of nonzero elements in X and Y, respectively, assuming nonzero entries distribute uniformly in the matrices. Recently, Arroyuelo et al. [7] developed a compact-space implementation of Schoor's algorithm with an average time complexity of O(CxCylog⁡(N)/N)O(C_x C_y \log(N) / N) on top of CSR/CSC representations.

Several schemes obtain further compression upon conventional sparse-matrix formats like CSR and CSC, by exploiting sparsenes and clustering [8], similarity of adjacency lists [9, 10], or clique and biclique patterns [11, 12], among others. Some of those formats enable efficient matrix-vector [13, 10] and matrix-matrix [7] multiplication. In this paper we are interested in the compression based on bicliques [11], which capture highly connected regions that frequently occur in social and web graphs, where communities or connectivity clusters induce high edge density. By compactly representing those dense substructures, compression methods represent many edges implicitly. Further, it has been shown that those compact representations can be used to speed up matrix-vector multiplication, where the matrix is sparse but the vector is dense [13].

In this work we improve the biclique-based representation and extend its functionality to support Boolean matrix-matrix multiplications directly on the compressed matrices, improving both space usage and computation time compared to the state of the art. More precisely, our main contributions follow.

  1. We improve our previous biclique extraction [11] by defining an adaptive method that dynamically adjusts the parameters according to the degree distribution of the input graph. This adaptive strategy improves both compression ratio and the runtime, particularly for large real-world networks with heterogeneous degree distributions.

  2. We show that Schoor's algorithm [6] adapts naturally to biclique-based representations, and develop a version that directly operates over our representation. In particular, our version of Schoor's algorithm both receives the input and produces the output in the form of bicliques.

  3. We provide an extensive experimental evaluation on large real-world web graphs, comparing space usage and running time against CSR/CSC-based Schoor and other compressed representations that support matrix-matrix multiplications [7]. In a first scenario, we retain the CSR/CSC format and use biclique extraction and multiplication just as a speedup, becoming up to 34 times faster than Arroyuelo et al.'s CSR/CSC baseline multiplication. In a second scenario, we use bicliques as the standard matrix representation and exploit the compositionality of our biclique-based Shoor's multiplication to maintain the matrices compressed with bicliques all of the time. We obtain space reductions up to 10-fold and time improvement factors of up to 290 with respect to the baseline. Our compression based on bicliques is shown to perform even better on the output of multiplications, which makes the method even stronger.