Skip to main content
QUICK REVIEW

[Paper Review] A New General-Purpose Method to Multiply 3x3 Matrices Using Only 23 Multiplications

Nicolas T. Courtois, Gregory V. Bard|arXiv (Cornell University)|Aug 14, 2011
Polynomial and algebraic computationComputer Science16 references14 citations
TL;DR

This paper presents a new general-purpose method for multiplying 3x3 matrices using only 23 scalar multiplications, achieved by transforming the underlying Brent equations into a SAT problem and solving it with a portfolio of 500 SAT solvers. The authors discover a novel non-commutative solution that is provably inequivalent to Laderman’s original 1976 method and all previously known solutions, significantly expanding the known solution space and increasing the plausibility of a 22-multiplication solution in the future.

ABSTRACT

One of the most famous conjectures in computer algebra is that matrix multiplication might be feasible in not much more than quadratic time. The best known exponent is 2.376, due to Coppersmith and Winograd. Many attempts to solve this problems in the literature work by solving, fixed-size problems and then apply the solution recursively. This leads to pure combinatorial optimisation problems with fixed size. These problems are unlikely to be solvable in polynomial time. In 1976 Laderman published a method to multiply two 3x3 matrices using only 23 multiplications. This result is non-commutative, and therefore can be applied recursively to smaller sub-matrices. In 35 years nobody was able to do better and it remains an open problem if this can be done with 22 multiplications. We proceed by solving the so called Brent equations [7]. We have implemented a method to converting this very hard problem to a SAT problem, and we have attempted to solve it, with our portfolio of some 500 SAT solvers. With this new method we were able to produce new solutions to the Laderman's problem. We present a new fully general non-commutative solution with 23 multiplications and show that this solution is new and is NOT an equivalent variant of the Laderman's original solution. This result demonstrates that the space of solutions to Laderman's problem is larger than expected, and therefore it becomes now more plausible that a solution with 22 multiplications exists. If it exists, we might be able to find it soon just by running our algorithms longer, or due to further improvements in the SAT solver algorithms.

Motivation & Objective

  • To find a new non-commutative solution for 3x3 matrix multiplication using only 23 scalar multiplications, improving upon the long-standing 1976 Laderman method.
  • To explore whether a solution with 22 multiplications exists by expanding the known solution space of the 23-multiplication problem.
  • To develop and apply a novel SAT-based approach to solve the highly complex system of Brent equations governing matrix multiplication algorithms.
  • To determine the structural and algebraic inequivalence of new solutions to previously known solutions, including Laderman’s and Johnson-McLoughlin’s families.
  • To demonstrate that the solution space for 3x3 matrix multiplication with 23 multiplications is larger than previously believed, thereby increasing the feasibility of discovering a 22-multiplication solution.

Proposed method

  • The authors convert the system of 729 cubic equations (Brent equations) for 3x3 matrix multiplication into a Boolean satisfiability (SAT) problem.
  • They solve the SAT problem modulo 2 first, then lift the solution to modulo 4, which often yields a general solution over arbitrary rings.
  • A portfolio of approximately 500 SAT solvers and their variants is used to search for solutions, with extensive tuning and optimization of the encoding process.
  • The method includes systematic transformations such as index permutation, cyclic shifting of A, B, C matrices, transposition, rescaling, and sandwiching with invertible matrices to explore solution equivalence.
  • Solutions are validated and compared using rank-based invariants: the number and distribution of rank-3 matrices in the A, B, and C coefficient matrices.
  • The approach leverages computational algebra and automated reasoning to explore a vast combinatorial space of potential matrix multiplication algorithms.

Experimental results

Research questions

  • RQ1Can a new non-commutative solution for 3x3 matrix multiplication using exactly 23 multiplications be discovered that is structurally distinct from Laderman’s original solution?
  • RQ2Is the solution space for 3x3 matrix multiplication with 23 multiplications significantly larger than previously thought, particularly in terms of inequivalent algorithmic structures?
  • RQ3Can the SAT-based transformation and solving pipeline reliably produce valid, general solutions to the Brent equations for fixed-size matrix multiplication problems?
  • RQ4Does the existence of a new solution with only two rank-3 coefficient matrices (compared to six in Laderman’s) indicate a fundamentally different algebraic structure that could inform the search for a 22-multiplication solution?
  • RQ5To what extent can modern SAT solvers and algorithmic encodings be used to solve hard combinatorial problems in computational algebra, such as tensor rank minimization for matrix multiplication?

Key findings

  • The authors successfully discovered a new non-commutative 3x3 matrix multiplication algorithm using only 23 scalar multiplications, which is not equivalent to Laderman’s original method.
  • The new solution contains exactly two matrices of rank 3 in the A-coefficient matrices, whereas Laderman’s solution contains six, proving structural inequivalence.
  • The solution is not equivalent to any of the infinitely many pairwise inequivalent solutions previously found by Johnson and McLoughlin, as their solutions contain at most one rank-3 matrix.
  • The SAT-based approach successfully generated a valid solution in a few days using a single CPU, demonstrating the feasibility of this computational method for solving complex algebraic problems.
  • The discovery confirms that the solution space for 23-multiplication 3x3 matrix multiplication is significantly larger than previously believed, increasing the likelihood of a 22-multiplication solution existing.
  • The results suggest that further exploration using extended runtime or improved SAT solvers may soon yield a 22-multiplication algorithm, advancing the long-standing conjecture in fast matrix multiplication.

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.