Skip to main content
QUICK REVIEW

[Paper Review] On the Computational Inefficiency of Large Batch Sizes for Stochastic Gradient Descent

Noah Golmant, Nikita Vemuri|arXiv (Cornell University)|Nov 30, 2018
Advanced Neural Network ApplicationsComputer Science31 references46 citations
TL;DR

The paper shows that increasing SGD mini-batch size yields diminishing returns in convergence speed and often increases total computational cost, with a critical batch size well below current GPU capacities and performance degrading for larger batches across multiple domains.

ABSTRACT

Increasing the mini-batch size for stochastic gradient descent offers significant opportunities to reduce wall-clock training time, but there are a variety of theoretical and systems challenges that impede the widespread success of this technique. We investigate these issues, with an emphasis on time to convergence and total computational cost, through an extensive empirical analysis of network training across several architectures and problem domains, including image classification, image segmentation, and language modeling. Although it is common practice to increase the batch size in order to fully exploit available computational resources, we find a substantially more nuanced picture. Our main finding is that across a wide range of network architectures and problem domains, increasing the batch size beyond a certain point yields no decrease in wall-clock time to convergence for \emph{either} train or test loss. This batch size is usually substantially below the capacity of current systems. We show that popular training strategies for large batch size optimization begin to fail before we can populate all available compute resources, and we show that the point at which these methods break down depends more on attributes like model architecture and data complexity than it does directly on the size of the dataset.

Motivation & Objective

  • Assess how SGD convergence speed scales with mini-batch size across diverse architectures and tasks.
  • Quantify the regimes of batch-size scaling: linear gains, diminishing returns, and stagnation.
  • Evaluate whether common large-batch optimization tricks mitigate inefficiencies across problems.
  • Understand factors beyond dataset size (model architecture, data complexity) that influence large-batch performance.

Proposed method

  • Formulate SGD with mini-batch gradients and define iterations-to-convergence as wall-clock proxy.
  • Empirically vary batch size across multiple architectures and tasks (image classification, segmentation, NLP).
  • Compare base learning-rate strategies, linear scaling rule (LSR), and square-root scaling rule (SRSR).
  • Measure convergence speed via iteration counts to reach fixed loss thresholds and assess generalization impact.
  • Analyze how dataset size, model architecture, and data complexity affect speedup curves and critical batch sizes.

Experimental results

Research questions

  • RQ1What is the relationship between batch size and SGD convergence speed across varied architectures and tasks?
  • RQ2Is there a critical batch size where increasing m stops reducing iterations to converge, and how does it relate to hardware capacity?
  • RQ3Do large-batch optimization heuristics (LSR, SRSR) mitigate convergence slowdown or generalization gaps across problems?
  • RQ4How do model architecture and data complexity compare to dataset size in determining large-batch efficiency?

Key findings

  • Beyond a certain batch size, increasing m yields little to no reduction in iterations to convergence (even with perfect parallelism).
  • Larger batches raise generalization error and existing mitigation techniques often fail or diverge, especially on non-image domains.
  • Convergence speed gains depend more on model architecture and data complexity than dataset size, with problem-dependent critical batch sizes observed.
  • Diminishing returns in speedups occur across image, segmentation, and NLP tasks, and plateau points vary by architecture and dataset complexity.
  • Large-batch strategies that work for some problems do not generalize across domains and often fail to maintain stability.

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.