Why does training with excessively large batch sizes often degrade model generalization?

Quick Overview

Asks why training with very large batch sizes tends to hurt how well a neural network generalizes. Tests understanding of gradient noise as implicit regularization, sharp versus flat minima, the smaller number of updates per epoch, and fixes such as learning-rate scaling and warm-up.

Why does training with excessively large batch sizes often degrade model generalization?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Why does training with excessively large batch sizes often degrade model generalization? ```hint Think about the noise Compare the gradient from a batch of 64 with the gradient from a batch of 65,536. What changes about the path the optimizer takes, and why could that matter for test performance? ``` ```hint Count the steps At a fixed number of epochs, how many parameter updates does each setting make? ``` ### What a Strong Answer Covers - Minibatch gradient noise as an implicit regularizer, and how its scale depends on learning rate and batch size - The sharp versus flat minima argument, and its limits - The effect of fewer optimizer steps when the epoch budget is fixed - Practical mitigations, and what each one addresses ### Follow-up Questions - If you increase the batch size 8x, how should the learning rate change for SGD, and for Adam? - What is the critical batch size, and how would you estimate it for your model? - Sharpness can change under a reparameterization that leaves the network's function the same. What does that imply for the flat-minima explanation? - Why does warm-up help large-batch training in particular?

Overview: Asks why training with very large batch sizes tends to hurt how well a neural network generalizes. Tests understanding of gradient noise as implicit regularization, sharp versus flat minima, the smaller number of updates per epoch, and fixes such as learning-rate scaling and warm-up.

General logo
General
Nov 24, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Why does training with excessively large batch sizes often degrade model generalization?

What a Strong Answer Covers Guidance

  • Minibatch gradient noise as an implicit regularizer, and how its scale depends on learning rate and batch size
  • The sharp versus flat minima argument, and its limits
  • The effect of fewer optimizer steps when the epoch budget is fixed
  • Practical mitigations, and what each one addresses

Follow-up Questions Guidance

  • If you increase the batch size 8x, how should the learning rate change for SGD, and for Adam?
  • What is the critical batch size, and how would you estimate it for your model?
  • Sharpness can change under a reparameterization that leaves the network's function the same. What does that imply for the flat-minima explanation?
  • Why does warm-up help large-batch training in particular?