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

Stochastic Quasi-Newton Methods for Nonconvex Stochastic Optimization

Xiao Wang, Shiqian Ma, Wei LiuarXiv 2014 · DOI

Abstract

In this paper, we study stochastic quasi-Newton methods for nonconvex stochastic optimization, where we assume that only stochastic information of the gradients of the objective function is available via a stochastic first-order oracle (SFO). Firstly, we propose a general framework of stochastic quasi-Newton methods for solving nonconvex stochastic optimization. The proposed framework extends the classic quasi-Newton methods working in deterministic settings to stochastic settings, and we prove its almost sure convergence to stationary points. Secondly, we propose a general framework for a class of randomized stochastic quasi-Newton methods, in which the number of iterations conducted by the algorithm is a random variable. The worst-case SFO-calls complexities of this class of methods are analyzed. Thirdly, we present two specific methods that fall into this framework, namely stochastic damped-BFGS method and stochastic cyclic Barzilai-Borwein method. Finally, we report numerical results to demonstrate the efficiency of the proposed methods.

Introduction

In modern machine learning and large-scale data analysis, optimization problems are frequently solved using only "noisy" gradient information obtained through a Stochastic First-Order Oracle (SFO). While Stochastic Gradient Descent (SGD) remains the industry standard due to its simplicity and low per-iteration cost, it relies solely on first-order information. This often leads to slow convergence on "ill-conditioned" problems—landscapes where the objective function is highly sensitive in some directions and nearly flat in others.

Quasi-Newton methods, such as the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm, address this in deterministic settings by approximating the Hessian (second-order information) to better navigate the curvature. However, extending these methods to stochastic, nonconvex settings introduces three significant challenges:

  1. Gradient Noise: Noisy estimates make Hessian approximations unstable.
  2. Nonconvexity: Without the inherent convexity of a "bowl-shaped" function, Hessian approximations can lose their positive definiteness, causing the algorithm to diverge.
  3. Absence of Line Search: Traditional quasi-Newton methods rely on line searches to ensure stability, but line searches require exact function values, which are unavailable in the stochastic regime.

This paper introduces a robust framework for Stochastic Quasi-Newton (SQN) methods designed to overcome these hurdles while maintaining theoretical convergence guarantees.

The Stochastic Quasi-Newton Framework

The authors propose a general framework where iterates are updated according to the following rule:

$$x_{k+1} = x_k - \alpha_k(B_k^{-1} + \zeta_k I) G_k$$

In this formulation, $B_k$ represents the Hessian approximation, $G_k$ is the stochastic gradient, and $\zeta_k$ is a "safeguard" parameter. This safeguard ensures that the matrix remains invertible and stable even when the local curvature is problematic. A key theoretical insight of this framework is the independence of $B_k$; by ensuring the Hessian approximation depends only on previous iterations, the search direction remains a well-behaved random variable for the purposes of convergence analysis.

Specific Implementations

The paper details two concrete algorithms that fit within this framework:

  • Stochastic Damped-BFGS (SDBFGS): This method adapts the classic BFGS update using a "damping" technique. By using a convex combination of the gradient difference and the Hessian-vector product, the update is forced to remain positive definite. This allows the algorithm to handle nonconvex landscapes without requiring an expensive or impossible line search.
  • Stochastic Cyclic Barzilai-Borwein (SCBB): This approach utilizes a diagonal approximation of the Hessian, making it computationally efficient as it avoids matrix inversions. The "cyclic" component refers to updating the step size only every $q$ iterations, which provides much-needed stability against gradient noise.

Theoretical Contributions

A major contribution of this work is the bridge between practical performance and theoretical complexity. The authors introduce a Randomized SQN (RSQN) framework, where the algorithm returns an iterate from a randomly selected iteration. They prove that this class of methods achieves a worst-case SFO-call complexity of $O(\epsilon^{-2})$ to find an $\epsilon$-stationary point. This matches the theoretical rate of standard first-order methods, implying that the practical benefits of second-order curvature information come with no sacrifice in asymptotic complexity.

Numerical Results

The methods were evaluated on a nonconvex Support Vector Machine (SVM) classification task using a sigmoid loss function. Testing on datasets with up to 5,000 features and 75,000 samples, the results demonstrated several key advantages:

  • Superior Convergence: Both SDBFGS and SCBB consistently outperformed the Randomized Stochastic Gradient (RSG) method in terms of reducing the mean squared norm of the gradient.
  • Accuracy: SDBFGS achieved significantly lower misclassification errors compared to standard first-order approaches.
  • Efficiency vs. Complexity: While SDBFGS requires more CPU time per iteration due to matrix updates, the SCBB method emerged as a highly efficient alternative, offering better accuracy than SGD while remaining computationally comparable in terms of wall-clock time.
  • Stability: The damping mechanism successfully prevented Hessian approximations from becoming singular or indefinite, even in the presence of significant noise.

Conclusion and Future Work

This research demonstrates that stochastic quasi-Newton methods are not only viable for nonconvex optimization but can offer significant practical speedups over first-order methods. The use of damping and safeguards allows these algorithms to maintain the $O(\epsilon^{-2})$ complexity of SGD while better navigating complex curvatures.

Future work may address the memory scaling of SDBFGS for extremely high-dimensional problems (e.g., through Limited-memory L-SDBFGS variants) and explore more adaptive methods for handling high-variance gradients, as the frequency of successful Barzilai-Borwein steps tends to decrease as noise increases.

Summary updated

BibTeX
@misc{wang2014stochastic,
  author = {Xiao Wang and Shiqian Ma and Wei Liu},
  title = {{Stochastic Quasi-Newton Methods for Nonconvex Stochastic Optimization}},
  year = {2014},
  eprint = {1412.1196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.1196},
}
Figure