Excited to share our work published in the @Nature cover, which surpasses human knowledge in a 50-year-old open question in Mathematics!

We introduce #AlphaTensor, an #AlphaZero-based RL agent that discovers faster exact matrix multiplication algorithms.

🧵1/
Matrix Multiplication (MatMul) is one of the root node problems where any speedup results in improvements in many areas, including Matrix Inversion, Factorization, & Neural Networks.

In industry, MatMul is used for image processing, speech recognition, computer graphics, etc. 2/
We formulated the problem of finding MatMul algorithms as a single-player game. In each episode, the agent starts from a tensor representing a MatMul operator and has to find the shortest path to an all-zero tensor. The length of this path corresponds to the # multiplications. 3/
The main RL challenges are:

1) Gigantic action space, e.g., 10^23 for 4x4 MatMul.
2) Many symmetries in observations & actions, e.g., actions are order invariance.
3) A single wrong action/move results in a worse/sub-optimal algorithm.

4/
To tackle the problem, we developed #AlphaTensor, an #AlphaZero-based agent with novel capabilities dealing with the above RL challenges. For example, we employed a risk-seeking distributional value head to improve exploration. 5/
For many matrix sizes, #AlphaTensor discovered MatMul algorithms that are faster than the state of the art. These algorithms can be applied recursively to larger matrix sizes, effectively resulting in a bank of new, exact, and faster MatMul algorithms! 6/
#AlphaTensor invented a beautiful algorithm for 4x4 modular arithmetic MatMul, which surpassed two-level Strassen’s algorithm for the first time in 50 years!

This result was so significant that at first, we thought there is a bug 😅 7/
This project has been one of the most enjoyable works I have ever done, thanks to having excellent collaborators: @AlhusseinFawzi, @matejbalog, Aja Huang, Thomas Hubert, @ber24, @SashaVNovikov,
@franciscuto, @mononofu, @GrzegorzMS, David Silver, @demishassabis, & @pushmeet 8/8

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Amin Barekatain

Amin Barekatain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(