Coupling Adaptive Batch Sizes with Learning Rates

Lukas Balles, Javier Romero, Philipp Hennig
12/15/2016
129 citations
cs.LGcs.CVstat.ML

Official code: MethodsOfMachineLearning/cabs (43 stars, Python, Apache-2.0, last commit 2017-02-28).

Abstract

Mini-batch stochastic gradient descent and variants thereof have become standard for large-scale empirical risk minimization like the training of neural networks. These methods are usually used with a constant batch size chosen by simple empirical inspection.

Show full abstract

The batch size significantly influences the behavior of the stochastic optimization algorithm, though, since it determines the variance of the gradient estimates. This variance also changes over the optimization process; when using a constant batch size, stability and convergence is thus often enforced by means of a (manually tuned) decreasing learning rate schedule. We propose a practical method for dynamic batch size adaptation. It estimates the variance of the stochastic gradients and adapts the batch size to decrease the variance proportionally to the value of the objective function, removing the need for the aforementioned learning rate decrease. In contrast to recent related work, our algorithm couples the batch size to the learning rate, directly reflecting the known relationship between the two. On popular image classification benchmarks, our batch size adaptation yields faster optimization convergence, while simultaneously simplifying learning rate tuning. A TensorFlow implementation is available.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Tensorflow implementation of SGD with Coupled Adaptive Batch Size (CABS)

4313PythonDec 15, 20169 years agoApache-2.0

Similar Papers

Cite this paper

@article{balles2016coupling,
  title  = {Coupling Adaptive Batch Sizes with Learning Rates},
  author = {Lukas Balles and Javier Romero and Philipp Hennig},
  year   = {2016},
  eprint = {1612.05086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1612.05086}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1612.05086.svg)](https://codeofpaper.com/paper/1612.05086)

Discussion