Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Stochastic learning flow: moment equations for stochastic gradient descent at finite step size

Stochastic learning flow equations track SGD loss curves more closely than gradient flow

  • Problem Gradient flow and stochastic differential equation models of SGD drop the finite step size and batch noise. Those terms matter at large learning rates, where these theories predict learning curves poorly.
  • Method Stochastic learning flow (SLF) equations derive moment equations for the mean and covariance of the parameters from the discrete update, unlike gradient flow, which takes the step size to zero.
  • Results In a deep linear network, SLF tracked the SGD expected loss curve more closely than gradient flow as the learning rate grew.

Where gradient flow and SDE models fall short

Gradient flow is the limit of gradient descent as the step size goes to zero, so it discards the finite step size that matters in practice.

A common surrogate replaces SGD with a stochastic differential equation whose diffusion matches the minibatch gradient covariance. Higher-order versions add finite-step corrections to the drift, but they expand in the product of learning rate and curvature. That expansion breaks down where the product of learning rate and curvature is of order one.

Exact deterministic equations for the risk under SGD exist for linear and generalized-linear models at finite step size and batch size. Kramers–Moyal expansions describe the parameter distribution of stochastic learners, using Fokker–Planck dynamics or moment equations with random update times.

The stochastic learning flow equations start from the discrete update and keep all terms at first order in the learning rate.

Moment equations from the discrete update

The update adds η times a stochastic function f of the parameters at each step, where η is the learning rate. The authors start from a master equation for the distribution over one step and expand both sides in the small step size, a Kramers–Moyal expansion. Matching the two sides gives a Fokker–Planck-like equation whose drift is η times the mean update and whose diffusion is η² times the mean outer product of updates.

Both the drift and the stochastic part scale as η in the update, unlike Brownian motion, where the drift scales as δt and the noise as √δt. Because of this scaling, the next-to-leading order expansion is the simplest consistent evolution equation for p(θ,t) at finite step size.

The expansion keeps the O(δt²) term in the time derivative, which standard Fokker–Planck derivations drop, because it carries the finite-step effects. Setting δt equal to η gives the operator D_t = ∂_t + (η/2)∂_t², and the authors don't take the limit η→0 as gradient flow does. Multiplying by θ_k and integrating gives D_t⟨θ_k⟩_θ = ⟨⟨f_k(θ)⟩⟩_θ for the mean.

For the covariance, the same procedure adds η times the average of the update product minus the product of the averaged updates.

Expanding f around the mean to second order in the fluctuations gives a Gaussian closure. With these steps the mean and covariance equations close as equations (19) and (20).

With Poisson update times these equations reduce to earlier moment equations at a fixed point. The update times here are fixed, so the ∂_t² term turns the η⟨⟨f_k f_l⟩⟩ term into the covariance η[⟨⟨f_k f_l⟩⟩ − ⟨⟨f_k⟩⟩⟨⟨f_l⟩⟩]. The authors also keep the O(η) terms in the covariance equation, which the earlier work dropped.

What SGD adds: an effective loss and covariance feedback

For SGD the update is minus the gradient of the batch loss, so the Hessian of that batch loss enters the moment equations. The covariance then feeds back into the mean, which means the mean follows gradient descent on an effective loss. That effective loss is the batch loss plus one half times the trace of the covariance times the average Hessian.

Its effect depends on how the covariance itself evolves, and that evolution is driven by the loss curvature.

In the full-batch limit the Hessian is diagonal in its eigenbasis, so each covariance mode evolves on its own. Each mode obeys a linear equation whose rate depends on η, λk and λl, where λ denotes Hessian eigenvalues. For a quadratic loss this rate is the one-step change of the covariance divided by the step size, with Dt replacing the finite difference.

Modes aligned with positive curvature shrink, and modes aligned with negative curvature grow. For a convex loss the covariance goes to zero as η goes to zero, and the equations reduce to gradient flow. A finite step size makes the valleys unstable once they become too narrow, which gives the edge of stability criterion, λ < 2η.

With noiseless targets, Cov(f) vanishes at an interpolating minimum, so the authors evaluate Cov(f) directly in their experiments. The coefficient η/B matches earlier work that found this ratio to set the width of final minima. A third-derivative term couples the covariance to the sign of Cov(f, ∂³L), so it can amplify or damp the covariance.

A one-dimensional loss with an ensemble starting at m(0) = −4 illustrates this mechanism. With a small learning rate, the ensemble converges to a sharp local minimum. With a larger rate, the parameter escapes the local minimum and converges to a broader, globally optimal solution.

Edge of stability as a stationary point of the SLF equations

The question is whether the coupled sharpness and covariance dynamics reproduce the edge of stability, and the answer starts with the sharpest direction. The authors project the full-batch dynamics onto the eigenvector v1 with Hv1 = λ1 v1, where λ1 is the largest eigenvalue of H. With σ²1 = v1ᵀ C v1, the variance along that direction obeys Dt σ²1 = λ1(ηλ1 − 2) σ²1.

The variance grows when sharpness lies above 2/η and decays below it, so λ1 = 2η marks the EoS. The finite-step-size term ηλ1² that drives this comes from η⟨H⟩C⟨H⟩ and is absent in first-order SDE approaches.

Sharpness evolves on its own: Dt λ1 = S1 − ½ g1 σ²1 + η²Q1, with S1 the progressive sharpening rate under gradient flow. Here g1 = |∇λ1|² and Q1 = Fᵀ(∇∇λ1)F, with F the mean drift. The stationary point sits at λ*1 = 2η with σ²*1 = (2S1 + ηQ1)/g1. Gradient flow is the σ²1 = 0 limit, and there the sharpness evolves as S1 + η²Q1, with no mechanism to stop sharpening.

Central flow appears when ηQ1 goes to zero, with σ²1 = 2S1/g1 fixed by holding the sharpness at 2/η. Here the same values follow from the covariance dynamics rather than being imposed, so the approach to the edge is also described.

With finite batch size, the projection gives Dt σ²1 = −ρ(λ1) σ²1 + η c B, with ρ depending on batch curvature statistics. The variance stays finite only while ρ is positive, so batch noise lowers the threshold where it diverges. To first order this threshold is λ0 = 2η(1 + κB) − η d² B, consistent with SGD hovering below 2η. Batch-to-batch curvature fluctuations cause this shift because each step multiplies the variance along v1 by (1 − ηh_b)², which is convex in h_b.

In the nonlinear network tested, dropping the d term changed the EoS threshold by less than 1%. The authors note that λ0 is a mean-square threshold, and typical trajectories can stay bounded up to a higher Lyapunov threshold.

The noise amplitude in (33) doesn't carry over to finite B, because back-reaction depends on the whole covariance once batch noise populates other modes. In the full-batch limit, the EoS is a dynamical stationary point of the SLF equations, and finite batch size shifts its threshold downward.

Deep linear network: SLF and gradient flow

The authors test SLF on a two-layer deep linear network with two units per layer and eight parameters. The network maps isotropic inputs to outputs, and it is trained to match targets built from a task matrix with singular values 2.5 and 1. The SGD reference is an ensemble of 800 replicas that all start from the same initial condition. Because the full Hessian and covariance are tractable at this size, the input averages in the SLF equations are evaluated exactly.

SLF captured the SGD expected loss curve much better than gradient flow as the learning rate grew or the batch size shrank. Figure 2 shows the low-noise and high-noise loss curves, along with the NRMSE of each theory against SGD. The NRMSE is computed from the SGD expected loss and the loss predicted by SLF or GF, averaged over all steps.

Figure 2: Stochastic Learning Flow captures learning curves and parameter changes in a two-layer deep linear
network.(A)-(B)Expected loss during training of an…

