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 条
  • [41] Fast rectangular matrix multiplication and some applications
    Ke Shanxue
    Zeng Bensheng
    Han Wenbao
    Pan, Victor Y.
    SCIENCE IN CHINA SERIES A-MATHEMATICS, 2008, 51 (03): : 389 - 406
  • [42] Fast matrix multiplication and its algebraic neighbourhood
    Pan, V. Ya.
    SBORNIK MATHEMATICS, 2017, 208 (11) : 1661 - 1704
  • [43] Fast rectangular matrix multiplication and some applications
    ShanXue Ke
    BenSheng Zeng
    WenBao Han
    Victor Y. Pan
    Science in China Series A: Mathematics, 2008, 51 : 389 - 406
  • [44] NEW FAST HYBRID MATRIX MULTIPLICATION ALGORITHMS
    Jelfimova, L. D.
    CYBERNETICS AND SYSTEMS ANALYSIS, 2011, 47 (06) : 881 - 888
  • [45] Error Correction in Fast Matrix Multiplication and Inverse
    Roche, Daniel S.
    ISSAC'18: PROCEEDINGS OF THE 2018 ACM INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND ALGEBRAIC COMPUTATION, 2018, : 343 - 350
  • [46] Fast matrix multiplication using coherent configurations
    Cohn, Henry
    Umans, Christopher
    PROCEEDINGS OF THE TWENTY-FOURTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS (SODA 2013), 2013, : 1074 - 1087
  • [48] Basis matrix and its application to finite field multiplication
    Hong Kong Polytechnic Univ, Kowloon, Hong Kong
    IEICE Trans Fund Electron Commun Comput Sci, 3 (610-613):
  • [49] A Matrix Decomposition Method for Optimal Normal Basis Multiplication
    Kizilkale, Can
    Egecioglu, Omer
    Koc, Cetin Kaya
    IEEE TRANSACTIONS ON COMPUTERS, 2016, 65 (11) : 3239 - 3250
  • [50] Error-free transformations of matrix multiplication by using fast routines of matrix multiplication and its applications
    Ozaki, Katsuhisa
    Ogita, Takeshi
    Oishi, Shin'ichi
    Rump, Siegfried M.
    NUMERICAL ALGORITHMS, 2012, 59 (01) : 95 - 118