Alexey Tochin
  • Home
  • Machine Learning
  • Other Topics
  • About
  • References

Machine Learning

Is Batch Size a Real Hyperparameter?

The gradient-accumulation trick sums the gradients of several small batches at one weight to simulate a larger batch. It looks redundant: the batch size is there for parallelism, and smoothing is what momentum is for. Settling that turned out to require a closer look at what changing the batch size actually does. Counted per sample rather than per update, that expectation is confirmed for plain gradient descent, with momentum or without. For Adam it holds only in part.

Apr 8, 2021
No matching items

© 2026 Alexey Tochin