Abstract
Tuning learning rates is a resource-intensive bottleneck in deep learning. We present a probabilistic wrapper for standard optimizers that uses Gaussian inference to automatically adapt the learning rate. By modeling optimization as a Bayesian problem and utilizing a local quadratic approximation, the proposed method achieves robustness to initial settings and competitive performance across diverse architectures without manual grid searches.
Introduction
In stochastic optimization, the learning rate ($\eta$) is the most critical hyperparameter. It determines the step size in the gradient direction; an excessive rate leads to divergence, while an insufficient rate results in stagnation. The optimal learning rate is dynamic, varying with model architecture, dataset, and training progress. Furthermore, minibatch noise complicates the distinction between meaningful progress and stochastic fluctuations. While heuristics like learning rate schedules and warm-up periods exist, they often introduce additional hyperparameters, creating a recursive tuning problem.
Methods
The proposed framework treats optimization as a Gaussian inference problem. The core methodology involves:
- Local Quadratic Approximation: The loss function is locally modeled as a quadratic bowl.
- Probabilistic Inference: The minimum of this bowl is treated as a random variable. Using a Gaussian prior centered at current parameters and a likelihood accounting for minibatch noise, a new update rule is derived.
- The Wrapper Algorithm: This rule generalizes the Polyak step, adapting step sizes based on the estimated distance to the optimum.
- Automatic Adaptation: The algorithm re-evaluates the loss on the same minibatch after a step. It compares the actual decrease in loss to the expected decrease predicted by the quadratic model. If the ratio is high, the learning rate increases; if low, it is aggressively reduced.
This method acts as an "add-on" to existing first-order optimizers like SGD and Adam, allowing them to self-correct during training.
Experimental Evaluation
The method was evaluated using the DeepOBS benchmarking suite across several tasks:
- MNIST & Fashion MNIST: Logistic regression, MLPs, and 2D CNNs.
- CIFAR-10: 3-layer CNN (3c3d).
- SVHN: Wide ResNet-16-4.
- CIFAR-100: ResNet-18.
Key Results and Insights
Robustness to Initialization
The algorithm demonstrates remarkable stability. It can start from a very small, "safe" learning rate and rapidly accelerate to the optimal scale, effectively removing the need for initial guesswork. In head-to-head tests, the adapted version converged successfully across initial learning rates spanning five orders of magnitude ($10^{-5}$ to $10^0$), whereas fixed-rate versions often failed at the extremes.
Performance and Efficiency
The final accuracies achieved by automated adaptation were consistently competitive with exhaustively tuned fixed learning rates. While the method requires an extra forward pass per iteration—resulting in a 41% to 50% increase in wall-clock time per epoch—it significantly reduces total human and compute time by eliminating the need for extensive grid searches.
Theoretical Contributions
The paper provides a novel interpretation of momentum as a rank-one update to the prior covariance matrix in a probabilistic model. Additionally, the adaptation logic relies on a dimensionless ratio, making the meta-parameters (e.g., the 1.2x increase factor) stable across different network types.
Limitations
The primary drawback is the computational overhead of the extra forward pass. Additionally, while the method is robust, setting an initial learning rate several orders of magnitude above the divergence point can still cause failure before adaptation takes effect. Finally, the algorithm performs best when the minimum possible loss ($f^*$) is known or can be accurately estimated.
Summary updated