English

The Effect of Mini-Batch Noise on the Implicit Bias of Adam

Machine Learning 2026-05-11 v2 Artificial Intelligence Optimization and Control Computation Machine Learning

Abstract

With limited high-quality data and growing compute, multi-epoch training is gaining back its importance across sub-areas of deep learning. Adam(W), versions of which are go-to optimizers for many tasks such as next token prediction, has two momentum hyperparameters (β1,β2)(\beta_1, \beta_2) controlling memory and one very important hyperparameter, batch size, controlling (in particular) the amount mini-batch noise. We introduce a theoretical framework to understand how mini-batch noise influences the implicit bias of memory in Adam (depending on β1\beta_1, β2\beta_2) towards sharper or flatter regions of the loss landscape, which is commonly observed to correlate with the generalization gap in multi-epoch training. We find that in the case of large batch sizes, higher β2\beta_2 increases the magnitude of anti-regularization by memory (hurting generalization), but as the batch size becomes smaller, the dependence of (anti-)regulariation on β2\beta_2 is reversed. A similar monotonicity shift (in the opposite direction) happens in β1\beta_1. In particular, the commonly "default" pair (β1,β2)=(0.9,0.999)(\beta_1, \beta_2) = (0.9, 0.999) is a good choice if batches are small; for larger batches, in many settings moving β1\beta_1 closer to β2\beta_2 is much better in terms of validation accuracy in multi-epoch training. Moreover, our theoretical derivations connect the scale of the batch size at which the shift happens to the scale of the critical batch size. We illustrate this effect in experiments with small-scale data in the about-to-overfit regime.

Keywords

Cite

@article{arxiv.2602.01642,
  title  = {The Effect of Mini-Batch Noise on the Implicit Bias of Adam},
  author = {Matias D. Cattaneo and Boris Shigida},
  journal= {arXiv preprint arXiv:2602.01642},
  year   = {2026}
}