← Latest papers
🤖 machine learning

A mathematical theory of balancing relational generalization and memorization

This paper introduces a novel "transitive inference with exceptions" task to study how learning systems balance relational generalization and memorization, providing an analytical theory of kernel ridge regression that predicts specific representational sensitivities and systematic errors, which are subsequently validated in finetuned language models.

Original authors: Luke Cheng, Samuel Lippl

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

Original authors: Luke Cheng, Samuel Lippl

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

The Big Problem: Rules vs. Exceptions

Imagine you are teaching a robot how to play a game. You teach it a simple rule: "If you have a Queen, you are usually stronger than if you have a Knight."

The robot learns this rule quickly. Now, you show it a new situation: "I have a Queen, you have a Knight." The robot correctly predicts, "You win!" This is Generalization. The robot has learned the pattern and can apply it to new things it hasn't seen before.

But here is the catch: Real life is messy. Sometimes, the rule has an exception. Maybe in a specific corner of the chessboard, sacrificing your Queen actually wins the game. Or maybe in German, the word "Gift" means "Poison," not "Present."

The big question this paper asks is: How does a learning system (like a human brain or an AI) balance learning the general rule while also remembering the specific exceptions?

If you focus too much on the rule, you miss the exceptions. If you focus too much on the exceptions, you forget the rule and can't handle new situations.

The New Game: "Transitive Inference with Exceptions"

To study this, the authors invented a new test called "Transitive Inference with Exceptions."

Think of it like a sports league with 9 teams (A through I).

  1. The Rule: Usually, Team A beats Team B, B beats C, C beats D, and so on. This creates a clear ladder.
  2. The Exception: But, we introduce a glitch. Let's say Team D (who is usually weak) suddenly beats Team G (who is usually strong). This breaks the ladder.

The test asks the AI:

  • Memorization: Can you remember that D beats G (the exception)?
  • Generalization: If you know A > B > C and E > F > G, can you guess that A > F? (This is following the ladder).
  • The Hard Part: Can you guess that B > F, even though B and F are on different sides of the "glitch"?

The Theory: The "Two-Brain" Model

The authors used a mathematical model (a simplified version of how neural networks learn) to figure out what happens inside the AI's "brain." They found that the AI effectively uses two different strategies at the same time, like a two-person team:

  1. The "Ranking" Brain (The Rule Follower): This part tries to assign a number to every item (1 to 9) to create a smooth ladder. It loves order. It wants A to be 9, B to be 8, etc.
  2. The "Lookup" Brain (The Exception Memorizer): This part is like a sticky note. It doesn't care about the ladder; it just remembers specific pairs. "Oh, D beats G? I'll write that down on a sticky note."

The Magic Balance:
The paper shows that for the AI to succeed, it needs a specific mix of these two brains.

  • If the "Lookup" brain is too weak, the AI forgets the exception (D loses to G because the ladder says G is stronger).
  • If the "Ranking" brain is too weak, the AI gets confused by the exception and breaks the whole ladder, failing to guess that A beats F.

The Surprising Twist: Regularization is a Double-Edged Sword

In machine learning, we often use a tool called Regularization (think of it as a "discipline coach") to stop the AI from memorizing the training data too perfectly, hoping it will generalize better.

The paper found a surprising result: In this specific game, being "disciplined" actually hurts the AI.

  • Without the coach: The AI can perfectly memorize the exception (D beats G) and still keep the ladder mostly intact.
  • With the coach (Strong Regularization): The coach tells the AI, "Stop memorizing specific pairs!" The AI listens, but in doing so, it forces the "Ranking Brain" to bend the ladder to fit the exception. This causes the ladder to warp. Suddenly, the AI starts making systematic mistakes on new questions (like thinking B loses to F) because the ladder is now broken.

The Analogy: Imagine trying to draw a straight line (the rule) but you have to draw a small bump (the exception) in the middle.

  • If you are allowed to draw the bump freely, the rest of the line stays straight.
  • If you are forced to keep the line "smooth" (regularization), you might end up tilting the whole line so the bump fits, making the ends of the line point in the wrong direction.

Testing on Real AI (Language Models)

The authors tested their theory on real, modern AI models (like the ones that power chatbots). They fine-tuned these models on the sports team and poker hand examples.

The Results:

  1. Success: The AI models were great at learning the general ladder (A > B > C).
  2. The Glitch: Just like the theory predicted, when they tried to handle the exception, some models got confused.
  3. The Prediction: The theory correctly predicted that if you make the "discipline" (regularization) too strong, the AI would start making specific, predictable errors on the cross-section questions (like B vs. F). The real AI models did exactly this.

The Takeaway

This paper proves that learning systems are capable of balancing rules and exceptions, but it is a tightrope walk.

  • Too much focus on rules: You miss the exceptions.
  • Too much focus on exceptions: You break the rules.
  • Too much "discipline" (regularization): You might accidentally break the rules while trying to ignore the exceptions.

The authors conclude that to build better AI (and to understand how humans learn), we need to design tasks that specifically test this balance, rather than just testing if a model can follow a simple rule. We need to teach AI how to handle the "Gift means Poison" moments of real life.

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 →