Introduction
The paper introduces OASIS (dOubly Adaptive Scaled algorIthm for machine learning using Second-order information), a novel optimizer that combines a low-cost diagonal Hessian estimate with an auto-tuning learning rate. It effectively bridges the gap between simple first-order methods like SGD and computationally heavy second-order methods, providing a "set-and-forget" optimizer that is robust to ill-conditioning and requires no manual learning rate tuning.
The Problem with Current Optimizers
Training large-scale machine learning models usually relies on first-order methods (like SGD or Adam) because they are easy to implement and computationally cheap. However, these methods have three major headaches:
- Hyperparameter Sensitivity: They require tedious manual tuning of the learning rate.
- Ill-conditioning: They struggle when the "loss landscape" is stretched or warped, leading to slow convergence.
- Communication Bottlenecks: In distributed settings, they often spend more time communicating between machines than actually computing.
Second-order methods (like Newton’s method) solve these issues by using "curvature" information (the Hessian matrix) to take smarter steps. The catch? Calculating and inverting a full $d \times d$ Hessian matrix is impossibly expensive for modern models with millions of parameters. OASIS aims to provide the benefits of second-order information at a fraction of the cost.
The OASIS Method
OASIS achieves "double adaptivity" through two key mechanisms:
- Adaptive Search Direction: Instead of using the full Hessian, OASIS uses a diagonal preconditioning matrix. It estimates the diagonal of the Hessian using Hutchinson’s method, which only requires Hessian-vector products (computable via two rounds of backpropagation). Crucially, OASIS scales this estimate more accurately than previous methods like AdaHessian, ensuring the search direction is well-aligned with the local geometry of the loss function.
- Adaptive Learning Rate: The algorithm eliminates the need for a manually tuned learning rate. It uses a local approximation of the Lipschitz smoothness parameter to update the step size automatically at every iteration. This is based on an extension of the Malitsky-Mishchenko rule to weighted Euclidean norms.
The authors also include a truncation step to ensure the preconditioning matrix remains positive definite, preventing the optimizer from heading in the wrong direction in non-convex regions.
Key Insights
- Scale Matters: While previous methods like AdaHessian capture the relative curvature across dimensions, they often get the absolute scale wrong. OASIS provides a much tighter approximation to the true Hessian diagonal, which is why it can support an automated learning rate.
- Curvature is Cheap: By using the "Hessian-free" approach (Hessian-vector products), the per-iteration cost of OASIS is only about 2-3x that of a standard gradient descent step, but the steps it takes are significantly higher quality.
- Theoretical Versatility: The authors provide convergence proofs for a wide range of scenarios: convex, strongly convex, and non-convex, in both deterministic and stochastic regimes.
- Hyperparameter Robustness: Sensitivity analysis shows that OASIS is remarkably stable across different internal parameter settings, unlike SGD which can fail completely if the learning rate is off by a factor of 10.
Key Results
OASIS was evaluated across a variety of standard benchmarks, including binary classification, non-linear least squares, and image classification (MNIST, CIFAR-10, CIFAR-100).
- Deterministic Regime: On logistic regression and non-linear least squares tasks, OASIS consistently outperformed state-of-the-art adaptive first-order methods (like AdGD) and second-order approximations (like AdaHessian) in terms of both training loss and test accuracy.
- Stochastic Regime (Deep Learning): On CIFAR-10, OASIS variants achieved test accuracies that were competitive with or superior to heavily tuned SGD and Adam. On CIFAR-100, the fully adaptive version of OASIS immediately produced results surpassing other methods.
- No Tuning Required: The "Adaptive LR" version of OASIS reached peak performance without the extensive grid searches usually required for learning rates in deep learning.
Limitations and Future Work
- Stochastic Theory Gap: While the algorithm works well in practice for stochastic settings, the current theoretical analysis for the adaptive learning rate is most rigorous for the deterministic case. Extending this theory to the stochastic regime is a primary goal for future work.
- Noise in Estimates: In very noisy stochastic environments, the diagonal Hessian estimate can become unstable. Incorporating variance reduction schemes could further stabilize the optimizer.
- Broader Task Evaluation: Testing OASIS on large-scale Natural Language Processing (NLP) and Recommendation Systems is noted as an important next step.
Summary updated