Figure 2 : Stochastic Learning Flow captures learning curves and parameter changes in a two-layer deep linear network.(A)-(B)Expected loss during training of an ensemble of networks trained with SGD from a single initial condition, as well as corresponding gradient-flow (GF) and Stochastic Learning Flow (SLF) curves in the low-noise (A) and high-noise (B) regimes.(C)The normalized root mean square error (NRMSE) of the SLF vs. SGD and GF vs. SGD loss curves.(D)-(E)Alignment of the ensemble-averaged SGD parameter update direction with the update direction predicted by either GF or SLF in the low-noise (D) and high- noise (E) regimes.(F)The minimum update alignment values during training for various learning rates and batch sizes. Points in (C) and (F) are mean±std acrossn= 5identically initialized networks. Open circles denote(η,B)settings for whichp(θ,t)is strongly non-Gaussian, limiting the applicability of the SLF theory (cf.Figure 3D).

Original paper · CC BY 4.0

Both SLF and GF align well with the average SGD parameter update when the learning rate is small or the batch is large. Only SLF keeps tracking the SGD parameter updates throughout learning in the noisy regime. This gain shows up most clearly at large learning rates and small batch sizes, where the SGD noise is strongest.

Each mode is learned as the Hessian eigenvalues change sign from negative to positive while the network passes through saddle points. Projected onto the Hessian modes, the SGD covariance shows transient expansions along negative-curvature directions, and SLF reproduces their timing. However, the SLF covariance peaks exceed the SGD ensemble covariance, and the overshoot grows with the third moment of the SGD ensemble.

The covariance panels use a learning rate of 0.15 and a batch size of 16.

