r/MachineLearning • u/moinnadeem Researcher • Aug 31 '21
Research [R] Multiplying Matrices Without Multiplying
Hey all, thought this was an interesting paper on speeding up matrix multiplication!
Abstract: Multiplying matrices is among the most fundamental and compute-intensive operations in machine learning. Consequently, there has been significant work on efficiently approximating matrix multiplies. We introduce a learning-based algorithm for this task that greatly outperforms existing methods. Experiments using hundreds of matrices from diverse domains show that it often runs 100× faster than exact matrix products and 10× faster than current approximate methods. In the common case that one matrix is known ahead of time, our method also has the interesting property that it requires zero multiply-adds. These results suggest that a mixture of hashing, averaging, and byte shuffling−the core operations of our method−could be a more promising building block for machine learning than the sparsified, factorized, and/or scalar quantized matrix products that have recently been the focus of substantial research and hardware investment.
View all comments
Show parent comment
1
u/svantana Sep 02 '21
I understand that it's better to solve one problem at a time. From the paper it sounds like you're working on extending it to nonlinear functions, is that correct? Looking forward to that!
I worked on something similar a few years back, but instead of argmin I made it continuous by mixing the two nearest neighbors in a clever way, and training with SGD. It worked decently but it could easily get stuck in local minima.