Manuscript Offprint
arXiv:2610.38012Finite-step statistical mechanics of scale-invariant learning: spectral equations of state and curvature transport
Abstract
Stationary learning admits an ideal-gas description under restrictive noise assumptions. In neural networks whose gradient noise departs from these assumptions, however, an entropy-scaling relation resembling a Maxwell relation remains approximately valid. This raises two questions: which thermodynamic-looking relations follow from scale symmetry rather than equilibrium, and how can departures from the ideal-gas description be quantified? We address these questions for discrete stochastic gradient dynamics with memory. An exact rescaling of trajectories explains the entropy relation without assuming thermal equilibrium. Within a local harmonic approximation, self-adjusting weight norms yield a spectral equation of state whose virial coefficients are set by moments of the curvature spectrum. Coupled parameter groups can nevertheless sustain stationary probability currents. Our central result beyond this approximation is an exact curvature-transport identity. Together with a finite-step loss balance, it decomposes corrections to the harmonic fluctuation relation into measurable curvature changes, finite-step remainders, gradient-memory correlations and finite-window drift terms. A related displacement-weighted curvature change provides a diagnostic of the arrow of time. Its mean and second moment give a lower bound on the relative entropy between forward and reversed state pairs. We also calculate the activation-boundary contribution to curvature for rectified teacher-student networks with Gaussian inputs. Tests in sphere models, analytically tractable networks and convolutional networks on CIFAR-10 and CIFAR-100 support the transport description while identifying limits of the harmonic and cubic-remainder approximations. In the tested Softplus convolutional networks, negative curvature transport is consistent with the update-curvature deficit. Rectified networks show activation-boundary contributions on CIFAR-10 and, in one setting per dataset, a resolved part of the deficit that the identity assigns to the mixed gradient-memory term. The measurements also reveal time-reversal asymmetry over finite observation windows. These results separate symmetry-based relations from equilibrium assumptions and provide quantitative diagnostics of nonideal fluctuations in learning dynamics.
Keywords: Stationary states; Fluctuation phenomena; Stochastic processes; Machine learning.
1 Introduction
A recently proposed thermodynamic description of stationary learning raises a concrete statistical-mechanical question. Sadrtdinov et al. [1] derived an ideal-gas equation of state for a scale-invariant learning model with isotropic noise of fixed strength. In this description, weight decay plays the role of pressure and half the squared weight norm that of volume. In their networks, however, the effective noise strength varies with the hyperparameters, mainly through the product of learning rate and weight decay. The ideal-gas law with a fixed noise strength therefore does not hold. With the measured noise strength, their prediction of the stationary radius remains accurate over much of the parameter range. An entropy-scaling relation resembling a Maxwell
*E-mail: alexander.itin@ru.nl, alx.itin2@gmail.com; website: AI4science.de relation agrees with their measurements to within about 3% in the fully scale-invariant ResNet-18 experiment on CIFAR-10. Why does the entropy relation remain robust when the fixed-noise assumptions are relaxed, and how should the fluctuation description be extended beyond the continuum approximation?
The distinction matters because an equation of state, an entropy identity and time-reversal symmetry express different properties. The failure of an ideal-gas law does not by itself rule out useful relations between collective variables. Conversely, agreement with a Maxwell-type relation does not establish thermal equilibrium: a stationary stochastic system can obey exact balance relations while carrying probability currents [2, 3]. Our aim is to determine which relations in stationary learning follow from symmetry, which require approximations to the dynamics, and how their departures can be measured. The ideal-gas description is a reference for this investigation, not an equilibrium assumption imposed on the networks.
Learning at a fixed update size provides a setting in which these questions can be studied. The trainable parameters evolve under noisy gradient updates [4–6]. Weight decay contracts their magnitudes. A common modification averages the gradients over preceding steps, which introduces a memory variable into the dynamics. Unlike a continuous-time diffusion, the resulting process evolves by finite displacements. Its stationary fluctuations can therefore depend on the update rule as well as on the loss landscape and the noise. At a fixed learning rate, SGD has also been described as minimizing a free energy whose temperature is set by the learning rate [7]. Even the discretization of a reversible diffusion can break time-reversal symmetry [8].
Scale-invariant parameter groups give this problem a useful geometry. Write the weights of a group as , where is its norm and its direction. When rescaling leaves the predictions unchanged, the loss depends on but not on . The norm nevertheless affects the dynamics: the effective angular step is proportional to . For stochastic gradient descent, the gradient of an exactly invariant group is tangent to the sphere. Its finite displacement increases the squared norm, whereas weight decay contracts it. Their balance can support a fluctuating stationary regime in which the radii adjust together with the angular fluctuations [9–12]. The angular dynamics can also show periodic instabilities, distinct regimes of the effective learning rate and a dependence of the solution on the initial learning rate [13–15].
Such groups arise in normalized networks, for example in every convolution followed by batch normalization [9, 16]. They may be coupled to parameters that are not scale-invariant, including a trainable output layer. Training those additional parameters does not destroy the invariance of the hidden groups. We therefore distinguish groupwise scale symmetry from invariance of the entire model. We first treat the exact symmetry and then examine its violations in implemented normalized networks. This setting combines an explicit geometric constraint with anisotropic noise, nonlinear interactions and memory.
Several ingredients limit a simple continuum description. Finite updates modify the fluctuations even for a quadratic loss, especially when a curvature mode approaches its linear stability threshold [17]. Training tends to drive the sharpest modes towards this threshold [18–20]. Gradient memory correlates the current update with earlier gradients, which were evaluated at different points of the landscape. Nonlinear variation of the curvature then enters these correlations. Nonsmooth activations add a contribution when an update crosses an activation boundary. Coupling between parameter groups also prevents their fluctuations from being described, in general, by independent scalar temperatures. These effects need not be captured by a single effective noise strength.
The continuum ideal-gas construction and the harmonic approximation used here should be distinguished. The former follows from the noise assumptions of Sadrtdinov et al. [1] and does not require a quadratic angular loss. We introduce a local harmonic approximation for a different purpose: it permits an explicit calculation of finite-step fluctuations. The stationary covariance of discrete stochastic gradient descent and momentum on quadratic losses is known [17], as are exact mean-square stability conditions for stochastic gradient descent [21]. Stationary fluctuation identities provide a complementary route that does not replace the update by a diffusion [6]. Our loss balance is of this type, with the finite-step remainder written out. Our analysis combines these approaches with scale symmetry and with observables that measure the failure of the local quadratic description.
The first result answers the question about the robustness of the entropy relation. An exact rescaling maps trajectories with one set of learning-rate and decay parameters to trajectories with another (Theorem 2). For corresponding stationary states, this fixes the change of the entropy without requiring a Gibbs distribution or detailed balance (Theorem 3). The map remains exact when non-invariant parameters are trained, provided their optimizer settings are held fixed while those of the invariant groups are rescaled. The entropy relation is therefore a consequence of a symmetry of the dynamics, rather than evidence that the stationary state is an equilibrium state. This extends the effective-learning-rate perspective of earlier work on normalized learning [10, 12] and symmetry analyses of training dynamics [22, 23]. Every invariant group also obeys an exact stationary norm balance, with and without gradient memory and with a trained head (Theorem 1).
The second result concerns the collective fluctuations. We couple the known finite-step mode variances [17] to the self-adjusting norms. Within the harmonic approximation, this gives a spectral equation of state for a group with isotropic angular noise, whose virial coefficients are set by moments of the curvature spectrum (Section 4.4). The approximation supplies calculable deviations from the ideal-gas reference. For SGD, this spectral equation of state contains no attractive term. Under the additional isotropic-noise approximation used for AdamW, the predicted stationary-radius correction instead has the opposite sign. Sadrtdinov et al. [1] named such “real-gas” corrections, gradient memory and adaptive optimizers as open directions. For interacting groups, the covariance must instead be determined jointly. In the Gaussian harmonic surrogate of SGD with frozen radii, the stationary state is reversible if and only if the transformed curvature and noise matrices commute (Theorem 12). Exact groupwise norm balances can therefore coexist with stationary probability currents. These calculations separate the existence of a stationary balance from the stronger conditions required for equilibrium.
Our central result beyond the harmonic approximation is an exact curvature-transport identity for dynamics with gradient memory (Theorem 6). The update direction is built from gradients evaluated at earlier states, while the curvature changes as the parameters move. The identity relates the departure of the current update curvature from its harmonic reference to this curvature change, a mixed gradient-memory correlation and finite-window drift. Together with the finite-decay identity derived from the loss balance (Theorems 4 and 5), which retains weight decay and the finite-step remainder, it provides a measurable decomposition of the fluctuation correction. Both relations hold for any network trained by SGD or gradient memory with hyperparameters shared by all parameters, without assuming a quadratic loss or Gaussian noise. Their interpretation in terms of angular fluctuations uses the additional scale symmetry.
A related displacement-weighted curvature change provides a diagnostic of the arrow of time (Theorem 7). It changes sign when the order of two consecutive parameter states is reversed. A nonzero mean therefore demonstrates time-reversal asymmetry of their joint distribution. Its mean and second moment give a lower bound on the relative entropy between the forward and reversed pair distributions. This connects a local curvature measurement with the trajectory-based description of irreversibility [8, 24, 25]. Ziyin et al. [26] relate backward-error and time-reversal corrections to a regularized entropy-production construction in a small-step expansion. This result uses smoothness and symmetric-Jacobian assumptions and is distinct from the finite-step pair-distribution bound considered here. The bound concerns parameter pairs; it is not identified with the thermodynamic entropy production of the full optimizer. At finite weight decay, the mean pair observable also differs from the memory-based curvature transport by explicit terms of first and second order in the decay rate.
For nonsmooth models, the curvature measured within an activation region does not account
(a) Norm balance (SGD)

