arXiv(opens in a new tab)cond-mat.stat-mechOct 2026

Manuscript Offprint

arXiv:2610.38012

Finite-step statistical mechanics of scale-invariant learning: spectral equations of state and curvature transport

Alexander Itin

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 wa=ranaw_a = r_a n_a, where rar_a is its norm and nan_a its direction. When rescaling waw_a leaves the predictions unchanged, the loss depends on nan_a but not on rar_a. The norm nevertheless affects the dynamics: the effective angular step is proportional to η/ra2\eta/r_a^2. 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)

Figure

(b) Transport vs. deficit

(c) Remainder along the step

Figure 1: The main results. (a) Norm balance of an invariant group waw_a, r=∥wa∥r = \|w_a\| (Theorem 1; drawn to scale). The tangential step adds η2∥gB,a∥2\eta^2 \|g_{B,a}\|^2 to r2r^2, and decay removes (2γ−γ2)r2(2\gamma - \gamma^2)r^2. 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 γ=10−4\gamma = 10^{-4} (open symbol) lies above it. (c) Endpoint ratios of the runs with ρ0\rho_0 resolved. Softplus runs lie on ρH=6ρ1−12ρ0\rho_H = 6\rho_1 - 12\rho_0, the line of a remainder af3+bf4af^3 + bf^4 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 f2f^{2}, where f is the step fraction. For a smooth loss, the remainder after the quadratic expansion is O(f3)O(f^{3}); 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.

References (32)