
After studying this material, you should be able to:
Machine learning is fundamentally about generalization, meaning learning patterns that apply to new, unseen data, not just the data you trained on.
Think of it this way:
A student who memorizes every answer in a practice test has not truly learned the subject. They will fail when exam questions are worded differently.
Similarly, a model that memorizes training data has not learned anything meaningful.
| Situation | What It Means |
|---|---|
| Good performance on training data + good performance on new data | Genuine learning ✅ |
| Good performance on training data + poor performance on new data | Overfitting ❌ |
To detect overfitting, practitioners hold out data — deliberately keeping some data unseen during training:
Here is a critical subtlety that is easy to miss.
The test set only works as an honest proxy for new data if it stays genuinely unseen.
If you:
...then the held-out set is no longer truly unseen. Your decisions have been shaped by it. You can overfit it just as you can overfit training data.
Imagine a teacher who gives students a "surprise" exam, but then lets them retake it after seeing their mistakes, then retake it again. Eventually students score perfectly — but they have memorized that specific exam, not the subject.
The entire machine learning research community does exactly what we just said is dangerous:
Evaluate model on benchmark → Revise approach → Re-evaluate → Publish → Repeat
The same benchmark datasets are reused for years by thousands of researchers, all iteratively improving against them.
Leaderboards should fill up with models that:
Studies that built brand new test sets for old benchmarks found that:
Improvements on old benchmarks transferred to the new data. The progress was real.
This is the puzzle. The theory predicts rampant overfitting. Reality shows genuine progress. Why?
Occam's Razor states:
Among explanations that fit the data equally well, prefer the simpler one.
Here is why simplicity matters for generalization:
If your description is too short to secretly record the training data, then good performance cannot come from memorization. There simply was not enough room. It must reflect real structure.
Successful ML strategies tend to be highly compressible:
A researcher might run thousands of experiments, but the final winning recipe is usually just:
That is a very short list. If the final strategy can be described in a few sentences, then the model's true dependence on the benchmark is small — regardless of how many experiments led there.
Consider explaining a machine learning pipeline to two different people:
| Audience | What You Must Explain | Message Length |
|---|---|---|
| Bright high school student | Gradient descent, neural networks, optimizers, frameworks, hyperparameters... | Very long |
| Expert ML engineer | Architecture choice, batch size, two hyperparameters | A few sentences |
The more the receiver already knows, the shorter your message needs to be.
Large language models carry enormous amounts of world knowledge:
This makes LLMs exceptional compression decoders. Hand an LLM a terse expert message, and it can unpack it into a complete, working procedure — filling in everything left unsaid with appropriate defaults.
Crucially, this background knowledge does not count against you in the Occam's Razor argument, because it could have been written down without ever looking at the training data.
The researchers designed a three-agent system:
[Explorer Agent]
↓ (full access to validation set, runs hundreds of experiments)
[Compressor Agent]
↓ (reads entire transcript, distills strategy into very short prompt)
[Reproducer Agent]
↓ (receives only the short prompt + training data, NO validation access)
[Final Performance Measured Here]
Explorer: Freely hill-climbs against the validation set — exactly the behavior that should cause overfitting
Compressor: Tries to squeeze the winning strategy into as few tokens as possible
Reproducer: Implements the strategy from scratch using only the compressed prompt. This agent is reset fresh for every attempt — no memory of previous runs
If the reproducer — armed only with a short prompt — matches the explorer's performance, then everything needed to specify the strategy fit through that tiny channel. The strategy was genuinely compressible.
Like the film Memento, you are leaving a note for a version of yourself whose memory will be wiped before reading it. You learn to write notes that a knowledgeable but amnesiac copy of you can act on — and those notes can be very short because the receiver fills in everything left unsaid exactly as you would have.
Across eight diverse datasets:
32-token prompts were sufficient for a fresh reproducer to match the explorer's performance on the majority of problems
One language modeling strategy survived compression to just 16 tokens with no performance loss.
The 16-token prompt for a custom GPT-style training recipe:
QKn 12L768 Mu .1 R² b2M 4x
Decoded, this means:
| Token | Meaning |
|---|---|
QKn | QK normalization |
12L768 | 12-layer, 768-dimensional transformer |
Mu .1 | Muon optimizer, learning rate 0.1 |
R² | Squared-ReLU activations |
b2M | 2-million-token batch size |
4x | Fourfold feed-forward block |
When the budget was cut to 8 tokens:
12L768 Mu .1 R²
Performance dropped. The missing tokens carried real information learned from the data — not just defaults. This proves the reproducer is not simply succeeding from prior knowledge alone.
Researchers also tested compressing the input to the explorer: instead of giving numerical validation scores, they gave only one bit of feedback per query — did this beat the current best, or not?
Even with this extreme information restriction, the explorer found strategies just as good. The channel between validation data and final strategy is narrow in both directions.
If compressibility explains why good strategies generalize, then strategies that genuinely overfit should fail the compression test.
Researchers deliberately induced overfitting by:
Overfitted strategies encode idiosyncrasies of specific validation examples — quirks that cannot be summarized in a short description because they are not real structure. They are noise, and noise is incompressible.
Compression successfully separated legitimate strategies from overfitted ones with high accuracy.
Successful ML strategies are compressible
↓
Compressible strategies are short descriptions
↓
Short descriptions cannot memorize training data
↓
Therefore they must capture genuine structure
↓
Therefore they generalize to new data
The same logic applies to human research communities. Years of benchmark hill-climbing produce real progress because:
The recipes that actually work are simple. Simple strategies are compressible. Compressible strategies generalize.
Compression is not just an explanation — it is a diagnostic tool:
If a strategy cannot be reproduced from a short description, that is a warning sign that it may be overfitting rather than genuinely learning.
Overfitting Problem
↓
Why doesn't benchmark research overfit?
↓
Occam's Razor: Simple hypotheses generalize
↓
Compressibility = Simplicity = Generalization
↓
LLMs enable aggressive compression (world knowledge as shared context)
↓
Experiment: Explorer → Compressor → Reproducer
↓
Finding: 32 tokens often sufficient to reproduce performance
↓
Validation: Overfitted strategies fail compression test
↓
Conclusion: What fits into few tokens doesn't overfit