[Paper Review] Hot Swapping for Online Adaptation of Optimization Hyperparameters
This paper proposes a novel online hyperparameter adaptation method called hot swapping for stochastic gradient descent, where learning rates are dynamically selected via a discounted upper confidence bound (DUCB) multi-armed bandit algorithm. The approach outperforms AdaDelta and exhaustive SGD hyperparameter search by achieving lower training loss and test error, even with slower per-iteration speed, due to smarter, adaptive learning rate selection that improves convergence to flatter, better generalizing optima.
We describe a general framework for online adaptation of optimization hyperparameters by `hot swapping' their values during learning. We investigate this approach in the context of adaptive learning rate selection using an explore-exploit strategy from the multi-armed bandit literature. Experiments on a benchmark neural network show that the hot swapping approach leads to consistently better solutions compared to well-known alternatives such as AdaDelta and stochastic gradient with exhaustive hyperparameter search.
Motivation & Objective
- To address the challenge of online, dynamic adaptation of optimization hyperparameters during training, particularly learning rates, without requiring pre-defined schedules.
- To improve optimization performance by treating learning rate selection as an explore-exploit problem, leveraging multi-armed bandit strategies.
- To overcome limitations of static hyperparameter tuning (e.g., grid or random search) and curvature-based adaptive methods like AdaDelta.
- To enable real-time hyperparameter adaptation with minimal computational overhead and memory footprint, preserving SGD’s efficiency.
- To demonstrate that dynamic learning rate selection via bandit algorithms leads to consistently better generalization and faster convergence.
Proposed method
- The method uses a DUCB bandit model to select learning rates at each optimization step, balancing exploration of new rates and exploitation of high-performing ones.
- Learning rate performance is evaluated using a logarithmic reward: r = log(f(θ₀; B)) − log(f(θₖ; B)), where f is the objective function and θₖ is the parameter update using rate αₖ.
- A minibatch line search is performed starting from the DUCB-suggested rate to ensure each update reduces the objective function, preventing catastrophic steps.
- The DUCB model maintains a history of rewards with discounted weighting to prioritize recent performance, enabling adaptation to changing optimization dynamics.
- The algorithm allows 'hot swapping' of learning rates during training, meaning parameters can be updated with different rates across iterations without reinitializing.
- The approach is compatible with standard SGD and maintains linear time complexity per iteration, with only a modest increase in per-iteration cost due to line search.
Experimental results
Research questions
- RQ1Can online, dynamic learning rate adaptation via bandit-based selection outperform static or curvature-based adaptive methods in deep learning optimization?
- RQ2Does the hot swapping approach with DUCB lead to faster convergence and lower final objective values compared to SGD with exhaustive hyperparameter search?
- RQ3How does the performance of the hot swapping method compare to AdaDelta in terms of test accuracy and training objective over time?
- RQ4To what extent does the DUCB-based method naturally reduce learning rates as it approaches local minima?
- RQ5Can the method achieve flatter optima, which are associated with better generalization, compared to baseline algorithms?
Key findings
- All 15 instantiations of the hot-swapped DUCB algorithm achieved better training likelihood than all 1125 SGD hyperparameter combinations tested.
- Despite slower per-iteration speed (1.6–3.6× longer than SGD/AdaDelta), the DUCB method achieved the best test error rate by 1000 seconds of training time.
- The DUCB algorithm continued to make significant training progress long after SGD and AdaDelta had plateaued, converging to lower optima.
- The DUCB method naturally decreased learning rates over time, suggesting adaptive behavior near convergence.
- Gradient norm averages over time showed that DUCB algorithms found flatter optima than competing methods, indicating better generalization potential.
- On other tested problems, the method showed strong performance with greater test accuracy variance, suggesting it benefits from strong regularization to avoid overfitting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.