Matrix Multiplication: Verifying Strong Uniquely Solvable Puzzles

Matthew J. Anderson, Zongliang Ji, Anthony Yang XuarXiv 2022 · DOI

Abstract

Cohn and Umans proposed a framework for developing fast matrix multiplication algorithms based on the embedding computation in certain groups algebras. In subsequent work with Kleinberg and Szegedy, they connected this to the search for combinatorial objects called strong uniquely solvable puzzles (strong USPs). We begin a systematic computer-aided search for these objects. We develop and implement constraint-based algorithms build on reductions to $\mathrm{SAT}$ and $\mathrm{IP}$ to verify that puzzles are strong USPs, and to search for large strong USPs. We produce tight bounds on the maximum size of a strong USP for width $k \le 5$, construct puzzles of small width that are larger than previous work, and improve the upper bounds on strong USP size for $k \le 12$. Although our work only deals with puzzles of small-constant width, the strong USPs we find imply matrix multiplication algorithms that run in $O(n^ω)$ time with exponent $ω\le 2.66$. While our algorithms do not beat the fastest algorithms, our work provides evidence and, perhaps, a path to finding families of strong USPs that imply matrix multiplication algorithms that are more efficient than those currently known.

Introduction

Matrix multiplication is a fundamental operation in modern computing, underpinning everything from physical simulations to artificial intelligence. While the standard algorithm requires $O(n^3)$ operations, the search for the optimal exponent $\omega$—where the time complexity is $O(n^\omega)$—remains a central challenge in theoretical computer science.

A visualization of a strong uniquely solvable puzzle (USP) of width 4.

A promising approach involves the Cohn-Umans framework, which translates this algebraic problem into a combinatorial search for "strong uniquely solvable puzzles" (strong USPs). The size of these puzzles for a given width $k$ directly determines the achievable $\omega$. However, verifying and searching for these puzzles is computationally intensive, as verification is in coNP and the search space grows exponentially.

Methodology

To address these challenges, we developed a suite of computer-aided tools for verification and search. Our approach centers on a reduction of the strong USP verification problem to a 3D matching problem in tripartite hypergraphs. This insight allowed us to move beyond naive brute-force checking.

Decomposition of a USP showing the constraints associated with a single symbol (3).

Key methodological components include:

  • SAT and IP Reductions: By converting the 3D matching problem into formats compatible with state-of-the-art Boolean Satisfiability (SAT) and Integer Programming (IP) solvers (e.g., Kissat, Gurobi), we leveraged modern optimization power.
  • Hybrid Verification: We implemented a multi-stage pipeline that uses fast linear-time heuristics—such as checking for duplicate "pieces"—to filter out most candidates before employing heavy-duty solvers.
  • Symmetry-Pruned Search: To manage the exponential search space, we utilized a breadth-first search (SP-BFS) integrated with the Nauty library for graph canonization, effectively pruning isomorphic puzzle configurations.

Results and Discussion

Our systematic search yielded several significant improvements over previous benchmarks. We established exact maximum sizes for strong USPs of widths $k=1$ through $k=5$. For larger widths up to $k=12$, we discovered puzzles that exceed the sizes reported in existing literature. For instance, at width 12, we found a puzzle of size 196, a substantial increase from the previous best of 136.

These newly discovered puzzles imply a matrix multiplication exponent of $\omega \le 2.66$. While this does not surpass the current world record of $\approx 2.37$, it represents a significant improvement over the classic Strassen algorithm ($\approx 2.81$) and demonstrates the viability of the Cohn-Umans framework for discovering efficient algorithms.

Conclusion

This work demonstrates that modern constraint solvers can effectively navigate the complex landscape of strong USP verification. While our exhaustive searches were limited by the "curse of dimensionality" to small widths, the results provide a concrete path forward. Future research will focus on "lifting" these high-performing small puzzles into infinite families and further investigating the complexity of the verification problem itself.

Summary updated

BibTeX
@misc{anderson2022matrix,
  author = {Matthew J. Anderson and Zongliang Ji and Anthony Yang Xu},
  title = {{Matrix Multiplication: Verifying Strong Uniquely Solvable Puzzles}},
  year = {2022},
  eprint = {2301.00074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.00074},
}
Figure