NeurIPS 2026QuestionsPapersAreasAboutMarkdown

A mathematical theory of balancing relational generalization and memorization

Luke Cheng, Samuel Lippl

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Generalization-Memorization Trade-offs · Type: theory · Keywords: relational generalization, memorization of exceptions, task paradigm, kernel ridge regression, representational geometry, language model finetuning

Areas: LLM Reasoning › Reasoning Mechanisms › Chain-of-Thought Reasoning

Summary

We introduce a novel task to study how learning systems balance relational generalization and memorization of exceptions, analytically characterize this trade-off using kernel ridge regression, and show that pretrained language models both follow the transitive rule and make systematic errors predicted by theory.

Explained to a 5-year-old

Imagine you learn that all cats meow, but you also learn that a particular cat named Whiskers never meows. You want to know how to know the rule (all cats meow) but also remember that Whiskers is special. Scientists built a new game that tests if a computer can do this tricky balancing act. They used a simple math model to see how the computer decides when to follow the rule and when to remember the exception. They also checked real computer language models and found they sometimes get it right and sometimes make predictable mistakes.

Explained to a 5-year-old, longer

Learning is like figuring out rules that work most of the time, but sometimes there are special cases that break those rules. A new game was created to see if computers can handle both the general rule and the special case at the same time. The researchers used a simple mathematical model that mimics how a small piece of a brain network learns. This model helps them see why it can be hard to remember both the rule and the exception. They tested the model on many different ways of representing information to see how that affects learning. The results showed that the way information is organized matters a lot for whether the computer can generalize correctly. They also looked at real language models that have been fine-tuned on ordered relationships. These models sometimes followed the rule correctly, but they also made mistakes that the theory predicted. This tells us that even big AI systems can struggle with the same balancing act we observed in the simple model.

For a technical reader

The paper introduces a new benchmark that forces models to balance learning general relational rules and memorizing exceptions. It then provides an analytical study of kernel ridge regression to explain when and why models succeed or fail on this benchmark. Empirical tests on pretrained language models confirm the theoretical predictions, showing systematic errors when representational geometry is unfavorable.

Problem

Learning systems must simultaneously learn general relational rules and remember exceptions to those rules. Existing benchmarks do not capture this trade-off, limiting our ability to study how to achieve both.

Method

We analytically characterize a simple model of neural network learning (kernel ridge regression) across a range of representations and task parameters, and we validate the insights in pretrained language models finetuned on ordered relations.

Results

The approach reveals that generalization success depends on the geometry of the representation and that pretrained language models both follow the transitive rule and exhibit the systematic errors predicted by theory.

Contributions

We propose a new task paradigm to study the trade-off between relational generalization and memorization, provide an analytical characterization of how learning systems handle this trade-off, and demonstrate that pretrained language models show both expected generalization and predicted systematic errors.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction