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 条
  • [21] A Framework for Practical Parallel Fast Matrix Multiplication
    Benson, Austin R.
    Ballard, Grey
    ACM SIGPLAN NOTICES, 2015, 50 (08) : 42 - 53
  • [22] IMPROVING THE NUMERICAL STABILITY OF FAST MATRIX MULTIPLICATION
    Ballard, Grey
    Benson, Austin R.
    Druinsky, Alex
    Lipshitz, Benjamin
    Schwartz, Oded
    SIAM JOURNAL ON MATRIX ANALYSIS AND APPLICATIONS, 2016, 37 (04) : 1382 - 1418
  • [23] SCHEMES FOR FAST MATRIX MULTIPLICATION - PRELIMINARY REPORT
    DEPILLIS, J
    NOTICES OF THE AMERICAN MATHEMATICAL SOCIETY, 1975, 22 (02): : A355 - A356
  • [24] Barriers for Fast Matrix Multiplication from Irreversibility
    Christandl, Matthias
    Vrana, Peter
    Zuiddam, Jeroen
    34TH COMPUTATIONAL COMPLEXITY CONFERENCE (CCC 2019), 2019, 137
  • [25] Fast Output-Sensitive Matrix Multiplication
    Jacob, Riko
    Stockel, Morten
    ALGORITHMS - ESA 2015, 2015, 9294 : 766 - 778
  • [26] Fast rectangular matrix multiplication and some applications
    Victor Y PAN
    ScienceinChina(SeriesA:Mathematics), 2008, (03) : 389 - 406
  • [27] A New Fast Recursive Matrix Multiplication Algorithm
    L. D. Jelfimova
    Cybernetics and Systems Analysis, 2019, 55 : 547 - 551
  • [28] Fast Matrix Multiplication by Using Color Algebras
    Aidagulov R.R.
    Shamolin M.V.
    Journal of Mathematical Sciences, 2017, 227 (4) : 402 - 406
  • [29] FAST QMC MATRIX-VECTOR MULTIPLICATION
    Dick, Josef
    Kuo, Frances Y.
    Le Gia, Quoc T.
    Schwab, Christoph
    SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2015, 37 (03): : A1436 - A1450
  • [30] On Combinatorial Problem, Related with Fast Matrix Multiplication
    Kuznetsov, Yu, V
    IZVESTIYA SARATOVSKOGO UNIVERSITETA NOVAYA SERIYA-MATEMATIKA MEKHANIKA INFORMATIKA, 2013, 13 (04): : 63 - 67