Alternative Basis Matrix Multiplication is Fast and Stable

被引:0
|
作者
Schwartz, Oded [1 ]
Toledo, Sivan [2 ]
Vaknin, Noa [1 ]
Wiernik, Gal [2 ]
机构
[1] Hebrew Univ Jerusalem, Jerusalem, Israel
[2] Tel Aviv Univ, Tel Aviv, Israel
基金
欧洲研究理事会; 以色列科学基金会;
关键词
Fast Matrix Multiplication; Alternative Basis Matrix Multiplication; Numerical Stability; PRACTICAL ALGORITHMS; COMPLEXITY; STABILITY; STRASSEN;
D O I
10.1109/IPDPS57955.2024.00013
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Alternative basis matrix multiplication algorithms are the fastest matrix multiplication algorithms in practice to date. However, are they numerically stable? We obtain the first numerical error bound for alternative basis matrix multiplication algorithms, demonstrating that their error bounds are asymptotically identical to the standard fast matrix multiplication algorithms, such as Strassen's. We further show that arithmetic costs and error bounds of alternative basis algorithms can be simultaneously and independently optimized. Particularly, we obtain the first fast matrix multiplication algorithm with a 2-by-2 base case that simultaneously attains the optimal leading coefficient for arithmetic costs and optimal asymptotic error bound, effectively beating the Bini and Lotti (1980) speed-stability trade-off for fast matrix multiplication. We provide high-performance parallel implementations of our algorithms with benchmarks that show our algorithm is on par with the best in class for speed and with the best in class for stability. Finally, we show that diagonal scaling stability improvement techniques for fast matrix multiplication are as effective for alternative basis algorithms, both theoretically and empirically. These findings promote the use of alternative basis matrix multiplication algorithms in practical applications.
引用
收藏
页码:38 / 51
页数:14
相关论文
共 50 条
  • [31] FAST LINEAR SYSTOLIC MATRIX VECTOR MULTIPLICATION
    GUSEV, M
    EVANS, DJ
    TASIC, J
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 1992, 43 (3-4) : 231 - 248
  • [32] Barriers for Fast Matrix Multiplication from Irreversibility
    Christandl, Matthias
    Vrana, Peter
    Zuiddam, Jeroen
    THEORY OF COMPUTING, 2021, 17 : 1 - 32
  • [33] Replacement Paths via Fast Matrix Multiplication
    Weimann, Oren
    Yuster, Raphael
    2010 IEEE 51ST ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, 2010, : 655 - 662
  • [34] A New Fast Recursive Matrix Multiplication Algorithm
    Jelfimova, L. D.
    CYBERNETICS AND SYSTEMS ANALYSIS, 2019, 55 (04) : 547 - 551
  • [35] FAST ALGORITHM FOR SPARSE-MATRIX MULTIPLICATION
    SCHOOR, A
    INFORMATION PROCESSING LETTERS, 1982, 15 (02) : 87 - 89
  • [36] FAST RECTANGULAR MATRIX MULTIPLICATION AND QR DECOMPOSITION
    KNIGHT, PA
    LINEAR ALGEBRA AND ITS APPLICATIONS, 1995, 221 : 69 - 81
  • [37] Applying Fast Matrix Multiplication to Neural Networks
    Khaled, Ahmed
    Atiya, Amir F.
    Abdel-Gawad, Ahmed H.
    PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, : 1034 - 1037
  • [38] Recursive array layouts and fast matrix multiplication
    Chatterjee, S
    Lebeck, AR
    Patnala, PK
    Thottethodi, M
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2002, 13 (11) : 1105 - 1123
  • [39] A new framework for fast homomorphic matrix multiplication
    Zheng, Xiaopeng
    Li, Hongbo
    Wang, Dingkang
    DESIGNS CODES AND CRYPTOGRAPHY, 2025,
  • [40] TRIANGULAR FACTORIZATION AND INVERSION BY FAST MATRIX MULTIPLICATION
    BUNCH, JR
    HOPCROFT, JE
    MATHEMATICS OF COMPUTATION, 1974, 28 (125) : 231 - 236