A Bayesian Perspective on Generalization and Stochastic Gradient Descent
Not on the map. Why?
Abstract (arXiv)
We consider two questions at the heart of machine learning; how can we predict if a minimum will generalize to the test set, and why does stochastic gradient descent find minima that generalize well? Our work responds to Zhang et al. (2016), who showed deep neural networks can easily memorize randomly labeled training data, despite generalizing well on real labels of the same inputs. We show that the same phenomenon occurs in small linear models. These observations are explained by the Bayesian evidence, which penalizes sharp minima but is invariant to model parameterization. We also demonstrate that, when one holds the learning rate fixed, there is an optimum batch size which maximizes the test set accuracy. We propose that the noise introduced by small mini-batches drives the parameters towards minima whose evidence is large. Interpreting stochastic gradient descent as a stochastic differential equation, we identify the "noise scale" g = ε (fracNB - 1) ≈ ε N/B, where ε is the learning rate, N the training set size and B the batch size. Consequently the optimum batch size is proportional to both the learning rate and the size of the training set, Bopt propto ε N. We verify these predictions empirically.
Key facts. Cited by 134 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Oct 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 18; 2022: 18; 2023: 22; 2024: 26; 2025: 31; 2026: 19.
134 papers.
Sort:
By area:
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 183
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 2023Explaining grokking through circuit efficiencycited by 105
- 2022Improving Generalization in Federated Learning by Seeking Flat Minimacited by 98
- 2021On the Validity of Modeling SGD with Stochastic Differential Equations (SDEs)cited by 73
- 2024How Does Critical Batch Size Scale in Pre-training?cited by 68
- 2021Stochastic Training is Not Necessary for Generalizationcited by 63
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2023FisherRF: Active View Selection and Uncertainty Quantification for Radiance Fields using Fisher Informationcited by 63
- 2022On the Maximum Hessian Eigenvalue and Generalizationcited by 57
38 more
- 2023Gradient Norm Aware Minimization Seeks First-Order Flatness and Improves Generalizationcited by 57
- 2025Deep Learning is Not So Mysterious or Differentcited by 55
- 2022ColD Fusion: Collaborative Descent for Distributed Multitask Finetuningcited by 52
- 2023The Local Learning Coefficient: A Singularity-Aware Complexity Measurecited by 50
- 2025Power Lines: Scaling Laws for Weight Decay and Batch Size in LLM Pre-trainingcited by 41
- 2022SAM as an Optimal Relaxation of Bayescited by 40
- 2022Why neural networks find simple solutions: the many regularizers of geometric complexitycited by 38
- 2025Small Batch Size Training for Language Models: When Vanilla SGD Works, and Why Gradient Accumulation Is Wastefulcited by 36
- 2023(S)GD over Diagonal Linear Networks: Implicit Regularisation, Large Stepsizes and Edge of Stabilitycited by 35
- 2021Batch size-invariance for policy optimizationcited by 33
- 2021Drawing Multiple Augmentation Samples Per Image During Training Efficiently Decreases Test Errorcited by 32
- 2021Power-law escape rate of SGDcited by 29
- 2021Implicit Gradient Alignment in Distributed and Federated Learningcited by 29
- 2022Flat minima generalize for low-rank matrix recoverycited by 28
- 2023Implicit bias of SGD in L2-regularized linear DNNs: One-way jumps from high to low rankcited by 28
- 2023Flatness-Aware Minimization for Domain Generalizationcited by 27
- 2021Stochastic gradient descent with noise of machine learning type. Part II: Continuous time analysiscited by 25
- 2023Implicit regularization in Heavy-ball momentum accelerated stochastic gradient descentcited by 25
- 2022Implicit Regularization or Implicit Conditioning? Exact Risk Trajectories of SGD in High Dimensionscited by 23
- 2025Generalization through variance: how noise shapes inductive biases in diffusion modelscited by 23
- 2024Surge Phenomenon in Optimal Learning Rate and Batch Size Scalingcited by 22
- 2024Rethinking Conventional Wisdom in Machine Learning: From Generalization to Scalingcited by 21
- 2026Emergent Misalignment is Easy, Narrow Misalignment is Hardcited by 21
- 2023Temperature Balancing, Layer-wise Weight Analysis, and Neural Network Trainingcited by 19
- 2024Training Neural Networks from Scratch with Parallel Low-Rank Adapterscited by 17
- 2024Deep linear networks for regression are implicitly regularized towards flat minimacited by 17
- 2023Fantastic Weights and How to Find Them: Where to Prune in Dynamic Sparse Trainingcited by 16
- 2023On the Role of Server Momentum in Federated Learningcited by 16
- 2021Policy Information Capacity: Information-Theoretic Measure for Task Complexity in Deep Reinforcement Learningcited by 15
- 2023Tenplex: Dynamic Parallelism for Deep Learning using Parallelizable Tensor Collectionscited by 15
- 2025FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Modelscited by 15
- 2021Information Complexity and Generalization Boundscited by 14
- 2025LENSLLM: Unveiling Fine-Tuning Dynamics for LLM Selectioncited by 14
- 2021An Empirical Study on Hyperparameter Optimization for Fine-Tuning Pre-trained Language Modelscited by 12
- 2022Effects of Data Geometry in Early Deep Learningcited by 12
- 2023Taming Resource Heterogeneity In Distributed ML Training With Dynamic Batchingcited by 12
- 2023On the different regimes of Stochastic Gradient Descentcited by 12
- 2026An Imperfect Verifier is Good Enough: Learning with Noisy Rewardscited by 11
50 most cited of 134 All 134 (JSON)
- 2026Fast and Precise Learned Charged-Particle Trajectory Regression at the Large Hadron Collider26 Sep 2026
- 2026A Journey to the Edge of Stability26 Sep 2026
- 2026Speed Limit for Information Acquisition in Stochastic Learning Dynamics8 Sep 2026
- 2026Across the Loss Landscape with Progressive Growth25 Aug 2026
- 2026Defending Against Malicious Finetuning by Scaling Train-time Adversarial Attacks6 Jun 2026
- 2026Nonreversible Gauge Fields in Fokker--Planck Dynamics: Supersymmetric Hamiltonians and Learned Finite Forces4 Jun 2026
- 2026The physics of AI weather models22 May 2026
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamics21 May 2026
- 2026Implicit Regularization of Mini-Batch Training in Graph Neural Networks21 May 2026
- 2026Understanding Generalization through Decision Pattern Shift13 May 2026
- 2026Understanding and Preventing Entropy Collapse in RLVR with On-Policy Entropy Flow Optimization12 May 2026
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes7 May 2026
38 more
- 2026PAC-Bayes Bounds for Gibbs Posteriors via Singular Learning Theory19 Apr 2026
- 2026Nexus: Same Pretraining Loss, Better Downstream Generalization via Common Minima10 Apr 2026
- 2026An Imperfect Verifier is Good Enough: Learning with Noisy Rewards9 Apr 2026
- 2026Tula: Optimizing Time, Cost, and Generalization in Distributed Large-Batch Training18 Mar 2026
- 2026Emergent Misalignment is Easy, Narrow Misalignment is Hard8 Feb 2026
- 2026On the Superlinear Relationship between SGD Noise Covariance and Loss Landscape Curvature5 Feb 2026
- 2026Training Memory in Deep Neural Networks: Mechanisms, Evidence, and Measurement Gaps29 Jan 2026
- 2025TPV: Parameter Perturbations Through the Lens of Test Prediction Variance11 Dec 2025
- 2025Entropic Confinement and Mode Connectivity in Overparameterized Neural Networks6 Dec 2025
- 2025Learnability Window in Gated Recurrent Neural Networks5 Dec 2025
- 2025Can Stationary Distributions of Scale-Invariant Neural Networks Be Described by the Thermodynamics of an Ideal Gas?10 Nov 2025
- 2025Linear Mode Connectivity under Data Shifts for Deep Ensembles of Image Classifiers6 Nov 2025
- 2025FedAdamW: A Communication-Efficient Optimizer with Convergence and Generalization Guarantees for Federated Large Models31 Oct 2025
- 2025Gradient Descent as Loss Landscape Navigation: a Normative Framework for Deriving Learning Rules30 Oct 2025
- 2025CorVS+: Correspondence-Driven Association of Video Trajectories and Sensors for Identity-Aware Person Localization in Warehouses30 Oct 2025
- 2025No Intelligence Without Statistics: The Invisible Backbone of Artificial Intelligence22 Oct 2025
- 2025How does the optimizer implicitly bias the model merging loss landscape?6 Oct 2025
- 2025Optimal Scaling Needs Optimal Norm4 Oct 2025
- 2025Graph Coloring for Multi-Task Learning21 Sep 2025
- 2025On Using Large-Batches in Federated Learning5 Sep 2025
- 2025A mini-batch training strategy for deep subspace clustering networks26 Jul 2025
- 2025The Price equation reveals a universal force-metric-bias law of algorithmic learning and natural selection24 Jul 2025
- 2025Small Batch Size Training for Language Models: When Vanilla SGD Works, and Why Gradient Accumulation Is Wasteful9 Jul 2025
- 2025DOME: Improving Signal-to-Noise in Stochastic Gradient Descent via Sharp-Direction Subspace Filtering4 Jul 2025
- 2025The Butterfly Effect: Neural Network Training Trajectories Are Highly Sensitive to Initial Conditions16 Jun 2025
- 2025Variational Learning Finds Flatter Solutions at the Edge of Stability15 Jun 2025
- 2025Characterising the Inductive Biases of Neural Networks on Boolean Data29 May 2025
- 2025SGD as Free Energy Minimization: A Thermodynamic View on Neural Network Training29 May 2025
- 2025Variational Deep Learning via Implicit Regularization26 May 2025
- 2025Self Distillation via Iterative Constructive Perturbations20 May 2025
- 2025Power Lines: Scaling Laws for Weight Decay and Batch Size in LLM Pre-training19 May 2025
- 2025LENSLLM: Unveiling Fine-Tuning Dynamics for LLM Selection1 May 2025
- 2025Generalization through variance: how noise shapes inductive biases in diffusion models16 Apr 2025
- 2025Almost Bayesian: The Fractal Dynamics of Stochastic Gradient Descent28 Mar 2025
- 2025Asynchronous Sharpness-Aware Minimization For Fast and Accurate Deep Learning14 Mar 2025
- 2025Deep Learning is Not So Mysterious or Different3 Mar 2025
- 2025GCSAM: Gradient Centralized Sharpness Aware Minimization20 Jan 2025
- 2025Gradient Descent Converges Linearly to Flatter Minima than Gradient Flow in Shallow Linear Networks15 Jan 2025
50 newest of 134 All 134 (JSON)
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2021On the Origin of Implicit Regularization in Stochastic Gradient Descentcited by 183
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
- 2023Explaining grokking through circuit efficiencycited by 105
- 2022Improving Generalization in Federated Learning by Seeking Flat Minimacited by 98
- 2021On the Validity of Modeling SGD with Stochastic Differential Equations (SDEs)cited by 73
- 2024How Does Critical Batch Size Scale in Pre-training?cited by 68
- 2021Stochastic Training is Not Necessary for Generalizationcited by 63
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2023FisherRF: Active View Selection and Uncertainty Quantification for Radiance Fields using Fisher Informationcited by 63
- 2022On the Maximum Hessian Eigenvalue and Generalizationcited by 57
12 most cited of 130 All 130 (JSON)
- 2026Fast and Precise Learned Charged-Particle Trajectory Regression at the Large Hadron Collider26 Sep 2026
- 2026A Journey to the Edge of Stability26 Sep 2026
- 2026Speed Limit for Information Acquisition in Stochastic Learning Dynamics8 Sep 2026
- 2026Across the Loss Landscape with Progressive Growth25 Aug 2026
- 2026Nonreversible Gauge Fields in Fokker--Planck Dynamics: Supersymmetric Hamiltonians and Learned Finite Forces4 Jun 2026
- 2026The physics of AI weather models22 May 2026
- 2026Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamics21 May 2026
- 2026Implicit Regularization of Mini-Batch Training in Graph Neural Networks21 May 2026
- 2026Understanding Generalization through Decision Pattern Shift13 May 2026
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes7 May 2026
- 2026PAC-Bayes Bounds for Gibbs Posteriors via Singular Learning Theory19 Apr 2026
- 2026Nexus: Same Pretraining Loss, Better Downstream Generalization via Common Minima10 Apr 2026
12 newest of 130 All 130 (JSON)