Towards automated generation of fast and accurate algorithms for recursive matrix multiplication

IF 0.9 4区 数学 Q4 COMPUTER SCIENCE, THEORY & METHODS
Journal of Symbolic Computation Pub Date : 2026-05-01 Epub Date: 2025-10-15 DOI:10.1016/j.jsc.2025.102524
Jean-Guillaume Dumas , Clément Pernet , Alexandre Sedoglavic
{"title":"Towards automated generation of fast and accurate algorithms for recursive matrix multiplication","authors":"Jean-Guillaume Dumas ,&nbsp;Clément Pernet ,&nbsp;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 〈m×k×n:r〉 denote a non-commutative algorithm multiplying an m×k matrix with an k×n matrix, using r coefficient products. Our strategy allows us to propose a 〈2×2×2:7〉 algorithm that reaches simultaneously a better accuracy in practice, compared to previously known such fast 〈2×2×2:7〉 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 〈3×3×6:40〉 family of algorithms.
实现递归矩阵乘法快速准确算法的自动生成
我们提出了一种生成快速而准确的非交换递归矩阵乘法算法的策略。为了生成这些算法,我们考虑了控制数值矩阵乘法的稳定性和准确性的矩阵和张量范数边界。我们从矩阵乘法稳定性的已知最大范数界的统一开始,然后将其推广到进一步的范数,更一般地推广到递归双线性算法和备选基矩阵乘法算法。我们的战略分为三个阶段。首先,我们通过最小化相关矩阵乘法张量分解轨道上的生长因子来减小这些边界。其次,我们开发了启发式算法,以最大限度地减少实现双线性公式所需的操作次数,同时进一步提高其准确性。第三,我们执行了一种替代的基稀疏化,它提高了时间复杂度常数,并在很大程度上保持了总体精度。令< m×k×n:r >表示使用r系数乘积将m×k矩阵与k×n矩阵相乘的非交换算法。我们的策略允许我们提出一种< 2×2×2:7 >算法,与之前已知的快速< 2×2×2:7 > Strassen-like算法相比,该算法在实践中同时达到更好的精度,并且具有当前已知的最佳领先项的时间复杂度(通过替代基稀疏化获得)。我们还介绍了我们的技术在Smirnov的< 3×3×6:40 >系列算法上的详细结果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Symbolic Computation
Journal of Symbolic Computation 工程技术-计算机:理论方法
CiteScore
2.10
自引率
14.30%
发文量
75
审稿时长
142 days
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书