AI Research Scientist · Optimization Algorithms & Schedules
Batch size effects on optimization
Batch size effects on optimization
Each mini-batch gradient is a noisy estimate of the true gradient, averaged over samples. If per-sample gradients have variance , the batch estimate's variance is , so its noise (standard deviation) shrinks as . Doubling batch size doesn't halve noise — it only shrinks it by . This sub-linear noise reduction is the root cause of every learning-rate, generalization, and hardware tradeoff that follows.
- 1Ratio = 512 / 256 = 2.WhyBoth scaling rules take this batch-size ratio as their input.
- 2Linear rule: new LR = 0.1 × 2 = 0.2.WhyScales the LR proportionally with batch size — the standard default heuristic.
- 3Square-root rule: new LR = 0.1 × ≈ 0.14.WhyScales more conservatively, tracking the noise reduction () instead of the batch size itself.
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.
Review the explanation
Answer: False. Larger batches do raise throughput and cut per-step noise, but that noise was providing implicit regularization; removing it can push training toward solutions that generalize worse. Past a point, added batch size also stops proportionally reducing the number of steps needed, so pure throughput gains stop translating into faster or better training — maximizing batch size is not automatically optimal.
Sources
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