Skip to main content
QUICK REVIEW

[Paper Review] Non-Gaussianity of Stochastic Gradient Noise

Abhishek Panigrahi, Raghav Somani|arXiv (Cornell University)|Oct 21, 2019
Stochastic Gradient Optimization TechniquesComputer Science20 references23 citations
TL;DR

This paper investigates the distribution of stochastic gradient noise (SGN) in SGD during deep learning training. Using statistical Gaussianity tests on SGN projections across multiple architectures and datasets, it finds that SGN becomes approximately Gaussian for batch sizes ≥256, especially in early training phases—contradicting prior claims of stable (heavy-tailed) distributions. The results suggest that the CLT applies to SGN at scale, supporting Gaussian-based SDE approximations for SGD.

ABSTRACT

What enables Stochastic Gradient Descent (SGD) to achieve better generalization than Gradient Descent (GD) in Neural Network training? This question has attracted much attention. In this paper, we study the distribution of the Stochastic Gradient Noise (SGN) vectors during the training. We observe that for batch sizes 256 and above, the distribution is best described as Gaussian at-least in the early phases of training. This holds across data-sets, architectures, and other choices.

Motivation & Objective

  • To investigate the statistical distribution of stochastic gradient noise (SGN) in SGD during deep neural network training.
  • To test whether SGN follows a Gaussian or heavy-tailed (e.g., stable) distribution, particularly in relation to batch size and training phase.
  • To resolve conflicting claims in prior work—specifically, whether SGN is better modeled as Gaussian or α-stable—by applying rigorous statistical tests.
  • To evaluate the validity of the Central Limit Theorem (CLT) and Generalized CLT (GCLT) in the context of deep learning optimization.
  • To clarify the conditions under which SGN can be approximated as Gaussian, supporting or challenging SDE-based models of SGD.

Proposed method

  • The authors perform statistical Gaussianity testing on SGN vectors using the Shapiro–Wilk and Anderson–Darling tests on 1,000 independent SGN vectors collected at intervals during training.
  • For each SGN vector, they project it onto 1,000 random unit vectors and apply Gaussianity tests to the resulting scalar projections.
  • They compare test outcomes against those from synthetic Gaussian and α-stable (SαS) distributions to calibrate detection power.
  • Experiments are conducted across multiple models (3-layer FCN, AlexNet, ResNet18, VGG16), datasets (CIFAR10, MNIST), and batch sizes (32, 256, 4096).
  • The learning rate is varied across 10⁻¹, 10⁻², 10⁻³, and training is run with constant learning rate SGD on cross-entropy loss.
  • The study analyzes SGN behavior across training epochs, focusing on early vs. later phases.

Experimental results

Research questions

  • RQ1Is the stochastic gradient noise (SGN) in SGD approximately Gaussian for large batch sizes, particularly during early training?
  • RQ2How does the distribution of SGN change with varying batch size, and does it support the Central Limit Theorem (CLT) or Generalized CLT (GCLT)?
  • RQ3Why do prior claims of SGN following a heavy-tailed α-stable distribution conflict with the observed Gaussianity in this study?
  • RQ4To what extent do statistical tests for Gaussianity detect non-Gaussianity in SGN, and how reliable are they under different distributional assumptions?
  • RQ5Are the assumptions underlying the α-stable estimator used in prior work (e.g., tail-index) valid in typical deep learning settings?

Key findings

  • For batch sizes of 256 and above, SGN is best described as Gaussian in the early phases of training across all tested architectures and datasets.
  • At batch size 4096, SGN remains approximately Gaussian throughout training, as confirmed by consistent p-values from Shapiro–Wilk and Anderson–Darling tests.
  • At batch size 32, SGN is consistently non-Gaussian, with statistical tests rejecting Gaussianity across all directions and training phases.
  • For intermediate batch size 256, SGN is Gaussian early in training but becomes non-Gaussian later, indicating a transition in noise distribution.
  • The study identifies flaws in the α-stable estimator used in prior work: it assumes i.i.d. components and validity under true stability, both of which are violated in over-parameterized deep learning.
  • The results contradict claims from tail-index that SGN follows a stable distribution even at large batch sizes, showing instead that Gaussianity emerges under CLT conditions when batch size is sufficiently large.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.