PRISM: Distribution-free Adaptive Computation of Matrix Functions for Accelerating Neural Network Training
Shenghao Yang, Zhichao Wang, Oleg Balabanov, N. Benjamin Erichson, Michael W. Mahoney
TL;DR
PRISM introduces a distribution-free framework that accelerates matrix-function iterations by adaptively fitting spectrum-aware polynomials at each step and using randomized sketching to keep costs low. It provides a unified template (Part I: basic setup; Part II: spectrum-adaptive acceleration) that applies to Newton-Schulz, matrix sign, square roots, and polar decomposition, without requiring prior spectral bounds. The method delivers theoretical guarantees and practical speedups, demonstrated by accelerating neural-network optimizers (Shampoo and Muon) on realistic models and data, including MP- and heavy-tailed spectra. By enabling instance-specific polynomial updates with low overhead, PRISM turns spectral adaptivity into a robust, GPU-friendly primitive for large-scale matrix computations in ML pipelines.
Abstract
Matrix functions such as square root, inverse roots, and orthogonalization play a central role in preconditioned gradient methods for neural network training. This has motivated the development of iterative algorithms that avoid explicit eigendecompositions and rely primarily on matrix multiplications, making them well suited for modern GPU accelerators. We present PRISM (Polynomial-fitting and Randomized Iterative Sketching for Matrix functions computation), a general framework for accelerating iterative algorithms for computing matrix functions. PRISM combines adaptive polynomial approximation with randomized sketching: at each iteration, it fits a polynomial surrogate to the current spectrum via a sketched least-squares problem, adapting to the instance at hand with minimal overhead. We apply PRISM to accelerate Newton-Schulz-like iterations for matrix square roots and orthogonalization, which are core primitives in machine learning. Unlike prior methods, PRISM requires no explicit spectral bounds or singular value estimates; and it adapts automatically to the evolving spectrum. Empirically, PRISM accelerates training when integrated into Shampoo and Muon optimizers.
