← Latest papers
💬 NLP

Disentangling generalization and memorization in large language models using chess

This paper utilizes chess as a controlled testbed to demonstrate that large language models rely heavily on memorizing common patterns, as their performance significantly degrades and approaches random chance when faced with novel positions lacking relevant training priors, revealing inherent limitations in their systematic generalization capabilities.

Original authors: Leonard S. Pleiss, Maximilian Schiffer, Robert K. von Weizsaecker

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Leonard S. Pleiss, Maximilian Schiffer, Robert K. von Weizsaecker

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 trying to figure out if a student is actually learning a subject or just memorizing the answers to a specific test they've seen before.

This paper uses the game of Chess as a giant, controlled classroom to test Large Language Models (LLMs)—the AI brains behind tools like ChatGPT, Claude, and Gemini. The researchers wanted to know: When these AIs solve a problem, are they using genuine reasoning, or are they just pulling a memorized answer from their massive database of training data?

Here is the breakdown of their experiment and findings, using simple analogies.

1. The Setup: Three Types of Chess Puzzles

To test the difference between memorization and reasoning, the researchers created three types of chess positions, like three different levels of a video game:

  • The "Famous" Puzzles (Within-Distribution): These are standard, well-known chess openings (like the "Ruy López"). They appear in millions of games and are likely in the AI's training data.
    • Analogy: This is like asking a student a question that is literally written in their textbook. If they get it right, they might just be reciting the book.
  • The "Familiar but New" Puzzles (Near-Distribution): These look like normal chess games but have never been played before. They follow the rules and look like a standard game, but the specific arrangement is unique.
    • Analogy: This is like a math problem that uses the same numbers and formulas as the textbook, but the story about "apples and oranges" is slightly different. The student has to connect the dots, not just copy the answer.
  • The "Alien" Puzzles (Out-of-Distribution): These are weird, random board setups. The pieces are placed in ways that almost never happen in real life (e.g., pawns blocking the kings). They break all the usual patterns.
    • Analogy: This is like asking the student to solve a logic puzzle using a language they've never heard before, with rules they've never seen. There is no textbook to memorize; they must think from scratch.

2. The Experiment: How the AI Performed

The researchers asked various top-tier AIs (GPT-3.5, GPT-4o, GPT-5, Claude, and Gemini) to make the best move in these three types of puzzles. They measured success by how close the AI's move was to the move a super-computer chess engine would make.

Here is what they found:

The "Famous" Puzzles: AI is a Super-Reciter

When the puzzles were standard and familiar, the AIs played very well.

  • The Takeaway: The models are incredibly good at memorization. If they've seen a pattern before, they can recall the solution perfectly.

The "Alien" Puzzles: The AI Crashes

When the puzzles were weird and new (Out-of-Distribution), the AIs fell apart.

  • The Takeaway: Their performance dropped to the level of random guessing. In fact, they started making illegal moves (like moving a knight like a bishop) at a high rate.
  • The Metaphor: It's like a student who knows the answers to every question on the final exam but, when handed a blank sheet of paper and asked to "write a story," starts speaking gibberish. They don't actually understand the rules of the game; they only recognize the patterns they've seen.

The "Familiar but New" Puzzles: A Steep Drop-Off

As the puzzles got slightly less familiar, the AI's performance didn't just dip; it slid down a steep cliff.

  • The Takeaway: The more the puzzle looked like something the AI hadn't seen before, the worse it got.

3. The "Thinking Harder" Test

The researchers also tested the newer models (like GPT-5) that have a "reasoning mode," where the AI is told to "think step-by-step" before answering.

  • The Result: Thinking harder helped, but only so much.
  • The Catch: When the puzzle was weird (Out-of-Distribution), the AI would spend a lot of time "thinking" (using many more words/tokens), but it still couldn't solve the problem.
  • The Metaphor: Imagine a student who, when faced with a hard math problem, starts writing a 10-page essay about the history of math instead of solving the equation. They are working hard, but they are just rearranging things they already know, not inventing a new solution. The "thinking" process amplified their memorization but didn't create true reasoning.

4. The Big Conclusion

The paper concludes that current Large Language Models are brilliant at pattern matching but struggle with genuine generalization.

  • Scaling isn't the magic bullet: Making the models bigger (adding more data and parameters) helps them memorize more, but it doesn't seem to help them learn how to reason about things they've never seen.
  • The "Crystallized" Trap: The models rely on "crystallized" knowledge (memorized chunks). When those chunks aren't available, they don't have a "fluid" intelligence to fall back on. They can't derive the rules of the game from first principles; they can only recognize the game if it looks exactly like something they've seen before.

In short: These AIs are like encyclopedias that can recite the entire history of chess, but if you put them in a room with a chessboard and a set of rules they've never seen, they might not even know how to move the pieces correctly. They are masters of the past, but not yet masters of the new.

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 →