{"title":"Towards automated generation of fast and accurate algorithms for recursive matrix multiplication","authors":"Jean-Guillaume Dumas , Clément Pernet , Alexandre Sedoglavic","doi":"10.1016/j.jsc.2025.102524","DOIUrl":null,"url":null,"abstract":"<div><div>We propose a strategy for the generation of fast and accurate versions of non-commutative recursive matrix multiplication algorithms. To generate these algorithms, we consider matrix and tensor norm bounds governing the stability and accuracy of numerical matrix multiplication. We start by a unification on known max-norm bounds on matrix multiplication stability and then extend them to further norms and more generally to recursive bilinear algorithms and the alternative basis matrix multiplication algorithms. Then our strategy has three phases. First, we reduce those bounds by minimizing a growth factor along the orbits of the associated matrix multiplication tensor decomposition. Second, we develop heuristics that minimize the number of operations required to realize a bilinear formula, while further improving its accuracy. Third, we perform an alternative basis sparsification that improves on the time complexity constant and mostly preserves the overall accuracy. Let <span><math><mo>〈</mo><mi>m</mi><mo>×</mo><mi>k</mi><mo>×</mo><mi>n</mi><mo>:</mo><mi>r</mi><mo>〉</mo></math></span> denote a non-commutative algorithm multiplying an <span><math><mi>m</mi><mo>×</mo><mi>k</mi></math></span> matrix with an <span><math><mi>k</mi><mo>×</mo><mi>n</mi></math></span> matrix, using <em>r</em> coefficient products. Our strategy allows us to propose a <span><math><mo>〈</mo><mn>2</mn><mo>×</mo><mn>2</mn><mo>×</mo><mn>2</mn><mo>:</mo><mn>7</mn><mo>〉</mo></math></span> algorithm that reaches simultaneously a better accuracy in practice, compared to previously known such fast <span><math><mo>〈</mo><mn>2</mn><mo>×</mo><mn>2</mn><mo>×</mo><mn>2</mn><mo>:</mo><mn>7</mn><mo>〉</mo></math></span> Strassen-like algorithms, and a time complexity bound with the best currently known leading term (obtained via alternative basis sparsification). We also present detailed results of our technique on Smirnov's <span><math><mo>〈</mo><mn>3</mn><mo>×</mo><mn>3</mn><mo>×</mo><mn>6</mn><mo>:</mo><mn>40</mn><mo>〉</mo></math></span> family of algorithms.</div></div>","PeriodicalId":50031,"journal":{"name":"Journal of Symbolic Computation","volume":"134 ","pages":"Article 102524"},"PeriodicalIF":0.9000,"publicationDate":"2026-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Symbolic Computation","FirstCategoryId":"100","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0747717125001063","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/10/15 0:00:00","PubModel":"Epub","JCR":"Q4","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0
Abstract
We propose a strategy for the generation of fast and accurate versions of non-commutative recursive matrix multiplication algorithms. To generate these algorithms, we consider matrix and tensor norm bounds governing the stability and accuracy of numerical matrix multiplication. We start by a unification on known max-norm bounds on matrix multiplication stability and then extend them to further norms and more generally to recursive bilinear algorithms and the alternative basis matrix multiplication algorithms. Then our strategy has three phases. First, we reduce those bounds by minimizing a growth factor along the orbits of the associated matrix multiplication tensor decomposition. Second, we develop heuristics that minimize the number of operations required to realize a bilinear formula, while further improving its accuracy. Third, we perform an alternative basis sparsification that improves on the time complexity constant and mostly preserves the overall accuracy. Let denote a non-commutative algorithm multiplying an matrix with an matrix, using r coefficient products. Our strategy allows us to propose a algorithm that reaches simultaneously a better accuracy in practice, compared to previously known such fast Strassen-like algorithms, and a time complexity bound with the best currently known leading term (obtained via alternative basis sparsification). We also present detailed results of our technique on Smirnov's family of algorithms.
期刊介绍:
An international journal, the Journal of Symbolic Computation, founded by Bruno Buchberger in 1985, is directed to mathematicians and computer scientists who have a particular interest in symbolic computation. The journal provides a forum for research in the algorithmic treatment of all types of symbolic objects: objects in formal languages (terms, formulas, programs); algebraic objects (elements in basic number domains, polynomials, residue classes, etc.); and geometrical objects.
It is the explicit goal of the journal to promote the integration of symbolic computation by establishing one common avenue of communication for researchers working in the different subareas. It is also important that the algorithmic achievements of these areas should be made available to the human problem-solver in integrated software systems for symbolic computation. To help this integration, the journal publishes invited tutorial surveys as well as Applications Letters and System Descriptions.