Skip to main content
QUICK REVIEW

[Paper Review] Automated Learning Rate Scheduler for Large-batch Training

Chiheon Kim, Saehoon Kim|arXiv (Cornell University)|Jul 13, 2021
Advanced Neural Network ApplicationsComputer Science29 references7 citations
TL;DR

This paper proposes AutoWU, an automated learning rate scheduler for large-batch training that dynamically determines warmup length and peak learning rate using Gaussian process-based online loss smoothing. It achieves state-of-the-art performance with minimal hyperparameter tuning by adaptively switching from exponential warmup to cosine decay, outperforming tuned baselines on ImageNet across diverse architectures and batch sizes.

ABSTRACT

Large-batch training has been essential in leveraging large-scale datasets and models in deep learning. While it is computationally beneficial to use large batch sizes, it often requires a specially designed learning rate (LR) schedule to achieve a comparable level of performance as in smaller batch training. Especially, when the number of training epochs is constrained, the use of a large LR and a warmup strategy is critical in the final performance of large-batch training due to the reduced number of updating steps. In this work, we propose an automated LR scheduling algorithm which is effective for neural network training with a large batch size under the given epoch budget. In specific, the whole schedule consists of two phases: adaptive warmup and predefined decay, where the LR is increased until the training loss no longer decreases and decreased to zero until the end of training. Here, whether the training loss has reached the minimum value is robustly checked with Gaussian process smoothing in an online manner with a low computational burden. Coupled with adaptive stochastic optimizers such as AdamP and LAMB, the proposed scheduler successfully adjusts the LRs without cumbersome hyperparameter tuning and achieves comparable or better performances than tuned baselines on various image classification benchmarks and architectures with a wide range of batch sizes.

Motivation & Objective

  • To address the challenge of poor performance in large-batch training due to insufficient optimization steps and unstable learning rate schedules.
  • To eliminate the need for manual hyperparameter tuning of learning rate schedules in large-batch settings.
  • To develop an online, adaptive learning rate scheduler that detects optimal warmup duration and peak learning rate in a data-driven manner.
  • To ensure robustness against loss fluctuations while maintaining low computational overhead during training.
  • To achieve performance comparable or superior to hand-tuned baselines across diverse models and large batch sizes.

Proposed method

  • The scheduler operates in two phases: an adaptive warmup phase with exponentially increasing learning rate from $10^{-5}$ to 1.0, followed by a predefined decay phase.
  • A Gaussian process (GP) is used to smooth the training loss in real time, enabling robust detection of the minimum loss point to trigger the transition from warmup to decay.
  • The transition condition is defined by a statistical test: the probability that the loss has reached a minimum exceeds a confidence threshold $c$, with a patience period $p$ to avoid false positives from noise.
  • The peak learning rate is set as the value at the detected minimum loss point, and the decay phase begins from this value using a cosine schedule.
  • The warmup phase uses an exponential schedule with growth factor $\gamma = (\eta_{\max}/\eta_{\min})^{1/\lfloor\rho_w T\rfloor}$, where $\rho_w$ controls the fraction of training steps allocated to warmup.
  • The method is compatible with adaptive optimizers like AdamP and LAMB, enhancing stability and performance in large-batch scenarios.

Experimental results

Research questions

  • RQ1Can an automated learning rate scheduler detect the optimal warmup length and peak learning rate without manual tuning in large-batch training?
  • RQ2How does GP-based online loss smoothing improve robustness to training noise during warmup phase detection?
  • RQ3What is the impact of different warmup fraction hyperparameters ($\rho_w$) on final model accuracy across varying batch sizes?
  • RQ4How does the proposed scheduler compare to hand-tuned baselines and prior automated methods like SALSA in large-batch settings?
  • RQ5Does the exponential warmup schedule outperform linear warmup in terms of robustness to hyperparameter choices like $\eta_{\max}$?

Key findings

  • AutoWU with exponential warmup achieved 75.22% top-1 accuracy on ImageNet with ResNet-50 and a batch size of 16,384, outperforming the tuned baseline (75.02%).
  • Linear warmup in AutoWU was highly sensitive to $\eta_{\max}$, achieving only 29.65% accuracy with $\eta_{\max}=1.0$, highlighting the superiority of exponential scheduling.
  • With $\rho_w = 0.25$, AutoWU achieved the best performance across all batch sizes, reaching 76.60% accuracy at 4K batch size, compared to 75.89% at $\rho_w = 0.125$.
  • The starting LR of the decay phase increased with larger batch sizes and faster warmup (smaller $\rho_w$), but this trend broke down at very large batch sizes, indicating a critical batch size effect.
  • The method achieved consistent performance gains across multiple architectures and datasets, demonstrating generalization beyond ResNet-50 on ImageNet.
  • Setting patience $p=3$ provided the best balance between robustness and training stability, reducing sensitivity to local loss fluctuations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.