Introduction
In machine learning optimization, practitioners typically face a trade-off between two extremes. On one hand, Stochastic Gradient (SG) methods use tiny batches of data; they are fast to start and generalize well, but require tedious hyperparameter tuning (such as learning rate schedules). On the other hand, L-BFGS is a classic "quasi-Newton" method that uses second-order information (curvature) to converge much faster and more reliably.
However, L-BFGS typically requires large batches or the full dataset because it is notoriously fragile when gradients are noisy. Noise breaks the "line search" (the process of deciding how far to step) and destabilizes the Hessian approximations used to model curvature.
This paper introduces PBQN (Progressive Batching Quasi-Newton), an algorithm designed to bridge the gap between fast-starting stochastic methods and highly accurate second-order optimization. By asking whether we can start with small batches like SG and gradually increase them to "earn" the stability needed for L-BFGS, the authors develop a method that allows classic L-BFGS to excel in the noisy world of deep learning.
The Progressive Batching L-BFGS Method
The PBQN algorithm relies on three foundational pillars to adapt L-BFGS for stochastic environments:
- Inner Product Quasi-Newton (IPQN) Test: Instead of increasing the batch size based on a rigid, predetermined schedule, PBQN uses a dynamic statistical test. It calculates the variance of the search direction and increases the batch size only when the noise is high enough to prevent the search direction from making an "acute angle" with the true, noise-free direction.
- Stochastic Line Search: Standard line searches (like the Armijo rule) fail when function values are noisy. The authors derive a new formula for the initial step length ($\alpha_k$) based on a variance-bias ratio. This ensures that even when the batch is small, the first step isn't so large that it overshoots into a region of higher error, preventing the "jitter" common in early training.
- Stable Curvature Updates: To update the L-BFGS model, the algorithm needs the difference between gradients at two points. If these gradients are calculated on completely different random batches, their difference is mostly noise. PBQN employs an overlapping batch strategy, ensuring that the gradients used for the update share a significant portion of the same data points to maintain consistency.
Performance and Key Results
The method was rigorously evaluated on both logistic regression tasks (using 8 standard binary classification datasets) and deep learning architectures (including a small CNN, an AlexNet-like network, and ResNet18 on datasets like MNIST and CIFAR-10).
- Robustness and Zero Tuning: On logistic regression tasks, PBQN required almost zero parameter tuning to achieve optimal results. In contrast, SG and SVRG required extensive grid searches to find the best learning rates.
- Competitive Accuracy: On complex deep learning tasks, PBQN achieved test accuracies comparable to state-of-the-art optimizers. For example, on ResNet18 trained on CIFAR-10, PBQN-MB reached ~70.28% accuracy, matching Adam's 70.16%.
- Iteration Efficiency: Because PBQN takes more "intelligent" steps informed by curvature, it requires significantly fewer total iterations than SG. While it may perform more gradient evaluations per iteration later in the run as batch sizes grow, the reduction in total iterations is a major advantage for communication-heavy distributed environments.
Limitations and Future Work
While PBQN presents a strong step forward for second-order stochastic optimization, the authors note a few limitations:
- Conflicts with Modern Heuristics: The current version of PBQN does not natively support Batch Normalization or Dropout. These techniques introduce artificial stochasticity that conflicts with the "gradient consistency" required for stable L-BFGS updates. Extending PBQN to accommodate these is a primary area for future research.
- Small Batch Regime: PBQN could benefit from finer control over the sample size when batches are very small, which would help it better compete with the ultra-fast start of highly tuned SG methods.
- Computational Overhead: Calculating the variance for the batch size test requires an additional Hessian-vector product. However, the authors argue this cost is minimal compared to the overall benefits of a vastly improved search direction.
Ultimately, PBQN demonstrates that curvature is a powerful signal—you don't need a full batch to see the "shape" of the loss landscape, just a batch large enough that the curvature signal outweighs the sampling noise. As batch sizes naturally grow during training, PBQN also becomes increasingly well-suited for parallel execution on modern GPU clusters.
Summary updated