Figure 3: Curvature and covariance dynamics in a deep linear network.(A)An ensemble of identically
initialized two-layer DLNs learn two task modes with SGD (do…

Figure 3 : Curvature and covariance dynamics in a deep linear network.(A)An ensemble of identically initialized two-layer DLNs learn two task modes with SGD (dotted); learning dynamics are characterized by SLF (solid) and GF (dashed), with vertical lines denoting times of mode learning.(B)Eigenvalues of the Hessian during training (colored: output-potent; gray: output-null).(C)Parameter covariance from the SGD ensemble projected onto the Hessian eigenmodes (dotted), together with the SLF covariance (colored: mode-projected; gray: total).(D)Relative overshoot in the SLF estimate of the covariance peak in (C) increases with the non-Gaussian third moment of the parameter distribution as batch size decreases (colors as in panel F).(E)The implicit regularization term from the effective loss function during training.(F) The peak values of the implicit regularization during training. Points in (D,F) are means±std across 5 identically initialized networks. Open circles denote(η,B)settings for whichp(θ,t)is strongly non-Gaussian, limiting the applicability of the SLF theory.

Original paper · CC BY 4.0 · Christian Schmid, James M Murray · Stochastic learning flow: moment equations for stochastic gradient descent at finite step size · Original paper figure · Extracted the figure area from page 10 of the original PDF.

The implicit regularization term from the effective loss peaks each time the network passes a saddle point. Across learning rates and batch sizes, its dynamics matched the SGD ensemble.

The authors read these results as SLF predicting covariance dynamics for small and intermediate batch noise. Non-Gaussianity of the parameter distribution grows alongside that regime, which marks where the theory's predictions start to weaken.

Nonlinear classifier on binary MNIST: covariance terms and variance error

Each test starts from a common warm-start parameter vector, so C(0) equals 0 and all covariance comes from minibatch noise.

The authors compare the mean parameter vector from the integrated SLF equations with the mean of 256 SGD-trained replicas. The integrated SLF prediction stays within the estimation noise floor of that ensemble. Feeding in the replica covariance instead of the integrated covariance gives equally good predictions, so the integrated covariance tracks the measured one closely enough.

At higher batch noise the variance error rises, and the authors attribute this to heavy tails rather than to the closure alone. Higher moments of the parameter distribution couldn't be estimated accurately from the finite replicas, so the authors used the loss distribution instead.

An index below 2 means the second moment of the distribution diverges. The variance prediction error grew as the Hill index fell. Where the second moment existed and the sampling precision of Tr C could be estimated, that precision closely tracked the prediction error. So the Gaussian closure and the variance estimator fail together, since both are second-moment objects driven by heavy tails.

Within the regimes tested, SLF predicts parameters and covariances well at intermediate batch noise and loses accuracy as non-Gaussian effects grow.

Where the second-moment theory stops

The second-moment truncation of the flow equations breaks down once the parameter distribution becomes non-Gaussian, and that coincides with lower predictive accuracy. Extending the approach to higher moments would be possible in principle, but the resulting equations would be harder to interpret. The authors suggest treating the few directions where non-Gaussian structure develops separately, for example with a reduced Fokker–Planck description or a description of the tails.

The edge-of-stability analysis projects the dynamics onto a single direction, which is justified for full-batch gradient descent. Under SGD, however, the sharp mode couples to other modes through variance injected along additional directions by batch noise. The threshold λ0 is a mean-square threshold, and beyond it the variance diverges. The back-reaction term depends on the whole covariance once batch noise populates other modes, so the noise amplitude in (33) doesn't carry over to finite B.

Solving the flow equations requires P×P covariance matrices and dense Hessian computations. Because of this cost, the networks tested had at most a few thousand parameters. Whether the regime of validity identified in Sections 2.3 to 2.4 persists in larger networks remains to be determined.

The authors also list momentum, adaptive methods, and reinforcement learning as extensions the general flow equations could cover. They don't test these learning rules in the paper, and the identification δt=η would need generalizing for learning-rate schedules.

How SLF relates to SDE surrogates and edge-of-stability theories

SDE models of SGD miss the finite-step part of the covariance dynamics, so they can't capture the instability at curvature 2/η. The SLF equations keep the term η⟨H⟩C⟨H⟩ and the operator D_t, which are the deterministic finite-step parts that SDE descriptions lack. Near a quadratic minimum, the stationary SLF covariance matches the exact stationary covariance of discrete-time SGD from Liu et al., including its divergence at ηλ = 2.

The SLF framework extends the fluctuation–dissipation relations of Yaida to the full time-dependent dynamics. The SLF equations may explain why SDE surrogates of SGD, even when simulated at finite step size, don't stabilize where SGD does. That underdamped description applies to individual trajectories rather than the parameter distribution, so its covariance dynamics lack η⟨H⟩C⟨H⟩ and the instability at ηλ = 2.

Two questions remain open for this line of work. One is where trajectories settle between the mean-square and Lyapunov thresholds. The general flow equations apply to any stochastic update rule, not only SGD. Momentum and adaptive methods, which change the inertial term, and reinforcement learning, where exploratory noise adds to sampling noise, are natural next cases.

Paper info

Authors
Christian Schmid, James M Murray
Venue
arXiv · Preprint
First published
2026-10-30
Added
2026-11-3
Updated
2026-10-30
Version
v1
arXiv
2611.00473
Category
cs.LG · cond-mat.dis-nn
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Analytical theories of learning in deep networks often assume gradient flow, discarding the finite step size and batch noise of stochastic gradient descent (SGD). Starting from the discrete update, we derive continuous-time equations for the mean and covariance of the parameter distribution under a Gaussian closure for a general stochastic learning, to first order in the learning rate $η$. Applying these stochastic learning flow (SLF) equations to SGD, we show that the mean descends an effective loss regularized by the covariance and loss curvature, while the covariance, unlike in stochastic differential equation approximations, becomes unstable at curvature $2/η$. In SGD ensembles of linear and nonlinear networks, SLF predicts learning curves and mean trajectories more accurately than gradient flow and captures the covariance dynamics, failing where the parameter distribution becomes strongly non-Gaussian. In the full-batch limit, the edge of stability corresponds to a stationary point of the coupled sharpness-covariance dynamics, recovering self-stabilization and central flow, and batch-to-batch curvature fluctuations lower this threshold under SGD.

Quote from the paper

Christian Schmid, James M Murray (2026). Stochastic learning flow: moment equations for stochastic gradient descent at finite step size. arXiv:2611.00473v1. https://arxiv.org/abs/2611.00473v1

BibTeX
@misc{schmid2026stochastic,
  title = {{Stochastic learning flow: moment equations for stochastic gradient descent at finite step size}},
  author = {Christian Schmid and James M Murray},
  year = {2026},
  eprint = {2611.00473},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00473v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up