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

A New Stochastic Limited Memory BFGS Algorithm

Mojgan Momeni, M. Reza Peyghami, Davoud Ataee TarzanaghJournal of Mathematical Extension 2019

Abstract

In this paper, a new limited memory BFGS is proposed for solving stochastic optimization problems. Since the cost of storing and manipulating $H_k$ is prohibitive in the large scale setting, the L-BFGS algorithms use the strategy of keeping the most recent correction pairs. Besides, in the stochastic regime, due to some noisy information in both gradient vector and Hessian approximation, the second-order model is not an accurate estimation of the function. To overcome this problem, our L-BFGS employs memory in an optimal manner by storing the correction pairs that have the least violation in the secant equation. Under some standard assumptions, the convergence property of the new algorithm is established for strongly convex functions. Numerical results on the problems arising in machine learning show that the new method is competitive and effective in practice.

1. Introduction

In the landscape of large-scale optimization, first-order methods like Stochastic Gradient Descent (SGD) are the industry standard due to their low computational cost per iteration. However, these methods often require a high number of iterations to converge because they ignore the "curvature" (second-order information) of the objective function.

Quasi-Newton methods, such as BFGS, attempt to capture this curvature to take more informed steps. To handle the storage demands of large-scale problems, the Limited-Memory BFGS (L-BFGS) variant maintains a small window of recent "correction pairs" (changes in position and gradient) to estimate the Hessian. In a stochastic setting, however, gradients are inherently noisy. Standard L-BFGS uses a First-In-First-Out (FIFO) strategy for memory management, which can lead to poor Hessian approximations if the most recent data is particularly noisy. This paper introduces a "smart memory" approach to filter out this noise and improve stability.

2. The slbfgs Algorithm

The proposed algorithm, slbfgs, modifies the traditional L-BFGS framework by introducing an optimal memory replacement strategy. Instead of assuming that the most recent information is the most valuable, it evaluates the mathematical quality of the data.

2.1 Sub-sampled Hessians

Following established practices in stochastic optimization, the algorithm utilizes sub-sampled Hessian-vector products at regular intervals. This helps define correction pairs $(s, y)$ that are less susceptible to the high variance found in individual stochastic gradients.

2.2 Optimal Memory Replacement

The core innovation lies in how the algorithm manages its memory buffer. When the memory is full and a new pair is generated, the algorithm does not automatically drop the oldest pair. Instead, it calculates a "violation vector" ($sec_k$) for every pair currently in memory. This vector measures how much a specific pair deviates from the secant equation ($H_{k+1}y_k = s_k$), which is the fundamental consistency requirement for a Hessian estimate.

The algorithm identifies the pair with the largest violation (the highest norm of $sec$) and replaces it with the new pair. This ensures the memory consistently retains the most mathematically reliable curvature information.

3. Theoretical Convergence

The authors provide a rigorous mathematical proof demonstrating that the slbfgs algorithm achieves global convergence for strongly convex functions. This analysis is conducted under standard optimization assumptions, ensuring that the selective memory strategy remains robust and theoretically sound even in noisy environments.

4. Experimental Results

The slbfgs algorithm was benchmarked against SGD, a standard Stochastic Quasi-Newton (SQN) method, and SVRG-LBFGS (a variance-reduced variant).

4.1 Datasets

Testing was performed on:

  • Synthetic Data: Generated for $\ell_2$-norm and $\ell_1$-norm regularized logistic regression and ridge regression.
  • RCV1 (Reuters Corpus Volume 1): A real-world dataset of over 800,000 manually categorized newswire stories, used for large-scale logistic regression.

4.2 Performance Insights

  • Optimality Gap: On both synthetic and RCV1 data, the new method consistently achieved a lower optimality gap (the distance from the true minimum) compared to other methods for the same number of gradient evaluations.
  • Efficiency: Despite the minor computational overhead of searching the memory for the "worst" pair, the algorithm reached high accuracy significantly faster than standard SGD or SQN.
  • Robustness: The algorithm maintained high performance across different types of regularization, suggesting it is well-suited for a variety of problem formulations.

5. Conclusion and Future Work

The slbfgs algorithm demonstrates that in stochastic optimization, data quality is often more important than data recency. By using the secant equation as a filter for memory management, the algorithm provides a more stable and efficient path to convergence.

Future research may focus on adapting this approach for non-convex problems, such as deep neural networks, where the strong convexity assumption does not hold. Additionally, exploring automated ways to tune hyperparameters like memory size and update intervals could further improve the algorithm's practical accessibility.

Summary updated

BibTeX
@article{momeni2019new,
  author = {Mojgan Momeni and M. Reza Peyghami and Davoud Ataee Tarzanagh},
  title = {{A New Stochastic Limited Memory BFGS Algorithm}},
  journal = {Journal of mathematical extension.},
  year = {2019},
  doi = {10.30495/jme.v14i0.1212},
}
Figure