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 AlphaZero 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 ago. 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.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC9534758PMC
http://dx.doi.org/10.1038/s41586-022-05172-4DOI Listing

Publication Analysis

Top Keywords

matrix multiplication
16
algorithms
8
reinforcement learning
8
state-of-the-art complexity
8
matrix
5
multiplication
5
discovering faster
4
faster matrix
4
multiplication algorithms
4
algorithms reinforcement
4

Similar Publications

The steady state of a water distribution system abides by the laws of mass and energy conservation. Hydraulic solvers, such as the one used by EPANET approach the simulation for a given topology with a Newton-Raphson algorithm. However, iterative approximation involves a matrix inversion which acts as a computational bottleneck and may significantly slow down the process.

View Article and Find Full Text PDF

2D MoS-based reconfigurable analog hardware.

Nat Commun

January 2025

School of Integrated Circuits and Wuhan National Laboratory for Optoelectronics, Huazhong University of Science and Technology, Wuhan, Hubei, 430074, China.

Biological neural circuits demonstrate exceptional adaptability to diverse tasks by dynamically adjusting neural connections to efficiently process information. However, current two-dimension materials-based neuromorphic hardware mainly focuses on specific devices to individually mimic artificial synapse or heterosynapse or soma and encoding the inner neural states to realize corresponding mock object function. Recent advancements suggest that integrating multiple two-dimension material devices to realize brain-like functions including the inter-mutual connecting assembly engineering has become a new research trend.

View Article and Find Full Text PDF

In this work, we propose a path integral Monte Carlo approach based on discretized continuous degrees of freedom and rejection-free Gibbs sampling. The ground state properties of a chain of planar rotors with dipole-dipole interactions are used to illustrate the approach. Energetic and structural properties are computed and compared to exact diagonalization and numerical matrix multiplication for N ≤ 3 to assess the systematic Trotter factorization error convergence.

View Article and Find Full Text PDF

Hopfield neural networks (HNNs) promise broad applications in areas such as combinatorial optimization, memory storage, and pattern recognition. Among various implementations, optical HNNs are particularly interesting because they can take advantage of fast optical matrix-vector multiplications. Yet their studies so far have mostly been on the theoretical side, and the effects of optical imperfections and robustness against memory errors remain to be quantified.

View Article and Find Full Text PDF

Bone lesions of the appendicular skeleton can be caused by primary benign or malignant tumors, metastases, osteomyelitis, or pseudotumors. Conventional radiography plays a crucial role in the initial assessment of osseous lesions and should not be underestimated even in this era of modern complex and advanced imaging technologies. Combined with patient age, clinical symptoms and biology, and lesion features including location, solitary versus multiplicity, density, margin (transitional zone evaluated with Lodwick-Madewell grading score), and, if present, the type of periosteal reaction and matrix mineralization can narrow the differential diagnosis or offer a likely diagnosis.

View Article and Find Full Text PDF

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!