[2106.10860] Multiplying Matrices Without Multiplying
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\times$ faster than exact matrix products and $10\times$ 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.
Multiplying Matrices Without Multiplying Davis Blalock 1 2 John Guttag 2 Abstract is minimizing the amount of compute time required to ap- proximate linear operations with a given level of fidelity. Multiplying matrices is among the most fundamental…
related reading
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklogsiboehm.com
- [2410.13780] Optimal Quantization for Matrix Multiplicationarxiv.org
- [2205.13147] Matryoshka Representation Learningarxiv.org
- Scalable MatMul-free Language Modelingarxiv.org
- 2112.10769arxiv.org
- Strangely, Matrix Multiplications on GPUs Run Faster When Given "Predictable" Data! [short]thonking.ai
- [2205.14135] FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenessarxiv.org
- 2502.11089arxiv.org
- [2509.14786] Pre-training under infinite computearxiv.org
- [2201.02177] Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetsarxiv.org
- [2510.13786] The Art of Scaling Reinforcement Learning Compute for LLMsarxiv.org
- [2111.00396] Efficiently Modeling Long Sequences with Structured State Spacesarxiv.org