[Paper Review] Fluctuation-dissipation relations for stochastic gradient descent
This paper derives exact fluctuation-dissipation relations (FDR1 and FDR2) for stochastic gradient descent (SGD) under the sole assumption of stationarity in model parameter distributions. These relations enable adaptive learning rate scheduling and allow direct estimation of loss landscape properties such as Hessian magnitude and anharmonicity, validated empirically on MNIST and CIFAR-10 benchmarks.
The notion of the stationary equilibrium ensemble has played a central role in statistical mechanics. In machine learning as well, training serves as generalized equilibration that drives the probability distribution of model parameters toward stationarity. Here, we derive stationary fluctuation-dissipation relations that link measurable quantities and hyperparameters in the stochastic gradient descent algorithm. These relations hold exactly for any stationary state and can in particular be used to adaptively set training schedule. We can further use the relations to efficiently extract information pertaining to a loss-function landscape such as the magnitudes of its Hessian and anharmonicity. Our claims are empirically verified.
Motivation & Objective
- To establish exact fluctuation-dissipation relations for SGD that hold under general conditions, including non-Gaussian noise and nonconvex loss landscapes.
- To develop a practical, adaptive learning rate scheduling method grounded in statistical mechanics principles, avoiding ad hoc hyperparameter tuning.
- To extract quantitative information about the loss function landscape—such as Hessian strength and anharmonicity—directly from training dynamics.
- To provide a theoretical framework for SGD that avoids the inconsistencies of continuous-time stochastic differential equation approximations.
- To empirically validate the derived relations and demonstrate their utility in real-world training scenarios on image classification tasks.
Proposed method
- Derives a stationary fluctuation-dissipation theorem (FDT) based on the Kramers-Moyal expansion, valid for any stationary distribution of model parameters.
- Introduces FDR1, a relation linking the half-running averages of left and right observables to assess stationarity and trigger learning rate decay.
- Introduces FDR2, a relation that connects the noise covariance and gradient statistics to infer the Hessian and anharmonicity of the loss landscape.
- Proposes an adaptive learning rate scheduler that monitors FDR1 saturation: when the ratio of left and right observables approaches unity within a threshold, the learning rate is reduced.
- Employs half-running averages of observables over mini-batch gradients to estimate FDR1 and FDR2 in online training without full-batch computation.
- Validates the framework using MLPs on MNIST and CNNs on CIFAR-10, comparing adaptive scheduling against preset schedules and AMSGrad.
Experimental results
Research questions
- RQ1Can fluctuation-dissipation relations be derived for SGD under minimal assumptions, such as only stationarity, without assuming Gaussian noise or convexity?
- RQ2Can FDR1 be used as a reliable, real-time diagnostic to detect when training has reached a stationary state, enabling automatic learning rate decay?
- RQ3Can FDR2 provide accurate, data-driven estimates of the Hessian and anharmonicity of the loss landscape during training?
- RQ4How does the proposed adaptive scheduling method compare to standard preset learning rate schedules and adaptive optimizers like AMSGrad in terms of convergence and accuracy?
- RQ5To what extent do the derived relations hold in non-Gaussian, nonconvex settings typical of deep learning?
Key findings
- FDR1 shows linear dependence on the learning rate η for small η in the MLP on MNIST, supporting the validity of the harmonic approximation in that regime.
- For the CNN on CIFAR-10, pronounced anharmonicity is observed even at η ≈ 0.001, indicating strong deviations from quadratic loss surfaces.
- The adaptive learning rate scheduler based on FDR1 saturation achieves comparable test accuracy to a preset schedule with 10× decay every 100 epochs, while requiring fewer hyperparameters.
- The adaptive scheduler outperforms the AMSGrad optimizer on both MNIST and CIFAR-10 in terms of final test accuracy and convergence stability.
- The derived fluctuation-dissipation relations hold exactly under stationarity and are robust to non-Gaussian mini-batch noise and nonconvex loss functions.
- Empirical results confirm that FDR2 enables reliable estimation of Hessian magnitude and anharmonicity from training data, even in complex, real-world deep learning setups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.