A Pre-Training Analogue of Grokking in Language Models: Tracing Delayed Grammatical Generalization

Sherin Muckatira, Namrata Shivagunde, Vijeta Deshpande, Anna Rumshisky
5/29/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Grokking, the phenomenon in which neural networks generalize long after fitting their training data, has been studied in supervised settings on many epochs. LLM pre-training instead involves next-token prediction over an unlabeled corpus, with limited data repetition and no explicit train/validation split.

Show full abstract

To address this, we propose an exposure-based framework that enables the study of grokking-like dynamics during LLM pre-training. We ground our evaluation in BLiMP minimal pairs, which provide controlled grammatical contrasts. For every BLiMP minimal pair, we identify a critical phrase, the smallest continuous span that captures the grammatical contrast and the phenomenon-relevant context. Examples whose critical phrase appears in the pre-training window are assigned to the proxy-train split; the remaining examples are assigned to the proxy-validation split. Across five grammatical phenomena, we observe delayed generalization. Analyzing pre-training checkpoints before and after generalization shows that grammatical concept vectors become more predictive of grammatical acceptability and occupy a higher-dimensional subspace after generalization. We also find that attention from the critical token to the relevant context token is concentrated in a small number of heads.

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{muckatira2026pretraining,
  title  = {A Pre-Training Analogue of Grokking in Language Models: Tracing Delayed Grammatical Generalization},
  author = {Sherin Muckatira and Namrata Shivagunde and Vijeta Deshpande and Anna Rumshisky},
  year   = {2026},
  eprint = {2606.00230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00230v2}
}

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/2606.00230.svg)](https://codeofpaper.com/paper/2606.00230)

Discussion