What Can Grokking Teach Us About Learning Under Nonstationarity?

Clare Lyle, Gharda Sokar, Razvan Pascanu, Andras Gyorgy
7/26/2025
cs.LG

No confident code implementation found for this paper.

Abstract

In continual learning problems, it is often necessary to overwrite components of a neural network's learned representation in response to changes in the data stream; however, neural networks often exhibit \primacy bias, whereby early training data hinders the network's ability to generalize on later tasks. While feature-learning dynamics of nonstationary learning problems are not well studied, the emergence of feature-learning dynamics is known to drive the phenomenon of grokking, wherein neural networks initially memorize their training data and only later exhibit perfect generalization. This work conjectures that the same feature-learning dynamics which facilitate generalization in grokking also underlie the ability to overwrite previous learned features as well, and methods which accelerate grokking by facilitating feature-learning dynamics are promising candidates for addressing primacy bias in non-stationary learning problems. We then propose a straightforward method to induce feature-learning dynamics as needed throughout training by increasing the effective learning rate, i.e. the ratio between parameter and update norms. We show that this approach both facilitates feature-learning and improves generalization in a variety of settings, including grokking, warm-starting neural network training, and reinforcement learning tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lyle2025what,
  title  = {What Can Grokking Teach Us About Learning Under Nonstationarity?},
  author = {Clare Lyle and Gharda Sokar and Razvan Pascanu and Andras Gyorgy},
  year   = {2025},
  eprint = {2507.20057},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.20057v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.20057.svg)](https://codeofpaper.com/paper/2507.20057)

Discussion