Abstract
AdaSecant is a robust, "set-it-and-forget-it" optimizer for deep learning that automatically tunes per-parameter learning rates. By leveraging stochastic curvature information and a novel variance reduction technique, it matches or outperforms popular, carefully hand-tuned optimizers like Adam and RMSprop without requiring extensive hyperparameter searches.
Introduction
Training deep neural networks is notoriously sensitive to the choice of the learning rate. If it's too high, the model diverges; if it's too low, training takes forever. While adaptive methods like Adam and RMSprop help by scaling gradients based on past magnitudes, they don't fully account for the "curvature" of the loss function—how the gradient itself is changing.
Traditional second-order methods (like Newton's method) use curvature to take more intelligent steps, but they are computationally expensive because they require inverting a massive matrix (the Hessian). Furthermore, in a stochastic setting (using minibatches), estimates of curvature become extremely noisy, often leading to instability. AdaSecant aims to bridge this gap by creating a second-order-like optimizer that is computationally efficient and stable enough for noisy, deep learning environments.
The AdaSecant Method
AdaSecant is a stochastic rank-1 quasi-Newton method. Its core components include:
- Directional Secant Approximation: Instead of calculating the full Hessian, AdaSecant estimates curvature along the direction of the gradient using finite differences. It looks at how the gradient changes between updates to determine the local landscape's geometry.
- Variance Reduction: To combat the noise inherent in minibatch gradients, a transformation balances the current noisy gradient with a moving average of past gradients, ensuring stable step-size estimation.
- Blockwise Gradient Normalization: Gradients are normalized at the layer (or "block") level, making the optimizer scale-invariant and helping prevent the vanishing gradient problem in deep networks.
- Outlier Detection (OD): A safety mechanism monitors for "exploding" gradients. If a gradient is identified as a statistical outlier, the optimizer resets its internal memory to prevent the update from destabilizing the model.
- Adagrad-style Convergence Guard: To ensure the algorithm eventually converges, a thresholded version of Adagrad acts as a lower bound on the scaling factor.
Experimental Evaluation
The researchers evaluated AdaSecant across three distinct tasks to prove its versatility:
- Penn Treebank (PTB): Character-level language modeling using Gated Recurrent Units (GRUs).
- MNIST: Image classification using Maxout Networks (2-layer and 16-layer architectures).
- IAM-OnDB: Handwriting synthesis, a complex sequence generation task.
Results and Discussion
AdaSecant demonstrated competitive performance against well-tuned baselines. On the PTB dataset, AdaSecant performed nearly identically to a "very well-tuned" Adam optimizer. In Maxout network experiments on MNIST, AdaSecant converged faster and reached a lower training cost than Adagrad, RMSprop, and SGD with Momentum.
A critical finding of this work is the importance of the individual stability components. The ablation study revealed that Outlier Detection (OD) and Variance Reduction (VR) are essential for stability. Removing these components often led to unstable training or significantly worse log-loss performance.
Key Insights
- Curvature for Free: Second-order optimization benefits (faster convergence, better local minima) can be gained without the $O(N^3)$ cost of matrix inversion by using directional secant approximations.
- Stability is Paramount: Curvature estimates are too noisy to use directly in SGD. The combination of variance reduction and outlier detection acts as the necessary "guardrails" to make second-order logic work in a stochastic world.
- Robustness over Tuning: AdaSecant with default parameters performs as well as Adam or RMSprop after those models have been subjected to an exhaustive hyperparameter grid search.
Conclusion
While AdaSecant reduces the need to tune the optimizer, it does not eliminate the need to tune model architecture. It also requires maintaining several moving averages per parameter, which increases memory overhead slightly compared to basic SGD. However, its ability to provide high-quality results without manual learning rate tuning makes it a powerful tool for deep learning practitioners. Future work includes developing formal theoretical convergence properties for this specific combination of techniques.
Summary updated