Can we measure what a model truly learned?
Existing compression methods confound learning with irrelevant factors like model size and data entropy. Can we isolate a pure measure of what a model actually learned from its training?
Compression is the operational test of generalization: a model that can encode its training data as a short code has found the regularities that let it generalize, in the spirit of Occam's razor. The trouble is that existing compressors measure the wrong thing. Parameter-based methods like quantization produce codes whose length scales with model size, no matter how little information the parameters actually store. Prequential coding avoids that by coding the training trajectory, but it codes the exact data sequence regardless of how much the model learned — so high-entropy data yields a large code even when the learned function is simple. Both confound "how much the model learned" with quantities unrelated to learning.
Requential coding removes both confounds. A teacher model selects training samples drawn from the student's own distribution, and the code records only those selections — which cost bits only where teacher and student disagree. Where they already agree, nothing is transmitted. The resulting code length depends on neither parameter count nor data entropy, and comes out orders of magnitude shorter than the prequential version, with the gap widening at scale. This is a sharper instrument for the same claim behind Can text-trained models compress images better than specialized tools? and it directly addresses the failure that Why do Shannon and Kolmogorov measures fail to value data? identifies: prior compressors mismeasure learned content because they let irrelevant quantities dominate. By coding only disagreement, requential coding finally isolates the signal — which means we can compare how simple two models really are even when their sizes differ wildly.
Inquiring lines that read this note 5
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
What role does compression play in language model capability and generalization?- Can model compression size predict generalization better than parameter count?
- What is the connection between model compression and data compression?
- How does data entropy inflate compression estimates in prequential coding?
- Why do parameter-based compressors fail to measure true model simplicity?
- Can compression length really indicate how well a model generalizes?
Related concepts in this collection 2
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can text-trained models compress images better than specialized tools?
Do general-purpose language models trained only on text outperform domain-specific compressors like PNG and FLAC on their native data? This tests whether compression ability is universal or requires domain specialization.
the compression-equals-generalization thesis this refines with a cleaner estimator
-
Why do Shannon and Kolmogorov measures fail to value data?
Shannon information and Kolmogorov complexity assume unlimited computational capacity. But do these classical measures actually capture what bounded learners can extract from real data?
the measurement failure requential coding sidesteps
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Requential Coding: Pushing the Limits of Model Compression with Self-Generated Training Data
- Language Modeling is Compression
- From Entropy to Epiplexity: Rethinking Information for Computationally Bounded Intelligence
- Provable Benefits of In-Tool Learning for Large Language Models
- How much do language models memorize?
- From Tokens to Thoughts: How LLMs and Humans Trade Compression for Meaning
- Towards Optimal Learning of Language Models
- On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
Original note title
requential coding measures a model's true simplicity by coding only where a student disagrees with a teacher — making compressed size independent of parameter count and data entropy