Abstract
Research into optimisation for deep learning is characterised by a tension between the computational efficiency of first-order, gradient-based methods (such as SGD and Adam) and the theoretical efficiency of second-order, curvature-based methods (such as quasi-Newton methods and K-FAC). We seek to combine the benefits of both approaches into a single computationally-efficient algorithm. Noting that second-order methods often depend on stabilising heuristics (such as Levenberg-Marquardt damping), we propose AdamQLR: an optimiser combining damping and learning rate selection techniques from K-FAC (Martens and Grosse, 2015) with the update directions proposed by Adam, inspired by considering Adam through a second-order lens. We evaluate AdamQLR on a range of regression and classification tasks at various scales, achieving competitive generalisation performance vs runtime.
Introduction
Deep learning optimization is currently dominated by first-order methods like SGD and Adam. While computationally efficient, these methods often require extensive manual tuning of hyperparameters, particularly the learning rate. In contrast, second-order methods like K-FAC leverage curvature information to take more principled steps but are often unstable without complex heuristics like damping.
This research introduces AdamQLR (Quadratic Learning Rate), an optimizer that bridges this gap. By grafting the stabilizing heuristics of second-order methods onto the Adam algorithm, we investigate whether the success of second-order methods stems from their complex curvature models or their robust heuristics. Our findings suggest that these heuristics—specifically automatic learning rate selection and damping—are powerful enough to allow an "untuned" AdamQLR to match or exceed the performance of carefully tuned standard optimizers.
Methodology: The AdamQLR Optimizer
AdamQLR functions as a wrapper around the standard Adam optimizer, replacing manual learning rate schedules with two key techniques borrowed from K-FAC:
- Levenberg-Marquardt Damping ($\lambda$): This adds a "minimum curvature" to the model, preventing the optimizer from taking unstable steps in flat regions of the loss landscape.
- Automatic Learning Rate Selection ($\alpha$): AdamQLR uses a local quadratic model based on the Fisher Information Matrix to calculate the optimal step size for the current direction at every iteration.
- Reduction Ratio ($\rho$): The algorithm monitors the accuracy of its predicted loss change. If the prediction is accurate, it decreases damping to accelerate; otherwise, it increases damping for stability.
While standard Adam uses a diagonal approximation of curvature, AdamQLR utilizes the true Fisher Information Matrix via efficient Jacobian-vector products to refine its steps, effectively viewing Adam's direction through a "second-order lens."
Evaluation and Results
We evaluated AdamQLR across a diverse suite of benchmarks, including the Rosenbrock function, UCI regression tasks, and image classification on Fashion-MNIST, SVHN, and CIFAR-10.
Geometric Intuition
On the Rosenbrock "banana" function, AdamQLR demonstrates a superior understanding of geometry compared to standard Gradient Descent or Adam. It navigates the narrow, curving valley significantly faster, as shown in Figure 1.
Empirical Performance
Across various datasets, the "untuned" version of AdamQLR achieved results comparable to extensively tuned versions of Adam and SGD. On UCI Protein and SVHN, untuned AdamQLR performed nearly identically to baselines optimized via ASHA tuning. On CIFAR-10, AdamQLR closed much of the performance gap between Adam and K-FAC, suggesting that the heuristics are indeed doing the heavy lifting.
Discussion and Key Insights
Our results highlight that heuristics like damping are "load-bearing" components in optimization. The "untuned superpower" of AdamQLR suggests a path toward tuning-free deep learning, where default damping values and quadratic models handle step-size selection automatically.
Furthermore, we observe that Adam is inherently "second-order-ish," as its $v_t$ term (moving average of squared gradients) is a diagonal approximation of the empirical Fisher matrix. AdamQLR takes this implicit logic to its natural conclusion. We also found that larger batch sizes improve AdamQLR’s performance by providing cleaner curvature estimates.
Limitations and Future Work
Despite its performance, AdamQLR introduces computational overhead, requiring additional forward and backward passes for Fisher-vector products. Its memory footprint is approximately 4x that of SGD (vs 3x for Adam). Future work will focus on optimizing these costs and exploring transformer-specific hyperparameters to improve performance on large-scale language models like GPT-2.
Summary updated