Smith and Le (2017) — ARXIV-1710.06451

Key takeaways

The paper provides a Bayesian framework unifying why SGD generalizes well and why large-batch training hurts generalization. It identifies a noise scale g ≈ εN/B governing SGD dynamics, derives the scaling law B_opt ∝ εN (and B_opt ∝ 1/(1-m) with momentum m), and empirically confirms that the optimal batch size shifts linearly with learning rate and training set size. The Bayesian evidence (cost + Occam factor penalizing sharp minima) is shown to track test performance better than the training loss alone.

  • Noise scale and optimal batch size (Sections 2-3). The noise scale g = εN/B governs the SGD posterior temperature. The optimal batch size maximizing test accuracy satisfies B_opt ∝ εN. With momentum m, B_opt ∝ εN/(1-m). Empirically confirmed on MNIST with linear trends in Figures 5b, 6b, and 7b. Holds when: Validated on a shallow 800-unit ReLU network on MNIST with batch sizes 1–1000 and learning rates 0.01–3. Deep network validation is qualitative only.
  • Bayesian evidence predicts generalization (Section 2). Log Bayesian evidence = -[training cost + (1/2) Σᵢ log(λᵢ/λ)] tracks test cross-entropy and correctly identifies the optimal regularization strength, including on randomly-labeled data. Holds when: Demonstrated for logistic regression on MNIST (Figure 2). Qualitatively consistent with deep network experiments from Krueger et al. (2017).
  • LR decay = batch size increase equivalence (Section 4). Decaying the learning rate by factor α is equivalent to multiplying batch size by 1/α under the noise scale framework. Both operations reduce g by the same factor, producing the same posterior temperature trajectory. Holds when: Derived analytically from g = εN/B; directly verified in follow-up paper (Smith et al. 2017, Don’t Decay the LR).

What the evidence does not cover

  • The SDE / Langevin analogy assumes Gaussian mini-batch gradient noise. This holds approximately by the CLT but fails for sparse gradients, very small batches, or heavy-tailed gradient distributions.
  • The Bayesian evidence is computed via Laplace approximation, which requires the Hessian. This is intractable for large neural networks (millions to billions of parameters), so the theory is validated primarily on small/linear models.
  • Neural networks have exponentially many equivalent minima (permutation symmetry of hidden units), making the evidence computation require careful accounting of degeneracy — not addressed in full generality.
  • The paper does not account for learning rate schedules or batch size warm- up strategies that are standard in practice (cosine decay, linear warm- up). The analysis assumes a constant learning rate.
  • The optimal batch size result and scaling rules are validated on MNIST with shallow networks. Generalization to very deep networks on large datasets (ImageNet scale) is assumed but not directly verified in this paper.
  • The analysis treats all minima as having roughly isotropic curvature for the SDE approximation. Anisotropic curvature (common in deep networks) may alter the noise scale dynamics.

Standing in the anthology

Read — the reading is NOTE-106 — and the primary source of THEORY-013, which the record holds Rejected. Arrived in the imported batch, which brought in the batch-size line: how large a batch buys speed, and what it costs.

Filed briefly as a duplicate of LIT-017’s gradient noise scale, which it is not. This paper’s g = eps*N/B is a property of the configuration and you set it; LIT-017’s B_simple is a property of the gradient distribution and you measure it. The two are not variants of one statistic, and LIT-017 says as much — it cites this paper for predicting “a dependence on dataset size” and adds that it does not observe one. LIT-058 reaches the same conclusion by subsampling. Active here regardless: the derivation is the cleanest account this record holds of why coupling the learning rate to the batch size might work at all, and a rejected explanation is still worth reading.