paper-with-me

홈 › Papers

SGD as Free Energy Minimization: A Thermodynamic View on Neural Network Training

2025-05-29 · Ildus Sadrtdinov, Ivan Klimov, Ekaterina Lobacheva, Dmitry Vetrov

We present a thermodynamic interpretation of the stationary behavior of stochastic gradient descent (SGD) under fixed learning rates (LRs) in neural network training. We show that SGD implicitly minimizes a free energy function $F=U-TS$, balancing training loss $U$ and the entropy of the weights distribution $S$, with temperature $T$ determined by the LR. This perspective offers a new lens on why high LRs prevent training from converging to the loss minima and how different LRs lead to stabilization at different loss levels. We empirically validate the free energy framework on both underparameterized (UP) and overparameterized (OP) models. UP models consistently follow free energy minimization, with temperature increasing monotonically with LR, while for OP models, the temperature effectively drops to zero at low LRs, causing SGD to minimize the loss directly and converge to an optimum. We attribute this mismatch to differences in the signal-to-noise ratio of stochastic gradients near optima, supported by both a toy example and neural network experiments.

📄 PDF Abstract BibTeX arXiv:2505.23489

Code (1)

isadrtdinov/sgd-free-energy 공식 구현 pytorch

Tasks

Attribute

Methods 이 논문이 사용한 방법론

SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…

Similar Papers 제목 키워드 기반

Free Energy Minimization: A Unified Framework for Modelling, Inference, Learning,and Optimization

2020-11-25 · Sharu Theresa Jose, Osvaldo Simeone

The goal of these lecture notes is to review the problem of free energy minimization as a unified framework underlying the definition of maximum entropy modelling, generalized Bayesian inference, learning with latent var…

Bayesian Inference

Free energy and inference in living systems

2022-03-27 · Chang Sub Kim

Organisms are nonequilibrium, stationary systems self-organized via spontaneous symmetry breaking and undergoing metabolic cycles with broken detailed balance in the environment. The thermodynamic free-energy principle d…

Bayesian Inference

Nonequilibrium thermodynamics of input-driven networks

2020-12-24 · Kevin S. Chen

Neural dynamics of energy-based models are governed by energy minimization and the patterns stored in the network are retrieved when the system reaches equilibrium. However, when the system is driven by time-varying exte…

Laws of thermodynamics for exponential families

2025-01-03 · Akshay Balsubramani

We develop the laws of thermodynamics in terms of general exponential families. By casting learning (log-loss minimization) problems in max-entropy and statistical mechanics terms, we translate thermodynamics results to …

Machine Learning of Thermodynamic Observables in the Presence of Mode Collapse

2021-11-22 · Kim A. Nicoli, Christopher Anders, Lena Funcke, Tobias Hartung 외

Estimating the free energy, as well as other thermodynamic observables, is a key task in lattice field theories. Recently, it has been pointed out that deep generative models can be used in this context [1]. Crucially, t…

BIG-bench Machine Learning