Lune

NeurIPS2025Top-tier venue

Temperature is All You Need for Generalization in Langevin Dynamics and other Markov Processes

Itamar Harel, Yonathan Wolanowsky, Gal Vardi, Nati Srebro, Daniel Soudry

2025Year
2Citations
1Top-tier citations

Abstract

We analyze the generalization gap (gap between the training and test errors) when training a potentially over-parametrized model using a Markovian stochastic training algorithm, initialized from some distribution θ0∼p0\theta_0 \sim p_0. We focus on Langevin dynamics with a positive temperature β−1\beta^{-1}, i.e. gradient descent on a training loss LL with infinitesimal step size, perturbed with β−1\beta^{-1}-variances Gaussian noise, and lightly regularized or bounded. There, we bound the generalization gap, at any time during training, by (βEL(θ0)+log⁡(1/δ))/N\sqrt{(\beta\mathbb{E} L (\theta_0) + \log(1/\delta))/N} with probability 1−δ1-\delta over the dataset, where NN is the sample size, and EL(θ0)=O(1)\mathbb{E} L (\theta_0) =O(1) with standard initialization scaling. In contrast to previous guarantees, we have no dependence on either training time or reliance on mixing, nor a dependence on dimensionality, gradient norms, or any other properties of the loss or model. This guarantee follows from a general analysis of any Markov process-based training that has a Gibbs-style stationary distribution. The proof is surprisingly simple, once we observe that the marginal distribution divergence from initialization remains bounded, as implied by a generalized second law of thermodynamics.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 29be5b2e-5c4c-43eb-93ca-08e2acc07ad7

Cited by top-tier papers1

Ask how each one uses it

Builds on15

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines