Model Capacity Determines Grokking through Competing Memorisation and Generalisation Speeds
Yiding Song, Hanming Ye
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Generalization-Memorization Trade-offs · Type: empirical study · Keywords: model capacity, grokking, memorisation speed, generalisation speed, algorithmic tasks
Summary
The paper provides an information-theoretic account of how model capacity influences grokking by modeling the competition between memorisation and generalisation speeds, showing grokking emerges near the parameter scale where these timescales intersect.
Explained to a 5-year-old
Sometimes a computer model learns to do a task only after it gets really big. It can first just remember every example it sees, like a perfect memory. But later it starts to understand the pattern and can solve new problems it hasn't seen. The model figures out the pattern when its memory speed and learning speed are about the same. This helps us understand why bigger models sometimes suddenly get much better at hard tasks.
Explained to a 5-year-old, longer
Imagine a small robot that tries to solve a puzzle but can't remember all the steps. When we make the robot bigger, it can store more information and remember everything instantly. But remembering everything doesn't mean it understands how the puzzle works. Over time, the robot starts to see the pattern behind the puzzle and can solve new puzzles it hasn't seen. This sudden jump from just remembering to truly understanding is called grokking. The paper looks at how the size of the robot (its model capacity) changes this behavior. It measures how fast the robot can memorize the puzzle and how fast it can learn the rule. These two speeds are like two runners in a race: one is fast at memorizing, the other at learning. When the two speeds become equal, the robot suddenly starts to solve the puzzle well. The researchers found that this happens when the robot is just big enough to balance these two speeds. They also discovered that bigger robots memorize faster, which was already known. This new way of thinking helps us predict when a model will suddenly improve on hard tasks.
For a technical reader
The paper studies why some machine learning models suddenly start solving problems well after a period of poor performance, a phenomenon called grokking. It shows that model size (capacity) influences this by affecting two speeds: how quickly the model can memorize data and how quickly it can generalize from patterns. By measuring these speeds on a simple arithmetic task, the authors find that grokking appears when the two speeds intersect. They also propose a simple formula that predicts memorization speed based on model size and data complexity. This insight helps engineers anticipate when increasing model size will lead to a breakthrough in performance on algorithmic tasks.
Problem
It is unclear how model capacity shapes the phenomenon of grokking, despite its known dependence on model size. The problem is to understand why grokking does not appear as soon as a model can memorise the training data, and how capacity influences the timing of learning.
Method
The approach adapts the information capacity framework of Morris et al. (2025) to estimate memorisation speed on random-label data and generalisation speed on the modular task, both as functions of model parameter count. It then compares these two timescales and shows that grokking emerges near their intersection. An empirical model is proposed to predict memorisation speed from capacity and dataset complexity.
Results
The approach finds that grokking occurs near the parameter scale where memorisation and generalisation timescales intersect, and confirms that larger models memorise faster.
Contributions
It introduces an information-theoretic framework that quantifies memorisation and generalisation speeds as functions of model capacity, explaining how their competition leads to grokking. It also provides an empirical model for predicting memorisation speed from capacity and dataset complexity.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction