[Paper Review] AutoLRS: Automatic Learning-Rate Schedule by Bayesian Optimization on the Fly
AutoLRS proposes an automated, on-the-fly learning rate scheduling method using Bayesian optimization (BO) combined with a lightweight exponential loss-prediction model to minimize validation loss without human intervention. By training for only a fraction of each stage to predict full-stage performance, it achieves 1.22× to 1.5× faster convergence than hand-tuned schedules and 1.31× speedup over state-of-the-art methods across ResNet-50, Transformer, and BERT models.
The learning rate (LR) schedule is one of the most important hyper-parameters needing careful tuning in training DNNs. However, it is also one of the least automated parts of machine learning systems and usually costs significant manual effort and computing. Though there are pre-defined LR schedules and optimizers with adaptive LR, they introduce new hyperparameters that need to be tuned separately for different tasks/datasets. In this paper, we consider the question: Can we automatically tune the LR over the course of training without human involvement? We propose an efficient method, AutoLRS, which automatically optimizes the LR for each training stage by modeling training dynamics. AutoLRS aims to find an LR applied to every $τ$ steps that minimizes the resulted validation loss. We solve this black-box optimization on the fly by Bayesian optimization (BO). However, collecting training instances for BO requires a system to evaluate each LR queried by BO's acquisition function for $τ$ steps, which is prohibitively expensive in practice. Instead, we apply each candidate LR for only $τ'\llτ$ steps and train an exponential model to predict the validation loss after $τ$ steps. This mutual-training process between BO and the loss-prediction model allows us to limit the training steps invested in the BO search. We demonstrate the advantages and the generality of AutoLRS through extensive experiments of training DNNs for tasks from diverse domains using different optimizers. The LR schedules auto-generated by AutoLRS lead to a speedup of $1.22 imes$, $1.43 imes$, and $1.5 imes$ when training ResNet-50, Transformer, and BERT, respectively, compared to the LR schedules in their original papers, and an average speedup of $1.31 imes$ over state-of-the-art heavily-tuned LR schedules.
Motivation & Objective
- Address the lack of automation in learning rate (LR) schedule tuning, a critical but manually intensive hyperparameter in deep neural network (DNN) training.
- Overcome the limitations of pre-defined LR schedules and adaptive optimizers, which introduce new hyperparameters and require task-specific tuning.
- Develop a method that automatically identifies optimal LR values during training without human supervision, minimizing validation loss directly.
- Reduce the computational cost of Bayesian optimization (BO) by using short-term training runs and a predictive model to estimate long-term validation loss.
- Ensure broad compatibility across optimizers, datasets, and tasks by avoiding reliance on fixed schedule forms or task-specific assumptions.
Proposed method
- Apply Bayesian optimization (BO) to treat the validation loss as a black-box function of the learning rate, iteratively selecting LR values to minimize expected improvement.
- Instead of training each candidate LR for the full training stage length τ, train each for only τ′ ≪ τ steps to reduce cost.
- Train an exponential time-series forecasting model on the short-term validation loss to predict the full τ-step validation loss for each candidate LR.
- Use the predicted validation loss to guide BO’s acquisition function, enabling efficient exploration of the LR space with minimal full training runs.
- Maintain a lightweight BO posterior and a small forecasting model, ensuring minimal memory and computational overhead.
- Enable mutual learning between BO and the forecasting model: BO queries new LRs, and the resulting short-term data trains the prediction model, improving future BO decisions.
Experimental results
Research questions
- RQ1Can we automatically tune the learning rate during DNN training without human intervention or pre-defined schedule forms?
- RQ2Can we reduce the computational cost of Bayesian optimization for LR scheduling by using short-term training and loss prediction instead of full-stage evaluations?
- RQ3Does the proposed AutoLRS method achieve faster convergence and better generalization than hand-tuned or state-of-the-art LR schedules?
- RQ4How robust is AutoLRS across diverse models (e.g., ResNet-50, Transformer, BERT) and datasets (e.g., ImageNet, CIFAR-10, CIFAR-100)?
- RQ5What is the impact of replacing BO with random or grid search in the AutoLRS framework, and how does this affect performance and efficiency?
Key findings
- AutoLRS achieves a 1.22× speedup in training ResNet-50 on ImageNet compared to the original hand-tuned learning rate schedule.
- For the Transformer model, AutoLRS reduces training time by 1.43× compared to the original schedule, demonstrating strong performance on sequence models.
- On BERT, AutoLRS achieves a 1.5× speedup over the original paper’s learning rate schedule, indicating effectiveness on large-scale NLP models.
- AutoLRS delivers an average 1.31× speedup over state-of-the-art, heavily-tuned learning rate schedules across all evaluated models.
- Replacing BO with random or grid search in AutoLRS leads to significantly worse performance, with slower convergence and lower top-1 accuracy, confirming the importance of intelligent search.
- The exponential loss-prediction model trained on τ′ = τ/10 steps achieves high accuracy in predicting full τ-step validation loss, enabling effective BO with minimal training overhead.
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.