Why don't machine learning research agents overfit?
TL;DR Highlight
Squeezing an agent's winning strategy into 16–32 tokens still reproduced its performance, so it wasn't overfit.
Who Should Read
An LLM app developer who iteratively tunes prompts or pipelines with agents and worries about overfitting to the validation set.
Core Mechanics
- Reusing a validation set didn't cause overfitting
- Textbooks say repeatedly checking the same holdout (data not used for training) should overfit.
- But fresh test sets built for heavily reused benchmarks showed that gains largely transfer.
- Agents can be reset, which makes this testable
- A human research community can't have its memory wiped and rerun.
- An LLM research agent can be reset, with controlled inputs, and rerun.
- The explanation is a precise form of Occam's razor
- If a hypothesis can be described in far fewer bits than it takes to memorize the training data, good training performance carries over to new data.
- A short description has no room to secretly store the data.
- Compression works as an overfitting test
- An explorer agent optimizes against a validation set for hundreds of rounds, then a compressor distills the transcript into a short prompt.
- A reproducer rebuilds the strategy from only that prompt and the training data, and matching performance certifies the strategy was compressible.
- 32 tokens sufficed on most of eight datasets
- The datasets span tabular classification, image classification, language modeling, diffusion modeling, and reward modeling.
- One language-modeling strategy compressed to 16 tokens with no loss in held-out performance.
- Cut the tokens further and performance breaks
- A 16-token prompt encoded QK normalization, a 12-layer 768-dim transformer, the Muon optimizer, and more, and was reproduced.
- At 8 tokens the data-dependent choices were missing and reproduction failed.
- One bit of feedback was enough for search
- Instead of numeric scores, the explorer only learned whether a model beat the running best.
- It still found strategies as good as with full scores.
Community Reactions
- Benchmarks vs. real-world feel
- One commenter argued the latest models look AGI-tier on benchmarks yet still show hallucination and context rot, which they see as overfitting.
- Pushback on compression-is-intelligence
- One commenter said hiding heavy work in mappings, as in Solomonoff induction, makes compression vacuous.
- Occam's razor interpretation
- One commenter said it means you should prefer the simpler hypothesis, not that it's more likely to be correct.
- Format and writing complaints
- The blog post lacked a paper link, so another user posted the arXiv link.
- Some commenters said Claude-written text should be disclosed.
How to Apply
- Compress and reproduce your tuned prompt
- Squeeze today's tuned prompt or pipeline config into a summary of 32 tokens or fewer.
- In a fresh chat, give only that summary plus the training data, have it reimplement, and compare validation scores.
- Keep a separate holdout for agent tuning loops
- Separate the validation set used for iteration from a test set you look at only once.
- If validation rises but test doesn't, run the compression test to check for overfitting.
- Simplify the feedback your agent gets
- Change the loop to return only whether the run beat the best so far, not the full score.
- If performance holds, keep this structure since less validation information leaks.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's method: compress-and-reproduce test)
Below is the final strategy I got after iterative tuning.
{{final prompt or pipeline description}}
Instruction 1: Compress this strategy into an expert-shorthand note of 32 tokens or fewer. Output only the compressed note.
(Open a new chat) Using only the note and task description below, implement the strategy from scratch.
Note: {{compressed note}}
Task: {{task description}}
Next steps: Evaluate the reimplementation on the validation set and compare to the original score. Try 16 and 8 tokens to see where performance breaks.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles