NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Overview of Stochastic Quasi-Newton Methods for Large-Scale Machine Learning

Tiande Guo, Yan Liu, Congying HanJournal of the Operations Research Society of China 2023

Abstract: Numerous intriguing optimization problems arise as a result of the advancement of machine learning. The stochastic first-order method is the predominant choice for those problems due to its high efficiency. However, the negative effects of noisy gradient estimates and high nonlinearity of the loss function result in a slow convergence rate. Second-order algorithms have their typical advantages in dealing with highly nonlinear and ill-conditioning problems. This paper provides a review on recent developments in stochastic variants of quasi-Newton methods, which construct the Hessian approximations using only gradient information. We concentrate on BFGS-based methods in stochastic settings and highlight the algorithmic improvements that enable the algorithm to work in various scenarios. Future research on stochastic quasi-Newton methods should focus on enhancing its applicability, lowering the computational and storage costs, and improving the convergence rate.

Introduction

In large-scale machine learning, optimization usually involves minimizing an "empirical risk" function—the average loss over millions of data points. While first-order methods like Stochastic Gradient Descent (SGD) are popular due to their low per-iteration computational cost, they struggle with "ill-conditioned" landscapes. In these scenarios, the loss surface resembles a narrow, winding canyon where SGD tends to oscillate between walls rather than racing down the floor.

Second-order methods, such as Newton’s method, use the Hessian matrix (the second derivative) to understand this curvature and take a more direct path. However, for a model with millions of parameters, storing and inverting the Hessian is computationally impossible. Quasi-Newton methods like BFGS approximate this curvature using only gradient information, but adapting them to the noisy world of stochastic mini-batches presents a significant technical challenge.

The Foundation: Deterministic BFGS

The deterministic BFGS method serves as the theoretical starting point for modern stochastic variants. It iteratively updates an approximation of the inverse Hessian matrix to determine an efficient search direction.

Algorithm 1: The deterministic BFGS method provides the framework for approximating curvature without explicit Hessian computation.

As shown in Algorithm 1, the update relies on the "secant equation," using displacements in parameters ($s_k$) and gradients ($y_k$) to refine the curvature estimate. While effective in deterministic settings, the transition to stochastic mini-batches introduces noise that can destabilize these updates.

A Taxonomy of Stochastic Quasi-Newton (SQN) Methods

Researchers have developed several strategies to move Quasi-Newton methods into stochastic environments:

  • L-BFGS (Limited-memory BFGS): Instead of storing a full matrix, it stores a small history of recent gradient and position changes to implicitly represent curvature.
  • Online BFGS (oBFGS): A direct adaptation that ensures curvature estimates aren't just measuring random noise by using consistent mini-batches for gradient displacements.
  • Stochastic Quasi-Newton (SQN): This strategy decouples the gradient calculation from the Hessian update. It uses small mini-batches for speed but updates curvature information less frequently using larger mini-batches to ensure stability.
  • Variance Reduction (SVRG/SAGA + L-BFGS): These methods combine Quasi-Newton updates with variance reduction to achieve linear convergence—a significant speedup over the sublinear rate of standard SGD.
  • K-FAC (Kronecker-factored Approximate Curvature): A specialized method for deep learning that approximates the Fisher Information Matrix, making second-order optimization feasible for massive neural networks.

Key Insights and Challenges

The transition to stochastic settings introduces several critical hurdles:

  • The Noise Trap: In deterministic optimization, the secant equation ($s_k^\top y_k > 0$) keeps the curvature estimate positive definite. In stochastic settings, gradient noise can flip this sign, causing the algorithm to diverge. Most successful SQN methods incorporate damping or regularization to prevent this.
  • The Line Search Dilemma: Standard BFGS requires a "Line Search" to find the best step size. In ML, we only have noisy estimates of function values, making Stochastic Line Search (SLS) a critical area of ongoing research.
  • Hybridization: The most promising results often come from hybrid methods that use SGD for an initial "burn-in" phase and switch to a Quasi-Newton method once they are closer to the optimum where curvature matters most.

Performance and Future Directions

SQN methods offer several practical advantages, including scale invariance, which makes them less sensitive to hyperparameter tuning (like initial learning rates) compared to SGD. Specialized methods like K-FAC have demonstrated significant wall-clock speedups in training complex architectures like CNNs and RNNs.

Despite this progress, challenges remain regarding computational overhead and memory constraints for the largest models (LLMs). Future research will likely focus on adaptive memory sizes, more robust stochastic line searches, and improving the parallelizability of these algorithms in distributed systems.

Summary updated

BibTeX
@article{guo2023overview,
  author = {Tiande Guo and Yan Liu and Congying Han},
  title = {{An Overview of Stochastic Quasi-Newton Methods for Large-Scale Machine Learning}},
  journal = {Journal of the Operations Research Society of China},
  year = {2023},
  doi = {10.1007/s40305-023-00453-9},
}
Figure