Adaptive Flip Graph Algorithm for Matrix Multiplication (2312.16960v2)
Abstract: This study proposes the "adaptive flip graph algorithm", which combines adaptive searches with the flip graph algorithm for finding fast and efficient methods for matrix multiplication. The adaptive flip graph algorithm addresses the inherent limitations of exploration and inefficient search encountered in the original flip graph algorithm, particularly when dealing with large matrix multiplication. For the limitation of exploration, the proposed algorithm adaptively transitions over the flip graph, introducing a flexibility that does not strictly reduce the number of multiplications. Concerning the issue of inefficient search in large instances, the proposed algorithm adaptively constraints the search range instead of relying on a completely random search, facilitating more effective exploration. Numerical experimental results demonstrate the effectiveness of the adaptive flip graph algorithm, showing a reduction in the number of multiplications for a $4\times 5$ matrix multiplied by a $5\times 5$ matrix from $76$ to $73$, and that from $95$ to $94$ for a $5 \times 5$ matrix multiplied by another $5\times 5$ matrix. These results are obtained in characteristic two.
- Volker Strassen. Gaussian elimination is not optimal. Numerische mathematik, 13(4):354–356, 1969. ISSN 0945-3245. doi: 10.1007/BF02165411. URL https://doi.org/10.1007/BF02165411.
- New bounds for matrix multiplication: from alpha to omega. arXiv preprint arXiv:2307.07970, 2023.
- Faster matrix multiplication via asymmetric hashing. arXiv preprint arXiv:2210.10173, 2022.
- Julian D. Laderman. A noncommutative algorithm for multiplying 3×3333\times 33 × 3 matrices using 23 multiplications. Bulletin of the American Mathematical Society, 82(1):126 – 128, 1976.
- Discovering faster matrix multiplication algorithms with reinforcement learning. Nature, 610(7930):47–53, Oct 2022. ISSN 1476-4687. doi: 10.1038/s41586-022-05172-4. URL https://doi.org/10.1038/s41586-022-05172-4.
- Flip graphs for matrix multiplication. In Proceedings of the 2023 International Symposium on Symbolic and Algebraic Computation, ISSAC ’23, page 381–388, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9798400700392. doi: 10.1145/3597066.3597120. URL https://doi.org/10.1145/3597066.3597120.
- The fbhhrbnrssshk-algorithm for multiplication in ℤ25×5superscriptsubscriptℤ255\mathbb{Z}_{2}^{5\times 5}blackboard_Z start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 5 × 5 end_POSTSUPERSCRIPT is still not the end of the story. ArXiv, abs/2210.04045, 2022.
- On minimizing the number of multiplications necessary for matrix multiplication. SIAM Journal on Applied Mathematics, 20(1):30–36, 1971.
- Alexey V Smirnov. The bilinear complexity and practical algorithms for matrix multiplication. Computational Mathematics and Mathematical Physics, 53:1781–1795, 2013.
- The tensor rank of 5x5 matrices multiplication is bounded by 98 andits border rank by 89. In Proceedings of the 2021 on International Symposium on Symbolic and Algebraic Computation, pages 345–351, 2021.
Collections
Sign up for free to add this paper to one or more collections.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.