New Graph Decompositions and Combinatorial Boolean Matrix Multiplication Algorithms

Amir Abboud, Nick Fischer, Zander Kelley, Shachar Lovett, Raghu Meka

This paper, recently updated in May 2024, represents a significant leap in a decades-old quest in theoretical computer science: finding faster "combinatorial" ways to multiply Boolean matrices.

TL;DR

The authors present a new combinatorial algorithm for Boolean Matrix Multiplication (BMM) that achieves a "super-poly-logarithmic" speedup, running in $n^3 / 2^{\Omega(\sqrt[7]{\log n})}$ time. This result brings the field tantalizingly close to refuting a long-standing conjecture that truly subcubic combinatorial algorithms for BMM are impossible.

What Problem Does This Paper Address?

Boolean Matrix Multiplication (BMM)—where you multiply two $n \times n$ matrices containing only 0s and 1s using AND/OR operations—is a cornerstone of computer science. It’s the engine behind everything from graph transitive closures to context-free grammar parsing.

We’ve known since Strassen (1969) that we can solve matrix multiplication in "truly subcubic" time (less than $O(n^3)$) using algebraic tricks. However, these algebraic methods are often "galactic"—mathematically beautiful but practically inefficient, difficult to implement, and they don't generalize well to problems where subtraction isn't allowed (like the "min-plus" multiplication used in shortest-path problems).

For fifty years, researchers have hunted for "combinatorial" algorithms—those using more "natural" graph-based techniques. While the naive approach takes $O(n^3)$, the best combinatorial improvements have only managed to shave off a few logarithmic factors (the previous record was $O(n^3 / \log^4 n)$). A popular conjecture in fine-grained complexity even claims that a truly subcubic ($n^{3-\epsilon}$) combinatorial algorithm is impossible. This paper challenges that boundary.

Methods

The authors achieve their speedup by developing a new Regularity Decomposition Theorem.

In graph theory, a "regular" graph is one that behaves like a random graph. Regularity lemmas (like the famous one by Szemerédi) allow us to break any complex graph into a small number of regular pieces. The "Aha!" moment here is the use of Grid Regularity, a notion recently introduced in the context of communication complexity.

The key technical steps include:

  1. Sifting: A deterministic algorithm that either certifies a matrix is "grid regular" or finds a "density increment"—a specific sub-rectangle that is significantly denser than the average.
  2. Decomposition: By repeatedly applying the sifting step, the authors prove that any Boolean matrix can be decomposed into a sum of a few "good" (regular) pieces and a "sparse" remainder.
  3. The Win-Win Strategy: When multiplying two regular pieces, the authors show that their product is extremely uniform. This creates a "win-win": either the target matrix is sparse (easy to check for triangles) or the product is so dense that a triangle must exist by sheer probability.

Datasets

As a theoretical paper focused on algorithmic complexity and mathematical proofs, no empirical datasets were used. The results are proven mathematically for all possible input matrices of size $n$.

Key Insights and Ideas

  • The Power of the Product: A single grid-regular matrix might not look very random on its own. However, the authors leverage a structural theorem showing that the product of two grid-regular matrices is remarkably uniform. This is the "secret sauce" that allows them to bypass the limitations of previous regularity-based approaches.
  • Super-poly-log vs. Subcubic: For years, progress was stuck at $(\log n)^k$ speedups. By moving to a quasi-polynomial saving ($2^{\sqrt[7]{\log n}}$), the authors have broken the "logarithmic ceiling," even if they haven't yet reached the "truly subcubic" $n^{3-\epsilon}$ goal.
  • Deterministic Derandomization: While previous existential proofs suggested such decompositions might exist, this paper provides a concrete, deterministic algorithm to find them using "oblivious samplers."

Key Results

  • BMM Speedup: The primary result is a BMM algorithm running in $n^3 / 2^{\Omega(\sqrt[7]{\log n})}$ time.
  • Triangle Detection: They provide a deterministic combinatorial algorithm for detecting if a graph contains a triangle in the same time complexity.
  • Triangle Enumeration: The paper improves the state-of-the-art for listing all triangles in a graph, achieving a preprocessing time of $n^3 / (\log n)^6$ followed by constant-delay enumeration.
  • Broad Impact: Because many problems (like CFG parsing and transitive closure) reduce to BMM, this speedup automatically applies to a wide range of fundamental tasks.

Limitations and Future Work

  • The Exponent: The speedup uses a $\sqrt[7]{\log n}$ term. The authors note that improving this to $\sqrt{\log n}$ or better is a clear next step.
  • The "Truly Subcubic" Barrier: While this is faster than any poly-log, it is still not $O(n^{2.99})$. Refuting Conjecture 1.1 entirely remains the "holy grail."
  • Practicality: Regularity-based algorithms are notorious for having large hidden constants. While the authors argue their paradigm has the potential to be practical, they acknowledge that "regularity decompositions are infamously impractical" and require further optimization and experimentation to be useful in production code.
  • Generalization: It remains an open question whether these techniques can be extended to solve the All-Pairs Shortest Paths (APSP) problem or the 3-SUM problem faster.

Summary updated

BibTeX
@inproceedings{abboud2024new,
  author = {Amir Abboud and Nick Fischer and Zander Kelley and Shachar Lovett and Raghu Meka},
  title = {{New Graph Decompositions and Combinatorial Boolean Matrix Multiplication Algorithms}},
  booktitle = {STOC},
  year = {2024},
  doi = {10.1145/3618260.3649696},
}
Figure