Learning with Random Learning Rates

Léonard Blier, Pierre Wolinski, Yann Ollivier

Abstract

Training deep neural networks often requires extensive hyperparameter tuning, specifically for the learning rate. This paper proposes All Learning Rates At Once (Alrao), an optimization method that assigns a unique, randomly sampled learning rate to every feature in a network. By exploiting the inherent redundancy of deep models, Alrao achieves performance comparable to optimally tuned SGD and exhibits superior robustness compared to adaptive optimizers like Adam, effectively removing the need for manual learning rate search.

Introduction

The learning rate is arguably the most critical hyperparameter in deep learning. A rate that is too high leads to divergence, while one that is too low stalls training. Researchers typically resort to expensive grid searches to find the optimal "Goldilocks" value for every new architecture or dataset. While adaptive optimizers like Adam aim to simplify this process, they are not universally reliable and can suffer from overfitting or failure to converge on specific architectures. Alrao addresses this by providing a truly "out-of-the-box" optimizer that works reliably across diverse problems without human intervention.

Methodology: All Learning Rates At Once

Alrao builds upon standard Stochastic Gradient Descent (SGD) but introduces a radical shift in how learning rates are distributed across the network.

The Alrao architecture, featuring random learning rates for pre-classifier features and a model-averaging classifier.

The method consists of two primary components:

  1. Random LRs per Feature: Every feature in the pre-classifier model (e.g., a convolutional filter or a specific neuron) is assigned a unique, fixed learning rate sampled log-uniformly from a wide range, such as $10^{-5}$ to $10$.
  2. Model Averaging for the Classifier: To avoid biasing the output classes, the final classification layer is duplicated $N$ times. Each duplicate is assigned a different fixed learning rate. During training, a Bayesian model averaging technique (the "Switch" method) dynamically weights these classifiers' predictions based on their real-time performance.

This approach creates a mixture of "slow" and "fast" learners, allowing the network to naturally route information through units that received near-optimal learning rates.

Key Insights

The success of Alrao relies on the inherent redundancy of deep neural networks. Ablation studies show that networks are robust to "wasted" capacity; even when many neurons are assigned ineffective learning rates, the model builds accurate representations using the subset of "winning" neurons. This aligns with the Lottery Ticket Hypothesis, suggesting that by providing a diverse range of learning behaviors at initialization, Alrao guarantees the emergence of a high-performing subnetwork.

Experimental Results

The authors evaluated Alrao across image classification (CIFAR10, ImageNet), text prediction (PTB), and reinforcement learning (OpenAI Gym).

Training and test loss comparisons for ResNet50 on ImageNet (top) and another architecture (bottom), comparing Alrao against various fixed learning rates and Adam.

Key findings include:

  • Performance: Alrao consistently matched the performance of SGD tuned with the absolute best learning rate found via grid search across 13 experimental setups.
  • Robustness: Unlike Adam, which failed to optimize certain architectures (like AlexNet) or overfit others (like MobileNet), Alrao succeeded in every run. As seen in the loss plots, Alrao (black dashed line) maintains stable convergence even when Adam (blue dashed line) exhibits high instability or fails to learn.
  • Hyperparameter Insensitivity: While Alrao introduces a range for sampling learning rates, it is highly insensitive to the exact bounds, provided the interval is wide enough to capture a functional rate.

Limitations and Future Work

Alrao's primary drawback is the parameter overhead caused by duplicating the final classification layer, which can be significant for large-scale tasks like ImageNet or word-level language modeling. Additionally, the method currently uses fixed learning rates; future research could explore integrating learning rate schedulers to further bridge the gap with state-of-the-art tuned models.

Summary updated

BibTeX
@inproceedings{blier2019learning,
  author = {Léonard Blier and Pierre Wolinski and Yann Ollivier},
  title = {{Learning with Random Learning Rates}},
  booktitle = {ECML/PKDD},
  year = {2019},
  doi = {10.1007/978-3-030-46147-8\_27},
}
Figure