Adaptive First- and Second-Order Algorithms for Large-Scale Machine Learning

Sanae Lotfi, Tiphaine Bonniot de Ruisselet, Dominique Orban, Andrea LodiarXiv 2021

Abstract

Training modern deep learning models is notoriously sensitive to hyperparameter selection, often requiring extensive computational resources for tuning learning rates and batch sizes. This paper introduces two novel optimization frameworks designed to minimize this "engineering energy." The first, ARAS (Adaptive Regularization and Sampling), is a first-order method that utilizes statistical diagnostics to transition between step-size adaptation and dynamic sampling. The second, VARCHEN (Variance-Reduced Stochastic Damped L-BFGS), is a second-order method that implements a rigorous eigenvalue control mechanism to stabilize Quasi-Newton approximations in non-convex landscapes. Experimental results across MNIST, RCV1, and CIFAR-10 benchmarks demonstrate that these methods achieve superior stability and convergence with significantly reduced human intervention.

Introduction

The optimization of large-scale machine learning models remains a significant bottleneck in the development pipeline. Standard stochastic gradient descent (SGD) variants often fail to account for the evolving nature of the optimization landscape, which typically consists of a high-velocity transient phase followed by a noisy stationary phase. Furthermore, while second-order methods like L-BFGS theoretically offer faster convergence by leveraging curvature information, they are frequently sidelined in deep learning due to the instability of Hessian approximations in non-convex environments.

This research addresses these gaps by proposing two distinct algorithms that prioritize adaptivity and stability, effectively reducing the need for manual grid searches over hyperparameters.

Methodology

1. ARAS: Phase-Aware First-Order Optimization

ARAS (Adaptive Regularization and Sampling) builds upon the Adaptive Regularization with Inexact Gradients (ARIG) framework. Its primary innovation lies in the use of Pflug’s diagnostic—a statistical test that monitors the inner product of successive gradients to determine the model's current optimization phase.

  • Transient Phase: When the diagnostic indicates the model is making consistent progress toward a solution, ARAS automatically adapts the step size to maintain high velocity.
  • Stationary Phase: Once the diagnostic detects that the model has entered the "noise" (oscillating around a local minimum), the algorithm switches strategy. Instead of further reducing the step size, it employs adaptive sampling, increasing the batch size to reduce gradient variance and ensure precise convergence.

2. VARCHEN: Stable Second-Order Optimization

VARCHEN (Variance-Reduced Stochastic Damped L-BFGS) addresses the "ill-conditioning" problem inherent in applying Quasi-Newton methods to deep learning. In highly non-convex landscapes, Hessian approximations can become nearly singular or wildly unstable, leading to divergent training behavior.

  • Eigenvalue Control Mechanism: VARCHEN explicitly estimates the upper and lower bounds of the Hessian approximation’s eigenvalues. If these bounds exceed predefined stability thresholds, the algorithm "prunes" older memory pairs from its history to restore the health of the Hessian estimate.
  • Variance Reduction: To further improve the quality of curvature estimates, the method incorporates SVRG-style variance reduction, ensuring that the stochastic gradients used to update the Hessian are as accurate as possible.

Experimental Evaluation

The proposed algorithms were evaluated on three distinct benchmarks representing a range of optimization challenges:

  1. MNIST: Convex logistic regression for baseline performance.
  2. RCV1 (Reuters Corpus Volume I): A non-convex Support Vector Machine (SVM) problem using a sigmoid loss function.
  3. CIFAR-10: Training a modified DavidNet (a high-speed ResNet variant) to test performance in high-dimensional, non-convex deep learning scenarios.

Key Results

  • Efficiency in First-Order Methods: On MNIST and RCV1, ARAS consistently outperformed standard SGD and momentum-based variants, reaching lower training loss and higher test accuracy in fewer iterations.
  • Stability in Second-Order Methods: When applied to DavidNet on CIFAR-10, VARCHEN exhibited significantly less "jitter" than previous stochastic L-BFGS variants. By preventing ill-conditioning through eigenvalue control, VARCHEN achieved higher validation accuracy and smoother convergence curves than both SVRG and SdLBFGS-VR.

Discussion and Insights

The core philosophy of this work is that stability is more critical than complexity. In second-order optimization, maintaining a bounded and stable Hessian approximation—even if it requires discarding recent information—is more effective than attempting to maintain a perfect but volatile approximation. Similarly, the success of ARAS suggests that optimization should be treated as a two-stage process, where the algorithm's behavior shifts based on the local geometry of the loss function.

Limitations and Future Work

While the ARIG framework has established convergence proofs, the specific iteration complexity for the integrated ARAS algorithm remains a subject for future theoretical study. Additionally, VARCHEN currently relies on SVRG, which necessitates periodic full-gradient computations. Future iterations of the second-order method could benefit from the adaptive sampling techniques used in ARAS to further improve computational efficiency. Finally, exploring more computationally efficient ways to monitor Hessian eigenvalue bounds could refine the VARCHEN mechanism for even larger-scale deployments.

Summary updated

BibTeX
@misc{lotfi2021adaptive,
  author = {Sanae Lotfi and Tiphaine Bonniot de Ruisselet and Dominique Orban and Andrea Lodi},
  title = {{Adaptive First- and Second-Order Algorithms for Large-Scale Machine Learning}},
  year = {2021},
  eprint = {2111.14761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.14761},
}
Figure