How will Google DeepMind's AlphaTensor effect numpy
Hello! I was curious on how AlphaTensor will effect NumPy and other similar applications considering it has found a way to perform 3x3 matrix multiplication efficiently. https://www.deepmind.com/blog/discoveringnovelalgorithmswithalphatensor. I am not even sure how NumPy does this under the hood, is it 2x2? Is anyone working on implementing this 3x3 algorithm for NumPy? Is it too early, and if so why? Are there any concerns about this algorithm? I am new to the mailing list, it is nice to be here! Longtime user of NumPy in my projects, thank you for your amazing work! Can
On Wed, Oct 26, 2022 at 9:31 AM <canhtart@gmail.com> wrote:
Hello!
I was curious on how AlphaTensor will effect NumPy and other similar applications considering it has found a way to perform 3x3 matrix multiplication efficiently. https://www.deepmind.com/blog/discoveringnovelalgorithmswithalphatensor. I am not even sure how NumPy does this under the hood, is it 2x2?
Is anyone working on implementing this 3x3 algorithm for NumPy? Is it too early, and if so why? Are there any concerns about this algorithm?
numpy links against accelerated linear algebra libraries like OpenBLAS and Intel MKL to provide the matrix multiplication. If they find that the AlphaTensor results are better than the options they currently have, then numpy will get them. In general, I think it is unlikely that they will be used. Even the older state of the art that they compare with, like Strassen's algorithm, are not often used in practice. Concerns like memory movement and the ability to use instructionlevel parallelism on each kind of CPU tend to dominate over a marginal change in the number of multiplication operations. The answers to this StackOverflow question give some more information: https://stackoverflow.com/questions/1303182/howdoesblasgetsuchextremep...  Robert Kern
Moreover, not to mention the result is mostly valid for mod2 aritmetic; something the authors chose to mention it in the fine print causing this, a bit overblown in my opinion, excitement. So for now it seems like we don't need to take action for regular matmul. On Wed, Oct 26, 2022, 16:03 Robert Kern <robert.kern@gmail.com> wrote:
On Wed, Oct 26, 2022 at 9:31 AM <canhtart@gmail.com> wrote:
Hello!
I was curious on how AlphaTensor will effect NumPy and other similar applications considering it has found a way to perform 3x3 matrix multiplication efficiently. https://www.deepmind.com/blog/discoveringnovelalgorithmswithalphatensor. I am not even sure how NumPy does this under the hood, is it 2x2?
Is anyone working on implementing this 3x3 algorithm for NumPy? Is it too early, and if so why? Are there any concerns about this algorithm?
numpy links against accelerated linear algebra libraries like OpenBLAS and Intel MKL to provide the matrix multiplication. If they find that the AlphaTensor results are better than the options they currently have, then numpy will get them. In general, I think it is unlikely that they will be used. Even the older state of the art that they compare with, like Strassen's algorithm, are not often used in practice. Concerns like memory movement and the ability to use instructionlevel parallelism on each kind of CPU tend to dominate over a marginal change in the number of multiplication operations. The answers to this StackOverflow question give some more information:
https://stackoverflow.com/questions/1303182/howdoesblasgetsuchextremep...
 Robert Kern _______________________________________________ NumPyDiscussion mailing list  numpydiscussion@python.org To unsubscribe send an email to numpydiscussionleave@python.org https://mail.python.org/mailman3/lists/numpydiscussion.python.org/ Member address: ilhanpolat@gmail.com
participants (3)

canhtart＠gmail.com

Ilhan Polat

Robert Kern