LearnBenchStart learning →

AI Research Scientist · Optimization Algorithms & Schedules

Batch size effects on optimization

Real lesson card · Page 1 of 4

Batch size effects on optimization

Each mini-batch gradient is a noisy estimate of the true gradient, averaged over BB samples. If per-sample gradients have variance σ2\sigma^2, the batch estimate's variance is σ2/B\sigma^2/B, so its noise (standard deviation) shrinks as 1/B1/\sqrt{B}. Doubling batch size doesn't halve noise — it only shrinks it by 1/20.711/\sqrt{2}\approx0.71. This sub-linear noise reduction is the root cause of every learning-rate, generalization, and hardware tradeoff that follows.

Recall check from the same lesson

Since large batch sizes reduce gradient noise and increase hardware throughput, always training with the largest batch size that fits in memory is the strictly optimal choice for both speed and generalization.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Optimization Algorithms & Schedules questions