paper-with-me

Papers

Discovering faster matrix multiplication algorithms with reinforcement learning

2022-10-05 · Nature 2022 10 · Alhussein Fawzi, Matej Balog, Aja Huang, Thomas Hubert, Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Francisco J. R. Ruiz, Julian Schrittwieser, Grzegorz Swirszcz, David Silver, Demis Hassabis, Pushmeet Kohli

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.

📄 PDF Abstract BibTeX

Code (2)

deepmind/alphatensor 공식 구현 jax
nebuly-ai/nebullvm/tree/main/apps/accelerate/open_alpha_tensor pytorch

Tasks

Deep Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

OpenTensor: Reproducing Faster Matrix Multiplication Discovering Algorithms

2024-05-31 · Yiwen Sun, Wenye Li

OpenTensor is a reproduction of AlphaTensor, which discovered a new algorithm that outperforms the state-of-the-art methods for matrix multiplication by Deep Reinforcement Learning (DRL). While AlphaTensor provides a pro…

Deep Reinforcement Learningreinforcement-learning

General Matrix-Matrix Multiplication Using SIMD features of the PIII

2019-11-18 · Douglas Aberdeen, Jonathan Baxter

Generalised matrix-matrix multiplication forms the kernel of many mathematical algorithms. A faster matrix-matrix multiply immediately benefits these algorithms. In this paper we implement efficient matrix multiplication…

Spectrum Approximation Beyond Fast Matrix Multiplication: Algorithms and Hardness

2017-04-13 · Cameron Musco, Praneeth Netrapalli, Aaron Sidford, Shashanka Ubaru 외

Understanding the singular value spectrum of a matrix $A \in \mathbb{R}^{n \times n}$ is a fundamental task in countless applications. In matrix multiplication time, it is possible to perform a full SVD and directly comp…

Fast Matrix Multiplication Without Tears: A Constraint Programming Approach

2023-06-01 · Arnaud Deza, Chang Liu, Pashootan Vaezipoor, Elias B. Khalil

It is known that the multiplication of an $N \times M$ matrix with an $M \times P$ matrix can be performed using fewer multiplications than what the naive $NMP$ approach suggests. The most famous instance of this is Stra…

Deep Reinforcement LearningProblem Decompositionvalid

Multiplication-Avoiding Variant of Power Iteration with Applications

2021-10-22 · Hongyi Pan, Diaa Badawi, Runxuan Miao, Erdem Koyuncu 외

Power iteration is a fundamental algorithm in data analysis. It extracts the eigenvector corresponding to the largest eigenvalue of a given matrix. Applications include ranking algorithms, recommendation systems, princip…

Image ReconstructionRecommendation Systems