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

RES: Regularized Stochastic BFGS Algorithm

Aryan Mokhtari, Alejandro Ribeiro · DOI

Abstract

RES, a regularized stochastic version of the Broyden-Fletcher-Goldfarb-Shanno (BFGS) quasi-Newton method is proposed to solve convex optimization problems with stochastic objectives. The use of stochastic gradient descent algorithms is widespread, but the number of iterations required to approximate optimal arguments can be prohibitive in high dimensional problems. Application of second order methods, on the other hand, is impracticable because computation of objective function Hessian inverses incurs excessive computational cost. BFGS modifies gradient descent by introducing a Hessian approximation matrix computed from finite gradient differences. RES utilizes stochastic gradients in lieu of deterministic gradients for both, the determination of descent directions and the approximation of the objective function's curvature. Since stochastic gradients can be computed at manageable computational cost RES is realizable and retains the convergence rate advantages of its deterministic counterparts. Convergence results show that lower and upper bounds on the Hessian egeinvalues of the sample functions are sufficient to guarantee convergence to optimal arguments. Numerical experiments showcase reductions in convergence time relative to stochastic gradient descent algorithms and non-regularized stochastic versions of BFGS. An application of RES to the implementation of support vector machines is developed.

Introduction

Optimizing large-scale machine learning models is often a balancing act between computational efficiency and convergence speed. Stochastic Gradient Descent (SGD) is the industry standard due to its low per-iteration cost, yet it struggles with "ill-conditioned" problems where the objective function's geometry is highly anisotropic. In such cases, SGD's path to the minimum becomes erratic and slow.

Newton-type methods address this by utilizing second-order information (the Hessian) to normalize the geometry, but the cost of computing and inverting the Hessian is prohibitive for high-dimensional data. Quasi-Newton methods like BFGS approximate the Hessian using only gradient information, but adapting them to the stochastic setting—where gradients are noisy estimates from mini-batches—introduces significant instability.

The RES Algorithm: Stability through Regularization

Mokhtari and Ribeiro introduce Regularized Stochastic BFGS (RES) to bridge this gap. RES maintains the low cost of stochastic methods while capturing the curvature benefits of second-order optimization. The algorithm's robustness stems from two primary innovations:

  1. Regularized Secant Condition: Standard BFGS updates can lead to near-singular Hessian approximations when gradients are noisy. RES introduces a regularization term ($\delta I$) that ensures the eigenvalues of the Hessian approximation remain bounded away from zero, preventing numerical instability.
  2. Identity Bias: When determining the descent direction, RES adds a small bias term ($\Gamma I$) to the inverse Hessian approximation. This acts as a safety mechanism; if curvature estimates become unreliable due to noise, the algorithm gracefully reverts toward standard SGD behavior.

To ensure that curvature estimates reflect changes in the model parameters rather than sampling noise, RES requires two stochastic gradient evaluations per step using the same data samples.

Convergence and Performance Analysis

The theoretical strength of RES is matched by its empirical performance. The authors demonstrate that RES maintains a linear convergence rate ($O(1/t)$), matching the best-case for stochastic algorithms while significantly improving the practical constants.

Convergence trajectory of RES vs. SGD: RES (blue) achieves a significantly lower distance to the optimal value compared to SGD (red) for the same number of data points processed.

As shown in the convergence plot above, RES exhibits a much steeper decline in the distance to the optimal value compared to SGD. This efficiency is particularly pronounced in high-dimensional settings where SGD's performance typically degrades.

Statistical Robustness and SVM Application

In practical tests involving Support Vector Machines (SVMs) with squared hinge loss, RES reached target accuracies roughly ten times faster than SGD. This order-of-magnitude improvement is consistent across various problem difficulties.

Distribution of convergence times: The empirical distribution shows that RES (blue) converges using significantly fewer function evaluations than SGD (red), often by a factor of ten.

The statistical distribution of convergence times highlights the reliability of RES. While SGD exhibits a wide variance and a much higher mean number of iterations to converge, RES is tightly clustered at a much lower threshold. In SVM classification tasks, this translated to a mean accuracy of 82.2% for RES, compared to just 65% for SGD given the same computational budget.

Conclusion

RES provides a robust framework for incorporating second-order information into stochastic optimization. By stabilizing the BFGS update through regularization and identity bias, it overcomes the instability that plagued previous stochastic quasi-Newton attempts. While it requires additional hyperparameter tuning and memory for the Hessian approximation, the resulting speedups—especially in ill-conditioned, high-dimensional problems—make it a powerful alternative to standard SGD. Future work focusing on Limited-Memory (L-BFGS) variants could further extend its applicability to extremely large-scale deep learning models.

Summary updated

BibTeX
@article{mokhtari2014res,
  author = {Aryan Mokhtari and Alejandro Ribeiro},
  title = {{RES: Regularized Stochastic BFGS Algorithm}},
  journal = {IEEE Trans. Signal Process.},
  year = {2014},
  doi = {10.1109/tsp.2014.2357775},
}
Figure