Temperature is All You Need for Generalization in Langevin Dynamics and other Markov Processes
IHItamar HarelYonathan WolanowskyGVGal VardiNSNathan Srebro
Daniel Soudry IHItamar Harel
Yonathan Wolanowsky
GVGal Vardi
NSNathan Srebro

Daniel Soudry
+5
This paper bounds the generalization gap for Langevin dynamics training—a Markov process—by $\sqrt{(\beta \mathbb{E} L(\theta_0) + \log(1/\delta))/N}$ with probability $1-\delta$, where $N$ is the sample size, $\beta^{-1}$ the temperature, and $\mathbb{E} L(\theta_0)=O(1)$ under standard initialization. The bound depends on neither training time, mixing, dimensionality, nor gradient norms. It follows from a general analysis of Markov processes with a Gibbs stationary distribution, leveraging a bounded marginal distribution divergence implied by a generalized second law of thermodynamics.

arXiv ·
· May 25, 2025