Don't Decay the Learning Rate, Increase the Batch Size

Samuel L. Smith, Pieter-Jan Kindermans, Quoc V. Le

Abstract

Traditional deep learning optimization relies on decaying the learning rate to ensure model convergence. This paper proposes an alternative: increasing the batch size during training. By maintaining a constant learning rate and scaling the batch size, the authors demonstrate that models can achieve identical validation accuracy with significantly fewer parameter updates. This approach enables massive parallelism, reducing training times for large-scale datasets like ImageNet to under 30 minutes.

Introduction

Stochastic Gradient Descent (SGD) is the workhorse of deep learning, yet its inherent noise—stemming from mini-batch sampling—presents a challenge. While early-stage noise helps models escape sharp local minima, late-stage noise prevents convergence to the global optimum. The conventional remedy is learning rate decay, which reduces the step size to dampen noise. However, this sequential process limits hardware utilization. As computational clusters grow, there is a pressing need for optimization strategies that favor parallelism over sequential updates.

Methodology: The Noise Scale Equivalence

The authors identify that the dynamics of SGD are governed by a "noise scale" ($g$), approximately defined as: $$g \approx \epsilon \frac{N}{B}$$ where $\epsilon$ is the learning rate, $N$ is the dataset size, and $B$ is the batch size. To reduce noise (annealing), one can either decrease $\epsilon$ or increase $B$. The paper argues these two operations are quantitatively equivalent.

Comparison of learning rate and batch size schedules.

Instead of the standard practice of dropping the learning rate by a factor of $\alpha$ at specific milestones, the authors propose multiplying the batch size by $\alpha$. This maintains the same noise trajectory while allowing for larger mini-batches as training progresses.

Experimental Results

The proposed method was validated on CIFAR-10 (Wide ResNet) and ImageNet (ResNet-50, Inception-ResNet-V2).

Convergence and Parallelism

As shown in the figures below, the training curves for decaying the learning rate versus increasing the batch size are nearly identical when plotted against the number of epochs. However, when plotted against the number of parameter updates, the "Increasing batch size" strategy requires far fewer steps to reach the same cross-entropy loss.

Training cross-entropy vs. epochs and parameter updates.

On CIFAR-10, the number of updates was reduced from 80,000 to approximately 2,500 without loss in accuracy. On ImageNet, the authors achieved 76.1% accuracy for ResNet-50 in under 30 minutes using a TPU pod, and trained Inception-ResNet-V2 to 77% accuracy in fewer than 2,500 updates with a peak batch size of 65,536.

Key Insights

  • Simulated Annealing: Increasing batch size is a form of simulated annealing in the optimization landscape, mirroring the effect of learning rate decay.
  • Schedule Portability: Existing learning rate schedules can be directly converted into batch size schedules. A 10x learning rate drop becomes a 10x batch size increase.
  • Momentum Considerations: The effective noise scale is also influenced by momentum. Simultaneously scaling learning rate, momentum, and batch size can further minimize the required parameter updates.

Limitations

The primary constraint is hardware memory. Batch size can only be increased until it saturates the available GPU/TPU memory. Beyond this point, learning rate decay must be used to continue annealing. Additionally, the authors utilized "Ghost Batch Normalization" to ensure gradient statistics remained stable across varying total batch sizes, adding some implementation complexity.

Conclusion

By shifting the focus from decaying the learning rate to increasing the batch size, researchers can unlock significant speedups through parallelism. This approach provides a practical path toward training state-of-the-art models in minutes rather than hours or days, without sacrificing generalization performance.

Summary updated

BibTeX
@inproceedings{smith2018don,
  author = {Samuel L. Smith and Pieter-Jan Kindermans and Quoc V. Le},
  title = {{Don't Decay the Learning Rate, Increase the Batch Size}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=B1Yy1BxCZ},
}
Figure