(b) Transport vs. deficit
(c) Remainder along the step
Figure 1: The main results. (a) Norm balance of an invariant group , (Theorem 1; drawn to scale). The tangential step adds to , and decay removes . The diagram shows SGD. Gradient-memory dynamics obeys the distinct norm balance (8). Both balances remain valid for an invariant group coupled to a trained head. Neither balance implies equilibrium. (b) Transport against the update-curvature deficit, (19) (seed means for the thin ResNet; runs with collapsed channels omitted). Softplus settings lie on the diagonal within 1.3 joint standard errors of the gap. The labelled ReLU settings lie below it. The practical ReLU network at (open symbol) lies above it. (c) Endpoint ratios of the runs with resolved. Softplus runs lie on , the line of a remainder along the step. On CIFAR-10 they lie near the cubic point. ReLU runs sit near the boundary value 2 (Theorem 14), also on the line. However, only Softplus runs approximately satisfy it for individual sampled transitions (Section E). Error bars: one standard error.
for all finite-displacement effects. We distinguish smooth nonlinear remainders from contributions of activation-boundary crossings (Theorem 14). If the pre-activation density is smooth, activation-boundary crossings can produce an ensemble-averaged contribution of order , where f is the step fraction. For a smooth loss, the remainder after the quadratic expansion is ; its leading cubic coefficient may vanish. For normalized committees of rectified linear units with Gaussian inputs, the boundary contribution to the curvature can be calculated analytically (Theorem 15). Competing interactions among the units and with the target function give it no universal sign. For smooth losses, we examine cubic and cubic-plus-quartic approximations to the remainder. These approximations reduce the number of observables needed to reconstruct the correction, but their validity must be tested separately from the exact identities.
The numerical investigation uses three complementary systems (Section 6). Sphere models isolate the harmonic predictions and geometric effects. Teacher-student networks, whose targets are generated by a fixed reference network, provide an analytic population loss and directly evaluable derivatives. These models connect the present problem with the classical statistical mechanics of soft committee machines, from online learning [27] to the equilibrium specialization transition [28]. Convolutional networks on CIFAR-10 and CIFAR-100 then test which relations remain informative in higher-dimensional learning dynamics. In 28 runs with gradient memory, every term of the exact identities is measured at both ends of updates sampled from the optimizer's transition law. The measurements distinguish the general transport description from the simpler remainder approximations (Fig. 1). In the Softplus networks, negative curvature transport is consistent with the update-curvature deficit on both datasets. The cubic approximation is less general: the CIFAR-100 endpoint measurements require a substantial fourth-order contribution within the smooth-remainder description. On CIFAR-10, the remainder of rectified networks is dominated by activation boundaries. In one setting per dataset these networks also leave a resolved part of the deficit, which the identity assigns to the mixed contribution.
The purpose of these experiments is to test fluctuation relations and identify the contributions responsible for their departure from the harmonic reference. Agreement with an exact identity checks the estimators and the accounting of its terms; it does not by itself validate a predictive approximation. We therefore test the harmonic and remainder approximations separately. We also retain finite-window drift terms and examine time-reversal asymmetry without assuming that every network trajectory has reached a fully stationary distribution. The resulting description identifies which aspects of the gas analogy are protected by symmetry and which depend on the dynamics.
Section 2 defines the stochastic dynamics and notation (Table 1). Section 3 derives the exact scaling, balance and transport relations, together with the time-reversal diagnostic. Section 4 develops the harmonic fluctuation theory and the spectral equation of state. Section 5 treats smooth nonlinearities, activation boundaries and non-invariant parameters. Section 6 presents the numerical tests, and Section 7 discusses the conclusions and the remaining limitations.
where is the Hessian of . The last relation follows by differentiating . Here and are embedded in . For a fully scale-invariant network, summing over groups gives . Rescaling a group also leaves unchanged.
Two Hessians for piecewise-smooth networks. For smooth activations . Networks with rectified linear units (ReLU) are only piecewise smooth. For them, two curvatures must be distinguished. The first is the regular Hessian . It is the second derivative with the activation pattern held fixed (what automatic differentiation returns), averaged over batches. The second is the population Hessian , where it exists. Their difference is the singular curvature of activation boundaries (Section 5.1). Throughout, denotes . For smooth activations it coincides with . Equation (1) holds for the regular Hessian sample by sample.
Dynamics with and without gradient memory. We compare stochastic gradient descent (SGD) with a gradient-memory dynamics, commonly called exponential-moving-average (EMA) momentum. With decoupled weight decay , learning rate and , it reads
(2) with common hyperparameters for all parameters unless stated otherwise. Theorem 2 allows separate hyperparameters per group. The batch is drawn afresh at every step, so that the noise is conditionally unbiased, , where is the history up to step . The averaged identities of Section 3 use this property. Independent sampling at every step satisfies it. Epoch-wise reshuffling does not, because the next batch then depends on the examples already used. All runs of this paper sample independently at every step: the networks draw each batch uniformly with replacement from the training set, and the sphere and teacher-student models draw fresh noise and fresh inputs. The memory variable is an exponentially weighted average of past stochastic gradients. It is not a mechanical momentum. The parameter sets the persistence of past gradients. The value is SGD, . We write ( for a fully scale-invariant network) and use
is the value of at which a quadratic mode of curvature becomes linearly unstable when ( for SGD). Full-batch training drives the sharpness to this threshold, where it oscillates [18, 29, 30]. Analogues exist for adaptive methods [19] and for SGD [20]. Momentum beyond the threshold is studied in [31]. The heavy-ball normalization has the threshold and, in the continuum limit, a temperature larger by ; at equal the finite-step factors differ as well. We do not use it except where stated. AdamW [32, 33] replaces by with the usual bias-corrected moments. In the networks, , and . We treat AdamW as an extension. Consider the preconditioned coordinates , with frozen at a diagnostic point. In these coordinates AdamW is EMA momentum with , and . This is an approximation. The actual preconditioner changes along the trajectory and is correlated with the current batch.
Angular variables. On a sphere of radius the relevant step is the angular one, . We describe the stationary angular fluctuations of a group by tangent modes . Each mode has a curvature of the loss on the unit sphere and an angular noise variance . At a reference critical direction, are the corresponding tangent eigenvalues of at radius , so that . Away from that reference the identification is a local approximation, and the radial-tangent coupling must be kept where it matters. Stationary harmonic modes have ; negative-curvature and flat directions need separate treatment. The edge ratio is the fraction of the linear stability threshold reached by mode . The distance to the threshold is . We write for the edge ratio of the sharpest mode.
Finite-step observables. For an update and an evaluation batch independent of it, the remainder of the quadratic loss model along a fraction of the step is
with the regular Hessian . With we use the normalized remainder, its endpoint derivative and the curvature change along the step,
where, sample by sample, . Since is independent of the step, the conditional mean is the remainder of the objective , and with and the regular Hessian . We also use the remainder profile , so that . For smooth losses
Table 1: Notation. Expectations are over the stationary law (or the time marginals of a finite window) and over the noise.
| learning rate, weight decay, decay per step | mean-gradient power | ||
|---|---|---|---|
| memory parameter, (3) | curvature along | ||
| stability threshold of | noise power | ||
| parameters; norm and direction of group | noise curvature | ||
| angular step | update curvature | ||
| curvature and angular noise of mode | its linear value, ratio | ||
| edge ratio | linear-FDR ratio, (15) | ||
| mode temperatures, (23) | remainder, (4)–(5) | ||
| regular, population and singular Hessian | pair observable (20); rescaling response (13); entropy |
. For ReLU networks and include the activation boundaries. By contrast, uses the regular Hessian at both ends and is not the second derivative of the mean remainder (Section 5.1).
3 Exact relations
The statements of this section are exact for the update (2) under the stated assumptions. They also assume that the moments involved are finite and that the trajectories are bounded away from the singular origin . The statements differ in scope. The norm balance of a group and the rescaling symmetry require the scale invariance of that group, but not of the rest of the network. The following relations hold for the full parameter vector of any network: the loss balance, the finite-decay identity (with an explicit term for non-invariant parameters and common ), the curvature-transport identity (common ) and the antisymmetry of the pair observable. Their reading as a correction to the linear fluctuation-dissipation relation, (15), uses full scale invariance. “Stationary” means that the laws of at consecutive times coincide. When they do not, the drift terms are kept. The expectations can then be read as averages over the time marginals of a finite window.
3.1 Norm balance and two radius baselines
Proposition 1 (Norm balance). Let a parameter group be updated as , with (SGD), (memory) or the AdamW direction. In any stationary state,
If is invariant under rescaling of (for any values of the other parameters, which may be trained), then
with , , those of the group.
Proof. (6) is the expansion of . For an invariant group, by (1). The cross term therefore vanishes for SGD. With memory, let . Then , and . Inserting into (6) gives (8).
Consider a group whose invariance holds only approximately, for example a channel normalized as with fixed . For such a group the violation is measured by . This quantity vanishes for an exactly invariant group with any optimizer. For SGD it is the cross term of (6). With memory or AdamW, however, the cross term is nonzero even for an exactly invariant group.
Weight decay contracts the norm deterministically. The stochastic gradient, orthogonal to the weights, increases it. Two baselines for the radius follow, and they must be kept apart. The measured-noise baseline of [1] drops the gradient signal: . Theorem 1 gives exactly
(memory),
(9)
and in the harmonic limit the memory ratio becomes . The fixed-angular-noise baseline of the equation of state (Section 4.4) is a different object. It fixes the noise per tangent direction instead of using its measured trace.
3.2 Scaling symmetry and the entropy relation
Proposition 2 (Scaling symmetry). Let every invariant group have its own learning rate , decay and memory parameter (SGD, EMA momentum or heavy ball). Let the non-invariant parameters be trained with fixed hyperparameters by any optimizer whose update of depends only on , its own optimizer state and . Clipping by a global gradient norm, or trust ratios computed jointly across groups, break the map below. For any , consider the map
with , its optimizer state and its hyperparameters unchanged. This map sends a trajectory with minibatch sequence to the trajectory with the transformed hyperparameters and the same batches. For AdamW with the same holds with and the moments . For a fully scale-invariant network and a common this is the map .
Proof. , so the decay factors are unchanged. By (1), at the rescaled point is . Hence times it is times the original step, and the memory scales as stated. is unchanged as a function of . Hence , and with it the whole trajectory of , is unchanged. For AdamW the update is invariant under a rescaling of the gradients of a group when .
Rescaling arguments of this kind underlie the effective learning rate of normalized networks [10, 12]. What matters here is that the map is exact for the discrete stochastic dynamics, with memory and with a trained head. A trained non-invariant block breaks only the common rescaling of all learning rates, including its own. In the teacher-student network with a trained output layer, the mapped trajectories coincide to rounding error while the head moves by . A common rescaling of all learning rates, in contrast, changes them at the per-cent level (check N6 in Section H).
Corollary 3 (Dependence on ; exact entropy relation). Keep the model, the batch size and the noise law fixed. Let the invariant groups share , and keep the hyperparameters of fixed. In the variables and of the invariant part, the updates read (SGD) and , (memory). In addition, . For AdamW with the same statements hold for . The dynamics therefore involves only through , and the rescaling of Theorem 2 maps every stationary law at to a stationary law at . The following statements hold for stationary laws that correspond in this way. (i) The directions and the parameters have identical distributions. Every observable unchanged by the rescaling depends on and only through their product. These include the loss, the accuracy, the edge ratios and, for fully scale-invariant networks, the ratios studied below. (ii) At fixed , in law, with for SGD and memory and for AdamW (). (iii) Let be the per-group thin-shell entropy, and assume that it is finite for the stationary laws considered. Then . Wherever the derivatives exist,
exactly, including all discrete-time and edge-of-stability effects. The derivatives are taken at fixed hyperparameters of . For the entropy built from one global radius of the invariant weights [1] the right-hand side is . For the differential entropy of the full density of it is . With separate hyperparameters per group the relation holds group by group, with right-hand side .
Proof. By Theorem 2, the shift leaves the joint law of the directions and of unchanged. It multiplies every radius by , so changes by . Hence is a function of alone, and (10) follows by differentiation.
Neither uniqueness of the stationary law nor detailed balance is assumed. Uniqueness is needed only to identify stationary states reached independently, for example from different seeds. Such states need not correspond. For SGD with one group of dimension , (10) is the Maxwell relation with coefficient . This is the relation that Sadrtdinov et al. [1] derived from the ideal gas and confirmed within about 3% for ResNet-18 on CIFAR-10. The corollary explains why it survives where the gas law with a fixed noise strength fails. It also explains why their noise level depends on only. For AdamW the coefficient is , exact as . If the learning rate and decay shared by the head are varied as well, the relation acquires a correction set by the response of the head (Section 5.4). The relation follows from a symmetry of the dynamics, not from a Gibbs form of the stationary law.
3.3 Loss balance
Proposition 4 (Loss balance). Let the update be with any independent of the evaluation batch . For (2), . Then, for any network,
For a fully scale-invariant network, and give . For SGD this becomes
Proof. (4) at is the definition of . Average over , which is independent of and of . Then use . For the scale-invariant form insert (1).
We call the loss-balance ratio and its remainder prediction. Since (11) is an identity, for any network. The agreement in data is a check of stationarity and of independent estimators (Section C). The physics is in the decomposition: how much of the deviation from the quadratic model sits in , and how scales with . For SGD with and , (12) is the linear fluctuation-dissipation relation (FDR) (24) with , including its edge term . Every deviation from the linear FDR is then the finite-step remainder.
3.4 Gradient memory: finite-decay identity and curvature transport
With memory, define the drifts and , the remainder expectations , and the response of the loss to a global rescaling of all parameters,
For a fully scale-invariant network . For exactly invariant groups coupled to non-invariant parameters, . The fresh noise is conditionally unbiased given the past.
Theorem 5 (Finite-decay, finite-window identity). For gradient memory (2) with common , and for all parameters, on any network,
Define the linear-FDR ratio , the linear value of the update curvature (Theorem 9) and . For a fully scale-invariant network, in a stationary state,
The proof (Section B) uses only the loss expansion along the step, the definition of and the unbiasedness of the fresh noise. No quadratic approximation, Gaussian noise or limit is needed. Scale invariance enters only through . The relation (15) additionally uses and . A non-invariant block therefore enters through the measurable term rather than as an unspecified correction. Because (14) and (18) are identities, evaluating them numerically validates the estimators and the accounting of the terms, not a predictive model. The content lies in the size and sign of the individual terms, which the identities do not fix. In the teacher–student network with a trained output layer and common , (14) holds within its statistical error of . The form without the head term, in contrast, misses by up to 1.5%, 60 standard errors (check N6 in Section H). For , and exactly. Then (15) reduces to the stationary form of (12), . For ,
When or a reference denominator is poorly resolved, the unnormalized form (14) is the one to test. For a fully scale-invariant network, an intermediate step of the proof gives the first-moment relation . Without remainders and drifts it gives . On average, the memory is thus anti-aligned with the current mean gradient.
Proposition 6 (Curvature transport). With and the curvature transport
gradient memory obeys, on any network and without any stationarity assumption,
Proof. Let be the pre-update curvature. Since the fresh noise is conditionally unbiased, . By definition . Eliminate and use .
Divided by , (18) is an exact accounting of the update-curvature deficit into a mixed term and a transport term, which includes the drift of the memory curvature:
The identity needs neither scale invariance, nor Gaussian noise, nor a fixed Hessian, nor a quadratic loss, nor . It distinguishes the curvature of the current update from the curvature of the memory before the update. Apart from the mixed term , the update curvature falls short of its linear value exactly when the curvature seen by the same direction decreases after the step. The factor (4.26 for ) quantifies the amplification of curvature transport by gradient memory. The average keeps re-using its direction while the weights move along it. With , and . At stationarity, where , (18) then gives . Otherwise the numerator contains the additional term . Together with (16), this expresses through , , and . At finite , and differ by the terms of (21) below. Both contain geometric contributions of order from the change of the radius along the step. In the teacher–student runs of Section 6.2, and for with negligible anharmonicity. In addition, the radial part of the memory contributes to (Section A). The relations to use are then (15) and (18). The geometric parts must be separated before or is read as transport of the landscape curvature.
3.5 Curvature changes and the arrow of time
The displacement-weighted change in curvature provides a diagnostic of the arrow of time. It changes sign when the order of two consecutive parameter states is reversed. A nonzero mean therefore demonstrates time-reversal asymmetry of their joint distribution. Its mean and second moment give a lower bound on the relative entropy between the forward and reversed pair distributions.
Proposition 7 (Curvature change along a step). For consecutive states define
(i) On any network . Hence every reversal-symmetric law of consecutive states, , has . A nonzero mean therefore witnesses time-reversal asymmetry. The converse does not hold: for a constant Hessian in any process. (ii) For a fully scale-invariant loss, is invariant under a global rescaling of and is compatible with Theorem 2. (iii) For gradient memory with decay, and
with . Hence alone is a pair-reversal observable only for . (iv) Let be a law of consecutive pairs , such as the stationary law or the transition law averaged over a finite window. Let and . If ,
Proof. (i) follows from exchanging and in (20). (ii) for a scale-invariant loss, and the two displacement factors contribute . (iii) Insert . (iv) is proved in Section B with the inequality and Cauchy–Schwarz.
The bound (22) concerns pairs of parameter states. It needs no stationarity; for a window average it measures the pair asymmetry over the window. It is not the thermodynamic entropy production of the full optimizer. For that quantity, the memory variables, the reversal operation and the trajectory-length limit would have to be specified [24, 25]. Discretizations of reversible diffusions are in general irreversible themselves [8]. What the proposition adds is the following. For , the curvature transport that controls the memory correction to the FDR is the mean of this observable. The anharmonicity of the loss thus enters the memory dynamics through a time-reversal asymmetry. At finite decay the two differ by the terms of (21). In the teacher-student runs, , whereas for . Because the transport is the mean of a pair observable, Gaussian noise does not by itself make it vanish. The relevant condition is the symmetry of the consecutive-state law, not of one fresh kick. For scale-invariant SGD with , the radial update constrains the support of the pair law (Section B). If the radius of an invariant group changes with nonzero probability, the pair law is not absolutely continuous with respect to its reversal, and . Dynamics with constant radius are not covered by this argument. Squaring a noisy estimate of biases (22) upwards by . This is the leading contribution of the noise in the numerator; estimating adds smaller covariance terms. We report it as the noise floor of the bound.
4 Harmonic fluctuations and the spectral equation of state
We now linearize the angular dynamics around a stationary direction and solve the resulting models exactly. Write the tangent displacement along fixed tangent vectors (the Hessian eigenvectors on the unit sphere at ) as . The corresponding angular noise has variance .
4.1 Mode temperatures and the linear FDR
Proposition 8 (Mode temperatures). For a quadratic mode with and in the surrogate (SGD; Theorem 10 for ), and for its gradient-memory analogue with , the stationary variance is
is the temperature of mode in the continuous-time (SDE) limit. It is the same for all modes only for isotropic noise. The factor is the finite-step correction. It breaks equipartition even for isotropic noise. The temperature also diverges as the mode approaches the stability threshold. For Gaussian additive noise, each stable harmonic mode has a Gaussian stationary law with the variance (23). To first order in this modal law is the Gibbs law of the shadow loss at the temperature . The correction in the shadow loss has the opposite sign to that of the modified loss of backward error analysis [34, 35]. The modified loss governs the mean drift rather than the fluctuations. A joint Gibbs law of the shadow loss at a single temperature requires, in addition, isotropic noise (equal and no covariance between modes). For non-Gaussian noise (23) still holds, but the variance does not determine the stationary law. For example, for with and independent innovations, the stationary third cumulant is . It is nonzero for skewed noise. For SGD the factor appears in [17]. With heavy-ball normalization, is larger by .
Proposition 9 (Linear FDR and memory relations). For a quadratic loss with constant and (not necessarily commuting), , and all modes below the threshold,
(24) and with memory
Proof. For SGD, multiply the Lyapunov equation by and take the trace. In the eigenbasis of , all traces involve only diagonal entries of . These depend only on the diagonal of . It therefore suffices to solve the Lyapunov equation of one memory mode (Section A).
The continuous-time (ideal-gas) value of is . The second term of (24) is the edge term. It is significant for SGD and negligible with memory at unless . With memory and small , consists of two parts. The fresh noise in the current update gives . The correlation between the current gradient and the noise stored in the memory gives . For this is of the total. This second part relies on the linear response of the gradient to the steps taken while the noise is stored. This is where curvature transport enters (Section 5.3).
4.2 Weight decay in the angular dynamics: a geometric mean-field approximation
Weight decay enters the tangent dynamics twice, in addition to the radial effects discussed below. First, renormalization contracts every by per step on average. Second, the curvature of the sphere adds to the gradient component . Here (over the coordinates of one group) is a fluctuating quantity. Indeed, with and , one has . In addition, .
Approximation 10 (Geometric mean field). Replace by and the radius ratio by one. Stationarity of then fixes . This holds with and without memory, because the memory averages past gradients and in a stationary state (Section B). For SGD the resulting surrogate is
in which the two terms cancel. This cancellation holds within the surrogate. Beyond the surrogate, the radial step adds the effect (29). With memory the surrogate is
in which the two terms do not cancel. Here the restoring force acts through the memory, while the contraction acts directly.
Lemma 11 (Exact covariance of the surrogate). The stationary variance of (27) with is
The proof is the discrete Lyapunov solution (Section A; check N1 in Section H). Weight decay thus lowers the temperature factor of every mode by . It also lowers the threshold from to , so that . The variance itself changes by the factor . It decreases far from the threshold but increases for , as long as the mode remains stable, . For , and the factor is 0.992. The same q appears in (8). As , (28) reduces to (23). The factor is the part of the decay effect that is enhanced by the memory time .
The surrogate does not determine the remaining terms. They come from the radial parts of the step and of the memory, which the tangent description drops. They enter the exact relation (15) through and through geometric contributions to the remainders. In the memory-free limit the radial part separates exactly. For SGD on a fully scale-invariant network and , with the tangent displacement . Hence . Let be the remainder of the quadratic model along , with normalization , . The stationary loss balance then gives exactly
which complements . In the latter, the full-step remainder contains the radial contribution (Section A). The radial factor raises . The tangent remainder is of the same order at stationarity, because the norm balance makes the squared angular step . Its sign is set by the anharmonicity of the loss along the step. The total change of is therefore not universally positive. With memory, the radial memory component is correlated with the step length. For this case we have no closed form. In exact sphere simulations and in the teacher-student network (Sections 6.1 and 6.2), vanishes to this order for a quadratic angular loss and is negative for the network. With memory, the terms beyond the per-mode factor are of order in these simulations. Their coefficient depends on the noise statistics through the correlation between the radial memory and the step length. Its magnitude decreases with the number of tangent dimensions. At long memory it is several times smaller than the effect of the factor itself. The per-mode factor therefore gives the leading behaviour for long memory. The exact relation (15) is the consistent route to the terms. The reason is that the per-mode FDR of the surrogate uses and misses the radial parts of the gradient and memory. This includes the radial part of the memory in (Section A).
The approximation is not an exact statement about the nonlinear sphere dynamics. Its first omitted correlation is visible already for a centred Gaussian local state with covariance . For this state, . The second term is what replacing by its mean drops. Radial fluctuations enter at the same order. In sphere models, (28) nevertheless gives every mode variance to within a few per cent where weight decay lowers the temperatures by a third (Section 6.1). In the networks of Section 6.3 the factor matters only at the largest decay rates.
4.3 Coupled groups: a covariance matrix, not independent gases
Independent scale invariances identify norms and directions on a product of spheres. However, they do not make the groups statistically independent. Collect the tangent coordinates of all groups in and freeze the radii over a measurement window. Let be the block-diagonal angular step. The angular Hessian on the product of spheres keeps its cross-group blocks, and so does the angular noise covariance .
Proposition 12 (Coupled-group covariance and reversibility). Consider the SGD surrogate , . In this surrogate the contraction and the curvature shift of every group cancel as in (26). (i) The stationary covariance satisfies
With , and , in an eigenbasis of with stable eigenvalues ,
(ii) For Gaussian noise and nondegenerate , the consecutive-state law of is reversible if and only if . The lag-antisymmetric covariance measures the stationary probability current. (iii) In particular, two coupled scalar groups with steps , diagonal noise and nonzero Hessian coupling are reversible only if , i.e. if their local noise temperatures agree. Hessian-aligned noise, , gives and a reversible surrogate for any radii.
Proof. (i) is the discrete Lyapunov equation of the surrogate. Transforming to gives . Its solution in the eigenbasis of the symmetric is (31). (ii) A stationary Gaussian autoregression is reversible iff is symmetric. With symmetric, this is . Then commutes with . Conversely, makes (31) diagonal in a common eigenbasis. (iii) follows by writing out .
The stationary discrete covariance of a single group is known [17]. The content here is that unequal radii and correlated groups do not admit independent scalar temperatures or a common angular learning rate. It is also that exact norm balances do not imply an equilibrium mixture. Coupled groups can carry stationary probability currents. Reversibility alone does not imply a common mode temperature: in the coordinates , a common temperature, , requires , which is stronger than . At the teacher of a realizable teacher-student model the noise is Hessian-aligned. There the surrogate is reversible even with unequal radii. Away from the teacher, or for an unrealizable teacher, the alignment is only approximate (Section 6.2). With memory the same construction applies in phase space with the shifts of Theorem 10 taken per group. There we treat and as even variables and report the lag-antisymmetric covariance in these coordinates. A reversal with odd memory would be a different test, and neither is the entropy production of the optimizer.
4.4 Self-consistent radius and the spectral equation of state
Self-consistent radius. In this subsection we consider one group and write for its dimension. For isotropic noise with angular variance per tangent direction and SGD, (7) with (23) gives the self-consistency condition
to leading order in . The radius here is a representative radius. The exact balance fixes , and evaluating averages that contain at this radius is part of the approximation. With gradient memory the same condition follows from (8) at leading order in , because the factors and cancel; this requires to be small. Here averages over the tangent modes, and is the ideal-gas radius at fixed angular noise. Since , the radius adjusts until (32) holds. The ratio is the mean normalized mode temperature , so that . It is dominated by the modes near the threshold. The right-hand side diverges as . Within this self-consistent harmonic model, at leading order in , the stationary therefore stays below 1 for every . With anisotropic noise we use (7) with from (24) and the measured noise traces. Only is then predicted.
Spectral virial law. Define , the pressure , , the angular temperature and the excluded volumes . Then , and (32) reads
For equal curvatures this is , the excluded-volume part of the van der Waals law. With the nominal temperature of [1],
with equality for equal curvatures. The virial coefficients are thus moments of the curvature spectrum rather than fitted constants. There is no attractive term. At fixed , decreases monotonically on the stable branch . Hence there is no loop and no coexistence. Since , these coefficients are not material constants. Under the rescaling of Theorem 2, , and the coefficients scale with the corresponding powers, . The law follows from the harmonic approximation at leading order in . It is not a finite-decay identity. The two radius baselines of (9) give different ratios in this model: , whereas . The reason is that the measured noise trace itself scales as . In networks with anisotropic noise the moments are noise-weighted. To first order, .
Spectral entropy and stored-gradient information. By Theorem 3, for corresponding stationary laws the shell entropy of SGD and gradient memory has the form , with and a function that the symmetry leaves undetermined. An estimator bias that depends on alone also cancels in (10). Agreement with (10) therefore does not test the -dependence of an entropy estimate. Starting from the covariance (23) [17], the harmonic theory identifies a spectral contribution to this dependence.
Proposition 13 (Spectral entropy and stored-gradient information). Consider the zero-decay harmonic surrogate of Theorem 8 with i.i.d. centred Gaussian additive noise, for independent modes (angular curvature and noise covariance diagonal in a common basis) with and . Let be the stationary covariance of the modes and the continuous-time covariance, . Then: (i) the finite-step entropy excess is
(ii) for one group with isotropic noise , the function of (33) obeys, at fixed , angular spectrum and ,
(iii) with the memory before the update, at equal times every mode has and . Hence
Proof. (i) follows from (23); the noise amplitudes cancel in the ratio. (ii) at fixed , and . (iii) In one mode, , and (25) gives and , using . Therefore , and the Gaussian conditional variance is . The mutual information of a Gaussian pair is , and independent modes add.
The finite-step Gaussian entropy excess is therefore equal to the mutual information between the current position and the pre-update stored gradient: conditioning on reduces every mode to its continuous-time reference variance. For , is the preceding stochastic gradient, so the identity does not single out persistent momentum. It does not extend unchanged to non-commuting curvature and noise, to non-Gaussian noise with the same covariance (which preserves these second moments but need not preserve the entropies) or to finite decay, where the surrogate (28) gives an entropy excess different from . The position process of independent Gaussian modes is reversible. Neither nor therefore measures irreversibility; the pair observable of Section 3.5 provides a separate diagnostic of time asymmetry.
Equation (35) is a spectral derivative identity at fixed angular spectrum, and . It does not establish thermodynamic conjugacy between and : the equation of state (33) is derived from the stationary norm balance, without a Gibbs assumption. For one group with isotropic angular noise , the local Gaussian approximation gives . Within the harmonic approximation, therefore, . The noise strength and the angular spectrum may themselves depend on . With both held fixed, the self-consistency condition (32) determines as a function of and hence predicts the spectral contribution to . The spectral term is the part of produced by the finite step.
AdamW. For isotropic noise and a random basis, Adam’s second moment is nearly uniform, with . In this regime AdamW acts as gradient memory with angular step . Then
The correction has the opposite sign to SGD, with coefficient . The gradient signal inflates the second moment, which shrinks the effective step and the radius.
Concentration at the threshold. Whether the excess temperature then concentrates in one mode depends on the spectrum near its upper edge. Suppose that the top curvature is isolated from a bulk with limiting density . Suppose further that the angular noise scales as with the number of tangent modes. Then the harmonic self-consistency (32) has a transition at , with . The transition is analogous to Bose–Einstein condensation. For the top mode carries the share of (Theorem 16 in Section B). A remark there treats a bulk extending to . The transition concerns the harmonic model only. The macroscopic top-mode fluctuation it predicts can invalidate the quadratic approximation. The predicted transition is therefore not by itself evidence for condensation in a network. In a sphere model with an isolated top mode the simulated top-mode temperature follows this prediction across the transition (Section 6.1).
5 Beyond the harmonic approximation
5.1 Smooth nonlinearity and activation boundaries
The remainder profile distinguishes two mechanisms. For a smooth loss the remainder is of third order in the step, . Therefore unless the cubic coefficient vanishes by symmetry. A ReLU network is piecewise smooth. Units whose pre-activation changes sign along the step contribute curvature that the regular Hessian does not contain.
Lemma 14 (Expected Taylor remainder of an activation). Let be a pre-activation and its change along the step. Let the conditional density of given be twice continuously differentiable, with , and bounded and integrable. Let grow at most linearly, with a finite measure (for ReLU the Dirac mass at 0), so that the integrals below exist and the boundary terms of the integrations by parts vanish. Let . Then in the sense of distributions, and
For ReLU, , while the regular second derivative vanishes almost everywhere. The quadratic model therefore misses , a remainder . For a smooth activation of any width (e.g. the shifted Softplus ), the regular second-order term has conditional expectation exactly . The averaged quadratic term is then correct through second order. Since has unit integral, the remainder after it obeys uniformly in .
Proof. , so after two integrations by parts, and .
The cubic coefficient depends on in general. When the pre-activation density varies slowly across the smoothing region, it approaches the width-independent limit . Two consequences are testable. (a) In the ensemble regime considered here, ReLU boundary crossings can give a nonzero plateau at small . Its value, the singular curvature along the step relative to , can have either sign or vanish. (b) Replacing ReLU by Softplus removes this plateau at any , including much smaller than the step in pre-activation units. The law is an ensemble statement. For a fixed finite batch and a small enough step, no unit crosses its threshold. For a finite empirical loss the boundary term is likewise understood distributionally: at a generic point, the ordinary Hessian of a finite average of piecewise-smooth losses equals its regular Hessian. The network remainder measurements capture the ensemble-averaged effect over finite displacements, and the regime need not persist to arbitrarily small for a fixed finite set of states and examples. In the Gaussian-input model of Section 5.2, input averaging gives an ordinary population-Hessian difference. The lemma also shows why, for ReLU, is not the second derivative of the mean remainder. Already for , , while the regular samplewise second derivative vanishes almost everywhere. Of the relations derived from a single power law of (Section 5.3), therefore holds for kink remainders too, since . However, holds only for smooth remainders.
5.2 Singular curvature of normalized ReLU committees
For Gaussian inputs the singular curvature can be computed in closed form. Let . The student is with , and the teacher is with unit . The loss is the half-squared error, with independent zero-mean label noise. This noise does not change the following. Here is the population Hessian minus the expected regular samplewise Hessian.
Proposition 15 (Singular curvature of a ReLU committee). Let , and , with the continuous limit at . Then is block diagonal in the raw hidden weights, with
Consider a single unit with , , and let . A tangent perturbation then has
negative semidefinite for and vanishing at alignment and anti-alignment.
The proof (Section B) conditions on the hyperplane , on which the student unit vanishes. Off-diagonal singular blocks vanish because each gate depends only on its own hidden weights. Ordinary cross-block curvature remains. Student-student and student-teacher terms compete, so a committee has no universal sign. At an exactly matched teacher they cancel. The single-unit case (40) shows that batch normalization is not necessary for negative singular curvature. It does not imply that the singular curvature of an arbitrary network is negative.
We evaluate (39) at fixed states with nonzero residual. These are committees with units, unequal radii and mixed-sign output weights. The reference is the population Hessian of the arc-cosine kernel [36] minus a Monte Carlo estimate of the expected regular Hessian ( inputs; check N8 in Section H). The two agree to within on entries of size 0.47–0.78, which is the Monte Carlo error. The off-diagonal singular blocks vanish to the same accuracy. The committee eigenvalues of have both signs (-0.95 to +0.07).
5.3 Curvature transport and smooth-remainder approximations
By (15) and (18), what the single-step remainder does not explain enters in two ways. It enters through , i.e. through the curvature transport amplified by . It also enters through the mixed term. To predict from the single-step remainder alone, the endpoint quantities and must be expressed through (a moment closure). Suppose that the mean remainder along the actual step is a single power near , . Then and . The relation for holds for smooth remainders only (Section 5.1). With and it follows that
We call the case n = 3 the cubic-remainder approximation. To first order in it gives
with for (2.3, 29.3 and 149 for , 0.95 and 0.99). Within this approximation, gradient memory therefore amplifies the single-step anharmonicity by an order of magnitude. The nonlinear form matters already at , where it gives against 0.715 from (42).
A one-parameter extension. The cubic approximation fixes both endpoint ratios by . A remainder along the step relaxes this. It gives and , with the effective quartic fraction . For every the two ratios obey
For fully scale-invariant networks and a measured , inserting (43) into the exact stationary relation from (16) and (18) gives
The approximation lies in (43) and in neglecting finite decay and drift. In the Softplus networks (43) holds on both datasets to within 1% of (Section 6.3.3, Section E). The cubic relation holds approximately on CIFAR-10, where . It fails on CIFAR-100, where . The general transport identity is unaffected by this difference; only the local approximation changes.
Conditions of validity. The error of the approximation can be stated in measurable quantities. Define , , , , , and . The exact stationary relation is . Whenever and , it implies
(checked on random parameter sets). To see this, write and , so that . Then , with and . Long memory increases the sensitivity to an inaccurate endpoint curvature change through . Finite-decay and finite-window terms must be added through Theorem 5, not hidden in the error. The approximation does not predict the remainder from the Hessian. Additional information about the landscape is unavoidable. The transport identity does not require Gaussian noise, a fixed Hessian or free displacement. The reduction to the single-step remainder additionally requires control of the endpoint derivatives of the mean remainder and of the mixed term. A one-dimensional toy (Section D) shows both regimes. With skewed kicks and a tilted log-cosh potential, whose expansion about its minimum has a cubic term, soft modes () have and , close to the cubic values. For these modes the approximation is accurate. Stiffer modes have a smaller transport, and the approximation overshoots. With Gaussian kicks the transport is small but nonzero, and the single-power form fails. The validity of the approximation is therefore decided by endpoint measurements, not by a noise-skewness or stiffness criterion. In smooth networks the endpoint measurements give up to less than 1% of . This is (43). One measured ratio then fixes both (Fig. 1c). The approximation concerns smooth remainders. A boundary remainder (Theorem 14) has no counterpart in the change of the regular Hessian. For ReLU networks the transport must therefore be measured, not inferred from (Section 6.3.3).
5.4 Networks with non-invariant parameters
In a batch-normalized network each normalized output channel is its own sphere. Tensors that write to a residual stream that is always read through a normalization are invariant only jointly. The normalization affine parameters and a trained head are not invariant. Three statements remain exact in this setting. (i) The norm balance (7)–(8) of every invariant group holds while the other parameters are trained. (ii) The rescaling of Theorem 2 remains a symmetry when it acts on the invariant groups and their hyperparameters only. What a trained head breaks is the common rescaling of all learning rates, including its own. This common rescaling is the variation used by Sadrtdinov et al. [1] and in our campaigns. The coefficient of (10) then deviates from by an amount set by the response of the head. This is a mechanism for the larger deviations that Sadrtdinov et al. [1] report for partially invariant models. At fixed head hyperparameters the relation is exact. (iii) Let the update be (2) with , and common to all parameters. (AdamW has a different, adaptive update.) Then the finite-decay identity (14) holds with the measurable head term . Here for exactly invariant groups and in general, including groups whose invariance is broken.
Locally the radii determine a block-diagonal angular step. The Hessian and the noise covariance, however, retain cross-group couplings. The stationary covariance therefore follows from the matrix Lyapunov equation of Theorem 12. The Gaussian surrogate of that proposition is reversible precisely when the transformed curvature and noise covariance commute. Reversibility alone does not imply a common mode temperature. A Gibbs law of the harmonic energy requires an additional compatibility between noise and dissipation. The non-invariant parameters are harmonic modes. For gradient memory with decoupled decay, a mode of curvature is linearly stable for (). This is the period-two boundary of , . The condition reduces to for SGD and to as . A head-like scale sets the curvature scale seen by the spheres. When the angular variables relax much faster than the head, their conditional stationary statistics define an effective averaged force on the head. A potential description requires an additional integrability condition. Invariance can also be broken inside a group. A normalization with fixed maps a rescaling to . The invariance is therefore approximate wherever the batch variance is not large compared with . The violation is measured by . When the gradient and memory of a group vanish (a dead channel), the update (2) contracts its norm by the factor per step. This decay drives the group into that regime.
6 Numerical tests: sphere models, teacher-student networks and convolutional networks
6.1 Sphere models
A single sphere tests the harmonic theory without estimator issues (Fig. 2; check N3 in Section H). It has dimension , Hessian eigenvalues log-spaced in [5,100], isotropic angular noise and .
-
SGD, up to 0.95: the radius is within 0.03% of (32), where the fixed-angular-noise ideal-gas radius is off by up to 48%. The mode variances are within 0.7% (top mode 2% at ), against up to a factor 20 for the continuous-time prediction.
-
Gradient memory (): the radius is within 0.03–2.5% and the mode variances within 2.4% of (28) (medians within 0.5%) up to . This holds although reaches 0.56 and weight decay lowers the temperatures by up to 36%. The contraction alone, without the curvature shift, leaves deviations of up to 5%. Closer to the threshold () the chains make intermittent large excursions of the top mode. At the largest settings they settle in a large-amplitude state outside the harmonic description.
-
AdamW (rotated basis): second moment within 0.1–1.9%, mode variances within 2–7% and radius within 1.4–5.0% of the self-consistent prediction. The squared radius falls to 0.27 of its ideal-gas value at , the opposite sign to SGD.
-
Concentration (SGD, 49 bulk modes in [5,50] and an isolated top mode at 100; check N4 in Section H): as goes from to the top-mode temperature grows from to . It matches the large- formula () to within 3% for , with a smooth finite- crossover near . As grows, saturates just below 1, and the bulk is unchanged. The radius agrees within 0.11%.
-
Finite decay (quadratic angular loss, isotropic tangent noise, ; check N5 in Section H): for SGD , the radial factor of (29) with . With memory, follows the per-mode factor of Theorem 11. This factor departs from 1 by up to . The remaining difference is between and and shrinks with the number of tangent dimensions (N5). Equation (15) holds in every run to .
-
Scaling symmetry: leaves the angular statistics unchanged and gives ratios 4.000 (SGD), 4.001 (memory) and 16.007 (AdamW), as Theorem 2 requires.
-
Geometric terms (Theorem 10): with Hessian-aligned noise and , the one-step regression coefficient of a soft SGD mode is 0.9812, against and . In addition, (SGD) and (memory). With and evaluated exactly at the current , the memory FDR with the per-mode factor alone has residuals of 1.3% and 0.5% at and . These are the remaining terms of Section 4.2.
-
Mixture (three spheres of 20 modes with different noise and a head, , SGD on all parameters): group radii within 0.6%, head mean within 0.1%, mode variances within 1%, head variance within 10–37% (adiabatic approximation). The coefficient of (10) under a common rescaling of all learning rates is 30.00 with the head frozen (exact: 30) and 34.96 with a trained head, against 35.09 predicted. The head thus breaks the common rescaling by 17%, as predicted. At fixed head hyperparameters the relation is exact.

