On the Training Instability of Shuffling SGD with Batch Normalization

David X. Wu, Chulhee Yun, Suvrit Sra
2/24/2023
cs.LGmath.OC

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We uncover how SGD interacts with batch normalization and can exhibit undesirable training dynamics such as divergence. More precisely, we study how Single Shuffle (SS) and Random Reshuffle (RR) -- two widely used variants of SGD -- interact surprisingly differently in the presence of batch normalization: RR leads to much more stable evolution of training loss than SS. As a concrete example, for regression using a linear network with batch normalization, we prove that SS and RR converge to distinct global optima that are "distorted" away from gradient descent. Thereafter, for classification we characterize conditions under which training divergence for SS and RR can, and cannot occur. We present explicit constructions to show how SS leads to distorted optima in regression and divergence for classification, whereas RR avoids both distortion and divergence. We validate our results by confirming them empirically in realistic settings, and conclude that the separation between SS and RR used with batch normalization is relevant in practice.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2023training,
  title  = {On the Training Instability of Shuffling SGD with Batch Normalization},
  author = {David X. Wu and Chulhee Yun and Suvrit Sra},
  year   = {2023},
  eprint = {2302.12444},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.12444v3},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.12444.svg)](https://codeofpaper.com/paper/2302.12444)

Discussion