Abstract: Optimizers like Adam and AdaGrad have been very successful in training large-scale neural networks. Yet, the performance of these methods is heavily dependent on a carefully tuned learning rate schedule. We show that in many large-scale applications, augmenting a given optimizer with an adaptive tuning method of the step-size greatly improves the performance. More precisely, we maintain a global step-size scale for the update as well as a gain factor for each coordinate. We adjust the global scale based on the alignment of the average gradient and the current gradient vectors. A similar approach is used for updating the local gain factors. This type of step-size scale tuning has been done before with gradient descent updates. In this paper, we update the step-size scale and the gain variables with exponentiated gradient updates instead. Experimentally, we show that our approach can achieve compelling accuracy on standard models without using any specially tuned learning rate schedule. We also show the effectiveness of our approach for quickly adapting to distribution shifts in the data during training.
Introduction
In modern deep learning, the "learning rate schedule" is often considered a dark art. Even sophisticated optimizers like Adam or AdaGrad typically require a manually designed schedule—such as a "staircase decay" where the learning rate is reduced at specific epochs—to reach peak performance. This manual tuning is inefficient, requiring multiple training runs, and lacks robustness when the data distribution changes during training.
The Funnel Meta-Algorithm
To automate this process, we introduce Funnel, a meta-algorithm that acts as a wrapper around any standard internal optimizer (e.g., SGD or AdaGrad). Funnel manages two primary hyperparameters to control the update step:
- Global Scale ($s$): Adjusts the overall step-size based on the alignment between the current gradient and the update direction.
- Per-coordinate Gains ($p$): Adjusts the step-size for every weight independently, based on the consistency of the gradient direction over time.
Instead of standard additive updates, Funnel utilizes Unnormalized Exponentiated Gradient (EGU) updates. These multiplicative updates are naturally suited for keeping scale and gains non-negative and allow for much faster adaptation than additive methods when only a few dimensions are relevant.
Key Insights: Alignment and Implicit Updates
The core mechanism of Funnel relies on alignment as a signal. If the current gradient aligns with the moving average of past gradients, the gain is increased. Conversely, if they point in opposite directions, indicating oscillation, the gain is decreased. This approach essentially approximates "implicit" gradient descent, which is more stable because it mimics looking at the gradient of the next point in the loss landscape.
Experimental Evaluation
We evaluated Funnel across three distinct scenarios to test its versatility and robustness:
- Rotated MNIST: A synthetic dataset where background and digit rotation change every 100k steps to simulate extreme distribution shifts.
- CIFAR-10: Training a MobileNetV1 architecture to determine if Funnel can replace manual schedules on standard benchmarks.
- ImageNet: Training a ResNet50 model to test scalability on a large-scale dataset.
Key Results
Funnel successfully matched or exceeded the performance of manually tuned schedules. On CIFAR-10, Funnel achieved 89.61% accuracy without a manual schedule, matching the 89.51% of a heavily tuned baseline. On ImageNet, it reached 72.39% Top-1 accuracy, significantly outperforming other adaptive methods like AdaGrad-EMA when manual schedules were removed. Most notably, in the Rotated MNIST experiment, Funnel-equipped optimizers recovered their accuracy almost immediately after distribution shifts, demonstrating superior adaptability.
Conclusion and Future Work
Funnel provides a robust framework for automating step-size adaptation, reducing the need for manual schedule tuning. While it introduces new meta-learning rates, these appear more robust across different tasks. Future research will explore matrix-form gains to account for inter-dependencies between coordinates, which are currently treated as independent in the diagonal pre-conditioner approach.
Summary updated