Figure 2: Sphere model (d = 51). (a) Mode temperature against the edge ratio. SGD, gradient memory and AdamW follow (the continuous-time limit predicts 1). With memory, and of (28) are plotted. Open symbols mark runs with intermittent excursions ( ). (b) Stationary squared radius relative to the square of the ideal-gas radius at fixed angular noise ( for SGD and memory, for AdamW). Simulation against theory, no fitted parameters. (c) Approach to the threshold at fixed learning rate. For SGD the temperature of the top mode grows with (concentration in the top mode). With memory the chains leave the harmonic regime (open symbols: large-amplitude states).
6.2 A teacher-student network with an analytic population loss
The normalized soft committee machine [27] has an analytic population loss. The loss and all its derivatives at and are therefore evaluated without Monte Carlo error. Hence so is every term of Theorems 4 to 7. Only stationary averages (and estimated noise covariances) carry sampling error. The student is with and . Every hidden unit is therefore a scale-invariant group. The teacher has orthonormal directions and the same activation. Changing the width thus changes teacher and student together. Inputs are , labels with unit-variance noise , and the loss is . With the overlaps and and the Gaussian kernel for unit vectors
We use , () and width (wide) or 0.1 (narrow, anharmonic on a smaller angular scale). The output weights are equal, , for SGD and graded, , with memory. Derivatives are automatic derivatives of (46) in float64. At the realizable teacher, under these assumptions, the noise covariance is exactly . This alignment is a property of the model at the teacher, not a general network identity. Chains run in parallel (128 chains, 20,000 measured steps after 5,000–20,000 steps of burn-in). By Theorem 3 only matters, so we set .
A symmetry of the label noise. For this model with inversion-symmetric inputs and no biases, the residual and the Jacobian are odd in . Hence the sample gradient is unchanged when is replaced by . Flipping both with an independent random sign therefore leaves every sample gradient, and every trajectory, unchanged. Under the flip the input law stays Gaussian and the label noise becomes symmetrized. The dynamics depends only on the symmetrized label-noise law. Our runs with centred-exponential label noise are therefore runs with a symmetric, non-Gaussian (Laplace-like) noise, not a skewness intervention. Skewness is tested in the toy of Section D, where the kicks are injected directly.
Table 2: Teacher–student, SGD (7 of 16 runs; , Gaussian label noise of level , equal output weights). Mode variances relative to the surrogate (26): stiff modes (the two upper Hessian levels) and soft modes (44 of 60). In parentheses, soft modes against the contraction-only form .
| stiff var/pred | soft var/pred | |||||
|---|---|---|---|---|---|---|
| 0.30 | 0.142 | 1.157 | 1.000 | 0.997 (1.091) | ||
| 0.10 | 0.307 | 1.419 | 0.999 | 0.999 (1.042) | ||
| 0.10 | 0.389 | 1.598 | 1.002 | 1.011 (1.114) | ||
| 0.30 | 0.316 | 1.431 | 1.004 | 1.034 (1.466) | ||
| 0.10 | 0.447 | 1.743 | 1.008 | 1.044 (1.351) | ||
| 0.30 | 0.399 | 1.595 | 1.015 | 1.106 (2.188) | ||
| 0.10 | 0.475 | 1.795 | 1.021 | 1.108 (2.015) |

