← Latest papers
🤖 machine learning

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

This paper proposes an exposure-based framework to study grokking-like dynamics during LLM pre-training using BLiMP minimal pairs, revealing that models exhibit delayed grammatical generalization accompanied by the emergence of more predictive, higher-dimensional grammatical concept vectors and concentrated attention patterns.

Original authors: Sherin Muckatira, Namrata Shivagunde, Vijeta Deshpande, Anna Rumshisky

Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Sherin Muckatira, Namrata Shivagunde, Vijeta Deshpande, Anna Rumshisky

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a child to speak by reading them a massive library of books, but you never stop to quiz them or give them a test. You just keep reading. The big question this paper asks is: Does the child suddenly "get it" long after they've memorized the specific sentences they've heard?

In the world of AI research, this sudden "aha!" moment is called Grokking. Usually, scientists study this by training a computer on a specific math puzzle, letting it memorize the answers, and then waiting to see if it can solve new puzzles later. But modern AI (Large Language Models) doesn't work that way. They are trained on the entire internet (or a huge chunk of it) just by predicting the next word in a sentence. There are no "tests" or "quizzes" built into the training process.

So, how do you spot a "Grokking" moment when you aren't giving the AI a test? The authors of this paper came up with a clever trick.

The "Flashcard" Analogy

Imagine the AI is a student reading a library. To see if they are truly learning grammar or just memorizing, the researchers created a special set of "Flashcards" (called BLiMP in the paper). Each flashcard has two sentences:

  1. A correct sentence: "The cat sleeps."
  2. A wrong sentence: "The cat sleep."

The difference is tiny (just one word), but it tests a specific grammar rule (like subject-verb agreement).

The Trick:
The researchers looked at the massive library of text the AI was reading during its training. They asked: "Did the AI read the exact phrase 'The cat sleeps' before?"

  • The "Seen" Group (Proxy-Train): If the AI had read that exact phrase in its library, they put it in the "Seen" pile.
  • The "Unseen" Group (Proxy-Validation): If the AI had never read that exact phrase before, they put it in the "Unseen" pile.

Crucially, the AI might have learned the rule of grammar, but it hasn't seen this specific sentence yet.

What They Found: The "Delayed" Moment

The researchers watched the AI's performance over time (like watching a student take a test every day). Here is what happened:

  1. First, the "Seen" group got good. The AI quickly got high scores on the sentences it had literally read before in the library. It was just remembering what it had seen.
  2. Then, a pause. The AI kept getting better at the "Seen" sentences, but it was still terrible at the "Unseen" sentences. It seemed stuck.
  3. Finally, the "Grokking" moment. Suddenly, the AI's score on the "Unseen" sentences jumped up. It realized the rule behind the sentences, not just the specific words.

This gap between getting good at the "Seen" sentences and getting good at the "Unseen" sentences is the Delayed Generalization. It's like a student who can recite a poem they memorized perfectly but can't write a new poem with the same rhyme scheme until weeks later, when the concept finally clicks.

What Happens Inside the AI's Brain?

The paper didn't just look at the scores; they peeked inside the AI's "brain" (its internal math) to see what changed when that "aha!" moment happened. They found two cool things:

1. The "Grammar Map" got more complex.
Imagine the AI's understanding of grammar as a map. Before the "aha!" moment, the map was simple and flat, like a single line. After the AI finally understood the rule, the map became a 3D structure with many more dimensions. The AI wasn't just using one simple trick; it was using a rich, complex web of connections to understand the grammar.

2. The "Spotlight" got focused.
The AI uses a mechanism called "attention" to decide which words in a sentence are important. Before the "aha!" moment, the AI's attention was a bit scattered, like a flashlight beam that's too wide. After the AI learned the rule, the flashlight beam became very sharp and focused specifically on the words that mattered (like connecting "The cat" to "sleeps"). This focus happened in just a few specific parts of the AI's brain, not everywhere at once.

The Bottom Line

This paper proves that even when you train an AI on a giant, messy pile of text without giving it a test, it still goes through a phase where it memorizes first and understands later.

They created a new way to measure this by checking if the AI had seen the exact words before. They found that the AI gets good at the "seen" words quickly, but it takes a while for the "understanding" to catch up and solve the "unseen" puzzles. When that catch-up happens, the AI's internal way of thinking about grammar becomes more complex and focused.

In short: The AI doesn't just learn by rote; it has a delayed moment of clarity where it finally connects the dots, and we can now see exactly when and how that happens.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →