• Home
  • Search
  • Discovering faster matrix multiplication algorithms with reinforcement learning
  • Cite Icon439
  • https://doi.org/10.1038/s41586-022-05172-4Copy DOI Icon

Discovering faster matrix multiplication algorithms with reinforcement learning

  • Oct 5, 2022
  • Nature
  • Alhussein Fawzi +12 more
Show More
  • Abstract
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Improving the efficiency of algorithms for fundamental computations can have a widespread impact, as it can affect the overall speed of a large amount of computations. Matrix multiplication is one such primitive task, occurring in many systems—from neural networks to scientific computing routines. The automatic discovery of algorithms using machine learning offers the prospect of reaching beyond human intuition and outperforming the current best human-designed algorithms. However, automating the algorithm discovery procedure is intricate, as the space of possible algorithms is enormous. Here we report a deep reinforcement learning approach based on AlphaZero1 for discovering efficient and provably correct algorithms for the multiplication of arbitrary matrices. Our agent, AlphaTensor, is trained to play a single-player game where the objective is finding tensor decompositions within a finite factor space. AlphaTensor discovered algorithms that outperform the state-of-the-art complexity for many matrix sizes. Particularly relevant is the case of 4 × 4 matrices in a finite field, where AlphaTensor’s algorithm improves on Strassen’s two-level algorithm for the first time, to our knowledge, since its discovery 50 years ago2. We further showcase the flexibility of AlphaTensor through different use-cases: algorithms with state-of-the-art complexity for structured matrix multiplication and improved practical efficiency by optimizing matrix multiplication for runtime on specific hardware. Our results highlight AlphaTensor’s ability to accelerate the process of algorithmic discovery on a range of problems, and to optimize for different criteria.

Loading PDF

Similar Papers
  • Research Article
  • Citations2

Interactions of zeros of polynomials and multiplicity matrices

  • Oct 03, 2022
  • Journal of Algebra
  • Melvyn B Nathanson
  • Research Article

Coded Distributed (Batch) Matrix Multiplication Over Galois Ring via RMFE

  • Sep 02, 2025
  • IEEE Transactions on Information Theory
  • Yi Kuang +3
  • Supplementary Content

Interactions of zeros of of polynomials and multiplicity matrices

  • Mar 04, 2022
  • arXiv (Cornell University)
  • Melvyn B Nathanson
  • Conference Article
  • Citations7

AttExplainer: Explain Transformer via Attention by Reinforcement Learning

  • Jul 01, 2022
  • Runliang Niu +3
  • Research Article
  • Citations30

Time Complexity of In-Memory Matrix-Vector Multiplication

  • Mar 25, 2021
  • IEEE Transactions on Circuits and Systems II: Express Briefs
  • Zhong Sun +1
  • Research Article
  • Citations2

Multiplying Polynomials without Powerful Multiplication Instructions

  • Dec 09, 2024
  • IACR Transactions on Cryptographic Hardware and Embedded Systems
  • Vincent Hwang +2
  • PDF
  • Research Article
  • Citations9

CONNA: Configurable Matrix Multiplication Engine for Neural Network Acceleration

  • Jul 29, 2022
  • Electronics
  • Sang-Soo Park +1
  • Conference Article
  • Citations2

Accelerating Binary-Matrix Multiplication on FPGA

  • Sep 01, 2019
  • Debjyoti Bhattacharjee +2
  • Conference Article
  • Citations59

Tuning Strassen's Matrix Multiplication for Memory Efficiency

  • Jan 01, 1998
  • M Thottethodi +2
  • Research Article

(Invited) Regression and Optimization by Analogue In-memory Computing in Crosspoint Arrays

  • Nov 23, 2020
  • Electrochemical Society Meeting Abstracts
  • Daniele Ielmini +3
  • Research Article
  • Citations3

A Novel Approach for Efficient Training of Deep Neural Networks

  • Sep 01, 2018
  • Indonesian Journal of Electrical Engineering and Computer Science
  • D.T.V Dharmajee Rao +1
  • Conference Article
  • Citations40

Further Limitations of the Known Approaches for Matrix Multiplication

  • Jan 01, 2018
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Josh Alman +1
  • Research Article
  • Citations175

Algorithms for identifying Boolean networks and related biological networks based on matrix multiplication and fingerprint function.

  • Aug 01, 2000
  • Journal of Computational Biology
  • Tatsuya Akutsu +2
  • Conference Article
  • Citations230

On the representation and multiplication of hypersparse matrices

  • Apr 01, 2008
  • Proceedings - IEEE International Parallel and Distributed Processing Symposium
  • Aydin Buluc +1
  • Research Article
  • Citations6

Efficient parallel factorization and solution of structured and unstructured linear systems

  • Mar 02, 2005
  • Journal of Computer and System Sciences
  • John H Reif
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.