Learning an Adaptive Learning Rate Schedule

Zhen Xu, Andrew M. Dai, Jonas Kemp, Luke MetzarXiv 2019

TL;DR

Tuning learning rates is a tedious, trial-and-error process. This paper introduces a reinforcement learning framework that automatically learns an adaptive learning rate schedule by monitoring real-time training dynamics. The resulting controller not only outperforms standard hand-designed schedules but also generalizes seamlessly to entirely new datasets and architectures.

What Problem Does This Paper Address?

The learning rate is arguably the most critical hyperparameter in deep learning, yet choosing the right schedule (e.g., exponential decay, cosine annealing) remains a black art. Existing hand-designed schedules are rigid and parametric; they do not adapt to the actual, highly non-convex optimization landscape encountered during training.

Finding the optimal schedule typically requires an exhaustive grid search, costing significant time and compute. The authors aim to replace this trial-and-error approach with a dynamic, data-driven controller that adjusts the learning rate on the fly based on the model's current state.

Methods

The authors frame learning rate scheduling as a Reinforcement Learning (RL) problem using a Controller-Trainee framework:

  • Trainee Network: The target model being trained (e.g., a CNN or ResNet). Every 10 steps, it passes features of its training dynamics to the controller.
  • Controller Network: An RL agent trained via Proximal Policy Optimization (PPO) that outputs the next learning rate adjustment.
  • State Space: To capture training dynamics efficiently without architecture-specific bloat, the state includes current train/validation loss, variance of predictions, and the mean/variance of the weights only from the final dense layer.
  • Action Space: Instead of predicting an absolute learning rate (which is highly sensitive and unstable), the controller outputs a scaling factor to adjust the previous step's learning rate up or down. This provides a stable inductive bias for both warm-up and decay.
  • Reward Function: The per-step validation loss serves as an immediate reward signal, making credit assignment much easier than relying solely on a final sparse reward.

Datasets

  • Fashion-MNIST: Used for training and evaluating the framework on standard CNNs and ResNet architectures.
  • CIFAR-10: Used for training, evaluation, and cross-dataset transferability testing.

Key Insights and Ideas

  • Action as a Multiplier: Predicting a multiplier ($a_t$) rather than an absolute learning rate or log-rate ensures stability across different datasets that might operate on completely different learning rate scales.
  • Final Layer as a Proxy: Tracking the weight moments of just the final dense layer provides a lightweight, architecture-agnostic snapshot of training dynamics, avoiding the need to monitor millions of parameters across all layers.
  • Meta-Learning Transferability: The RL controller doesn't just memorize a specific trajectory; it learns a general policy for optimization. A controller trained on CIFAR-10 can successfully guide a model training on Fashion-MNIST without any additional tuning.

Key Results

  • Performance Boost: The auto-learned schedule consistently achieved lower test loss and higher test accuracy compared to heavily tuned step-decay baselines. For instance, on CIFAR-10 with a ResNet architecture, the test accuracy improved significantly from 0.7395 to 0.8181.
  • Faster Convergence: The RL controller drives validation loss down faster than fixed schedules across different architectures.
Figure 1: Training trajectory comparison between baseline and auto-learned learning rate schedules. The y axis is the log of validation loss. The x axis is the number of training steps.
  • Zero-Shot Transfer: When a controller trained on CIFAR-10 was transferred directly to Fashion-MNIST, it significantly outperformed the transferred baseline schedules (e.g., CNN test loss dropped from 0.2730 to 0.2598), proving it learns a generalizable optimization procedure.

Limitations and Future Work

  • Computational Constraints: Due to resource limits, the authors restricted training to 25 epochs and used a relatively small ResNet-18 architecture. Scaling this up to massive models and longer schedules remains to be verified.
  • SOTA Gap: The primary goal was to demonstrate the effectiveness and transferability of the adaptive schedule rather than beating absolute state-of-the-art classification records on these datasets.
  • Global vs. Per-Parameter: The framework currently optimizes a single global learning rate. Integrating this meta-learning approach with per-parameter optimizers like Adam or Adagrad (which handle coordinate-wise scaling) is a promising future direction.

Summary updated

BibTeX
@misc{xu2019learning,
  author = {Zhen Xu and Andrew M. Dai and Jonas Kemp and Luke Metz},
  title = {{Learning an Adaptive Learning Rate Schedule}},
  year = {2019},
  eprint = {1909.09712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.09712},
}
Figure