Accelerated Stochastic Matrix Inversion: General Theory and Speeding up BFGS Rules for Faster Second-Order Optimization

Robert M. Gower, Filip Hanzely, Peter Richtárik, Sebastian U. Stich

Introduction

Second-order optimization methods, such as Newton’s method, are mathematically powerful because they utilize the Hessian matrix (the matrix of second derivatives) to identify the steepest descent path. However, these methods are notoriously expensive for large-scale machine learning because they require inverting a massive Hessian matrix at every step. To address this, researchers frequently use Quasi-Newton methods, such as BFGS, which maintain a running estimate of the inverse Hessian.

While first-order methods like Gradient Descent have benefited immensely from Nesterov’s acceleration to speed up convergence, applying this type of acceleration to the matrix-inversion step of second-order methods has remained an open challenge. This paper bridges this gap by introducing the first accelerated randomized algorithm for solving linear systems and inverting matrices in Euclidean spaces, providing a theoretically grounded and computationally efficient way to approximate the inverse Hessian.

Methodology: Accelerated Sketch-and-Project

The authors build upon the Sketch-and-Project framework. In this setup, rather than solving a massive linear system all at once, the system is "sketched"—projected into a lower-dimensional subspace—and solved in that smaller, more manageable piece.

The paper introduces several key technical innovations to this framework:

  • Generalization of Acceleration: The authors generalize previous acceleration theories to work in any Euclidean space, providing a self-contained convergence analysis.
  • Symmetry-Preserving Updates: For optimization, the inverse Hessian estimate must remain symmetric and positive definite. The authors designed specific sketching operators that ensure these properties are maintained throughout the acceleration process.
  • Algorithmic Formalization: The paper provides formal algorithms for accelerated linear solvers and a specialized version for BFGS matrix inversion, alongside a heuristic deterministic version of the standard BFGS algorithm.

Key Insights and Theoretical Gains

One of the most significant findings is the "Square Root" Gain. Just as Nesterov acceleration improves Gradient Descent complexity from $O(1/\epsilon)$ to $O(1/\sqrt{\epsilon})$, this method provides a square-root improvement in the iteration complexity of matrix inversion.

Furthermore, the authors discovered that Symmetry is a Speed Boost. Enforcing symmetry in the matrix inversion process does more than just satisfy optimization requirements—it actually improves the theoretical convergence rate (specifically the $\mu$ parameter) by up to a factor of two.

While the accelerated algorithm depends on two spectral parameters ($\mu$ and $\nu$) that the non-accelerated version does not require, experiments show the method is surprisingly robust. Even when these parameters are estimated via simple heuristics, the accelerated approach maintains its efficiency.

Empirical Results

The researchers evaluated their algorithms using artificial matrices with controlled eigenvalue spectra and real-world LIBSVM datasets (including phishing, mushrooms, australian, splice, madelon, covtype, a9a, epsilon, and svhn).

  • Theoretical Convergence: The authors proved that their accelerated algorithm converges linearly. In ill-conditioned problems where the matrix is difficult to invert, the accelerated version is significantly faster than standard sketch-and-project methods.
  • Performance Speedups: On datasets like phishing and mushrooms, the accelerated BFGS method outperformed the classic BFGS algorithm in both the number of iterations and total wall-clock time.
  • Robustness: Even when using "convenient" coordinate sketches, which are easier to compute, the accelerated rules consistently led to faster training of machine learning models compared to non-accelerated baselines.

Limitations and Future Directions

Despite its success, the accelerated scheme requires knowing or estimating spectral parameters $\mu$ and $\nu$, which are not always known upfront. This necessitates further research into adaptive parameter estimation. Additionally, while the stochastic accelerated BFGS has a strong theoretical proof, the deterministic version proposed remains supported primarily by empirical evidence and intuition.

Finally, the authors suggest that combining these accelerated updates with limited-memory versions (like L-BFGS) is a vital next step to make the algorithm viable for the massive datasets common in deep learning.

Summary updated

BibTeX
@inproceedings{gower2018accelerated,
  author = {Robert M. Gower and Filip Hanzely and Peter Richtárik and Sebastian U. Stich},
  title = {{Accelerated Stochastic Matrix Inversion: General Theory and Speeding up BFGS Rules for Faster Second-Order Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=dZFAfYaoK__},
}
Figure