Skip to main content
QUICK REVIEW

[Paper Review] Coupling Adaptive Batch Sizes with Learning Rates

Lukas Balles, Javier Romero|arXiv (Cornell University)|Dec 15, 2016
Stochastic Gradient Optimization TechniquesComputer Science14 references24 citations
TL;DR

This paper proposes CABS (Coupled Adaptive Batch Sizes), a method that dynamically adjusts the batch size in stochastic gradient descent based on real-time gradient variance estimates, while coupling it directly to the learning rate. The approach reduces optimization variance without requiring a decreasing learning rate schedule, leading to faster convergence and reduced sensitivity to learning rate hyperparameter tuning on image classification benchmarks.

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. 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.

Motivation & Objective

  • To address the challenge of balancing optimization stability and efficiency in stochastic gradient descent by dynamically adjusting batch size.
  • To eliminate the need for manually tuned decreasing learning rate schedules by coupling learning rate and batch size through gradient variance.
  • To simplify hyperparameter tuning in deep learning by reducing sensitivity to learning rate choices.
  • To improve training convergence speed while maintaining or improving generalization performance on standard benchmarks.

Proposed method

  • CABS estimates the diagonal of the gradient covariance matrix (variance per parameter) using a small mini-batch to approximate the true gradient variance.
  • It dynamically increases the batch size in proportion to the current objective function value and the learning rate, based on a theoretical relationship between variance, learning rate, and convergence.
  • The method uses a closed-form solution to determine the optimal batch size at each step that maximizes expected progress per unit cost.
  • It couples the learning rate and batch size such that the noise level in the gradient estimate is proportional to the learning rate, stabilizing optimization.
  • The algorithm is implemented in TensorFlow and requires no additional hyperparameters beyond the initial learning rate.

Experimental results

Research questions

  • RQ1Can dynamic batch size adaptation based on real-time gradient variance estimates improve optimization convergence in deep learning?
  • RQ2Does coupling batch size to the learning rate eliminate the need for decreasing learning rate schedules?
  • RQ3Can CABS reduce the sensitivity of training performance to the choice of learning rate?
  • RQ4How does CABS compare to fixed and other adaptive batch size strategies in terms of convergence speed and final accuracy?

Key findings

  • CABS achieves faster optimization convergence than constant batch size methods on MNIST, SVHN, CIFAR-10, and CIFAR-100 benchmarks.
  • The method significantly reduces dependency on learning rate hyperparameter tuning, outperforming both constant and competing adaptive batch size schemes in learning rate sensitivity experiments.
  • On all four benchmarks, CABS outperforms non-adaptive larger batch sizes (e.g., 128, 512) in training speed, despite using smaller average batch sizes.
  • CABS uses minimal batch size (16) for a large portion of training and increases approximately linearly, adapting to the problem's complexity.
  • The method achieves comparable test accuracy to all baselines while reducing the need for manual learning rate tuning.

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.