Scaling and Renormalization in Neural Networks: An Effective Renormalization-Group Description of Grokking
Organizations: Department of Computer Science, University of Pittsburgh, Pittsburgh, PA, USA
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.
Figures & tables
| Exp. | Definition | How the direct value is obtained | Direct | RG | Rel. diff. |
|---|---|---|---|---|---|
| , , | 0.549 | 0.556 | 1.2% | ||
| , , | 0.545 | 0.503 | 8.3% | ||
| , , | 0.480 | 0.438 | 9.7% | ||
| , seven moduli | 1.400 | 1.444 | 3.1% | ||
| , | at | 2.001 | 1.870 | 7.0% |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Task, model, and training | |
| modulus of the task, except in the modulus scan; the size variable of the finite-size analysis | |
| ; | operands; label , the cyclic task coordinate |
| , | one-hot input pair and one-hot target of training example |
| , | NN function; all trainable parameters |
| , | first- and second-layer weights, , |
| Quantity | Statistical physics | NN (this work) |
|---|---|---|
| Thermodynamic quantities | ||
| Reduced temperature | , (epoch as an inverse-temperature-like coordinate, so that ) | |
| Field | (weight decay, conjugate to ) | |
| Magnetization | , | , measured relative to |
| Susceptibility | over 30 seeds (proxy) | |
| Specific heat | over 30 seeds (proxy) | |
Grokking
Grokking is delayed generalization in which neural networks memorize training data before abruptly learning a rule that works on unseen examples.
See all 81 papers