Manuscript Offprint
arXiv:2609.09589A Function-Space Approach to the Statistical Mechanics of Learning Dynamics
Abstract
Deep neural networks exhibit surprisingly regular macroscopic behavior despite highly nonlinear dynamics in a vast parameter space. We develop a statistical-mechanical description of learning directly in function space, treating parameter configurations as microscopic realizations and functions together with their dynamical operators as macroscopic variables. For mean-squared loss, the exact error dynamics are governed by the learning operator . The bare conditional stochastic dynamics supplies a dynamical Boltzmann weight, while parameter-space multiplicity contributes a function-space density of states whose local curvature defines a statistical operator . Conditioning on a current error macrostate and integrating over the resulting local fluctuation ensemble yields the conditional free-energy contribution on the active sector. At fixed spectrum, this contribution is rotationally stationary when , is minimized by pairing large eigenvalues of with small eigenvalues of , and supplies a local restoring force contribution against rotational mismatch. For ReLU-type function spaces under mild stable statistical conditions, takes the form , with measuring coarse-grained second-order structure. Its low- sector therefore corresponds, up to the bounded anisotropy of , to directions of low structural curvature. Within this ReLU specialization, the fluctuation-induced contribution therefore supplies a preference for pairing faster relaxation with this low-curvature, data-adaptive sector. These results suggest function space as a natural macroscopic level for studying stable collective organization in learning, with a concrete neural-network model entering as a realization of the macroscopic statistical theory rather than defining its form from the outset.
1 Introduction
Deep neural networks pose an unusual problem for theory. Their training dynamics arise from strongly nonlinear interactions among an enormous number of parameters, yet their macroscopic behavior is often strikingly regular. Across several learning domains, performance obeys smooth scaling relations over large changes in model size, data, and compute, while appropriate parameterizations can make optimization hyperparameters transferable across orders of magnitude in width Hestness et al. (2017); Kaplan et al. (2020); Yang et al. (2021). Regular organization also appears within the learned dynamics and representations themselves: neural-network training repeatedly develops characteristic spectral structure Cohen et al. (2021), and learned functions exhibit systematic preferences for smooth, data-dependent directions Rahaman et al. (2019); Kadkhodaie et al. (2024). These observations are striking precisely because such regularity is not obvious from the microscopic equations of training. They raise a basic mechanistic question:
How can highly nonlinear learning dynamics give rise to stable and scalable macroscopic organization?
(1)
This question implies that a useful theory of deep learning should therefore do more than track individual parameter trajectories. It should identify a level of description at which robust collective structure becomes visible.
A particularly successful step in this direction has been to move from parameter space to function space. In the neural tangent kernel regime, a highly nonlinear parameterized model reduces to an approximately closed linear dynamics governed by a kernel that remains nearly fixed throughout training Jacot et al. (2018); Chizat et al. (2019). This reveals that a complicated microscopic system can admit a much simpler macroscopic description. The price of this closure, however, is that the geometry governing learning is effectively frozen. Feature-learning theories relax this restriction and allow representations, kernels, and their spectra to evolve Woodworth et al. (2020); Lauditi et al. (2025; 2026). The two regimes therefore expose a useful tension: fixing the dynamical geometry yields a simple closed description, whereas allowing the geometry itself to adapt restores an essential part of learning but also reintroduces nonlinear, self-consistent, and often model-dependent dynamics. This motivates asking whether the evolving macroscopic organization of learning can be characterized without resolving its full microscopic trajectory.
The combination of enormous microscopic dimension, strong nonlinearity, and reproducible macroscopic structure makes statistical mechanics a natural framework for this question. Statistical-mechanical ideas have long been used to study neural networks through Gibbs ensembles, high-dimensional landscapes, stochastic-gradient diffusions, mean-field descriptions, and collective order parameters Bahri et al. (2020); Mandt et al. (2016; 2017); Chaudhari & Soatto (2018). These approaches have established that useful macroscopic laws can emerge after coarse graining over microscopic degrees of freedom. In many existing formulations, however, the statistical description is constructed either directly in parameter space or through a set of macroscopic variables chosen for a specific model or limit. A comparatively unexplored possibility is to formulate the statistical mechanics of learning directly at the level where the learned object itself evolves: function space.
This is the perspective developed in the present work. A central methodological distinction is that a neural-network model is treated as a microscopic realization of the statistical theory rather than as its starting point. We first formulate the macroscopic variables and conditional statistical law in function space; a concrete architecture then determines which dynamical operators and microstate geometries are realizable, and therefore how the macroscopic law is instantiated. This does not make architecture irrelevant: both the instantaneous learning operator and the multiplicity of microscopic realizations remain model-dependent. Rather, it separates the form of the organizing principle from its model-specific realization. This distinction is particularly natural for macroscopic regularities that persist across architectures: their concrete realization may vary, while the form of their organizing mechanism need not originate from any one microscopic model.
Parameter configurations are treated as microscopic realizations, while functions and the operators governing their evolution provide the macroscopic variables. Scalar quantities such as the loss remain important observables, but they retain only the magnitude of the prediction error and discard much of its directional and spectral structure. Function space lies between these two extremes: it coarse-grains over redundant parameterizations while preserving the geometry of learning. For mean-squared loss, the exact function-space gradient dynamics take the simple form
so the spectrum and eigendirections of directly determine the relaxation geometry of the error. The parameterization enters this description through the multiplicity of microscopic realizations of a given function-space state. Denoting the corresponding density of states by , its local curvature defines
Thus describes the dynamical geometry of learning, while describes the statistical geometry induced by the underlying parameter microstates. Only the compression of to the finite-dimensional active sector of enters the determinants and commutators below.
Conditioning on a current error macrostate and integrating over the local function-space fluctuation ensemble yields a conditional free-energy contribution that depends on the dynamical operator,
Its rotational structure produces a sharp conditional preference. At fixed spectrum,
while the free-energy minimum pairs the spectra as
The matched state further has positive rotational curvature in every nondegenerate pairwise direction. Accordingly, this conditional free-energy contribution supplies a local restoring thermodynamic force against operator mismatch. We do not assume that this term exhausts the full slow dynamics of ; rather, it identifies one definite thermodynamic bias contributed by the local fluctuation sector. The complete local free energy also contains a distinct macrostate term, , which supplies an error-directed orientational preference; Sec. 4.1 separates these two contributions explicitly.
We then examine the physical meaning of this abstract statistical geometry in a concrete class of function spaces. ReLU networks represent continuous piecewise-affine functions whose second-order structure is concentrated on activation-cell boundaries. After coarse graining, this structure can be represented by a linear operator . Under mild statistical boundary conditions on the local microstate ensemble, the curvature operator becomes
where is a positive structural entropy metric. Hence, for an eigenmode ,
and the low- sector corresponds, up to the bounded anisotropy of , to directions of small coarse-grained structural curvature. Combining this identification with the thermodynamic matching condition gives
Within this class of function spaces, the conditional thermodynamic contribution therefore favors pairing faster relaxation with the low-curvature sector of the data-weighted functional geometry.
Taken together, these results suggest that function space provides a natural macroscopic level for the statistical mechanics of learning. At this level, the learning dynamics can be separated from the statistical constraints supplied by the underlying parameterization: the former determines how function-space states evolve, while the latter determines which such states admit many microscopic realizations and how those realizations are organized. In the present work, this separation reveals a thermodynamic bias in the direction of feature evolution. More broadly, the same viewpoint may provide a route for studying other stable collective structures of learning—including representation geometry, spectral organization, and stability—without requiring a complete description of the microscopic parameter trajectory.
Contributions. Our main contributions are:
We develop a conditional statistical-mechanical formulation of neural-network training directly in function space. The macroscopic statistical law is formulated before choosing a particular architecture, with concrete neural networks entering as microscopic realizations of that law.
-
We show how parameter-space microstate multiplicity induces a function-space density of states and a local statistical curvature operator , thereby separating the dynamical geometry from the statistical geometry supplied by the parameterization.
-
We derive the conditional fluctuation contribution to the operator free energy and prove that its rotational stationary points satisfy . On a fixed-spectrum orbit this contribution is globally minimized by reverse spectral pairing, with larger eigenvalues of M matched to smaller eigenvalues of B, and its gradient supplies a local restoring force contribution around the matched state.
- For ReLU-type function spaces under mild stable statistical boundary conditions, we show that and that its spectrum measures coarse-grained structural curvature up to the bounded anisotropy of the structural entropy metric. Combining this result with the conditional operator preference yields a thermodynamic bias toward pairing faster relaxation with the low-curvature data-adaptive sector.
The remainder of the paper develops these results in three steps. Section 3 constructs the conditional statistical mechanics of error fluctuations. Section 4 analyzes the conditional operator free-energy contribution and its matching geometry. Section 5 connects the resulting microstate curvature to the structural smoothness of ReLU function spaces.
Our work concerns this latter regime, but reverses the usual order of construction. Rather than beginning from a specified neural-network model and deriving model-specific macroscopic variables, we formulate the conditional statistical mechanics at the function-space level and then ask how a concrete model realizes it. Within this formulation, the fluctuation contribution depends on the relative geometry of the dynamical operator and the parameterization-induced microstate geometry. Its rotational extrema require to commute with a microstate-curvature operator , and its minima pair large dynamical eigenvalues with small microstate-curvature eigenvalues. The ReLU specialization in Sec. 5 is therefore a concrete realization of the general operator-level construction rather than its starting point.
Stochastic gradient dynamics and statistical mechanics. Diffusion and statistical-mechanical descriptions of stochastic optimization have a long history in machine learning. Constant-step stochastic gradient dynamics can be approximated locally by diffusion or Ornstein–Uhlenbeck processes, leading to effective stationary distributions and Bayesian interpretations Mandt et al. (2016; 2017). Other work has emphasized that realistic stochastic-gradient noise is generally anisotropic and can generate genuinely nonequilibrium behavior Chaudhari & Soatto (2018). More broadly, statistical-mechanical tools such as effective energies, free energies, and high-dimensional random systems have played an important role in theoretical studies of deep learning Bahri et al. (2020). The Langevin and Fokker–Planck machinery used in our bare conditional dynamics follows the standard theory of reversible diffusion processes Risken (1989); Pavliotis (2014); Jordan et al. (1998).
The statistical-mechanical object considered here differs from the usual parameter-space loss landscape. We first express mean-squared gradient flow directly in error space,
and show that isotropic stochastic forcing in the error source induces the mobility . This allows the bare conditional dynamics to be represented as an overdamped Langevin process with the quadratic energy
We then combine this dynamical weight with a parameter-space reference measure and push the resulting microstate ensemble forward to function space. The induced density of states counts the multiplicity of parameter microstates associated with the same coarse-grained function-space state, producing the effective contribution
to the conditional free energy. Thus the entropy in our formulation is associated with parameter-space multiplicity at fixed function-space macrostate, rather than solely with the local volume of a loss minimum.
Spectral bias and smooth feature learning. Neural networks are known to exhibit a spectral bias toward learning simpler or lower-frequency components of a target function earlier in training Rahaman et al. (2019). Such behavior is commonly characterized using Fourier modes, kernel eigenfunctions, or other externally chosen spectral decompositions, and the resulting bias can depend strongly on the geometry of the data distribution. In the present work, smoothness instead emerges from the same operator geometry that enters feature learning. We derive a microstate-curvature operator
whose eigendirections are defined directly in the data-weighted function space . Under regular structural statistics, its eigenvalues satisfy
so that small- identifies low structural curvature up to the bounded anisotropy of the structural metric. Combining this with the conditional operator preference gives
The resulting structural bias is therefore not imposed through a fixed Fourier basis or a fixed kernel spectrum; it is defined intrinsically by the data-weighted microstate geometry of the learned function space.
Piecewise-linear geometry of ReLU networks. ReLU networks represent continuous piecewise-affine functions whose input space is partitioned into activation regions. This viewpoint has been developed through spline and piecewise-linear descriptions of deep networks Balestriero & Baraniuk (2018), as well as variational and representer theorems connecting ReLU networks to spline-like function spaces and second-order regularity Unser (2019). We use this geometric structure as the architectural input to our statistical theory. Within each activation cell the Hessian vanishes, while second-order structure is concentrated on cell boundaries through jumps of the gradient. After coarse graining, this motivates the structural field
Under mild statistical boundary conditions on the entropy of these structural states, the corresponding function-space microstate curvature is
The role of ReLU geometry in our framework is therefore to provide the structural operator whose entropy curvature enters the conditional thermodynamic preference analyzed in Sec. 4.
3 Conditional Statistical Mechanics of Error Fluctuations
3.1 Exact function-space gradient dynamics
We begin by expressing gradient descent directly in function space. Let denote the data distribution and define
with inner product
For a model and target function , define the error field
and the mean-squared loss
Let
denote the Jacobian mapping infinitesimal parameter perturbations to function-space perturbations. Its adjoint is defined with respect to the parameter-space inner product and . Then
and continuous-time gradient flow gives
Applying the chain rule,
This motivates the function-space dynamical operator
which is self-adjoint and positive semidefinite. The exact error dynamics is therefore
Importantly, Eq. equation 27 does not require linearizing the network around a fixed parameter configuration: may evolve along the training trajectory.
For a finite-parameter model, has finite rank. We work throughout on a fixed finite-dimensional active sector
and write for the orthogonal projection onto . The restriction of to is taken to be positive definite. All inverses, traces, determinants, and orthogonal rotations in the following sections are understood on . Directions in ker do not relax under Eq. equation 27 and are excluded from the conditional fluctuation sector.
3.2 Conditional Langevin dynamics and dynamical weight
We next construct the dynamical statistical weight associated with the local error dynamics. We condition on a macroscopic configuration for which and
are treated as fixed parameters of the conditional problem. This conditioning defines a family of local ensembles; by itself it does not require a dynamical separation of time scales between and the error fluctuations.
Consider the standard constant-mobility overdamped Langevin equation
where is an energy, is a positive mobility operator, and sets the stochastic scale. Such dynamics admit the standard Itô Fokker–Planck and equilibrium structure Risken (1989); Pavliotis (2014).
Stochastic mobility. We model the stochastic source in error space as isotropic,
In the infinite-dimensional notation, may be understood as a cylindrical Wiener process; because has finite rank, is well defined on . We assume that this source enters parameter space through the same Jacobian channel as the deterministic gradient,
With J fixed in the conditional construction,
(33)
Combining this with Eq. equation 27 gives the bare conditional process
Its stochastic increment has covariance
so comparison with Eq. equation 30 identifies
Dynamical energy. To represent the deterministic drift in Langevin form, we seek such that
On , M is invertible, and with this gives
Hence
Equation equation 34 can therefore be written as
Theorem 3.1 (Bare conditional Langevin equilibrium). For the conditional process Eq. equation 40 on , the density satisfies
Its reversible stationary density with respect to the reference volume de on is
Moreover,
is non-increasing along the conditional Fokker–Planck dynamics:
Proof. The Itô forward equation for Eq. equation 40 is Eq. equation 41, with probability current
For Eq. equation 42, , so . The variational derivative of Eq. equation 43 is
and an integration by parts gives Eq. equation 44.
Theorem 3.1 supplies the dynamical Boltzmann weight relative to the reference volume in function space. It does not count how many parameter configurations realize a given error state. In particular, the bare noise process above is not assumed to explore parameter-fiber directions. Parameter multiplicity enters independently through the reference microstate measure introduced next.
3.3 Parameter microstates and the induced conditional ensemble
We take the background state to include the conditioned dynamical operator together with the remaining constraints supplied by the parameterization, architecture, and data, and let denote the corresponding reference measure over parameter microstates. To define a regular density of states without invoking an infinite-dimensional volume element, introduce a finite-dimensional retained function-space sector
with orthogonal projector . The sector contains the active learning sector but may also retain additional coarse-grained function coordinates needed to define the microstate statistics. We define
and the corresponding pushforward reference measure
Here denotes ordinary Lebesgue volume in an orthonormal coordinate system on . We assume that the coarse-grained pushforward is regular enough to admit a density,
Thus is a density of parameter microstates on the retained coarse-grained function sector . No density with respect to an infinite-dimensional “function-space volume” is assumed. The operator calculations below use only the compression of its local curvature to the active subspace .
The following factorization is the central statistical assumption that combines the two ingredients above.
A1. Factorization of dynamical weight and microstate multiplicity. At fixed background state z and dynamical operator M, we assume that the microscopic statistical weight factorizes into a dynamical factor that depends on a parameter configuration only through its induced error state and a reference microstate measure that supplies the multiplicity of such realizations. Equivalently,
The reference measure is not assumed to be dynamically sampled by the bare -channel noise. Rather, it encodes the conditional multiplicity supplied by the parameterization and other degrees of freedom included in z. Assumption A1 states that this multiplicity can be combined with the bare dynamical weighting without an additional fiber-dependent energetic factor. Possible dependence of the reference microstate statistics on slower variables, including changes induced by an actual motion of , is outside the partial conditional comparison performed below.
Under A1, the bare conditional dynamics supplies the Boltzmann factor on the active component, while the pushforward of supplies the density of states on . Their product defines the conditional canonical ensemble
By Assumption A1, Eq. equation 51 is the corresponding parameter-space ensemble, and its pushforward under is Eq. equation 52. If Eq. equation 50 holds, then
The two factors in Eq. equation 53 have distinct origins. The exponential factor is the dynamical weight derived from the bare conditional Langevin process, whereas is a static density-of-states factor supplied by the parameterization. Their product is therefore an ensemble construction; Eq. equation 53 is not claimed to be the stationary law generated by Eq. equation 34 alone.
Defining
the conditional ensemble takes the Gibbs form
Proposition 3.2 (Microstate-weighted conditional ensemble). Let be a parameter-space reference measure and let . If , then the factorized canonical weighting Eq. equation 51 induces the function-space ensemble Eq. equation 53, equivalently the Gibbs form Eq. equation 55 generated by .
Proof. For any measurable set ,
(56)
Substituting gives Eq. equation 53.
The parameter-space pushforward therefore contributes the entropic term to the effective retained-sector free energy, independently of the bare stochastic channel used to identify .
3.4 Local microstate curvature and the conditional fluctuation ensemble
We now condition on a current retained error macrostate and characterize fluctuations along the active learning sector,
Write for the active component of the conditioned macrostate. The point r is a conditioning variable and is not assumed to minimize . The standard constrained-ensemble construction introduces a linear source conjugate to the macrostate. In a full maximum-entropy formulation, the source is the Lagrange multiplier enforcing the chosen mean macrostate. At the local Laplace level used here, conditioning on r amounts to choosing the source so that r is a stationary point of the tilted potential,
It is useful to separate the zero-order macrostate cost from the fluctuation cost and define the local excess potential
Then and its first variation vanishes at , while its Hessian is exactly the Hessian of at . We do not require to be the unconstrained mean or mode of the full non-Gaussian Gibbs measure; the construction is the quadratic local form of the usual Legendre/Lagrange constrained ensemble.
Define the retained-sector microstate-curvature form by
The operator entering the finite-dimensional fluctuation sector is its compression
Since the dynamical term has active-sector Hessian
, a second-order expansion of Eq. equation 59 gives
where
Proposition 3.3 (Local conditional fluctuation ensemble). Suppose that
on . Then, to quadratic order around the conditioned macrostate , the local fluctuation ensemble is Gaussian:
with covariance
Proof. Equation equation 63 is quadratic with positive-definite Hessian . The normalized Gaussian measure therefore has precision and covariance .
Proposition 3.3 is a conditional ensemble statement. No separation between the relaxation time of and the evolution time of r or M is required for the algebraic results below. Interpreting the same ensemble as an adiabatically realized quasi-equilibrium along an actual training trajectory would require an additional local-equilibration assumption, which we do not use here.
The conditional Gaussian sector is the starting point for the next section. The local Laplace expansion separates the macrostate cost from the fluctuation cost. To quadratic order,
where is obtained by integrating the excess fluctuations. The next section isolates this fluctuation-induced contribution and asks what orientational preference it supplies.
4 Operator Matching under Thermodynamic Stability
Section 3.4 showed that, at a conditioned macrostate , the local fluctuation ensemble on the active sector is governed by
with
We now ask what orientational preference is contributed by this conditional fluctuation sector.
Throughout this section, and the compressed statistical geometry are held fixed, and we write
for brevity. This is a partial, conditional comparison: if an actual parameter-space motion that rotates also changes or , those responses contribute additional terms to the full slow dynamics and are not included in the derivative computed here. The comparison is restricted to orthogonal rotations of within the fixed active sector , so its eigenvalues, rank, and active subspace remain unchanged.
We focus on the thermodynamically stable sector
Equivalently, the compressed local entropy curvature is concave on . Since , this condition guarantees
for every orthogonal acting on . Thus the local Gaussian ensemble remains normalizable over the entire fixed-spectrum orbit.
Condition equation 72 is a stability restriction, not a consequence of ReLU geometry alone. In Sec. 5, we identify a regular ReLU statistical sector, defined in part by a positive structural entropy curvature, in which this condition is realized.
4.1 Conditional operator free-energy contribution
From Proposition 3.3, the local conditional distribution at fixed is
The Gaussian partition function on the -dimensional active sector is
Integrating over the conditional fluctuations therefore contributes
The omitted constant depends on and but is constant on the fixed-rank, fixed-spectrum orbit studied below; it must be restored when comparing sectors of different rank or different active subspaces. For brevity, we write throughout the remainder of this section.
Equation equation 68 makes clear that is only one contribution to the total local free energy. In particular,
contains its own orientational dependence through
At fixed spectrum, this rank-one macrostate term is minimized when the current active residual direction is aligned with the largest eigenvalue of M, i.e. with the fastest relaxation direction. This error-directed preference is distinct from the fluctuation-induced matching preference studied below. Their relative magnitude depends on the conditioned state, spectrum, parameterization, and training conditions, and we make no universal ordering between them. The present analysis therefore isolates the fluctuation contribution rather than treating it as a proxy for the total orientational free energy.
Our theorems characterize the thermodynamic preference and generalized force supplied specifically by ; they do not claim to minimize the complete local free energy or to determine the full slow dynamics of M. Appendix A shows that, for residual-preserving rotations, the macrostate term is exactly constant, so the fluctuation contribution can also be isolated as a strict orientational statement on that restricted orbit.
Using
we may write
where all determinants are on . Along a fixed-spectrum orbit, is constant, so the orientational contribution is
The matching theorem below is exact throughout the stable sector, but the magnitude of the orientational bias depends on the dimensionless coupling between and . In particular, on a subspace where and all eigenvalues of are asymptotically large,
so the leading orientational dependence disappears. Thus the conditional matching contribution is most pronounced outside this deep strong-coupling limit; the result remains valid there, but its orientational force becomes parametrically weak.
4.2 Rotational stationarity and operator matching
Let the spectrum of M be fixed and consider an infinitesimal orthogonal rotation within ,
Then
Theorem 4.1 (Operator-matching condition for the conditional contribution). Let and on , with . The conditional free-energy contribution
is rotationally stationary on the fixed-spectrum orbit of if and only if
Proof. Let . Along Eq. equation 83,
Because and are self-adjoint, is anti-self-adjoint. Stationarity for all anti-self-adjoint is therefore equivalent to
Since is invertible, this is equivalent to , hence to , and therefore to .
Theorem 4.1 characterizes the stationary orientations preferred by the conditional fluctuation contribution. It does not assert that the complete parameter dynamics necessarily drives to such a point.
4.3 Reverse spectral pairing
At a rotationally stationary point, and share an eigenbasis. Let
and
At a commuting configuration specified by a permutation ,
and
Theorem 4.2 (Reverse spectral pairing). Within the stable sector , the conditional orientational free-energy contribution
is globally minimized when the spectra of and are oppositely ordered:
With the ordering above, a minimizing configuration is
Same-order pairing gives the global maximum. If both spectra are nondegenerate, all other commuting permutations are saddles.
Proof. The fixed-spectrum orthogonal orbit is compact, and Eq. equation 73 ensures that is continuous on the full orbit. Any global extremum is therefore stationary and, by Theorem 4.1, commuting.
Consider and . The difference between same-order and reversed pairings is
(96)
Since log is increasing, replacing an in-order pair by a reversed pair lowers . Repeated exchanges give the global reverse ordering; reversing the argument gives the global maximum.
For completeness, at a commuting configuration the tangent space of the orthogonal orbit is spanned by independent pairwise generators . Because both M and B are diagonal there,
so has only the corresponding off-diagonal pair and both and contain only terms, with no cross-pair contributions. The second variation is therefore diagonal in this basis, with pairwise curvature
Any nonextremal permutation contains both an in-order and a reversed pair, and therefore has both positive- and negative-curvature tangent directions. It is thus a saddle.
The theorem describes the orientation favored by the conditional fluctuation contribution: directions of weaker microstate curvature lower this contribution when paired with larger dynamical eigenvalues.
4.4 Local rotational restoring contribution
We next characterize the generalized force supplied by the conditional free energy near a reverse-paired configuration. Consider
and rotate by
Writing
a direct calculation gives
where
Hence
with
At the reverse-paired minimum, implies , so .
Corollary 4.3 (Local rotational restoring contribution). For every nondegenerate pair at a reverse-paired commuting configuration, the conditional orientational free energy has strictly positive quadratic curvature. Defining the generalized force contributed by this sector as
one obtains
Thus the conditional fluctuation sector contributes a local restoring thermodynamic force against rotational mismatch.
If or , then and the corresponding rotation is a flat direction of this contribution.
Corollary 4.3 is deliberately an operator-space statement about one term in the effective force on . The total slow dynamics may contain additional contributions, and whether a given parameterization can realize the corresponding operator rotation depends on the map .
4.5 Commutator interpretation
Define the active-sector mismatch
Near a reverse-paired commuting configuration,
Combining this with Corollary 4.3, every nondegenerate pair satisfies locally
Thus descent of the conditional free-energy contribution locally reduces operator noncommutativeity. This identifies the direction of the thermodynamic bias supplied by the fluctuation sector without assuming that the full parameter dynamics follows this descent exactly.
5 ReLU Cell Geometry and Structural Smoothness Preference
Section 4 showed that the conditional fluctuation free-energy contribution is minimized, on a fixed-spectrum orbit, when large eigenvalues of are paired with small eigenvalues of the compressed microstate-curvature operator . We now examine the structure of this statistical geometry for ReLU networks.
5.1 ReLU cell geometry and the structural field
Let denote a function represented by a ReLU network. The input space is partitioned into activation cells within which the activation pattern is fixed. Restricted to any such cell, is affine, and therefore
inside each activation cell.
(111)
The second-order structure is consequently localized on the boundaries between adjacent cells.
Consider a codimension-one facet separating two neighboring activation cells. Continuity implies that tangential derivatives agree across the facet, whereas the normal component of the gradient may jump. Thus
(112) where is a unit normal and is the jump amplitude. Accordingly, the Hessian is naturally understood distributionally:
Thus the second-order content of a ReLU function is carried by its activation boundaries and associated gradient jumps.
We introduce a fixed coarse-graining operator and define the structural field
The field summarizes coarse-grained departures from local affinity. We choose the retained function sector introduced in Sec. 3.3 so that these coarse-grained structural coordinates are well defined on the retained directions. The map sends this retained function sector into a structural-field space ; the finite-dimensional operator entering Sec. 4 is then obtained by compression from to .
5.2 Statistical boundary conditions for ReLU microstates
Let denote the current coarse-grained function configuration and . We impose three statistical boundary conditions on the local microstate ensemble.
R1. Structural sufficiency. Within the retained coarse-grained sector, the relevant local variation of the microstate entropy is determined by :
in a neighborhood of .
R2. Local entropy regularity. We assume that is twice Fréchet differentiable near and define
The first variation need not vanish; it affects the local center, whereas the second variation controls the fluctuation geometry. This regularity assumption is imposed on the entropy of the coarse-grained structural field, not on the microscopic facet configuration itself. The role of is to suppress facet-scale singular structure before this local statistical description is applied; R2 does not claim that the raw activation-boundary ensemble is differentiable.
R3. Mild stable structural statistics. On the structural subspace relevant to the local fluctuations, we assume
for finite .
Condition R3 is the stability input of the ReLU specialization: it assumes local concavity of the structural microstate entropy on the retained sector. ReLU cell geometry by itself does not imply this statistical property. The role of R1–R3 is instead to identify a regular ReLU microstate class in which the stable sector used in Sec. 4 is realized.
5.3 Pullback of the microstate curvature
On the retained function sector, write , , and . Up to an additive constant, the microstate entropy introduced in Sec. 3.3 is
Since is fixed, variations in and coincide. Under R1,
and therefore
Let be the adjoint defined by
Then
Theorem 5.1 (ReLU microstate curvature). Under R1–R3, the retained-sector microstate-curvature form is
For every retained perturbation for which is defined,
Hence as a quadratic form on . The operator entering Sec. 4 is the compression
which is therefore positive semidefinite on . Under the strict coercivity in , on the retained function sector.
Proof. Equation equation 123 follows from Eq. equation 122 and the retained-sector translation . For any u,
Applying R3 yields Eq. equation 124. Compression preserves positive semidefiniteness. Finally, strict coercivity implies if and only if .
The theorem should therefore be read as a pullback result: R3 supplies the stable structural entropy metric, while the ReLU structural map L determines how that metric is represented in function space.
5.4 Microstate curvature and structural smoothness
The spectral matching in Sec. 4 involves the finite-dimensional compressed operator . Let
Because ,
Applying Eq. equation 124,
Hence
For ReLU functions, , so measures coarse-grained second-order content, including activation-boundary and gradient-jump structure. We call directions with small structurally smooth; throughout this paper, “smooth” in the ReLU specialization refers to low coarse-grained structural curvature in this sense, rather than to a fixed Fourier frequency notion.
Corollary 5.2 (Smoothness interpretation). Within the active sector and under R1–R3, the spectrum of controls coarse-grained structural curvature up to the bounded condition number
In particular,
Thus low- spectral sectors correspond, within the finite distortion set by , to sectors of low coarse-grained structural curvature. Exact pairwise ordering of is not asserted when the structural metric is strongly anisotropic. This limitation affects only the translation from the spectrum to structural smoothness; the reverse-pairing statement of Theorem 4.2, which is formulated directly in terms of the eigenvalues, remains exact.
5.5 Data-adaptive structural smoothness preference
The smoothness spectrum is defined in the data-weighted function space
with
Consequently, the adjoint , orthogonality of modes, and the active-sector compression all depend on the geometry induced by . Making this dependence explicit,
Thus the low-curvature sectors identified through are intrinsic to the data-weighted functional geometry.
Combining this interpretation with Theorem 4.2, the conditional fluctuation free-energy contribution pairs large dynamical eigenvalues with the low- sector, which corresponds up to the bounded distortion to low-curvature data-adaptive function-space directions:
Corollary 5.3 (Data-adaptive structural smoothness preference). Under R1–R3 and within the stable active sector, the conditional orientational free-energy contribution favors pairing larger eigenvalues of M with the low- data-adaptive sector. Through Eq. equation 129, this is a bias toward directions of lower coarse-grained structural curvature up to the finite anisotropy factor . Since sets the gradient-flow relaxation rate along the corresponding eigendirection, the fluctuation contribution therefore favors faster relaxation in this low-curvature sector.
The result is a statement about the geometry preferred by the conditional fluctuation contribution. Whether the full training dynamics realizes this preference depends on the remaining slow operator dynamics and on how parameter motion can realize changes in .
6 Discussion and Future Work
The function-space thermodynamic picture developed here is broadly consistent with several empirical regularities reported in neural networks. Classical observations of spectral bias indicate that smoother or lower-frequency components are often learned earlier Rahaman et al. (2019). More recently, diffusion denoisers have been found to develop geometry-adaptive harmonic representations: their learned input–output Jacobians organize into data-dependent eigendirections whose ordering is closely related to smoothness Kadkhodaie et al. (2024). The operator measured in that work is not the learning operator considered here, so this is not a direct test of our theory. Nevertheless, the observed organization is qualitatively consistent with the geometry favored by our conditional fluctuation contribution,
The same macroscopic language can also accommodate qualitatively different learning regimes. If remains effectively fixed, the description reduces to a kernel-like regime. If additional slow dynamics allow to respond to the conditional thermodynamic force derived here, the same framework supplies a bias toward regular operator matching. Conversely, apparently sharp macroscopic behavior need not have a unique origin: it may reflect competition between distinct macroscopic states, or it may arise from a broad hierarchy of relaxation times even when the underlying dynamics remain continuous. The latter possibility is conceptually related to quantized models of neural scaling, in which smooth aggregate scaling can coexist with the sudden appearance of individual capabilities Michaud et al. (2023).
Grokking provides a suggestive example of the former possibility. Previous work has connected delayed generalization to structured representations Liu et al. (2022), escape from an early kernel-like regime in modular addition Mohamadi et al. (2024), and first-order phase transitions between representation phases in two-layer teacher-student models Rubin et al. (2024). Our framework highlights an endogenous route by which the relative statistical preference of macroscopic states can change during training. Because the density of states and its local curvature depend on the current error state, the statistical geometry sampled by the theory changes as evolves. If two macroscopic branches coexist, their total conditional free energies, denoted schematically by and , may therefore cross. These symbols refer to full branch free energies, including macrostate, spectral, rank-dependent, and fluctuation contributions; such a term-by-term global branch theory is not constructed in the present work. Schematically,
In this picture, the training state itself can act as an endogenous control variable. Establishing the relevant competing branches, barriers, and transition dynamics lies beyond the local conditional theory developed here and is left for future work.
Several limitations define natural extensions. First, the present construction assumes an isotropic stochastic source in function space. More generally, the noise may possess its own covariance geometry Q, leading schematically to
The resulting conditional statistical mechanics need not remain reversible, and the operator preference may differ from the one derived here; nonequilibrium extensions are therefore an important direction. Second, is the free-energy contribution of the local conditional fluctuation sector, not a derivation of the complete slow dynamics of . The macrostate term already supplies a distinct error-directed orientational preference, and further slow terms may also be present. Interpreting the fluctuation gradient as an actual component of training dynamics requires that these other contributions do not cancel or overwhelm it. Third, our conditional ensemble does not require a time-scale separation, but interpreting it as a quasi-static distribution realized along a training trajectory would require additional local-equilibration assumptions. Finally, all operator matching results are formulated on a fixed finite-dimensional active sector, and the ability of parameter dynamics to realize the corresponding operator rotations remains architecture dependent.
7 Conclusion
We developed a statistical-mechanical description of neural-network learning directly in function space. Parameter configurations provide the microscopic realizations, while functions and the operators governing their evolution provide macroscopic variables. This separation makes it possible to distinguish the dynamical geometry of learning from statistical constraints induced by the underlying parameterization.
For mean-squared loss, the exact error dynamics determines a bare conditional dynamical weight. Combining this weight with parameter-space microstate multiplicity produces a conditional function-space ensemble whose local statistical curvature is described by . On the finite-dimensional active sector, integrating over local error fluctuations yields a conditional free-energy contribution
At fixed spectrum, this contribution is stationary when , is minimized by the reverse pairing
and supplies a local restoring force contribution against rotational mismatch.
For ReLU-type function spaces, stable structural statistics satisfying R1–R3 give
whose active-sector spectrum measures coarse-grained structural curvature up to the bounded anisotropy of the structural metric. The conditional thermodynamic contribution therefore favors pairing faster relaxation with the low-curvature, data-adaptive sector.
These results suggest that function space provides a natural macroscopic level for the statistical mechanics of learning. In this organization of the theory, a concrete neural network is a microscopic realization rather than the starting point: the function-space organizing principle is formulated first, while architecture and parameterization determine which operators and microstate geometries realize it. The present theory isolates one thermodynamic contribution within this framework, providing a basis for studying more general slow dynamics and nonequilibrium extensions.
References
Yasaman Bahri, Jonathan Kadmon, Jeffrey Pennington, Samuel S. Schoenholz, Jascha Sohl-Dickstein, and Surya Ganguli. Statistical mechanics of deep learning. Annual Review of Condensed Matter Physics, 11: 501–528, 2020. doi: 10.1146/annurev-conmatphys-031119-050745.
Randall Balestriero and Richard Baraniuk. A spline theory of deep learning. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 374–383. PMLR, 2018. URL https://proceedings.mlr.press/v80/balestriero18b.html.
Pratik Chaudhari and Stefano Soatto. Stochastic gradient descent performs variational inference, converges to limit cycles for deep networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=HyWrIgWOW.
Lénaïc Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. In Advances in Neural Information Processing Systems, volume 32, pp. 2933–2943, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/ae614c557843b1df326cb29c57225459-Abstract.html.
Jeremy M. Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=jh-rTtvkGeM.
Joel Hestness, Sharan Narang, Newsha Ardalani, Gregory F. Diamos, Heewoo Jun, Hassan Kianinejad, Md. Mostofa Ali Patwary, Yang Yang, and Yanqi Zhou. Deep learning scaling is predictable, empirically, 2017. URL https://arxiv.org/abs/1712.00409.
Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in Neural Information Processing Systems, volume 31, pp. 8571–8580, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/5a4be1fa34e62bb8a6ec6b91d2462f5a-Abstract.html.
Richard Jordan, David Kinderlehrer, and Felix Otto. The variational formulation of the fokker-planck equation. SIAM Journal on Mathematical Analysis, 29(1):1–17, 1998. doi: 10.1137/S0036141096303359.
Zahra Kadkhodaie, Florentin Guth, Eero P. Simoncelli, and Stéphane Mallat. Generalization in diffusion models arises from geometry-adaptive harmonic representations. In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=ANvmVS2Yr0.
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models, 2020. URL https://arxiv.org/abs/2001.08361.
Clarissa Lauditi, Blake Bordelon, and Cengiz Pehlevan. Adaptive kernel predictors from feature-learning infinite limits of neural networks. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 32617–32648. PMLR, 2025. URL https://proceedings.mlr.press/v267/lauditi25a.html.
Clarissa Lauditi, Cengiz Pehlevan, and Blake Bordelon. Spectral dynamics in deep networks: Feature learning, outlier escape, and learning rate transfer, 2026. URL https://arxiv.org/abs/2605.07870.
Ziming Liu, Ouail Kitouni, Niklas S. Nolte, Eric J. Michaud, Max Tegmark, and Mike Williams. Towards understanding grokking: An effective theory of representation learning. In Advances in Neural Information Processing Systems, volume 35, 2022. doi: 10.52202/068431-2511. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/dfc310e81992d2e4cedc09ac47eff13e-Abstract-Conference.html.
Stephan Mandt, Matthew D. Hoffman, and David M. Blei. A variational analysis of stochastic gradient algorithms. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 354–363. PMLR, 2016. URL https://proceedings.mlr.press/v48/mandt16.html.
Stephan Mandt, Matthew D. Hoffman, and David M. Blei. Stochastic gradient descent as approximate bayesian inference. Journal of Machine Learning Research, 18(134):1–35, 2017. URL https://jmlr.org/papers/v18/17-214.html.
Eric J. Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. The quantization model of neural scaling. In Advances in Neural Information Processing Systems, volume 36, pp. 28699–28722, 2023. doi: 10.52202/075280-1248. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/5b6346a05a537d4cdb2f50323452a9fe-Abstract-Conference.html.
Mohamad Amin Mohamadi, Zhiyuan Li, Lei Wu, and Danica J. Sutherland. Why do you grok? A theoretical analysis on grokking modular addition. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 35934–35967. PMLR, 2024. URL https://proceedings.mlr.press/v235/mohamadi24a.html.
Grigorios A. Pavliotis. Stochastic Processes and Applications: Diffusion Processes, the Fokker–Planck and Langevin Equations, volume 60 of Texts in Applied Mathematics. Springer, New York, 2014. doi: 10.1007/978-1-4939-1323-7.
Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5301–5310. PMLR, 2019. URL https://proceedings.mlr.press/v97/rahaman19a.html.
Hannes Risken. The Fokker–Planck Equation: Methods of Solution and Applications, volume 18 of Springer Series in Synergetics. Springer-Verlag, Berlin, 2 edition, 1989. ISBN 9780387504988.
Noa Rubin, Inbar Seroussi, and Zohar Ringel. Grokking as a first order phase transition in two layer networks. In The Twelfth International Conference on Learning Representations, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/hash/682f87a8c306098ec8be29019bd76aa4-Abstract-Conference.html.
Michael Unser. A representer theorem for deep neural networks. Journal of Machine Learning Research, 20 (110):1–30, 2019. URL https://jmlr.org/papers/v20/18-418.html.
Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, and Nathan Srebro. Kernel and rich regimes in overparametrized models. In Proceedings of the Thirty Third Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pp. 3635–3673. PMLR, 2020. URL https://proceedings.mlr.press/v125/woodworth20a.html.
Greg Yang, Edward J. Hu, Igor Babuschkin, Szymon Sidor, Xiaodong Liu, David Farhi, Nick Ryder, Jakub Pachocki, Weizhu Chen, and Jianfeng Gao. Tensor programs v: Tuning large neural networks via zero-shot hyperparameter transfer. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/8df7c2e3c3c3be098ef7b382bd2c37ba-Abstract.html.
A Residual-Preserving Rotations of the Local Conditional Free Energy
The main text isolates the fluctuation-induced contribution to the local conditional free energy. Here we record a restricted setting in which this contribution is also the complete orientational variation of the quadratic local free energy within the conditional construction of Sec. 3.4.
Let be the active component of the conditioned macrostate. For notational simplicity within this appendix, write and assume . Define its stabilizer subgroup
Its infinitesimal generators satisfy
Consider the fixed-spectrum orbit
Proposition A.1 (Residual-preserving isolation of the fluctuation term). For every ,
Hence, at fixed conditioned macrostate and fixed density-of-states geometry , the orientational variation of the quadratic local free energy
along is exactly the orientational variation of .
Proof. Since and ,
At fixed , the density-of-states term is also independent of the rotation. Therefore only varies along the residual-preserving orbit.
For the remainder of the appendix, write
Let
(150) denote the orthogonal projector onto . For a general residual-preserving infinitesimal rotation, the first variation from Eq. equation 87 becomes
Therefore stationarity with respect to all such rotations is equivalent to
This is the exact restricted stationarity condition without any additional invariant-subspace assumption.
A particularly transparent case is obtained when the residual direction is a common invariant mode of both operators,
Then span and are invariant under both M and B, and we may write
where . Residual-preserving rotations act only on the -dimensional orthogonal block. The fluctuation orientational contribution factorizes as
The first term is fixed on . Applying Theorems 4.1 and 4.2 to the orthogonal block gives
at restricted stationary orientations, and the restricted minimum pairs the eigenvalues in reverse order,
Thus, whenever the current residual direction forms a common invariant mode, the reverse-pairing result is an exact statement about the total quadratic local free energy on the residual-preserving orbit. The main text does not require this additional condition; it characterizes the fluctuation-induced contribution on the full fixed-spectrum orbit.
If r = 0, the stabilizer is the full orthogonal group and the distinction disappears: the macrostate term vanishes, so the fluctuation contribution is the complete quadratic orientational dependence.