blue: wide, orange: narrow, ○ Gaussian noise □ non-Gaussian ● filled: ; open: — predicted memory term
Figure 3: Teacher–student network with gradient memory (24 runs; graded output weights, , , 128 chains, 20,000 measured steps), against the memory parameter . (a) Relative residual of the exact finite-decay relation (15): the measured divided by the right-hand side of (15), evaluated with the measured , and , minus one. (b) Curvature-transport contribution: the narrow-to-wide ratio divided by the ratio of the single-step remainder brackets of (15). It is compared with the predicted memory term (bars). (c) The signed arrow-of-time observable . It is negative and geometric for the wide activation and positive for the narrow one at . Error bars are one standard error over chains. The full table is in Section F; check N7 in Section H.
Observation 1 (SGD: finite-step fluctuations in a smooth nonlinear network). With SGD (Table 2), exceeds the continuous-time value by 16–80%. However, the linear FDR with the edge term holds to 0.05–1%. The loss-balance ratio equals , and the norm balance holds to . The remaining excess, , corresponds by (29) to a negative tangent remainder, . The top modes ( up to 0.48) follow to within 0.1–2%, where the continuous-time prediction is off by 16–94%. The soft modes follow the surrogate (26) to within 1.1% for and 3–11% for . These deviations are the neglected higher-order geometric terms of Theorem 10. The contraction-only form is off by up to a factor 2.2.
Observation 2 (Gradient memory: exact relations, geometric decay effects and transport). With memory ( , 0.9, 0.95; and ; Fig. 3) the linear-FDR ratio ranges from 0.977 to 1.020. (i) Exact relations. (15) holds: measured over predicted c is 0.9998 (s.d. 0.0009, range 0.9977–1.0017, RMS 0.8 standard errors over the 24 runs). The transport identity (18) holds to within 0.16%. The norm balance holds to within 0.03%. (ii) Geometric decay effects. With the wide activation the remainders are small ( ) and largely geometric. Here c falls below
1 as grows, to 0.977–0.980 at , . The per-mode factor of Theorem 11 gives the size of the effect (0.981 there). However, lies below it in all 12 wide runs, by 0.1–4.1 standard errors. With Gaussian label noise at the difference is . This is the size of the terms that the factor does not capture (Section 4.2) and that (15) accounts for. The curvature change of these runs is itself geometric, for . It comes from the change of the radius along the step. The radial part of follows (47) at every , exceeding it by at most 5.3% (narrow activation: 14%). With the symmetric non-Gaussian label noise is 0.15–0.29% lower than with Gaussian noise of the same variance in all six wide pairs. This is an effect of higher noise moments. (15) holds for both. (iii) Curvature transport. The narrow activation gives a positive remainder . For the ratios are and , not the cubic values 3 and 6. Comparing the narrow with the wide activation at the same approximately removes the leading geometric contribution. The ratio should then equal the ratio of the remainder brackets of (15) times the memory term , . This term uses only the difference of the two curvature changes. The measured ratio equals this product within 1.9 standard errors in all 12 pairs (RMS 1.0). At and the memory term is 1.01–1.25%, 4.3–10.6 times the single-step bracket. In these runs omitting it misses the measured ratio by 7.4–10.0 standard errors. At the memory term is to .
The model thus resolves the curvature-transport contribution and its -dependence on a small positive remainder. For , the anharmonic transport correction isolated by the narrow–wide comparison is positive. The total ratio can nevertheless lie below one because of geometric decay effects. It tests the endpoint relations, not the cubic-remainder approximation. It does not satisfy the endpoint ratios of that approximation. With equal output weights the mode variances follow (28) to within 1% (stiff modes) and 2–4% (soft modes). Exploratory runs with an unrealizable teacher, widths down to 0.04 and up to agree with the per-mode factor to within 1.5% (check N7 in Section H).
Observation 3 (Coupled groups with unequal radii). With graded output weights the stationary radii of the four hidden units differ by a factor of 8. For SGD (six runs: four with a realizable teacher at and , two with an unrealizable one, , at ) a common angular step fails. The single- mode prediction is off by factors 0.42–0.60 for the stiff modes and 2.1–9.3 for the soft ones. The coupled surrogate of Theorem 12 is evaluated with the measured radii and the measured angular noise covariance. It gives the stiff-mode variances within 0.6% and the soft ones within 0.5–1.2% at (4–9% at , the higher-order geometric terms of Observation 1). It also gives the full covariance matrix within 1.3–7.4% in Frobenius norm at (6.7% and 16.1% at ). Near the realizable teacher the noise is Hessian-aligned. By Theorem 12(iii) the surrogate is therefore nearly reversible despite the unequal radii (predicted relative current ). For the unrealizable teacher the measured noise is aligned as well (predicted ). The measured relative current (here are the tangent coordinates of all units, not the inputs) is 0.002–0.007. It was recorded in these runs without an estimate of its sampling floor. It is 0.003 also where is predicted. We therefore do not regard it as resolved. With memory, the same analysis in phase space was applied to the runs of Fig. 3. These runs were repeated with the full covariances and a noise-floor estimate of the current recorded (same trajectories). Of the 24 runs, 22 completed. The two non-Gaussian runs at , did not finish within the compute window. With the wide activation the stiff modes agree within 0.7%. The soft ones agree within 1.4% at and are 8% below the prediction at , where their relaxation times approach the measurement window. The single- prediction is off by factors 0.61–0.62 and 1.9–2.1. The predicted current is at most . The measured one equals its sampling floor (ratio 0.97–1.04). With the narrow activation the loss is anharmonic on the scale of the fluctuations. The linear surrogate fails for the variances (stiff modes 3–19% and soft modes 15–77% above it). However, the predicted current at , , is resolved. The measured one is , 1.8-2.6 times its floor and 0.74-0.85 times the prediction. At the predicted current, , is below the floor. The measured one is 1.0-1.2 times the floor.
A minimal model makes the distinction concrete. It has two coupled spheres with two tangent coordinates each, a cross-coupled quadratic loss and isotropic noise of angular variance , (4,000 chains, measured steps; check N9 in Section H). With nearly equal noise temperatures ( to within 1%) the antisymmetric lag covariance between the coupled coordinates is against predicted for the residual mismatch. With temperature ratios 2.1 and 4.2 it is and , against and from Theorem 12. Both groups satisfy their norm balance exactly. The stationary state nonetheless carries a probability current set by the mismatch of the local noise temperatures.
Arrow of time. The mean of the pair observable, , differs from zero in every run, by 13 to 277 standard errors (Fig. 3c). The parameter trajectory thus shows a resolved time-reversal asymmetry. With the wide activation is negative and geometric (Observation 2(ii)). With the narrow activation it is positive for . Its excess over the wide value is the transport of Observation 2(iii). For SGD the radius of each hidden unit changes with probability one. The pair law of the parameters is then singular with respect to its reversal, and (22) carries no information (Section B). With memory the radial part of the step contains the memory, per group. That argument therefore does not apply. Here (22) gives per step in the 22 repeated runs, to times its noise floor. The two activations give bounds of the same size. The bound therefore does not separate geometric from anharmonic irreversibility. In addition, it concerns the parameter pairs alone, not the entropy production of the full optimizer.
ReLU. With ReLU units the singular curvature along the step is measured as the population Hessian minus the regular Hessian of an independent batch. Along an SGD trajectory at it is of , and Theorem 15 gives . It is negative, as in the batch-normalized ResNets of Section 6.3, but 3.3–5.6 times smaller.
The smooth teacher-student model is therefore nearly harmonic per step. The departures of the networks below need an ingredient it lacks. Batch statistics, cross-entropy far from its minimum, depth and a finite training set are candidates. The explored family does not establish which of them is necessary.
6.3 Scale-invariant convolutional networks on CIFAR-10 and CIFAR-100
Setup. CIFAR-10 and, in campaign v4, CIFAR-100 [37] (each normalized with its own channel statistics), batch size 128 (each batch drawn uniformly with replacement from the training set, independently at every step, with independent random crops where used; there are no epochs), batch normalization with batch statistics. Thin SI ResNet-18: pre-activation ResNet-18 [38] with widths (4, 8, 16, 32), every convolution followed by an affine-free batch normalization, no biases and a fixed random head. It has 43,692 parameters in 300 channel groups and is the fully invariant model of Sadrtdinov et al. [1]. SI ConvNet: four convolutions of widths (8, 16, 32, 64) with affine-free batch normalization, max-pooling and a fixed head. It has 24,408 parameters in 120 groups. Practical ResNet-18 of [1]: width 8, normalization with affine parameters, trainable head, random crops. Of its 176,178 parameters, 73,728 form 240 per-channel groups, and 100,824 are invariant only jointly (one group per stage's residual stream). The remaining 1,626 are Euclidean (Section 5.4). Activations are ReLU or the shifted Softplus , applied to normalized pre-activations. Hence is in units of the pre-activation scale. Scale invariance is then preserved up to the normalization constant (Section 5.4). We measure the invariance directly at every diagnostic point (check N13 in Section H). The first measure is the relative response factor
of the weakest channel on the diagnostic batch. A rescaling of the channel by changes a normalized output by . The second is the Euler residual of the invariant parameters, which vanishes for exact invariance. In the scale-invariant models of v1-v3, the response factor of the weakest channel has median and maximum over 2,176 diagnostic points of 128 runs. In these models , and the Euler residual contributes at most of the norm balance. In the CIFAR-100 runs the response factor stays below , and the Euler residual of each group is at most (median ). In the practical ResNet the weakest channel is far from invariant. Its response factor exceeds at 97% of the points (median 0.36; dead channels in 8 of 31 runs). The joint Euler residual of all invariant groups stays below and contributes up to 12% (median 0.8%) of the norm balance. This aggregate can hide cancellations between groups. The response factor is not a bound on the residual of , which also involves downstream derivatives. We therefore report both.
Unless stated otherwise, a run of v1-v3 has clip(10/, , ) steps (the radius relaxes at rate ). Diagnostics are taken at 16 points (32 in v3 and v4), evenly spaced in the last 40% of the run. Campaign v1 (119 runs): thin ResNet with SGD (, , 13 values, 2 seeds), EMA momentum (, ), AdamW (, ), symmetry pairs at fixed for SGD and AdamW, the SI ConvNet ( steps), and the practical ResNet with SGD and AdamW. Campaign v2 (28 runs) addresses the finite-step remainder, with ReLU against Softplus . It comprises the thin ResNet with SGD at (2 seeds), EMA and AdamW at , and the practical ResNet with SGD at . Campaign v3 (12 runs): EMA momentum in the thin ResNet (, , ReLU and Softplus 0.5, 2 seeds) and in the practical ResNet (, ), steps. Campaign v4 (16 runs): the thin-ResNet settings of v3 on CIFAR-100, with the fixed head of Frobenius norm 10 of Sadrtdinov et al. [1]. The 100 rows of this head have norm instead of . This keeps the logits small (training loss 3.5–3.9, test accuracy 19–29%). We record the head scale rather than retune it. Differences between v3 and v4 therefore reflect the dataset and the head scale together. The accuracies are context, not a benchmark. Runs of steps (seed 0) showed ReLU at still sharpening. In this setting , and rose by 10–59% over the window (3.1–3.5 standard errors each). All settings were therefore rerun with steps (3 seeds), the CIFAR-100 length of Sadrtdinov et al. [1]. Below, v4 denotes these runs. Altogether the four campaigns comprise 175 runs. In the 28 runs of v3 and v4, all with gradient memory, every term of the exact identities is measured directly: 24 production runs, twelve on each dataset, and the four shorter CIFAR-100 runs.
The estimators are described in Section C. Here , , and the Hessian Gram matrix in span come from 400 independent batch gradients and 64–128 Hessian-vector products on fresh batches. The finite-sample biases are removed. As a check, the Gram entry equals by (1). Over 1,920 diagnostic points of the SI models, the ratio has median 0.998 (10–90%: 0.955–1.045). The top three Hessian eigenpairs come from Lanczos on 8 fixed batches. Their Rayleigh quotients are re-measured on 32 fresh batches, and uses the re-measured value. This value is about 0.79 of the fixed-batch value (median). Mode variances come from 1,000 weight snapshots, taken every 25 steps, projected on the top eigenvectors. The remainder (4) is computed in float64 for , with an evaluation batch independent of the step. It is averaged over 128 draws of the step per diagnostic point. In v3 and v4, for 64 draws of the step per point, the loss, gradient and Hessian-vector products of one evaluation batch are computed in float64 at both ends of the step the optimizer would take. This gives , , , and directly. The drifts come from the trajectory (Section C). The v3 and v4 uncertainties are joint (block bootstrap, Section C).

(c) Sharpest mode
(d) Mode temperature
(e) Radius, thin ResNet (SGD)

(f) Practical ResNet
Figure 4: Campaign v1 (thin SI ResNet-18 unless stated). (a) relative to the continuous-time (ideal-gas) value (“SDE”). It is above 1 for SGD and below 1 with memory and AdamW. (b) Relative to the linear FDR (24) with the edge term. SGD comes down to 0.8-0.9 at small . Memory and AdamW are unchanged because their edge term is negligible. (c) Edge ratio of the sharpest mode (curvature re-measured on fresh batches). (d) Variance of the top-3 modes (three SGD models) relative to the continuous-time value, against . (e) Radius of the thin ResNet with SGD, measured and predicted with the edge term, relative to the measured-noise baseline . (f) Practical ResNet-18: ratio of the two sides of the norm balance (7) for 2,928 invariant groups (per channel and joint) in 12 runs.
6.3.1 Finite steps without memory: edge term, radius and mode temperatures
Observation 4 (Continuum limit and edge term). (i) With SGD, exceeds the continuous-time value by 8-50%, increasingly with . At the same time the sharpest mode moves towards the threshold ( ; Fig. 4, Table 3). The edge term carries 17-50% of the linear FDR. With it, for . The edge term thus removes the excess. The remaining 10-20% is the finite-step remainder (Section 6.3.2). (ii) With memory and with AdamW the sharpest mode stays far from the threshold ( ), and the edge term is negligible. In these runs is 3-37% below the continuous-time value. The ideal gas thus fails in opposite directions with and without memory.
Radius. For the thin ResNet with SGD, for , 1.12-1.16 at and 1.19-1.45 at . The prediction with the edge term is (7) with from (24). This is a consistency check at the level of second moments. The prediction is within 0.97-1.01 of the measurement up to , 0.93-0.99 at and 0.86-0.96 beyond. The exact one-step norm balance (Theorem 1) holds with median 1.004 (10-90%: 0.981-1.033) over the 114 runs that learn (test accuracy > 0.2). For the practical model it takes the general form (6) with the cross term. The balance also holds for each invariant group of the practical ResNet (median 1.000, 10-90% 0.93-1.09 over 2,928 groups: 240 channels and 4 jointly invariant groups per run).
Table 3: Thin SI ResNet-18, medians per bin. “SDE”: . “Edge”: share of the edge term in the linear FDR. : relative to the linear FDR (24). : edge ratio of the sharpest mode. Runs per bin: SGD 4, 6, 4, 4, 4; EMA 4, 4, 4, 2, 4; AdamW 4, 5, 4, 3, 4.
| SGD | EMA momentum | AdamW | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SDE | Edge | c | SDE | c | SDE | c | ||||
| 1.08 | 17% | 0.89 | 0.28 | 0.97 | 0.95 | 0.02 | 0.90 | 0.89 | 0.03 | |
| 1.15 | 23% | 0.88 | 0.49 | 0.89 | 0.88 | 0.03 | 0.87 | 0.86 | 0.04 | |
| 1.16 | 26% | 0.82 | 0.54 | 0.78 | 0.76 | 0.04 | 0.76 | 0.75 | 0.05 | |
| 1.35 | 36% | 0.80 | 0.79 | 0.74 | 0.72 | 0.07 | 0.72 | 0.71 | 0.06 | |
| 1.50 | 50% | 0.64 | 1.22 | 0.64 | 0.61 | 0.13 | 0.63 | 0.61 | 0.13 | |
Table 4: Mode test, SGD, (thin ResNet, ConvNet and practical ResNet). Variance of the weight snapshots along the top-3 Hessian eigenvectors, relative to the discrete prediction (“theory”) and to the continuous-time value . Here .
| modes | var/theory, median | mean s.e. | var/continuum, median | |
|---|---|---|---|---|
| [0, 0.3) | 46 | 1.07 | 1.32 | |
| [0.3, 0.5) | 47 | 0.98 | 1.68 | |
| [0.5, 0.7) | 24 | 0.82 | 1.96 | |
| [0.7, 0.95) | 11 | 0.50 | 2.39 |
Symmetry. At fixed the radius scales as Theorem 2 predicts. The ratios for SGD and for AdamW agree within 0.8–4.3% over ranging by a factor 100. All these runs use seed 0, so the test is that the radius forgets its initial scale. Runs at the same with different seeds differ by 3–10% in with SGD and memory (13% for SGD at ), against standard errors of 0.1–1%. AdamW seeds agree within 2%. Either the windows are too short for full equilibration, or independently initialized runs reach different stationary states. In either case Theorem 3 applies to corresponding states.
Mode temperatures. The top modes are hotter than the continuous-time prediction, by factors 1.3 to 2.4 that grow with (Table 4). The discrete law accounts for this up to . Above, the modes are colder than predicted, by a factor 2 at . The harmonic theory does not contain this saturation.
Other models. In the SI ConvNet, . Its linear-FDR ratio falls from 1.10 to 0.46 as grows from 0.29 to 1.89. In the practical ResNet with SGD, and the FDR ratio is 0.32–0.89. Up to 77 of 244 groups are dead there at the largest decay rates. In the thin ResNet with SGD, test accuracy is 0.66–0.71 for and collapses beyond. The range beyond is the third regime of Kodryan et al. [14], where and the harmonic theory does not apply.
6.3.2 The finite-step remainder: activation boundaries and smooth nonlinearity
Observation 5 (The remainder accounts for the SGD loss balance). Over the 20 SGD runs (Table 5, Fig. 5a), the independently estimated terms satisfy the loss balance with an RMS discrepancy of 0.038 (mean +0.015). The median -score is 1.12 (). The correlation is 0.974 over the range (0.87 without the practical ReLU run). For the two practical runs, which are not fully scale-invariant, both ratios use the general form (11). Since , either our standard errors are about 35% too small or a small additional effect is present.


Figure 5: Campaign v2. (a) SGD: the remainder prediction against the measured loss-balance ratio , for all 20 SGD runs (thin and practical ResNet; ReLU and Softplus). (b,c) Remainder profiles of the thin ResNet with SGD at and (thin lines: individual runs; thick: means over seeds). ReLU: flat in (activation boundaries, ). Softplus: (). (d) Memory and AdamW: the linear-FDR ratio lies well below the single-step remainder prediction.
Table 5: Campaign v2, SGD, seed means (2 seeds for the thin ResNet, 1 for the practical one). : loss-balance ratio. : its prediction from the remainder. , : remainder profile. Flips: fraction of units that change sign along the full step. : RMS pre-activation change in units of .
| model | activation | flips | test acc. | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| thin | ReLU | 0.858 | 0.914 | -0.086 | -0.071 | 0.36 | 1.3% | - | 0.678 | |
| Softplus 0.5 | 0.909 | 0.959 | -0.041 | -0.004 | 0.31 | 1.5% | 0.11 | 0.714 | ||
| Softplus 0.05 | 0.963 | 0.971 | -0.029 | -0.002 | 0.31 | 1.4% | 1.02 | 0.680 | ||
| ReLU | 0.881 | 0.895 | -0.105 | -0.093 | 0.48 | 2.1% | - | 0.706 | ||
| Softplus 0.5 | 0.929 | 0.952 | -0.048 | -0.003 | 0.37 | 2.5% | 0.17 | 0.731 | ||
| Softplus 0.05 | 1.017 | 0.977 | -0.023 | +0.001 | 0.33 | 2.4% | 1.71 | 0.703 | ||
| ReLU | 0.776 | 0.763 | -0.237 | -0.120 | 0.91 | 6.3% | - | 0.699 | ||
| Softplus 0.5 | 0.838 | 0.859 | -0.141 | -0.010 | 0.70 | 6.5% | 0.42 | 0.732 | ||
| Softplus 0.05 | 0.854 | 0.870 | -0.130 | -0.011 | 0.50 | 5.6% | 3.81 | 0.710 | ||
| practical | ReLU | 0.273 | 0.268 | -0.732 | -0.600 | 0.24 | 3.4% | - | 0.801 | |
| Softplus 0.5 | 0.866 | 0.891 | -0.109 | -0.008 | 0.45 | 5.2% | 0.10 | 0.752 |
Observation 6 (Activation boundaries and smooth nonlinearity). In the thin ResNet with ReLU, is flat in at small (seed means -0.07 to -0.09 at and -0.09 to -0.11 at ). The remainder is thus , an activation-boundary term. With Softplus, halves with every halving of ( ) and vanishes as ( ). This holds for ( ) and for ( , steps much larger than ). Theorem 14 predicts this for any fixed width. At ReLU has both: a boundary plateau -0.12 and a smooth part reaching -0.24 at . The singular curvature is negative here. The quadratic model thus overestimates the curvature along the step by 7-12%.
In the practical ResNet with ReLU the effect is extreme. Here lies between and at every , and against . The quadratic model overestimates the curvature along the step by a factor of about four, and the remainder accounts for it. With Softplus, and against . In this ReLU run the Rayleigh quotient along the mean gradient corresponds to , while Lanczos gives . This is impossible for a fixed matrix. Lanczos on eight batches may miss the top of the averaged spectrum, or is underestimated. We exclude this run from spectral statements.


(b) Update-curvature deficit : measured, transport and mixed term

Figure 6: Direct endpoint measurements with gradient memory (campaigns v3, CIFAR-10, and v4, CIFAR-100; ). One point per setting; seed means for the thin ResNet. Open symbols and faded bars: runs with collapsed channels. (a) Residuals of the finite-decay relation in window form (as in Table 6) and of the accounting (19) in units of . (b) Accounting of the update-curvature deficit: measured , transport and mixed term . (c) Signed time asymmetry . Error bars: one standard error, as in Table 6 (joint bootstrap). For seed means, the error is the larger of the propagated and the seed-scatter error.
6.3.3 Gradient memory: the departure and its direct accounting
With memory and with AdamW the linear-FDR ratio lies well below the single-step remainder prediction (Fig. 5d). For the eight v2 runs, -0.99 against -0.91. Over the 30 EMA runs of v1 and v2, the first-moment relations (Theorem 5) and hold within the noise (median ratios 0.98 and 0.95). In contrast, falls below its linear value by about the factor by which falls below the linear FDR (correlation 0.88 over the 24 runs with ). In addition, the per-mode factor of Theorem 11 is for . By (15), the departure therefore sits in the update curvature .
Direct endpoint measurements. Campaigns v3 (CIFAR-10) and v4 (CIFAR-100) evaluate every term of (14) and (18) at both ends of updates sampled from the optimizer's conditional transition law at the saved states (Fig. 6, Table 6).
Observation 7 (Exact relations and the update curvature). (i) The finite-decay relation holds in window form, with the drifts of the actual trajectory. All twelve v3 residuals lie within 1.6 standard errors ( for 12 runs). The v4 residuals give for 12 runs (largest 2.3 standard errors). (ii) The update curvature measured at the endpoints agrees with the Gram estimate of the earlier campaigns. Their difference lies between -0.007 and +0.017 in v3 and within in v4 ( and 4.9 for 12 runs each). The two estimators thus agree within the
Table 6: Direct endpoint measurements with gradient memory (; thin SI ResNet-18: means of two seeds on CIFAR-10, three on CIFAR-100, with the larger of the propagated and the seed-scatter error; practical ResNet-18: one run each; joint bootstrap standard errors in parentheses, in units of the last digit). Residual of (15) (thin) or (14) with (practical), relative to its left-hand side; deficit , transport of (19) and the gap it leaves; , , of (5), ratios averaged over runs with resolved ( s.e.; - if the mean is not resolved or changes sign between seeds). Softpl.: Softplus 0.5. *Collapsed channels.
| setting, | c | residual | gap | |||||
|---|---|---|---|---|---|---|---|---|
| CIFAR-10 | ||||||||
| thin ReLU | 0.830(25) | -0.035(41) | 0.032(29) | 0.024(14) | 0.008(30) | 2.02(8) | 0.1(1) | -0.011(7) |
| thin ReLU | 0.715(21) | 0.059(33) | 0.224(20) | 0.122(18) | 0.102(27) | 2.17(6) | 0.5(1) | -0.066(11) |
| thin Softpl. | 0.925(23) | -0.027(33) | 0.039(23) | 0.081(16) | -0.042(34) | 2.84(3) | 5.0(2) | -0.039(8) |
| thin Softpl. | 0.808(18) | 0.006(33) | 0.178(22) | 0.159(23) | 0.019(34) | 2.90(2) | 5.4(2) | -0.083(14) |
| pract. ReLU | 0.791(23) | -0.009(54) | 0.062(41) | 0.253(88) | -0.191(112) | 2.12(10) | 0.9(2) | -0.126(42) |
| pract. ReLU* | 0.651(40) | 0.016(66) | 0.134(118) | 1.114(651) | -0.980(768) | - | - | -0.599(274) |
| pract. Softpl. | 0.875(22) | -0.006(43) | 0.103(30) | 0.134(31) | -0.031(46) | 2.83(3) | 5.0(2) | -0.069(16) |
| pract. Softpl.* | 0.678(49) | -0.034(38) | 0.273(39) | 0.262(49) | 0.011(58) | 3.13(18) | 6.7(11) | -0.164(34) |
| CIFAR-100 | ||||||||
| thin ReLU | 0.910(26) | 0.016(21) | 0.094(13) | 0.017(13) | 0.077(19) | - | - | -0.008(7) |
| thin ReLU | 0.782(21) | -0.018(28) | 0.188(17) | 0.168(27) | 0.020(38) | - | - | -0.089(15) |
| thin Softpl. | 0.957(18) | 0.040(29) | 0.070(17) | 0.094(15) | -0.024(26) | 3.40(7) | 8.4(4) | -0.047(7) |
| thin Softpl. | 0.798(19) | 0.036(31) | 0.212(21) | 0.187(24) | 0.025(40) | 3.38(7) | 8.3(4) | -0.103(12) |
measured uncertainty, and we find no evidence of a bias of the Gram estimator at this resolution. This supports the interpretation that the discrepancy found in campaign v2 arose from the cubic-remainder reconstruction of the profile rather than from the Gram estimate (Section E). The v2 runs themselves were not re-measured. (iii) The accounting (19) holds with and 20.6 for 12 runs each (largest residual 2.5 standard errors). Its drift term uses the window drift , a least-squares slope over the diagnostic states (Section C). (iv) The windows are compatible with stationarity at the measured resolution, with the qualifications that follow. The finite-window identities do not require stationarity, so their accuracy does not establish it. We therefore regress the quantities entering the identities on time. The largest single drift is 2.7 standard errors. The sum of the 108 squared standardized drifts is 109 in v3 and 124 in v4. These drifts are measured on the same states and are correlated, so the sum is a diagnostic score, not a statistic. Calibrated with the joint bootstrap, its 95% point under the hypothesis of no drift is about 200 ( and 0.26; Section C). In v4, however, and rise together. Combined over the 12 independent runs, each of these drifts lies 2.2–3.1 standard errors above zero, with a median rise of 4–19% over the window. This residual sharpening is a quarter to a half of that in the -step run. The drifts of and are not resolved (1.1 and 0.8 standard errors, combined). The CIFAR-100 seeds also scatter beyond their errors (gap: for 8 degrees of freedom); the seed-mean errors include this scatter. In v3 the change of between the two halves of the windows exceeds its errors ( for 12 runs, ). This is a indication that varies slowly within the windows. In v4 neither nor changes between the halves ( and 9.5).
Observation 8 (Accounting of the update-curvature deficit). The transport contribution is negative in all twelve settings. In seven of the ten settings without collapsed channels it lies 4.4–7.8 standard errors from zero. It lies at 2.9 standard errors in the practical ReLU network at , and at 1.7 and 1.4 in the thin ReLU networks at (Fig. 6b). In the Softplus networks the transport is consistent with the deficit on both datasets. The gap of Table 6 lies within 1.3 joint standard errors of zero in all six Softplus settings. In the thin network on CIFAR-10 at the deficit itself is not resolved, and the transport is about twice it. In the ReLU networks a resolved gap remains in one setting per dataset. It is at
on CIFAR-10 (transport of ) and at on CIFAR-100 (transport of ). By (19), this gap equals the mixed contribution . On CIFAR-100 its direct estimate is , consistent with the gap but not resolved. The other thin ReLU settings close within the errors. In the practical ReLU network at the transport exceeds the deficit. The mixed term is not resolved beyond 2.2 standard errors in any setting (standard errors 0.03–0.10; 0.75 in the collapsed ReLU run), and it limits the accounting. The drift term contributes less than . The individual runs show the same pattern, within the seed scatter noted in Observation 7. Eleven of the twelve Softplus runs have gaps within 1.5 standard errors of zero, and the twelfth lies at 2.2. The CIFAR-10 ReLU gap lies at 3.3 and 2.0 standard errors in its two seeds. The CIFAR-100 ReLU gap is resolved in two of the three seeds (4.6 and 5.1 standard errors; 1.8 in the third). Stationarity matters here. For ReLU at on CIFAR-100 the gap was in the -step run of seed 0, which was still sharpening, and after steps.
Observation 9 (Smooth and boundary-dominated remainders; time asymmetry). The endpoint ratios separate the two activations (Table 6, Fig. 1c). With Softplus, the runs with resolved give and on CIFAR-10 (3.1 and 6.7 in the collapsed run). On CIFAR-100 they give 3.35–3.46 and 8.1–8.7. The runs without collapsed channels obey to within 0.9% of (Section E). This is the relation of a remainder along the step. Within this approximation the effective quartic fraction is to on CIFAR-10 and 0.35–0.46 on CIFAR-100. Accordingly, the implied by the cubic-remainder approximation differs from the measured one by to on CIFAR-10 (at most 1.6 joint standard errors). On CIFAR-100 it differs by at . With ReLU on CIFAR-10, (setting means). This is close to the value 2 of a boundary remainder (Theorem 14). The change of the regular curvature along the step is small against it (). The cubic approximation, derived for smooth remainders, would give instead of the measured 0.78–0.97. On CIFAR-100 the ReLU remainder differs in sign between two seeds at ( and , at 4.1 and 2.7 standard errors). It is not resolved in the other runs. At there, , so boundary and smooth parts are not separated. In all ReLU runs the cubic-plus-quartic relation fails draw by draw. The normalized mean of the time-antisymmetric observable is negative in all twelve v3 runs and in eleven of the twelve v4 runs. It is resolved (3.3–9.2 standard errors) in seven of the ten v3 runs without collapsed channels and in nine v4 runs. The others are four of the five thin ReLU runs at , the practical ReLU run at (2.98 standard errors) and one Softplus run at (Fig. 6c). The radial terms of (21) have the opposite sign and at most 13% of the magnitude of . For the bound (22), , we take the second moment over individual transitions. Each transition uses one evaluation batch, whose noise adds to and makes conservative. We remove the upward bias of the squared mean. The resulting estimate of is 0.07–0.22 (v3) and 0.06–0.54 (v4) in the resolved runs without collapsed channels. A nominal one-sided 95% lower confidence bound, built from two 97.5% bootstrap bounds (Section C), is 0.01–0.09 and 0.01–0.26.
In the practical ResNet the head term is and without collapsed channels ( and with them). Half to two thirds of it comes from the normalization coefficients. It lies far below the 4–6% precision of the window test. The non-invariant sector is therefore not resolved in these networks. The teacher–student test of Theorem 5 resolves it. The two practical runs at have collapsed channels (8 and 119 groups with ). There (15) does not apply, but (14) and (18) do. These two runs test the general identities only, not exact scale invariance of the hidden groups. Why the transport is negative in these networks but positive in the teacher–student network (Section 6.2) remains open.
7 Discussion
The thermodynamic-looking relations considered here have different origins. The entropy-scaling relation follows from an exact rescaling of the stochastic dynamics (Theorems 2 and 3). The equation of state and the fluctuation spectrum require additional assumptions about the noise and the local loss landscape. This distinction answers the question posed in the Introduction. The entropy relation can remain valid when the fixed-noise ideal-gas description is no longer adequate, because its validity does not rest on equilibrium. For corresponding stationary states, the scaling argument requires neither a Gibbs distribution nor detailed balance. It also survives a trained non-invariant output layer when the hyperparameters of that layer are held fixed under the rescaling.
The harmonic approximation provides a calculable reference for the fluctuations, rather than an equilibrium assumption for the full dynamics. Finite update steps modify the mode variances, and the resulting fluctuations feed back on the weight norms. For SGD with isotropic angular noise, this gives the spectral equation of state of Section 4.4. Its virial coefficients are set by moments of the curvature spectrum, and it contains no attractive term within the stated approximation. In the SGD networks with , the discrete mode temperatures and the edge term account for the excess of the gradient power and of the radius over their ideal-gas values. Interacting groups require a joint covariance description. In the Gaussian harmonic surrogate of SGD with frozen radii, the law of consecutive states is reversible if and only if the transformed curvature and noise covariance commute (Theorem 12). Exact norm balances can therefore coexist with stationary probability currents, and reversibility alone does not imply a common mode temperature.
Beyond the harmonic approximation, the principal result is a measurable decomposition of the fluctuation correction. The loss balance retains the finite-step remainder. With gradient memory, the curvature-transport identity separates the change of curvature along successive updates from the mixed gradient-memory contribution and the finite-window drift. These identities determine how the terms combine, but not their signs or magnitudes. Numerical agreement with an identity tests the estimators and the accounting of its terms. The physical information comes from measuring the individual contributions and from testing approximations that predict them. The identities thus determine how the correction is partitioned, the measurements determine which contribution matters, and the approximations determine whether that contribution can be predicted from fewer observables.
The endpoint measurements identify different contributions in the tested networks. In the convolutional networks the curvature transport is negative in every setting and resolved in most of them. In the Softplus networks it is consistent with the update-curvature deficit on both CIFAR datasets, within the measured uncertainty. In one ReLU setting per dataset, a resolved part of the deficit remains after the transport contribution is subtracted. The identity assigns this residual to the mixed term, whose direct estimate is less precise. The teacher-student comparison instead resolves a small positive anharmonic transport correction for long memory (), after the narrow-wide comparison has approximately removed the leading geometric contribution. The sign of the nonlinear correction is therefore not universal. The present measurements identify its contribution without yet determining which architectural or statistical features set its sign.
The comparison between CIFAR-10 and CIFAR-100 also separates the exact transport relation from the simpler remainder approximations. The cubic-remainder approximation is approximately consistent with the smooth-network measurements on CIFAR-10. On CIFAR-100, the endpoint ratios instead indicate a substantial quartic contribution within the cubic-plus-quartic approximation, (43). This does not establish that the remainder is a polynomial of degree four: the endpoint relation constrains a particular combination of higher-order contributions (Section E). It nevertheless provides a direct test of the approximation and identifies a limitation that is not visible from the final fluctuation ratio alone.
Activation boundaries require separate treatment. In the Gaussian committee calculation,
Table 7: Main statements, the level at which they hold, and the numerical evidence.
| Statement | Level | Evidence |
|---|---|---|
| Norm balance per invariant group (Theorem 1) | exact (invariant group) | networks: median 1.004; per group 1.000 |
| Scaling symmetry, entropy relation (Theorem 2, Theorem 3) | exact (invariant groups; trained head at fixed hyper-parameters) | sphere 4.000/16.007; networks 0.8–4.3%; trained head |
| Loss balance, finite-decay identity (Theorem 4, Theorem 5) | exact (any network; common for Theorem 5) | SGD networks: RMS 0.038 (20 runs); EMA networks, window form: (12 runs each); teacher–student (24 runs); trained head 1.0000–1.0001 |
| Curvature transport, arrow of time (Theorems 6 and 7) | exact (any network; common ) | teacher–student: within 0.16%, at 13–277 s.e.; EMA networks: accounting (12 runs each), resolved in 16 of 22 runs |
| Activation-boundary remainder (Theorem 14) | asymptotic (small steps, smooth pre-activation density) | thin ResNet profiles (all but one small, non-monotone Softplus profile) |
| Singular curvature of ReLU committees (Theorem 15) | exact (Gaussian inputs) | fixed states within ; teacher–student vs |
| Mode temperatures, spectral equation of state (Theorem 8, Section 4.4) | harmonic approximation | sphere radius 0.03%; teacher–student 0.1–2%; networks up to |
| Geometric decay effects, coupled groups (Theorem 10, Theorem 12) | approximation | sphere modes 2.4%; coupled variances 0.6–1.4% at (up to 9% at , fails with the narrow activation); currents resolved where predicted large |
| Remainder closures (Section 5.3) | approximation, smooth remainders | toy (soft modes); Softplus networks: (43) within 1%, (CIFAR-10), 3.4 (CIFAR-100); fails per draw for ReLU |
their curvature contribution is set by the residual on the activation boundaries (Theorem 15). Competing student and teacher terms give it no universal sign, and it vanishes at an exactly matched teacher. It is negative in the batch-normalized ReLU networks on CIFAR-10 and in the ReLU teacher–student network, and positive in the weight-normalized pilot (Section G). On CIFAR-100, the full finite-step remainder changes sign between two ReLU runs, but its smooth and boundary contributions have not been separated. The regular-Hessian transport also combines motion within activation regions with changes of the activation pattern. These observations limit what can be inferred from a quadratic model evaluated at a single state.
The pair observable supplies a distinct diagnostic of time-reversal asymmetry. Its mean is resolved in the teacher–student runs and in most of the network runs. Its mean and second moment give a lower bound on the relative entropy between forward and reversed pairs. At zero decay ; at finite decay, the terms of (21) distinguish the two quantities. The bound applies to the sampled pair distribution, including a distribution averaged over a finite observation window. It is not a measurement of the thermodynamic entropy production of the complete optimizer. In particular, finite-window asymmetry does not by itself show that a fully stationary distribution has been reached.
Limitations. The convolutional networks are small (24k–176k parameters), and the experiments cover two image-classification datasets with specific normalization and output-layer conventions. The fixed head on CIFAR-100 keeps the loss high, and the change between the datasets also involves a change in the typical head-row scale. The network mode tests use only the three sharpest measured directions. The endpoint measurements cover EMA momentum only. For AdamW the identities hold in the frozen-preconditioner approximation. The head term of the practical network is below the measurement resolution, although it is resolved in the teacher– student test. Theorem 13 gives an analytical Gaussian entropy reference, but the entropy of the sampled network distributions, central in Sadrtdinov et al. [1], was not estimated here.
The numerical uncertainty also limits the conclusions. The early campaigns v1 and v2 use delta-method error estimates over correlated diagnostic states, whereas the endpoint campaigns v3 and v4 use a joint block bootstrap. The normalized ratios and show little resolved drift over the windows. Several unnormalized curvature statistics, however, continue to increase on CIFAR-100, and the CIFAR-100 seeds scatter beyond their errors. We therefore retain the finite-window drift terms and do not claim a fully stationary distribution in those runs. The contributions to the accounting are more stable under the sensitivity checks of Section C than the standardized residuals of the identities, which reach 3.6 and 5.5 standard errors in individual variants. The mixed term of (19) remains the least precisely measured contribution. Two of the 24 teacher-student runs of the coupled-group test did not finish within the compute window (Section 6.2).
Open questions. (1) What sets the sign and size of the curvature transport? Batch statistics, the cross-entropy loss far from its minimum, depth and a finite training set are possible contributors, but the present models do not isolate their roles. For ReLU networks, separating the transport within smooth regions from the transport associated with changes of the activation pattern would sharpen the interpretation. A more precise direct estimate of the mixed term would further test the contribution inferred from the residual. (2) How do modes saturate near the threshold? In the networks, modes with are colder than the harmonic prediction. The harmonic prediction loses applicability when the fluctuations explore nonlinear regions of the loss. Which nonlinear terms determine the saturation remains to be established. The normal form of a noisy period-doubling bifurcation is one candidate description; its applicability and coefficients remain to be measured. (3) How large is the irreversibility in reduced and full coordinates? The pair observable for the directions alone, and a reversal of the full state , would relate the bound (22) to the entropy production of the optimizer. Projecting to directions removes the radial support obstruction of the SGD pair law, but a finite reduced relative entropy still requires sufficient overlap of the forward and reversed laws. Extending the analysis to the full optimizer requires a specified reversal operation for the memory variable. Probability currents between coupled groups also remain to be measured directly in the convolutional networks.
Taken together, the results support a description of stationary and slowly evolving learning dynamics that does not assume thermal equilibrium. Scale symmetry fixes some relations exactly. Harmonic theory predicts the fluctuations within a stated regime. Curvature transport, finite-step remainders and activation-boundary contributions quantify the departures from that regime, and the pair asymmetry provides a separate test of irreversibility. This distinction identifies both the usefulness and the limits of a thermodynamic description of learning.
Data, software and code availability
The source code, configurations, numerical results and reproduction scripts underlying this study are maintained in a versioned private repository. A reproducibility archive corresponding to the submitted manuscript is available confidentially to the editors and referees on request through the editorial office. A curated public release will be made available upon acceptance. Its permanent identifier will be added to the accepted manuscript and to an updated arXiv version. Section H lists every numerical calculation behind the results, with its setup and the script that produced it. The network campaigns ran on Snellius (A100 GPUs). The teacher-student runs, the sphere models and the pilot of Section G ran on CPUs.
Acknowledgements
Use of generative AI tools. The author used Claude Opus 5.5 (Anthropic) and GPT-6 Astra Pro (OpenAI) to assist with software development, symbolic and numerical checks, exploration of theoretical arguments, running and analysis of the numerical experiments, and preparation and revision of the manuscript. The author reviewed, checked and revised the AI-assisted material and takes responsibility for the derivations, numerical results, references and interpretations in the article. The verification procedures are documented in Section H and in the accompanying code.
Computing resources. This work used the Dutch national e-infrastructure with the support of the SURF Cooperative using grant no. EINF-19390. Access to the supercomputer Snellius was provided under the NWO call "Computation time national computer systems 2026".
References
[1] I. Sadrtdinov, E. Lobacheva, I. Klimov, M. Burtsev, M. I. Katsnelson, and D. Vetrov. Can stationary distributions of scale-invariant neural networks be described by the thermodynamics of an ideal gas? In Proc. 35th Int. Joint Conf. on Artificial Intelligence, pages 4759–4767, 2026. doi: 10.24963/ijcai.2026/530.
[2] R. K. P. Zia and B. Schmittmann. Probability currents as principal characteristics in the statistical mechanics of non-equilibrium steady states. J. Stat. Mech., 2007:P07012, 2007.
[3] U. Seifert. Stochastic thermodynamics, fluctuation theorems and molecular machines. Rep. Prog. Phys., 75:126001, 2012.
[4] S. Mandt, M. D. Hoffman, and D. M. Blei. Stochastic gradient descent as approximate Bayesian inference. J. Mach. Learn. Res., 18(134):1–35, 2017.
[5] Q. Li, C. Tai, and W. E. Stochastic modified equations and adaptive stochastic gradient algorithms. In Proc. 34th Int. Conf. on Machine Learning, PMLR 70, pages 2101–2110, 2017.
[6] S. Yaida. Fluctuation-dissipation relations for stochastic gradient descent. In Int. Conf. on Learning Representations, 2019.
[7] I. Sadrtdinov, I. Klimov, E. Lobacheva, and D. Vetrov. SGD as free energy minimization: A thermodynamic view on neural network training. arXiv:2505.23489, 2025.
[8] M. A. Katsoulakis, Y. Pantazis, and L. Rey-Bellet. Measuring the irreversibility of numerical schemes for reversible stochastic differential equations. ESAIM: Math. Model. Numer. Anal., 48(5):1351–1379, 2014.
[9] T. van Laarhoven. L2 regularization versus batch and weight normalization. arXiv:1706.05350, 2017.
[10] Z. Li and S. Arora. An exponential learning rate schedule for deep learning. In Int. Conf. on Learning Representations, 2020.
[11] Z. Li, K. Lyu, and S. Arora. Reconciling modern deep learning with traditional optimization analyses: The intrinsic learning rate. In Advances in Neural Information Processing Systems 33, 2020.
[12] R. Wan, Z. Zhu, X. Zhang, and J. Sun. Spherical motion dynamics: Learning dynamics of normalized neural network using SGD and weight decay. In Advances in Neural Information Processing Systems 34, 2021.
[13] E. Lobacheva, M. Kodryan, N. Chirkova, A. Malinin, and D. Vetrov. On the periodic behavior of neural network training with batch normalization and weight decay. In Advances in Neural Information Processing Systems 34, 2021.
[14] M. Kodryan, E. Lobacheva, M. Nakhodnov, and D. Vetrov. Training scale-invariant neural networks on the sphere can happen in three regimes. In Advances in Neural Information Processing Systems 35, 2022.
[15] I. Sadrtdinov, M. Kodryan, E. Pokonechny, E. Lobacheva, and D. Vetrov. Where do large learning rates lead us? In Advances in Neural Information Processing Systems 37, 2024.
[16] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proc. 32nd Int. Conf. on Machine Learning, PMLR 37, pages 448–456, 2015.
[17] K. Liu, L. Ziyin, and M. Ueda. Noise and fluctuation of finite learning rate stochastic gradient descent. In Proc. 38th Int. Conf. on Machine Learning, PMLR 139, pages 7045–7056, 2021.
[18] J. M. Cohen, S. Kaur, Y. Li, J. Z. Kolter, and A. Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In Int. Conf. on Learning Representations, 2021.
[19] J. M. Cohen, B. Ghorbani, S. Krishnan, N. Agarwal, S. Medapati, M. Badura, D. Suo, D. Cardoze, Z. Nado, G. E. Dahl, and J. Gilmer. Adaptive gradient methods at the edge of stability. arXiv:2207.14484, 2022.
[20] A. Andreyev and P. Beneventano. Edge of stochastic stability: Revisiting the edge of stability for SGD. arXiv:2412.20553, 2024.
[21] R. Mulayoff and T. Michaeli. Exact mean square linear stability analysis for SGD. In Proc. 37th Conf. on Learning Theory, PMLR 247, pages 3915–3969, 2024.
[22] D. Kunin, J. Sagastuy-Brena, S. Ganguli, D. L. K. Yamins, and H. Tanaka. Neural mechanics: Symmetry and broken conservation laws in deep learning dynamics. In Int. Conf. on Learning Representations, 2021.
[23] L. Ziyin, M. Wang, H. Li, and L. Wu. Parameter symmetry and noise equilibrium of stochastic gradient descent. In Advances in Neural Information Processing Systems 37, 2024.
[24] É. Roldán and J. M. R. Parrondo. Estimating dissipation from single stationary trajectories. Phys. Rev. Lett., 105:150607, 2010.
[25] É. Roldán and J. M. R. Parrondo. Entropy production and Kullback–Leibler divergence between stationary trajectories of discrete systems. Phys. Rev. E, 85:031129, 2012.
[26] L. Ziyin, Y. Ren, A. Levine, and I. Chuang. Thermodynamic irreversibility of training algorithms. arXiv:2605.21933, 2026.
[27] D. Saad and S. A. Solla. On-line learning in soft committee machines. Phys. Rev. E, 52(4):4225–4243, 1995.
[28] M. Biehl, E. Schlösser, and M. Ahr. Phase transitions in soft-committee machines. Europhys. Lett., 44:261–267, 1998.
[29] S. Arora, Z. Li, and A. Panigrahi. Understanding gradient descent on the edge of stability in deep learning. In Proc. 39th Int. Conf. on Machine Learning, PMLR 162, pages 948–1024, 2022.
[30] A. Damian, E. Nichani, and J. D. Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In Int. Conf. on Learning Representations, 2023.
[31] A. Itin. Physics-inspired optimizers beyond the edge of stability: Period-two orbits and delayed instability. arXiv:2610.27321, 2026.
[32] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In Int. Conf. on Learning Representations, 2015.
[33] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In Int. Conf. on Learning Representations, 2019.
[34] D. G. T. Barrett and B. Dherin. Implicit gradient regularization. In Int. Conf. on Learning Representations, 2021.
[35] S. L. Smith, B. Dherin, D. G. T. Barrett, and S. De. On the origin of implicit regularization in stochastic gradient descent. In Int. Conf. on Learning Representations, 2021.
[36] Y. Cho and L. K. Saul. Kernel methods for deep learning. In Advances in Neural Information Processing Systems 22, 2009.
[37] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
[38] K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In Computer Vision – ECCV 2016, LNCS 9908, pages 630–645. Springer, 2016.
[39] M. F. Hutchinson. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Commun. Stat. Simul. Comput., 18(3):1059–1076, 1989.
[40] T. Salimans and D. P. Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems 29, 2016.
A Linear theory of gradient memory
One mode with curvature and noise variance , state :
so with and . The stationary covariance solves . Solving symbolically,
which gives (23) and, with , (24). Further, . Hence and . Finally, . These are (25). They hold for every , with . For the same computation for (27) gives (28).
Radial step and the remainder. For a fully scale-invariant network without memory and , with . Scale invariance gives . The loss balance along reads with . At stationarity this is (29). With drift, is replaced by . Expressed through the full step, with . We insert , and into the Taylor terms of (4). The terms linear in then cancel to . The quadratic ones leave . Therefore and . The full-step remainder thus contains a geometric part of order , even for a loss that is harmonic along the step. In the exact sphere simulation of Section 4.2 (), . Hence is negligible there. In the same simulation, at (also with twice the edge ratios) and at . With memory the radial factor becomes with , . With , the update gives the exact recursion . At stationarity, taking logarithms and expanding to leading order in and in the relative step gives , so that has mean . This expansion is an approximation; Theorem 1 alone fixes , not . However, is correlated with the step length. The estimate holds in the simulation for (). It fails for longer memory, in a way that depends on the dimension. With 8 tangent dimensions the simulation gives at and at . With 32 it gives and at and 0.95. This is why we do not give a closed first-order formula for with memory.
Radial part of the memory. sees only the tangent part of the memory, because exactly. It agrees with (25) to 0.3% in all teacher–student runs. also sees the radial part, because for every scale-invariant group. The radial part contributes . Here is fixed by the proof of Theorem 1. We neglect the fluctuations of and the correlation of with , i.e. we factorize the expectation as . With the norm balance and this gives the approximate radial part of the mixed term
0.0095 at , . The measured values (Table 9) exceed it by 0.4–5.3% with the wide and 3.6–14% with the narrow activation. The tangent part of agrees with (25) to within 1% with the wide activation and to 0.8–3.1% with the narrow one at .
B Proofs
Theorem 5. Write and , with , and . Unbiasedness of the fresh noise gives . Expanding the population loss along and using ,
(For an evaluation batch independent of the step, the expectations of the batch remainder and of its endpoint derivative equal those of the population objective.) Let , so that . Since ,
and with . The increment of is . Inserting the last two relations gives
Eliminating with and then with the expansion of yields (14). The coefficient of is . No Hessian identity is used. For a fully scale-invariant network , and . Hence . In a stationary state this gives , the second relation of (15). Dividing (14) by gives the first. For a realized trajectory the exact pathwise version replaces by (the difference is a martingale term with zero mean) and the drifts by the telescoped differences. The pathwise identity holds to rounding error on a nonlinear loss without scale invariance and, in its scale-invariant form, over finite windows from a non-stationary start (check N2 in Section H).
Theorem 10: the value of . Project the update on . This gives with (with for SGD). Theorem 1 gives . This fixes one moment, not the distribution of . Under the approximation of narrow radius fluctuations and small steps, up to fluctuations of order , the squared angle of one step. The memory is an average of past gradients. In a stationary state, therefore, . Stationarity of then gives . This holds up to the correlations of with , which are of higher order. For SGD the same value follows from Theorems 1 and 8: .
Theorem 7 (iv). Let . Exchanging the two arguments shows . Hence by . Antisymmetry gives , hence . Cauchy-Schwarz with the weight then gives . The derivation uses only the normalization of and the antisymmetry of , not stationarity. Support constraint for scale-invariant SGD. Let . Since , every forward pair satisfies (per group). Every pair in the support of the reversed law satisfies . The two sets meet only where . If the radius changes with positive probability, puts positive mass where vanishes. Then is not absolutely continuous with respect to , and . If the radius changes with probability one, the two laws are mutually singular. Dynamics with constant radius are not covered. For example, the loss with , , has the deterministic two-cycle , which is reversible and has . Projecting to directions removes this radial obstruction. A finite reduced relative entropy still requires sufficient overlap of the forward and reversed laws. In addition, itself contains a contribution of order from the correlation between the radius change and the size of the step.
Theorem 15. The population Hessian of is . Here contains, besides the regular terms, with . Hence , and the off-diagonal blocks vanish. On the -th student unit vanishes, so . Take a unit vector with , . Condition on (density ) and write with . Then . With and it follows that
Summing over the units and the teacher gives (39). A single unit gives (40). An independent check differentiates the population loss with the arc-cosine kernel [36] and subtracts the expected regular tangent Hessian.
Concentration at the threshold. We state the result announced in Section 4.4.
Proposition 16 (Concentration in the self-consistent harmonic approximation). Consider (32) with tangent modes and angular noise , bulk curvatures and top curvature . Assume (a) that the empirical distribution of the bulk curvatures converges weakly to a density . Assume also (b) that the top mode is uniformly isolated, with independent of . Let (finite by (b)) and . The following holds as . For , every mode carries a share of . For , and the top mode carries the share . Consequently, with .
Proof. Divide (32) by . The left-hand side decreases. The right-hand side is , with the bulk part . The right-hand side increases on and diverges at . The solution is therefore unique. By (b) the bulk integrand is bounded by on . By (a), therefore, uniformly there, with . If , i.e. , the solution converges to the root of . At this root every term of is . If , then for all . The top term must therefore be of order one. Hence and . The share of the top term tends to .
Without the gap (b), a limiting density alone does not single out one mode. Eigenvalues within of contribute no mass to but can share the excess. Remark. Suppose that the bulk density extends to as with , so that . Suppose also that the bulk sum converges to its integral up to the modes with . The same argument then shows that for the share is carried by this top spectral subspace. This subspace need not consist of a single eigenvector. For , and there is no transition. The sphere model of Section 4.4 has an isolated top mode.
C Estimators
Gradient moments. At each diagnostic point the optimizer state is frozen and batch gradients are drawn. Here , and is the sample variance. We estimate by .
Curvature terms. The term is estimated with centred batch gradients and Hessian-vector products on independent batches, with the factor . This is a Hutchinson-type estimator with the noise as the probe [39]. The Gram matrix of in span (and for AdamW) uses 64–128 Hessian-vector products on fresh batches. The bias of is subtracted.
Ratios. In v1 and v2, , the FDR ratio and the SDE ratio are ratios of the means over the 16 diagnostic points. Standard errors are from the point-to-point scatter (delta method). This error estimate ignores correlations between consecutive points.
Remainder. At each diagnostic point the optimizer state is frozen, and 128 steps that the optimizer would take are drawn, each with its own minibatch. With memory and for AdamW, the step includes the current memory. For each step, is evaluated in float64 on an independent evaluation batch, together with and (forward-over-reverse differentiation). The float32-float64 discrepancy of the loss is also evaluated, as a numerical floor. For 16 of the steps the pre-activations at and give the flip fraction (units whose pre-activation changes sign), the RMS change and, for Softplus, . The remainder profile is , with the means over steps and diagnostic points.
Endpoint quantities (campaigns v3 and v4). For 64 draws per diagnostic point, a training batch gives and . One evaluation batch , independent of , is used at and at . Losses, gradients and the quadratic forms of in at both ends, in float64, give , , , , , and by block. With these, (14) holds draw by draw to , a check of the code. The window tests use , , , , and from the stationary estimators.
Window drifts. The exact finite-window identities contain telescoped increments ( of the loss, of , of and of . We estimate each increment by the least-squares slope of the state values over the 32 diagnostic states. The slope estimates the increment when the drift is approximately linear over the window. The drift terms are small; , for example, contributes less than to (19).
Uncertainties. All v3 and v4 errors come from one joint bootstrap per run with 2,000 replicates. Each replicate resamples moving blocks of four consecutive diagnostic states, and the draws within each state. The resampled states keep their original times, and the window drifts are refitted to the resampled (time, value) pairs. The drifts thus keep their covariance with the other terms. Every quantity of a replicate, including the gap and (Section E), is computed from the same resample. A seed mean of runs carries the larger of the propagated error and the standard error of the mean between seeds, .
Time-asymmetry bound. For (22), is averaged over individual draws. Each draw uses one evaluation batch, and the evaluation noise adds to . This lowers , so the bound is conservative. The squared mean is corrected by the bootstrap variance of ; this removes a bias but is not a confidence statement. For the lower confidence bound we combine two one-sided 97.5% bounds: a lower bound for , set to zero if its interval contains zero, and an upper bound for . By the Bonferroni inequality, is then a nominal one-sided 95% lower confidence bound. Its actual coverage depends on the adequacy of the block-bootstrap approximation.
Stationarity diagnostics. For each of , , , , , , , and we compute the relative change over the window from the least-squares slope, with its standard error from the same bootstrap. The sum of the squared standardized drifts over these nine quantities and the runs of a campaign is a diagnostic score. The nine drifts of one run are correlated, so the score is not -distributed. We calibrate it with the bootstrap: the null distribution of the score of one run is that of its centred replicates, and different runs are independent. A statistic is quoted only for a single quantity over independent runs.
Sensitivity. We repeated the analysis with blocks of two and of eight states, and on the second half of each window (16 states, blocks of four). The variants and a summary table are in paper-jstat/data/sensitivity (check N12 in Section H). With blocks of two or eight, the
Table 8: Curvature-transport toy: measured , the transport identity, the exact relation and the single-power form.
| noise | (18) | (16) | (41) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Gaussian | 0.3 | 0.10 | 1.0003 | 1.0002 | 1.0002 | +0.0003 | 1.99 | -0.06 | 1.0037 |
| 0.76 | 1.0015 | 0.9998 | 1.0017 | +0.0020 | 1.99 | -0.07 | 1.0292 | ||
| 2.00 | 1.0042 | 0.9997 | 1.0045 | +0.0054 | 1.99 | -0.08 | 1.0825 | ||
| 4.00 | 1.0095 | 1.0001 | 1.0094 | +0.0113 | 1.98 | -0.09 | 1.1886 | ||
| Gaussian | 0 | 0.76 | 1.0025 | 0.9999 | 1.0026 | +0.0026 | 2.00 | -0.01 | 1.0774 |
| 4.00 | 1.0144 | 1.0001 | 1.0143 | +0.0149 | 2.00 | -0.02 | 1.6641 | ||
| skewed | 0.3 | 0.03 | 1.0199 | 1.0004 | 1.0194 | +0.0014 | 2.93 | 5.57 | 1.0208 |
| 0.10 | 1.0278 | 1.0003 | 1.0272 | +0.0022 | 2.84 | 5.03 | 1.0323 | ||
| 0.30 | 1.0288 | 1.0003 | 1.0282 | +0.0029 | 2.64 | 3.82 | 1.0435 | ||
| 0.76 | 1.0226 | 1.0001 | 1.0227 | +0.0041 | 2.35 | 2.09 | 1.0611 | ||
| 2.00 | 1.0152 | 0.9992 | 1.0160 | +0.0075 | 2.09 | 0.53 | 1.1184 |
setting means of Table 6 and the contribution estimates are stable. The Softplus gaps stay within 1.5 standard errors of zero, the two resolved ReLU gaps at 3.1–4.4, and the transport at 2.5 or more in the same eight settings. The endpoint ratios move by at most 0.02 () and 0.13 (). The accounting residuals are more sensitive: with blocks of eight their is 22.3 (v3) and 36.3 (v4) for 12 runs each, and the largest is 3.6 standard errors, in one CIFAR-100 ReLU run. On the half windows the errors grow. The CIFAR-10 ReLU gap falls to 2.4 standard errors, and the CIFAR-100 one stays at 4.0. There the accounting residual of one CIFAR-100 ReLU run reaches 5.5 standard errors, and the finite-decay residual of the collapsed practical ReLU run 4.3. Blocks of eight and the half windows leave only four blocks per run, so the bootstrap errors are themselves uncertain. The CIFAR-100 seeds then scatter far beyond them (gap: and 55 for 8 degrees of freedom).
Eigenpairs and modes. The eigenpairs come from Lanczos (24 iterations, top 3) on 8 fixed batches. Their Rayleigh quotients are re-measured on 32 fresh batches. Per-mode variances come from 1,000 snapshots taken every 25 steps in the stationary window. The snapshots are projected on the eigenvectors at the last diagnostic point (for AdamW in the preconditioned coordinates). The predicted variance uses , estimated from the 400 batch gradients.
D Curvature transport: a toy check
We run gradient memory (, , no weight decay) on the one-dimensional potential , with the noise set so that . We use 20,000 chains (8,000 for skewed noise) of 20,000 steps after a burn-in of 4,000. For the potential is symmetric (leading anharmonicity quartic). For the minimum is shifted and a cubic term appears. The noise is Gaussian, or a centred exponential of the same variance (skewed). Table 8 compares the measured linear-FDR ratio with the exact relation ((16) with from (18)), evaluated with the measured , , and . It also compares the measured ratio with the single-power form (41) (; for ). The identities hold to at every and for both noises. With Gaussian noise, and the transport is small but not zero ( between and ; uncertainties not estimated). Here the single-power form fails. With skewed noise the ratios approach the cubic values for soft modes, where the approximation is accurate. It overshoots as grows (check N10 in Section H).
E Remainder closures in the networks
Cubic plus quartic. If the remainder along the step is , then and with . Hence for every . is dimensionless. Its unnormalized counterpart for a single transition is, with for the evaluation batch and a smooth loss,
in units of the loss. Its mean is . is twelve times the error of the corrected trapezoidal rule for , and . A small therefore constrains one weighted moment of the higher derivatives; it does not show that the remainder is a polynomial of degree four. In every Softplus run of v3 and v4 without collapsed channels, the window means give . One run has nonzero at 4 standard errors, so the relation is accurate but not exact. For individual sampled transitions, the median of is 0.4–1.4%; this ratio compares two single-transition quantities in the same units. In ReLU runs the window means also give , within their larger errors. The pure boundary point also lies on the line. For individual transitions, however, the median of is 4–20 in ReLU runs. The relation is thus a property of smooth remainders. The endpoint ratios of smooth networks lie on the one-parameter line (Fig. 1c). The effective quartic fraction is between and on CIFAR-10 and between 0.35 and 0.46 on CIFAR-100 (runs with resolved). We use only within this approximation; it is not an independently identified Taylor coefficient. The cubic approximation is the point . With a measured , the relation enters through (44) (fully scale-invariant networks, ).
Campaign v2. Before the endpoint measurements, (41) was tested on the remainder profiles of v2. With Softplus 0.5 the profile is cubic up to . A fit to the five fractions gives and . With and the measured , (41) gives and 0.768 for EMA at and (measured and ); the first-order form (42) overshoots at (). The implied and 0.792 differed from the Gram estimates 0.954 and 0.865. In v3 the Gram estimate agrees with the endpoint within the errors, while the of the approximation differs from it by to with Softplus (Section 6.3.3). Offsets of 0.05–0.07 are therefore plausible for the profile route. The v2 runs were not re-measured, so this explanation is supported but not proven.
F Teacher–student runs with gradient memory
Table 9 lists the runs of Fig. 3 (graded output weights ; , , 128 chains, 20,000 measured steps). The two rows of each are Gaussian (G) and symmetric non-Gaussian (nG) label noise.
G A weight-normalized CNN with exact Hessian
A small CNN with every filter normalized in the forward pass [40] gives the exact gradient, Hessian and noise covariance in float64. It uses two convolutions, channels, average pooling, a fixed readout and a fixed CIFAR-10 subset (1,368 parameters in 24 groups, no batch normalization; SGD, ). The test of the full angular covariance is mostly negative. At batch size 128 the sharpest mode exceeds the threshold ( ReLU, 1.20 Softplus). Slow modes, whose relaxation times exceed the window, dominate there (median variance ratio 13.5 and 12.7). At batch size 16 (ReLU, ) the modes with have variance ratios near one (median 1.20) and lag-1 autocorrelations close to . The ReLU remainder
Table 9: Teacher–student, gradient memory. Linear-FDR ratio for activation widths and 0.1, measured over the exact relation (15) (), and the per-mode factor of Theorem 11. The ratio , measured and predicted from the remainder brackets and the memory term (Observation 2 (iii)), and the memory term in percent. Radial part of , with (47) in parentheses.
| noise | ratio | pred. | mem. (%) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0.5 | G | 0.9996 | 1.0040 | 0.9997/0.9998 | 0.9999 | 1.0045 | 1.0044 | +0.10 | 0.1/0.1 (0.1) | |
| nG | 0.9974 | 1.0017 | 0.9977/1.0005 | 1.0043 | 1.0015 | -0.05 | 0.1/0.2 (0.1) | |||
| 0.5 | G | 0.9989 | 1.0202 | 1.0001/1.0001 | 0.9990 | 1.0213 | 1.0217 | +0.30 | 1.3/1.5 (1.3) | |
| nG | 0.9974 | 1.0153 | 0.9990/1.0002 | 1.0180 | 1.0175 | +0.10 | 1.4/1.5 (1.3) | |||
| 0.9 | G | 0.9987 | 1.0027 | 0.9994/1.0009 | 0.9991 | 1.0040 | 1.0035 | +0.30 | 1.0/1.0 (0.9) | |
| nG | 0.9963 | 1.0000 | 0.9983/0.9999 | 1.0037 | 1.0015 | +0.12 | 1.0/1.0 (0.9) | |||
| 0.9 | G | 0.9896 | 1.0045 | 1.0001/1.0010 | 0.9911 | 1.0151 | 1.0151 | +1.25 | 9.6/10.2 (9.5) | |
| nG | 0.9881 | 1.0010 | 0.9993/1.0004 | 1.0131 | 1.0125 | +1.01 | 9.7/10.3 (9.5) | |||
| 0.95 | G | 0.9971 | 1.0034 | 0.9990/1.0017 | 0.9981 | 1.0063 | 1.0032 | +0.30 | 2.0/2.1 (1.9) | |
| nG | 0.9948 | 0.9986 | 0.9984/0.9996 | 1.0039 | 1.0018 | +0.17 | 2.0/2.1 (1.9) | |||
| 0.95 | G | 0.9799 | 0.9918 | 1.0000/1.0006 | 0.9814 | 1.0121 | 1.0134 | +1.22 | 19.6/20.6 (19.5) | |
| nG | 0.9770 | 0.9904 | 0.9994/0.9994 | 1.0137 | 1.0116 | +1.05 | 19.7/20.8 (19.5) |
has a positive boundary plateau, to +0.09 at small . However, the Softplus remainder vanishes as . The sign of the singular curvature is therefore model-dependent.
H Numerical checks and code
Each numerical result comes from one of the calculations below. Paths are relative to the root of the reproducibility archive. paper-jstat/tools/reproduce.sh regenerates every table, figure and check from the stored data and compares them with this manuscript. paper-jstat/REPRODUCE.md lists the data, the code version of every campaign and the settings.
N1 Covariance of the surrogate (Theorem 11) against a numerical Lyapunov solution, 2,000 random stable parameter sets, largest relative difference : paper-jstat/tools/check_geo_lyapunov.py.
N2 Pathwise identities: (14) on a nonlinear loss without scale invariance, , (residual ), and the radial separation (29): check_general_identity.py. The scale-invariant form over 400-step windows from a non-stationary start: check_finite_identity.py (both in paper-jstat/tools).
N3 Sphere models (Section 6.1, Fig. 2): thermo-opt/sim (sphere.py, exp_*.py, geometry_check.py); theory values recomputed from the stored chains by repredict.py.
N4 Concentration (Theorem 16): thermo-opt/sim/exp_condense.py. repredict.py prints the large-D predictions (131, 458, 1335, 3687 at , ) and the simulated values (134, 460, 1336, 3685).
N5 Finite decay on a quadratic sphere ( tangent curvatures, isotropic tangent noise, , ): thermo-opt/sim/zero_memory_check.py. At , 0.5, 0.9, 0.95 the per-mode factor of Theorem 11 departs from 1 by . The measured differs from it by for and for (standard errors in units of ). For SGD at , . In all runs (15) holds to .
N6 Trained head (Theorem 2, Theorem 5): teacher-student/tsm/head_checks.py. Blockwise rescaling of four hidden units (2,000 steps with memory) maps trajectories to , while the head moves by . By comparison, a common rescaling of all learning rates changes the trajectories by . For (14) with the head term, measured over predicted is , , at , , . Without the head term it is off by , , .
N7 Teacher–student runs (Section 6.2, Fig. 3, Tables 2 and 9): teacher-student/tsm (sweep.py plans; exact population quantities at both ends of every step); figure, table and text by paper-jstat/tools/ts_figure.py, ts_ema_table.py, fill_ts.py.
N8 Singular curvature of the ReLU committee (Theorem 15) against Monte Carlo: paper-jstat/tools/check_relu_singular.py.
N9 Coupled spheres (Theorem 12): thermo-opt/sim/coupled_current.py.
N10 One-dimensional anharmonic potentials (Section D): thermo-opt/sim/transport_toy.py.
N11 Convolutional networks (Section 6.3): models, optimizers and diagnostics in thermo-campaign (configurations of v1-v4; A100-hours 73.7, 15.6, 9.3 and 51.7). Per-run summaries by thermo-opt/analysis/campaign.py. Tables 3 to 5 by paper/tools/tables.py; memory statistics by thermo-opt/analysis/momentum.py. Six practical v1 runs were repeated with a guarded Lanczos projector after failing at dead channels.
N12 Endpoint analysis of v3 and v4 (Figs. 1 and 6, Table 6): thermo-opt/analysis/endpoint.py, endpoint_gap.py; paper-jstat/tools/endpoint_*.py, overview_figure.py. endpoint_numbers.py prints every quoted statistic. Raw v4 results: thermo-v4, with a SHA-256 manifest.
N13 Invariance audit (Section 6.3): thermo-opt/analysis/invariance.py. Weight-normalized CNN (Section G): thermo-opt/pilot.