Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal States
Ziqiao Wang, Yongyi Mao
TL;DR
This work models SGD with a Gaussian-gradient-noise SDE to enable information-theoretic generalization analysis. It develops two complementary bounds: a trajectory-based bound that sums mutual-information terms along training trajectories and a terminal-state bound based on the stationary distribution around local minima, each capturing distinct aspects of SGD generalization. Empirically, the trajectory bound is tighter than prior results, while the terminal-state bound achieves fast decay rates comparable to stability-based bounds; both bounds align well with SGD dynamics and gradient-noise structure. Overall, the approach provides a practical, data- and algorithm-dependent framework for understanding and predicting SGD generalization through its SDE surrogate.
Abstract
Stochastic differential equations (SDEs) have been shown recently to characterize well the dynamics of training machine learning models with SGD. When the generalization error of the SDE approximation closely aligns with that of SGD in expectation, it provides two opportunities for understanding better the generalization behaviour of SGD through its SDE approximation. Firstly, viewing SGD as full-batch gradient descent with Gaussian gradient noise allows us to obtain trajectory-based generalization bound using the information-theoretic bound from Xu and Raginsky [2017]. Secondly, assuming mild conditions, we estimate the steady-state weight distribution of SDE and use information-theoretic bounds from Xu and Raginsky [2017] and Negrea et al. [2019] to establish terminal-state-based generalization bounds. Our proposed bounds have some advantages, notably the trajectory-based bound outperforms results in Wang and Mao [2022], and the terminal-state-based bound exhibits a fast decay rate comparable to stability-based bounds.
