Sharpened Lazy Incremental Quasi-Newton Method

Aakash Lahoti, Spandan Senapati, Ketan Rajawat, Alec Koppel

Abstract

The problem of minimizing the sum of $n$ functions in $d$ dimensions is ubiquitous in machine learning and statistics. In many applications where the number of observations $n$ is large, it is necessary to use incremental or stochastic methods, as their per-iteration cost is independent of $n$. Of these, Quasi-Newton (QN) methods strike a balance between the per-iteration cost and the convergence rate. Specifically, they exhibit a superlinear rate with $O(d^2)$ cost in contrast to the linear rate of first-order methods with $O(d)$ cost and the quadratic rate of second-order methods with $O(d^3)$ cost.

However, existing incremental methods have notable shortcomings: Incremental Quasi-Newton (IQN) only exhibits asymptotic superlinear convergence. In contrast, Incremental Greedy BFGS (IGS) offers explicit superlinear convergence but suffers from poor empirical performance and has a per-iteration cost of $O(d^3)$. To address these issues, we introduce the Sharpened Lazy Incremental Quasi-Newton Method (SLIQN) that achieves the best of both worlds: an explicit superlinear convergence rate, and superior empirical performance at a per-iteration $O(d^2)$ cost.

Introduction

In large-scale machine learning, optimization often involves minimizing a "finite sum" of functions across $n$ training samples in $d$ dimensions. Standard tools face a significant trade-off: first-order methods like SGD are computationally cheap per iteration ($O(d)$) but converge slowly at a linear rate. Conversely, second-order methods like Newton’s method converge extremely fast (quadratic rate) but are prohibitively expensive ($O(d^3)$) for high-dimensional models.

Quasi-Newton (QN) methods aim for the middle ground: superlinear convergence at $O(d^2)$ cost. However, existing incremental QN methods—designed to handle large $n$ by processing samples sequentially—have flaws. The IQN method only achieves its fast rate asymptotically, while the IGS method, despite its explicit fast rate, is computationally heavy ($O(d^3)$) and performs poorly in practice. The Sharpened Lazy Incremental Quasi-Newton (SLIQN) method fills this gap, achieving an explicit superlinear convergence rate with a per-iteration cost of only $O(d^2)$.

Methodology

SLIQN introduces two primary innovations to overcome the efficiency and performance bottlenecks of previous incremental methods:

  • Sharpened Updates: Instead of choosing between classic BFGS (which moves quickly toward the goal) and greedy BFGS (which builds a better map of the landscape), SLIQN uses a hybrid "sharpened" strategy. It performs a classic update followed by a greedy one, capturing the benefits of both and ensuring fast convergence from the very first iteration.
  • Lazy Propagation: A major technical hurdle is that "sharpening" requires scaling the Hessian approximation. Doing this directly can increase the computational rank of the update, breaking the mathematical shortcuts (like the Sherman-Morrison formula) that keep costs at $O(d^2)$. SLIQN solves this by using a constant scaling factor across an entire "epoch" (one pass through the data) and applying it "lazily"—scaling individual components only when they are actually updated. This restores the low-rank structure necessary for efficiency.

Experimental Evaluation

The authors evaluated SLIQN on synthetic quadratic minimization problems and regularized logistic regression using nine real-world datasets from the LIBSVM library, including Mushrooms, Segment, and SVMGuide3. These datasets vary widely in their sample size $n$ and dimensionality $d$, providing a robust test of the algorithm's versatility.

Key Results

In almost every test case, SLIQN reached high-precision solutions in fewer passes through the data than IQN and IGS. Remarkably, SLIQN performed comparably to the Newton Incremental Method (NIM), even though NIM uses much more expensive $O(d^3)$ computations and full Hessian information.

Convergence performance on the Mushrooms dataset, showing SLIQN's rapid error reduction compared to IQN and IGS.
Convergence performance on the Segment dataset, where SLIQN performs competitively with the O(d^3) NIM method.

Beyond empirical success, the paper establishes a theoretical milestone: an explicit superlinear rate of $O(\rho^{t^2/n^2})$, which is the best-known rate for incremental settings.

Discussion and Limitations

While SLIQN represents a significant step forward, several challenges remain for future research:

  • Local Convergence: The current theoretical proof for superlinear convergence is "local," assuming the algorithm starts reasonably close to the optimal solution. Proving "global" convergence from any starting point remains an open challenge.
  • Memory Footprint: Like most incremental QN methods, SLIQN requires $O(nd^2)$ memory to store Hessian approximations for each sample. While the authors propose a pipelining scheme to offload this to disk, it remains a significant resource requirement for very large datasets.
  • Stochastic Extension: The current work focuses on incremental (cyclic) updates; extending this to purely stochastic (random) sampling is a natural next step.

Conclusion

The Sharpened Lazy Incremental Quasi-Newton (SLIQN) method achieves the "holy grail" of large-scale optimization: an explicit superlinear convergence rate with a per-iteration cost of only $O(d^2)$. By combining "sharpened" Hessian updates with a clever "lazy" propagation strategy, it overcomes the efficiency and performance bottlenecks of previous incremental methods, making it a powerful tool for modern machine learning tasks.

Summary updated

BibTeX
@inproceedings{lahoti2024sharpened,
  author = {Aakash Lahoti and Spandan Senapati and Ketan Rajawat and Alec Koppel},
  title = {{Sharpened Lazy Incremental Quasi-Newton Method}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=INF4eS3kAe},
}
Figure