Reinforcement Learning for Learning Rate Control

Chang Xu, Tao Qin, Gang Wang, Tie-Yan LiuarXiv 2017

Abstract

This paper introduces an automated framework for controlling the learning rate (LR) in Stochastic Gradient Descent (SGD) using an actor-critic reinforcement learning (RL) approach. By treating LR adjustment as a sequential decision-making problem, the system learns to prioritize long-term convergence over immediate loss drops. Experimental evaluations on MNIST and CIFAR-10 demonstrate that this RL-based controller discovers effective schedules that outperform human-designed heuristics and popular adaptive optimizers like Adam and RMSprop.

Introduction

Training deep neural networks with SGD is highly sensitive to the choice of learning rate. An excessively high LR can cause training to oscillate or diverge, while a very low LR leads to inefficiently slow progress. While adaptive methods like Adam or RMSprop mitigate some of these issues, they often rely on hand-crafted heuristics and introduce their own meta-parameters that require tuning.

The authors identify two primary challenges in automated LR control: the sequential nature of the task, where early decisions impact future states, and the conflict between short-term and long-term optimization. A "greedy" policy might achieve rapid initial loss reduction but ultimately converge to a poor local minimum. This research proposes a "far-sighted" controller designed to optimize final model performance.

Methodology: The Actor-Critic Framework

The proposed system utilizes an Actor-Critic architecture to manage the learning rate of a primary "optimizee" model.

The Actor-Critic architecture for learning rate control.
  • The Actor (Policy Network): An LSTM-based network that observes the current state of training ($s^t$)—derived from recent mini-batch loss values—and determines the learning rate ($a^t$) for the subsequent step.
  • The Critic (Value Network): This network estimates the $Q$-value, representing the expected cumulative reduction in loss from the current step until the end of training. This feedback allows the actor to learn which LR choices lead to superior long-term progress.
  • Gradient Disagreement: To ensure the controller generalizes across different data samples, the authors employ a training loop where the actor and critic are fed different samples. This forces the actor to select a learning rate that is robust to noise. If gradients between samples disagree significantly, the critic penalizes high learning rates, teaching the actor to decelerate in high-variance regions of the loss landscape.

Experimental Setup

The framework was evaluated on three main benchmarks:

  1. MNIST: Handwritten digit classification (60,000 images).
  2. CIFAR-10: Natural image classification across 10 classes (60,000 images).
  3. 2D Regression: Used for visualizing optimization trajectories to understand how the RL agent navigates loss surfaces.

Key Results and Discussion

The RL-controlled optimizer consistently achieved lower final training and test losses compared to standard SGD, Adam, Adagrad, and RMSprop. While adaptive methods like Adam often show aggressive progress early in training, the RL agent's far-sighted approach leads to more robust convergence and better final optima.

Training loss comparison on MNIST (a) and CIFAR-10 (b) benchmarks.

Visualizations from 2D regression tests revealed that RL-controlled trajectories are significantly more direct and less jittery than those of human-designed competitors. This suggests the agent effectively manages the trade-off between exploration and exploitation. By discovering its own decay schedules—such as decreasing the LR when gradients oscillate—the RL agent acts as a sophisticated meta-optimizer.

Conclusion and Future Work

This work demonstrates the potential of RL as a tool for hyperparameter optimization. By modeling the training process as a sequential decision task, the actor-critic framework discovers schedules that surpass traditional heuristics. Future research directions include extending the framework to learn individual learning rates for every parameter (similar to Adam's per-parameter scaling) and expanding the controller to manage other sensitive hyperparameters like dropout rates and momentum coefficients.

Summary updated

BibTeX
@misc{xu2017reinforcement,
  author = {Chang Xu and Tao Qin and Gang Wang and Tie-Yan Liu},
  title = {{Reinforcement Learning for Learning Rate Control}},
  year = {2017},
  eprint = {1705.11159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.11159},
}
Figure