Abstract
Matrix inversion is a fundamental computational bottleneck in large-scale data science and optimization. Traditional iterative methods, such as Newton-Schulz, often suffer from restrictive convergence requirements, while direct methods fail to scale. This paper introduces a novel family of randomized algorithms for matrix inversion based on a "sketch-and-project" framework. By iteratively solving sketched versions of the inversion equation, we demonstrate that stochastic variants of classic Quasi-Newton updates—including BFGS, DFP, and Broyden—converge globally and linearly. Furthermore, we introduce an adaptive sampling strategy (AdaRBFGS) that accelerates convergence by learning the optimal sketching distribution. Empirical results on synthetic and real-world datasets demonstrate that these methods outperform traditional iterative solvers by orders of magnitude in both speed and robustness.
Introduction
Inverting large-scale matrices is essential for preconditioning linear systems and implementing variable-metric optimization methods. However, as datasets grow, standard direct methods like Gaussian elimination become computationally prohibitive. Iterative alternatives have historically faced significant hurdles: the Newton-Schulz method requires an initial guess extremely close to the true inverse to ensure convergence, and Approximate Inverse Preconditioning (AIP) often fails to preserve structural properties like symmetry or positive definiteness.
This research bridges the gap between optimization theory and numerical linear algebra by reframing matrix inversion as a stochastic optimization problem. The resulting algorithms are not only globally convergent from any starting point but also maintain the essential structural properties of the target matrix.
The Sketch-and-Project Framework
The core of the proposed approach is the "sketch-and-project" iteration. Rather than attempting to solve the full inversion equation $AX = I$ simultaneously, the algorithm solves a sequence of "sketched" approximations:
$$S^T AX = S^T$$
where $S$ is a random thin matrix (the sketch). This framework can be viewed from two equivalent perspectives:
- Primal (Sketch-and-Project): Each step projects the current estimate onto the space of matrices satisfying the sketched equation.
- Dual (Constrain-and-Approximate): Each step finds the best possible approximation of the true inverse $A^{-1}$ within a random affine space.
By varying the weight matrix $W$ and the distribution of the sketching matrix $S$, this framework recovers randomized block versions of the most famous updates in optimization: BFGS, DFP, Good/Bad Broyden, and PSB. This reveals a profound theoretical insight: classic Quasi-Newton updates are essentially performing randomized matrix inversion.
Adaptive Randomized BFGS (AdaRBFGS)
A significant contribution of this work is the development of AdaRBFGS. In standard randomized methods, the sketching matrix $S$ is drawn from a fixed distribution. AdaRBFGS, however, "learns" the optimal sampling distribution as it progresses. By using the current estimate of the inverse to guide the selection of the next sketch, the algorithm focuses on the directions where the error is largest. This alignment between the goal of finding the inverse and the goal of optimizing the sampling distribution leads to a self-accelerating convergence rate.
Theoretical Guarantees and Convergence
Unlike the Newton-Schulz method, which is locally convergent, the randomized Quasi-Newton updates proposed here are proven to converge globally and linearly (exponentially fast) from any initial matrix $X_0$. The authors provide an explicit convergence rate $\rho$, showing that the rate improves as the block size $q$ (the number of columns in the sketch $S$) increases. This allows practitioners to balance the computational cost per iteration against the total number of iterations required for convergence.
Empirical Performance
The algorithms were rigorously tested against three distinct data categories:
- Synthetic Matrices: Uniform random matrices up to size $n=50,000$.
- LIBSVM Matrices: Real-world Hessian matrices from ridge-regression problems (e.g., aloi, protein, real-sim).
- UF Sparse Matrix Collection: Matrices from diverse physical applications to test performance on varied sparsity patterns.
Key Results
- Speed: On the real-sim dataset, AdaRBFGS reached target error tolerances orders of magnitude faster than the Minimal Residual (MR) and Newton-Schulz methods.
- Robustness: While Newton-Schulz frequently diverged unless initialized with a specific, high-quality matrix, the randomized methods converged reliably across all test cases.
- Symmetry Preservation: By incorporating symmetry constraints into the projection step, the iterates naturally maintained positive definiteness, a critical requirement for many optimization applications.
Conclusion and Future Work
This work provides a new theoretical foundation for Quasi-Newton methods and offers a robust, scalable suite of tools for matrix inversion in the big data era. While the current implementation of AdaRBFGS requires maintaining a factored form of the matrix, future research will focus on developing "Limited Memory" versions (similar to L-BFGS) to further reduce storage requirements. Additionally, extending these methods to more efficiently handle singular matrices and converge to the Moore-Penrose pseudo-inverse remains a promising direction for future study.
Summary updated