the.ai

Optimization / Training

verified

Batch Size

Batch size is how many examples the model looks at before each update. Larger batches give a cleaner estimate of the right direction and use hardware better, but past a point the extra examples stop buying accuracy and simply cost more. The useful range is set by that ceiling, not by memory.

Viz primitive · budget-splitbatch = 32

batch holds 50% of the budget; rest holds the remaining 50%.

Share of the step's cost spent on the batch against everything else in the update. Drag the batch size to watch throughput and diminishing returns move together.

32

Reviewed by opendroid · 2026-08-04

  • arXiv:1706.02677 — Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour
  • arXiv:1812.06162 — An Empirical Model of Large-Batch Training
  • arXiv:1609.04836 — On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima