Machine learning in and out of equilibrium
Not on the map. Why?
Abstract (arXiv)
The algorithms used to train neural networks, like stochastic gradient descent (SGD), have close parallels to natural processes that navigate a high-dimensional parameter space -- for example protein folding or evolution. Our study uses a Fokker-Planck approach, adapted from statistical physics, to explore these parallels in a single, unified framework. We focus in particular on the stationary state of the system in the long-time limit, which in conventional SGD is out of equilibrium, exhibiting persistent currents in the space of network parameters. As in its physical analogues, the current is associated with an entropy production rate for any given training trajectory. The stationary distribution of these rates obeys the integral and detailed fluctuation theorems -- nonequilibrium generalizations of the second law of thermodynamics. We validate these relations in two numerical examples, a nonlinear regression network and MNIST digit classification. While the fluctuation theorems are universal, there are other aspects of the stationary state that are highly sensitive to the training details. Surprisingly, the effective loss landscape and diffusion matrix that determine the shape of the stationary distribution vary depending on the simple choice of minibatching done with or without replacement. We can take advantage of this nonequilibrium sensitivity to engineer an equilibrium stationary state for a particular application: sampling from a posterior distribution of network weights in Bayesian machine learning. We propose a new variation of stochastic gradient Langevin dynamics (SGLD) that harnesses without replacement minibatching. In an example system where the posterior is exactly known, this SGWORLD algorithm outperforms SGLD, converging to the posterior orders of magnitude faster as a function of the learning rate.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 8 of its 40 references that are in the map. First posted on arXiv 6 Jun 2023.
Builds on
8 of 40 references.
References · 8
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
- 2017Three Factors Influencing Minima in SGDcited by 273
- 2017Stochastic gradient descent performs variational inference, converges to limit cycles for deep networkscited by 109
- 2018A high-bias, low-variance introduction to Machine Learning for physicistscited by 108
- 2018Fluctuation-dissipation relations for stochastic gradient descentcited by 48
- 2018Unsupervised Learning by Competing Hidden Unitscited by 44
- 2021The Limiting Dynamics of SGD: Modified Loss, Phase Space Oscillations, and Anomalous Diffusioncited by 19
Built on by
Citing papers per year: 2023: 4; 2024: 0; 2025: 1.
5 papers.
- 2023Generative learning for nonlinear dynamicscited by 22
- 2023Weight fluctuations in (deep) linear neural networks and a derivation of the inverse-variance flatness relationcited by 1
- 2023Minibatch training of neural network ensembles via trajectory samplingcited by 0
- 2023Stochastic Thermodynamics of Learning Parametric Probabilistic Modelscited by 0
- 2025Fokker-Planck to Callan-Symanzik: evolution of weight matrices under trainingcited by 0
- 2025Fokker-Planck to Callan-Symanzik: evolution of weight matrices under training16 Jan 2025
- 2023Weight fluctuations in (deep) linear neural networks and a derivation of the inverse-variance flatness relation23 Nov 2023
- 2023Generative learning for nonlinear dynamics7 Nov 2023
- 2023Stochastic Thermodynamics of Learning Parametric Probabilistic Models4 Oct 2023
- 2023Minibatch training of neural network ensembles via trajectory sampling23 Jun 2023