arXiv:2609.09589cs.AISep 2026

Manuscript Offprint

arXiv:2609.09589

A Function-Space Approach to the Statistical Mechanics of Learning Dynamics

Yizhou Zhang, Weichen Wu, Lun Du, Zhengjie Miao

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 M=JJ∗M = JJ^*. 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 BB. Conditioning on a current error macrostate and integrating over the resulting local fluctuation ensemble yields the conditional free-energy contribution Φfluc(M;B)=σξ22log⁡det⁡(M−1+B)+const\Phi_{\mathrm{fluc}}(M; B) = \frac{\sigma_{\xi}^{2}}{2} \log \det(M^{-1} + B) + \text{const} on the active sector. At fixed spectrum, this contribution is rotationally stationary when [M,B]=0[M, B] = 0, is minimized by pairing large eigenvalues of MM with small eigenvalues of BB, and supplies a local restoring force contribution against rotational mismatch. For ReLU-type function spaces under mild stable statistical conditions, BB takes the form B=σξ2L∗KLB = \sigma_{\xi}^{2} L^{*} \mathcal{K} L, with LL measuring coarse-grained second-order structure. Its low-BB sector therefore corresponds, up to the bounded anisotropy of K\mathcal{K}, 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

e˙=−Me,M=JJ∗,(2)\dot{e}=-M e,\qquad M=J J^{*}, \tag{2}

so the spectrum and eigendirections of MM 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 Ω(e)\Omega(e), its local curvature defines

∣B(r)=−σξ2∇e2log⁡Ω(e)∣e=r.(3)\left|B(r)=-\sigma_{\xi}^{2}\nabla_{e}^{2}\log\Omega(e)\right|_{e=r}. \tag{3}

Thus MM describes the dynamical geometry of learning, while BB describes the statistical geometry induced by the underlying parameter microstates. Only the compression of BB to the finite-dimensional active sector of MM 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,

Φfluc(M;B)=σξ22log⁡det⁡(M−1+B)+const.(4)\Phi_{\mathrm{f l u c}}(M;B)=\frac{\sigma_{\xi}^{2}}{2}\log\det(M^{-1}+B)+\mathrm{c o n s t}. \tag{4}

Its rotational structure produces a sharp conditional preference. At fixed spectrum,

δrotΦfluc=0⟺[M,B]=0,(5)\boxed{\delta_{\mathrm{rot}}\Phi_{\mathrm{fluc}}=0\quad\Longleftrightarrow\quad[M,B]=0,} \tag{5}

while the free-energy minimum pairs the spectra as

mlarge⟷bsmall.(6)m_{\mathrm{l a r g e}}\longleftrightarrow b_{\mathrm{s m a l l}}. \tag{6}

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 MM; rather, it identifies one definite thermodynamic bias contributed by the local fluctuation sector. The complete local free energy also contains a distinct macrostate term, 12⟨ra,M−1ra⟩p\frac{1}{2}\langle r_{a}, M^{-1}r_{a}\rangle_{p}, 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 L≃CD2L \simeq \mathcal{CD}^{2}. Under mild statistical boundary conditions on the local microstate ensemble, the curvature operator becomes

B=σξ2L∗KL,(7)\boxed{B=\sigma_{\xi}^{2}L^{*}\mathcal{K}L}, \tag{7}

where K\mathcal{K} is a positive structural entropy metric. Hence, for an eigenmode Bϕi=biϕiB\phi_i = b_i\phi_i,

bi≍∥Lϕi∥2,(8)b_{i}\asymp\|L\phi_{i}\|^{2}, \tag{8}

and the low-BB sector corresponds, up to the bounded anisotropy of K\mathcal{K}, to directions of small coarse-grained structural curvature. Combining this identification with the thermodynamic matching condition gives

mlarge⟷low structural−curvature data−adaptive sector.(9)m_{\mathrm{l a r g e}}\longleftrightarrow\mathrm{l o w~s t r u c t u r a l-c u r v a t u r e~d a t a-a d a p t i v e~s e c t o r}. \tag{9}

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 BB, thereby separating the dynamical geometry MM 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 [M,B]=0[M,B]=0. 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 B=σξ2L∗KLB = \sigma_\xi^2 L^* \mathcal{K} L 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.

References (25)