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

A Self-Correcting Variable-Metric Algorithm for Stochastic Optimization

Frank E. CurtisICML 2016

Overview

This paper introduces SC-BFGS, a stochastic quasi-Newton algorithm designed to bring the efficiency of second-order optimization to the noisy landscape of machine learning. By explicitly preserving the "self-correcting" properties of the classic BFGS update, the algorithm remains stable and efficient even when navigating non-convex functions with noisy, mini-batch gradients. It consistently outperforms standard Stochastic Gradient (SG) methods.

The Optimization Challenge

In large-scale machine learning, Stochastic Gradient (SG) is the dominant optimization method due to its low computational cost per iteration. However, because SG relies solely on first-order information (the gradient), it can suffer from slow convergence—especially on "ill-conditioned" problems where the loss surface features narrow, stretched valleys.

Newton’s method leverages second-order information (the Hessian matrix) to navigate these valleys rapidly, but it is prohibitively expensive for large models as it requires calculating and inverting a massive matrix of second derivatives. Quasi-Newton methods, such as BFGS, offer a middle ground by approximating the Hessian using only gradient information.

The primary challenge arises in the stochastic regime. When algorithms only receive a noisy gradient estimate from a small data batch, standard BFGS often breaks down. This noise leads to unstable Hessian approximations, particularly in non-convex settings like neural network training. Existing workarounds often over-regularize the problem or demand expensive additional computations.

The SC-BFGS Approach

To address these limitations, the authors propose SC-BFGS (Self-Correcting BFGS). The core innovation is not merely adapting the algorithm for stochastic inputs, but ensuring it retains the self-correcting properties that make deterministic BFGS so effective.

  • The Update Rule: Instead of the standard gradient displacement, the algorithm utilizes a carefully constructed vector that is a convex combination of the step taken and the change in gradients.
  • Damping for Stability: A specific damping parameter is introduced to ensure the Hessian approximation remains "well-behaved"—positive definite and bounded—without requiring prior knowledge of the function's true curvature.
  • Limited-Memory Variant (SC-L-BFGS): For high-dimensional problems where storing a full matrix is impossible, the paper introduces a limited-memory variant. This uses a two-loop recursion to apply the Hessian approximation in linear time relative to the number of dimensions.
  • Refinement Subroutine: A "stable" variant (SC-s or SC-BFGS-sub) uses a small extra computational budget to verify if a gradient estimate is consistent enough to safely update the Hessian approximation.

Experimental Setup

The algorithm was evaluated across three standard machine learning benchmarks:

  1. a1a (LIBSVM): A smaller dataset used for logistic regression to test the full (dense) matrix version of the algorithm.
  2. rcv1 (binary): A larger text dataset used to test the limited-memory (SC-L-BFGS) variant on a convex problem.
  3. MNIST: The classic handwritten digit dataset, used to evaluate the algorithm on a non-convex neural network optimization task.

Key Insights

  • Self-Correction over Secant Matching: Most stochastic quasi-Newton research focuses on the "secant equation" (matching the gradient change). This paper argues it is far more important to maintain the geometric properties of the Hessian approximation matrices (trace and determinant bounds). If these are maintained, the algorithm naturally corrects its own errors over time.
  • Normalizing the Step: By incorporating the step size directly into the displacement vector, the algorithm stabilizes the update against the vanishing step sizes typically required in stochastic optimization.
  • Handling Non-Convexity: Unlike many previous methods that require a convex objective function to guarantee a positive-definite Hessian approximation, SC-BFGS uses its damping strategy to handle non-convexity gracefully.

Key Results

Across all tests, SC-BFGS and its limited-memory variant achieved lower training and testing losses than standard SG and other stochastic quasi-Newton methods (like oBFGS) within the same computational budget.

Training loss convergence comparing SG, SC, SC-s, and oBFGS.

The "stable" variant (SC-s) demonstrated significantly smoother convergence curves. This stability is particularly valuable when using fixed step sizes, which are notoriously difficult to tune for stochastic methods.

Testing loss convergence demonstrating the stability of SC-s.

Even though each iteration of SC-L-BFGS is slightly more computationally expensive than an SG iteration, the massive gain in "progress per iteration" allows it to reach high-accuracy solutions much faster in terms of overall wall-clock time.

Limitations and Future Work

  • Per-Iteration Overhead: While data efficiency is higher, the overhead of the limited-memory update means that for extremely simple models or very small batch sizes, SG might still be faster in raw seconds.
  • Hyperparameter Tuning: While more stable than SG, the algorithm introduces new parameters (for the self-correcting bounds) that may require tuning for optimal performance on novel problems.
  • Scaling to Massive Models: The method was successfully tested on a neural network with tens of thousands of parameters. Future work is needed to explore how these self-correcting properties scale to the extreme dimensionality of modern deep learning models, such as Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{curtis2016self,
  author = {Frank E. Curtis},
  title = {{A Self-Correcting Variable-Metric Algorithm for Stochastic Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
}
Figure