Differentiable Self-Adaptive Learning Rate

Bozhou Chen, Hongzhi Wang, Chenmin Ba

TL;DR

This paper introduces DSA, a novel optimizer that makes the learning rate itself differentiable with respect to the loss function. This allows the learning rate to adapt dynamically and sensitively during training, leading to significantly faster and more stable convergence compared to existing state-of-the-art optimizers across various neural network architectures and datasets.

What Problem Does This Paper Address?

Training neural networks often involves a delicate balancing act with the learning rate. A learning rate that's too high can cause the optimization process to overshoot the optimal solution and fail to converge, while a learning rate that's too low can make training excruciatingly slow. While many optimizers have been developed to adapt the learning rate (like Adam, RMSProp, etc.), they often struggle with instability, slow convergence in later stages, or an inability to quickly recover from oscillations. The core problem is that existing adaptive learning rate methods are not truly "self-adaptive" enough to respond to the nuances of the loss landscape in real-time, leading to suboptimal training speed and performance.

Methods

The key innovation of DSA (Differentiable Self-Adaptive Learning Rate) is treating the learning rate ($\eta$) as a trainable parameter that is optimized directly to minimize the loss function. This is achieved through a two-step process within each training epoch:

  1. Standard Gradient Update: The network parameters ($\theta$) are updated using the current learning rate ($\eta$) and the gradient of the loss function ($g(\theta)$).
  2. Learning Rate Optimization: The learning rate itself is then updated by minimizing a loss function that depends on $\eta$. This is done by calculating the gradient of the loss with respect to $\eta$ and using it to adjust $\eta$.

The paper details several progressive optimizations to this core idea:

  • Parameter-Specific Learning Rates: Instead of a single learning rate for the entire network, DSA can assign individual learning rates to each parameter, allowing for more tailored updates.
  • Exponential Learning Rate: To address "grad loss" (where gradients become very small, hindering progress), the learning rate is updated using an exponential form.
  • Adaptive Stride Control: To prevent overshooting and ensure stability, DSA uses different update strides ($\beta_1$, $\beta_2$) for increasing and decreasing the learning rate, making it decrease faster than it increases.

Datasets

The paper evaluates DSA on a variety of datasets, categorized as follows:

  • Large Convolutional Networks (FMP): MNIST, SVHN, CIFAR10, CIFAR100. These are standard image classification datasets.
  • Lightweight Convolutional Networks (DNN): MNIST, SVHN, CIFAR10, CIFAR100. Used to highlight speed and performance differences.
  • Small Feature Datasets (MLP): IRIS, WINE, CAR, AGARICUS. Used to demonstrate performance on tabular data and batch training.

No new datasets were introduced.

Key Insights and Ideas

  • Differentiable Learning Rate is Key: The fundamental insight is that by making the learning rate itself a differentiable variable optimized towards minimizing the loss, we unlock a new level of adaptive control. This is a departure from traditional methods that heuristically adjust learning rates based on past gradients.
  • Sensitivity and Stability: DSA's ability to quickly increase or decrease its learning rate based on the gradient of the learning rate itself allows it to be both highly sensitive to changes in the loss landscape and remarkably stable, avoiding oscillations that plague other optimizers.
  • Faster Convergence, Higher Quality: The experimental results strongly suggest that this differentiable approach leads to significantly faster convergence to a better final solution, often achieving state-of-the-art performance in far fewer epochs.

Key Results

  • Speed: DSA consistently achieves convergence in significantly fewer epochs compared to benchmark optimizers like Adam, SGD, and Momentum. For instance, on the AGARICUS dataset, DSA is reported to be 30 times faster.
  • Performance: DSA achieves high accuracy and F1-scores across various datasets. On the FMP model with CIFAR100, DSA achieved a 59.50% accuracy, a notable improvement over Adamax (51.13%).
  • Stability: Visualizations (loss trends and parameter tracks) show DSA exhibiting much smoother convergence and fewer oscillations, especially in challenging scenarios where other optimizers struggle.
  • Generalizability: DSA demonstrates strong performance across different network architectures (FMP, DNN, MLP) and dataset types (image, tabular).

Limitations and Future Work

  • Initial Value Sensitivity: The paper acknowledges that DSA's performance can be sensitive to the initial values of the learning rate ($\eta_0$) and stride sizes ($\beta_1, \beta_2$). While they explore hyperparameter tuning, determining optimal initial values remains an area for further research.
  • "Pointless Adaptation" in Later Stages: In the very late stages of training, the learning rate might still be actively adapting even when the loss landscape is relatively flat, which could be considered "pointless adaptation."
  • Future Work: The authors suggest investigating methods to determine more reasonable initial values for $\eta_0$, $\beta_1$, and $\beta_2$, and to eliminate the negative influence of initial values. They also aim to make the learning rate converge stably in the later stages of training.

Summary updated

BibTeX
@inproceedings{chen2022differentiable,
  author = {Bozhou Chen and Hongzhi Wang and Chenmin Ba},
  title = {{Differentiable Self-Adaptive Learning Rate}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=3Skn65dgAr4},
}
Figure