Manuscript Offprint

arXiv:2610.36113

Scaling and Renormalization in Neural Networks: An Effective Renormalization-Group Description of Grokking

Min Chen, Junqi Wang, Zeguan Wu, Wenhao Huang, Junyu Liu

Abstract

Grokking is a delayed transition from memorization to generalization in deep neural networks (NNs). We examine whether scaling and renormalization group (RG) theories can describe this dynamics, establishing a quantitative physical framework for neural generalization transitions. For modular addition on a two-layer NN, an ensemble of trained models defines an order parameter (the squared weight norm) and fluctuation proxies for the heat capacity and the susceptibility, with training epoch and weight decay serving as thermal and field control coordinates. To bridge neural architectures to real-space RG, we construct an exact coupling matrix via a second-order expansion of the loss with respect to per-neuron norms and use its Fiedler vector to define an effective geometry. This spectral ordering yields a monotonic spatial decay of coupling strength that is absent under random permutations. We then execute real-space RG by block-spin aggregating adjacent neurons and parameterizing the coupling matrix into off-diagonal band strengths. Linearizing this local RG map yields relevant scaling exponents and five derived critical exponents, with direct empirical estimates matching RG predictions within 1–10%. Overall, our framework provides a consistent effective description of grokking, suggesting the scaling and renormalization group formalism as a tool to investigate NN dynamics.

1 INTRODUCTION

Grokking refers to the delayed generalization where NNs generalize long after overfitting their training set (Power et al., 2022). While training accuracy rapidly saturates, test performance remains suppressed before abruptly rising within a narrow epoch window. This sharp transition has inspired thermodynamic and statistical physics interpretations, including effective field theories and phase diagrams (Liu et al., 2022), weight-norm mechanisms (Liu et al., 2023), mechanistic progress measures (Nanda et al., 2023), lazy-to-rich transitions (Kumar et al., 2024), first-order mappings in two-layer models (Rubin et al., 2024), and finite-size scaling interpretations (Bi et al., 2026; Wang, 2026). Analogous phase-transition phenomena are observed in the emergent abilities of scaling language models (Wei et al., 2022), where the perceived sharpness can depend on the choice of metric (Schaeffer et al., 2023). Within this broader context, grokking offers a compact, controlled testbed for quantitatively evaluating these statistical physics analogies.

The renormalization group (RG) provides a quantitative framework for analyzing such transitions. At its core, RG operates via coarse-graining: rescaling a system by a spatial factor b maps its coupling constants to a new set of effective couplings. Near a critical point, the linearized mapping yields eigenvalues byib^{y_i}, where the two relevant exponents yty_t and yhy_h fully determine all standard critical exponents (Wilson, 1975; Cardy, 1996). Transporting this scaling picture to deep learning promises a unified quantitative theory of grokking, yet applying the RG to NNs is far from straightforward: First, there is no established correspondence between the quantities of a scaling analysis (e.g., temperature, field, order parameter, susceptibility) and the observables of a training run, so each one has to be identified, and the statistical ensemble is formed by independent training runs instead of by a Gibbs distribution. Second, real-space RG coarse-grains degrees of freedom that are close to each other, yet hidden neurons carry no positions: they are interchangeable under permutation, and the NN defines neither a distance between them nor a lattice on which blocks could be formed.

We make each ingredient operational, as outlined in Figure 1. Our contributions are:

Figure

Figure 1: Overview. From trained NNs (left), the critical exponents of grokking are obtained via two complementary routes. RG route (top): each hidden neuron carries a spin sis_i, its squared weight norm, while each neuron pair is connected by a coupling JijJ_{ij} derived from the loss Hessian. Ordering the neurons on a chain using the Fiedler vector of this coupling graph enables adjacent neurons to be merged into blocks, where a linear fit of the coarsened couplings yields yty_t and yhy_h, from which five critical exponents follow (Sections 3.2–3.3). Direct route (bottom): a physical dictionary uses the training epoch as an effective temperature, weight decay as conjugate field, and ensemble fluctuations as proxies for susceptibility and heat capacity, with power-law fits of these observables yielding the direct exponents (Sections 3.1 and 4). The two independent estimates agree within 1–10% (right).

  • a physical dictionary that maps each thermodynamic quantity, including temperature, field, order parameter, and susceptibility, onto a measurable NN observable. This dictionary is derived from an effective Gibbs canonical ensemble of the loss objective, wherein weight decay acts as the field conjugate to the squared weight norm, cross-run variances serve as proxies for the susceptibility and heat capacity by analogy with equilibrium fluctuation-response relations, and the training epoch serves as an effective inverse temperature (Appendix F), with all underlying assumptions explicitly detailed.

  • a construction of a real space for hidden neurons, which the NN does not provide: treating the per-neuron norm coordinates as spins and the training loss as the energy, the coupling JijJ_{ij} between two neurons is the second derivative of the loss with respect to their norm coordinates, computed exactly by rescaling the activation of each neuron; the matrix ∣Jij∣|J_{ij}| is then read as a weighted graph, and ordering the neurons along the second eigenvector of its Laplacian (the Fiedler vector) places them on a one-dimensional chain with a distance rijr_{ij}, along which the mean coupling decays monotonically, whereas a random ordering gives a flat profile (Section 3.2 and Appendix B).

  • a local RG map for the NN: adjacent neurons in the constructed real space are merged into block spins (b=2)(b = 2), the coupling matrix is reduced to two coordinates (the mean nearest- and next-nearest-neighbour couplings), the map from the original to the blocked coordinates is fitted by a weighted regression over NN configurations around the grokking center, and its eigenvalues give the scaling exponents yty_t and yhy_h and, through the standard scaling relations, five critical exponents (Section 3.3). Direct estimates of the exponents (measured through the dictionary of the first contribution) agree with the RG values within 1–10%.

References (32)