Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds".
Jane: The gist The onset of grokking coincides closely with the parameter count at which two measurable learning timescales, memorisation speed and generalisation speed, intersect,
Tom: First, who's behind it and why it matters.
Paper summary: Jane: So, to recap what we just heard, this paper, "Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds," argues that grokking isn't a simple scaling problem with model size. It introduces an information-theoretic framework where grokking is the result of a competition between memorisation speed, Tmem(P), and generalisation speed, Tgen(P) <ref:2605.09724#pg1>.
Tom: They estimate these speeds on random-label data of equivalent complexity for Tmem, and on the modular task itself for Tgen. The core claim is that grokking emerges close to the parameter scale where these two timescales cross <ref:2605.09724#pg1>.
Lu: They define memorisation speed as the number of epochs required to fit a random dataset with the same total number of bits as the modular arithmetic dataset, and generalisation speed is how long it takes for validation accuracy to exceed a saturation threshold <ref:2605.09724#pg1>.
Meng: It’s like comparing two runners in a race. One runner memorises everything quickly, the other learns the actual rules of the game; grokking happens when those two times are very close <ref:2605.09724#pg1>.
Jane: The paper tests this by sweeping parameter count P and measuring these speeds, showing that in a grokking regime beyond the speed intersection, memorisation actually happens first, followed by generalisation <ref:2605.09724#pg1>.
Tom: They also showed strong predictive power in their sweep tests, with a Spearman’s rho of zero point nine seven six and Kendall’s tau of zero point nine one one <ref:2605.09724#pg3>.
Lu: This means the intersection point they predict is a very reliable marker for when grokking will happen in practice on this type of task <ref:2605.09724#pg3>.
Meng: What does this mean practically? It suggests that instead of just focusing on model size alone, we should be looking at the dynamic balance between how quickly a model can store information versus how quickly it can actually solve the underlying mathematical structure <ref:2605.09724#pg1>.
Jane: It shifts the focus from static capacity to dynamic learning processes that determine this transition <ref:2605.09724#pg1>.
Conclusion: Tom: So, wrapping up this discussion on "Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds," the authors are making a strong point about the mechanism behind grokking. They’re not just observing that large models grok and saying it’s because they are big <ref:2605.09724#pg1>.
Jane: They propose that the crucial factor is this competition between Tmem(P) and Tgen(P). The intersection of these two speeds predicts the onset of grokking within a fixed hyperparameter setting, which is something they tested across different training setups <ref:2605.09724#pg1>.
Lu: They emphasize that this prediction doesn't require a single calibration constant to work everywhere; it just shifts smoothly depending on things like weight decay or the depth of the model <ref:2605.09724#pg1>.
Meng: From an engineering standpoint, this is useful because it tells us what we’re actually tuning matters more than just chasing a single size number <ref:2605.09724#pg1>.
Tom: Essentially, the paper gives us a mechanistic account of how model capacity controls grokking by setting the relative speeds of those two learning processes <ref:2605.09724#pg1>.
Jane: The implication for understanding large models is that we need to look at these competing timescales to predict when and why delayed generalisation will occur <ref:2605.09724#pg1>.
Lu: This framework opens up a new way to analyze overparameterised optimisation by looking at the interplay between fitting data and finding solutions <ref:2605.09724#pg3>.
Meng: It’s less about brute force size and more about balancing these two opposing forces during training <ref:2605.09724#pg1>.
Yiding Song, Hanming Ye
Harvard College
cs.LG
Submitted: 2026-05-10
Updated: 2026-10-09
Comments: Updated references section
Code: https://github.com/PerceptronV/grokking-capacity
License: http://creativecommons.org/licenses/by-sa/4.0/
Importance score: 87/100
The gist: The gist The onset of grokking coincides closely with the parameter count at which two measurable learning timescales, memorisation speed and generalisation speed, intersect, which is strictly larger
Key concepts
- Memorisation Speed (Tmem(P))
- This measures how many training epochs it takes for a model to perfectly memorize a random dataset of equivalent information content. It quantifies the speed at which the model can simply store the input data, regardless of whether it learns underlying rules or not.
- Generalisation Speed (Tgen(P))
- This measures the number of epochs required for a model to achieve high accuracy on a modular arithmetic task using validation data. It represents how quickly the model develops robust, generalizable solutions rather than just memorizing specific examples.
- Grokking Regime
- This is the state where grokking occurs. It happens when the parameter count is beyond the point where memorization first becomes possible, and it specifically occurs when memorization speed slows down relative to generalization speed, meaning the model starts memorizing before it can reliably generalize.
- Information Capacity (Cap d(Θ))
- This formalizes how much information a model's parameters can hold. It is approximated by fitting a linear model to empirical capacity constants, linking the number of parameters directly to the total bits of information the model can potentially represent.
Terminology
Summary
The gist The onset of grokking coincides closely with the parameter count at which two measurable learning timescales, memorisation speed and generalisation speed, intersect, which is strictly larger than the capacity threshold where memorisation first becomes representable > ref:10
How it works
The paper introduces an information-theoretic account of how model capacity shapes grokking on the task of modular arithmetic by showing that grokking emerges as a competition between two measurable timescales: a memorisation speed Tmem(P) and a generalisation speed Tgen(P), both functions of model parameter count P > ref:10
The framework formalizes these speeds, where Tmem(P) is the number of epochs to fit a random-label dataset of equivalent information content, and Tgen(P) is the number of epochs to reach high validation accuracy on the modular task itself > ref:10
The core finding is that grokking emerges close to the parameter scale where these two timescales intersect, which is strictly larger than the capacity threshold Pmem at which memorisation first becomes representable > ref:10
Key Definitions and Regimes
The framework identifies three regimes as model parameter count P increases:
-
An undercapacity regime in which neither solution is represented and both train and test accuracy are low > ref:10
-
An immediate-generalisation regime where Tgen(P) < Tmem(P), meaning gradient descent reaches the algorithmic solution before any memorisation completes and there is no generalisation delay > ref:10
-
A grokking regime beyond the speed intersection, in which Tmem(P) ≲ Tgen(P) and the model first memorises and only later generalises > ref:10
Capacity and Learning Speeds
The paper formalizes empirical information capacity as Cap d(Θ), approximated by fitting a linear model Cap dk ≈ CmodelPk + b, where Cmodel (bits per parameter) is the empirical capacity constant > ref:10
Memorisation speed Tmem(P) is defined as the expected epochs required to memorise a random dataset with the same total number of bits as the modular-arithmetic dataset with prime p > ref:10
Generalisation speed Tgen(P) is defined as the number of epochs taken for validation accuracy to exceed saturation threshold, capturing the time it takes for the model to reach a generalising solution > ref:10
Quantitative Tests of the Intersection Hypothesis
The central sweep tests whether the intersection of Tmem and Tgen predicts grokking onset, which is assessed through three falsifiable sub-claims: predictiveness, calibration to y = x, and sufficiency against baselines > ref:10
The rank predictiveness test yields a Spearman’s ρ = 0.976 and Kendall’s τ = 0.911, indicating strong correlation between predicted and empirical onsets > ref:14
The sufficiency test M3 vs. M2 confirms that the intersection adds information over and above the swept hyperparameters, as the F-test is approximately zero (F ≈ 0, p = 1) > ref:14
Robustness Across Settings
The framework demonstrates robustness across various hyperparameter sweeps, including weight-decay, learning rate, initialisation scale, and training fraction > ref:19
For example, in the weight-decay sweep at λ=1.0 (the central-sweep regime), within-setting predictiveness is best and the per-cell offset becomes more negative as decay weakens > ref:17
The framework's central claim—that the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19
Task Invariance
The framework is tested across different modular operations; for instance, the categorical robustness test shows that the operation indicator captures expected task-specific calibration where Tgen(P) for + is consistently faster than for / > ref:23
This suggests that while Tmem(P) on random labels of equivalent complexity is operation-agnostic by construction, Tgen(P) for + is consistently faster than for /, shifting the intersection by a constant in log space > ref:23
The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10. The paper provides a mechanistic account of how model capacity controls grokking on modular arithmetic by setting the relative speeds of two learning processes > ref:9. The framework's central claim—that within a fixed hyperparameter and task setting, the parameter count at which Tmem(P) and Tgen(P) cross predicts the onset of grokking—does not require a single calibration constant to apply across settings, instead shifting smoothly with weight decay or depth > ref:19. The overall conclusion is that what controls whether a model groks is not whether the lookup is representable, but whether it is reached before the algorithmic solution > ref:10.
Improvements for AI systems
-
Improve model deployment by dynamically adjusting training protocols based on parameter count to maximize grokking onset efficiency. The system can identify when
Tmem(P) and Tgen(P) curves intersect
and optimize hyperparameters (like learning rate or weight decay) to push the model into thegrokking regime
whereTmem(P) ≲ Tgen(P).
-
Implement a capacity-aware model selection mechanism that predicts whether a given architecture will exhibit grokking on modular tasks before training begins. This allows for proactive resource allocation, preventing wasted training time on models that will not
groks,
as the paper shows thatsmall models do not grok
when they are under capacity relative to the dataset complexity. -
Develop a learning-rate scheduling system that adapts its strategy based on whether the current phase is dominated by memorization or generalization. The system should adjust the learning rate to ensure that
gradient descent reaches the algorithmic solution before any memorisation completes
in regimes where "Tgen(P) < Tmem(P)." -
Create a meta-learning framework that uses task-specific calibration derived from operation type (e.g., modular addition vs. division) to tune the speed intersection prediction for new mathematical operations. This allows the system to apply a
task-specific calibration
when switching from modular division to modular addition, accounting for the fact thatTgen(P) for + is consistently faster than for /.
-
Design an automated regularization strategy that adjusts weight decay dynamically based on whether the model is in an undercapacity regime or a grokking regime. This leverages the observation that
within-setting predictiveness is best at λ=1.0 (the central-sweep regime)
and thatsmall λ
leads to apredictor over-shoots empirical onset.
Abstract
Existing accounts of grokking explain the phenomena in terms of mechanistic frameworks such as circuit efficiency or lazy-to-rich transitions. However, despite a known dependence between grokking and model size, how model capacity shapes grokking remains an open question. We give an information-theoretic account of this relationship on the task of modular arithmetic, showing that grokking does not immediately occur when a model becomes large enough to memorise the training set, but rather emerges as the outcome of a competition between two measurable timescales: a memorisation speed T mem(P) and a generalisation speed T gen(P), both of which are functions of model parameter count P. Adapting the information capacity framework of Morris et al. (2025), we estimate T mem(P) on random-label data of equivalent complexity and T gen(P) on the modular task itself, and show that grokking emerges close to the parameter scale where these timescales intersect. The framework also suggests an empirical model for predicting memorisation speed given model capacity and dataset complexity, recovering the previously reported empirical observation that larger models memorise faster. Overall, we motivate the formalisation of different learning timescales as important abstractions to study when explaining how model capacity shapes grokking on algorithmic tasks.
Sources
- Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws
- Information-Theoretic Progress Measures reveal Grokking is an Emergent Phase Transition
- Unifying Grokking and Double Descent
- The Complexity Dynamics of Grokking
- Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomials
- Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic tasks
- Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competition
- Grokking as the Transition from Lazy to Rich Training Dynamics
- Grokfast: Accelerated Grokking by Amplifying Slow Gradients
- Omnigrok: Grokking Beyond Algorithmic Data
- Decoupled Weight Decay Regularization
- Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking
- A Systematic Empirical Study of Grokking: Depth, Architecture, Activation, and Regularization
- A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworks
- How much do language models memorize?
- Deep Double Descent: Where Bigger Models and More Data Hurt
- Progress measures for grokking via mechanistic interpretability
- Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets
- How Much Knowledge Can You Pack Into the Parameters of a Language Model?
- Grokking as a First Order Phase Transition in Two Layer Networks
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks