cs.LGMay 21, 2026

Why SGD is not Brownian Motion: A New Perspective on Stochastic Dynamics

Authors: Igor IgnashinAnna RadovskayaAndrew SemenovEgor LopatinStanislav PotapovAleksandr KovalenkoAndrey VeprikovAleksandr Shestakov+2 more

Organizations: Basic Research of Artificial Intelligence Laboratory (BRAIn Lab) · P.N. Lebedev Physical Institute of the Russian Academy of Sciences · Innopolis University

Abstract

Stochastic Gradient Descent (SGD) is commonly modeled as a Langevin process, assuming that minibatch noise acts as Brownian motion. However, this approximation relies on a continuous-time limit and a sqrt(eta) noise scaling that does not match the discrete SGD update at finite learning rate. In this work, we propose an alternative formulation of SGD as deterministic dynamics in a fluctuating loss landscape induced by minibatch sampling. Starting directly from the discrete update, we derive a master equation for the parameter distribution and obtain a discrete Fokker--Planck equation that differs from the standard Langevin form at order eta^2. Using this framework, we analyze SGD dynamics near critical points of the loss. We show that the behavior decomposes along the eigenbasis of the mean Hessian into qualitatively distinct regimes. In particular, nearly-flat directions do not admit a stationary distribution: the variance grows over time, corresponding to effective diffusion along valleys with a coefficient proportional to the learning rate. We provide empirical evidence supporting these predictions on neural network models in computer vision and natural language processing, observing a clear qualitative separation between confined and diffusive modes.

Explore similar work

Apr 22, 2026cs.LG

SGD at the Edge of Stability: The Stochastic Sharpness Gap

When training neural networks with full-batch gradient descent (GD) and step size ηη, the largest eigenvalue of the Hessian -- the sharpness S(θ)S(\boldsymbolθ) -- rises to 2/η2/η and hovers there, a phenomenon termed the Edge of Stability (EoS). \citet{damian2023selfstab} showed that this behavior is explained by a self-stabilization mechanism driven by third-order structure of the loss, and that GD implicitly follows projected gradient descent (PGD) on the constraint S(θ)2/η S(\boldsymbolθ)\leq 2/η. For mini-batch stochastic gradient descent (SGD), the sharpness stabilizes below 2/η2/η, with the gap widening as the batch size decreases; yet no theoretical explanation exists for this suppression. We introduce stochastic self-stabilization, extending the self-stabilization framework to SGD. Our key insight is that gradient noise injects variance into the oscillatory dynamics along the top Hessian eigenvector, strengthening the cubic sharpness-reducing force and shifting the equilibrium below 2/η2/η. Following the approach of \citet{damian2023selfstab}, we define stochastic predicted dynamics relative to a moving projected gradient descent trajectory and prove a stochastic coupling theorem that bounds the deviation of SGD from these predictions. We derive a closed-form equilibrium sharpness gap: ΔS=ηβσu2/(4α)ΔS = ηβσ_{\boldsymbol{u}}^{2}/(4α), where αα is the progressive sharpening rate, ββ is the self-stabilization strength, and σu2σ_{ \boldsymbol{u}}^{2} is the gradient noise variance projected onto the top eigenvector. This formula predicts that smaller batch sizes yield flatter solutions and recovers GD when the batch equals the full dataset.
Fangshuo Liao, Afroditi Kolomvaki, Anastasios Kyrillidis
May 16, 2026math.OC

High-dimensional Limit of SGD for Diagonal Linear Networks

Understanding the behavior of stochastic gradient methods is a central problem in modern machine learning. Recent work has highlighted diagonal linear networks as a simplified yet expressive setting for analyzing the optimization and generalization properties of neural models. In this work, we show that in the high-dimensional regime, stochastic gradient descent on diagonal linear networks is well-approximated by continuous dynamics governed by a stochastic differential equation (SDE), which explicitly decouples the drift from the gradient noise. We further derive a deterministic partial differential equation whose solution propagates the relevant state of the iterates and characterizes the time evolution of a broad class of observable statistics, including the risk, curvature, and other metrics for optimality. Finally, we show that, under a suitable parametrization, the stochastic dynamics are globally well posed and converge exponentially fast to zero risk with high probability, yielding a fully explicit non-asymptotic description of their long-time behavior. Numerical simulations corroborate our theoretical findings.
Begoña García Malaxechebarría, Courtney Paquette, Maryam Fazel +1
Jul 17, 2026cs.LG

Scaling Limits of Constant-Stepsize SGD at Flat Minima

For stochastic gradient descent (SGD) with a constant stepsize αα, the invariant law of the iterates, centered at a minimizer, describes the behavior of the algorithm over long time horizons. In the strongly convex case, this invariant law has the familiar α\sqrtα scaling and a Gaussian limit as α0α\downarrow 0. We show that this behavior changes fundamentally for convex objectives HH with flat minima and (sub)quadratic tails. More specifically, we study SGD with Markovian noise generated by a contractive driving chain. For every sufficiently small constant stepsize αα, we prove existence, uniqueness, and geometric convergence to an augmented invariant law in a Wasserstein distance induced by an αα-dependent metric. When the minimizer xx_\star has local flatness exponent m2m\ge2, meaning that 2H(x)xxm2Id\nabla^2 H(x)\asymp \lVert x-x_\star\rVert^{m-2} I_d as xxx\to x_\star, we obtain a contraction bound with factor 1cαm11-cα^{m-1}, where c>0c>0 is a constant. This recovers the factor 1cα1-cα in the quadratic case m=2m=2. We then analyze the small-stepsize scaling limit. We show that the invariant law concentrates on the scale α1/mα^{1/m} and that the rescaled iterates converge weakly to the stationary distribution of the stochastic differential equation dYt=h0(Yt)dt+Σ1/2dBt,dY_t=-h_0(Y_t)\,dt+Σ^{1/2}\,dB_t , where h0h_0 is the limiting drift at the minimizer and ΣΣ denotes the asymptotic covariance. This recovers the Gaussian limit when m=2m=2 and gives generally non-Gaussian stationary limits in the flat case m>2m>2. Finally, we give corresponding results for coordinate-separable objectives with unequal flatness exponents.
Jingyi Zhang, Cheng Mao, Debankur Mukherjee