AI Foundationspredict · compress · act
act I

The Core Question

The thesis that ties information theory to learning: to predict well is to compress well.

02

Intelligence Is Compression

before this →What Is Intelligence, Really?

Here is the bold claim that organizes this entire guide:

To understand something is to be able to compress it.

If you can predict the next word, you can store the text in fewer bits. If you can predict tomorrow’s weather, you can store the weather in fewer bits. A model that predicts well has, in a precise mathematical sense, found the pattern — and the pattern is exactly what is left after the randomness is squeezed out.

DATAraw, hugeMODELpatterns, smallNEW DATApredictedcompresspredict
prediction and compression are the same act, seen from two sides

Why this is not just a slogan

Suppose I ask you to guess the next letter in a sentence. If you are good at it, then a file that stores only your surprises can rebuild the sentence exactly. Every time you guessed right, the encoder needed to send nothing at all. Your accuracy is the compression rate.

A model that memorizes every sentence it has ever seen compresses its training data perfectly and nothing else. That is not intelligence; it is a very large photocopier. The interesting thing is generalization: compressing the rules so tightly that they also describe data you have never seen.

Memorize vs. generalize

the difference the whole field turns on

A lookup table copies. A model that has found the structure can throw the table away and still answer. The second kind is smaller than the data it explains — and that smallness is why we trust it.

the testCan you do better than listing every case? If yes, you have learned something. If no, you have only stored something.
MEMORIZEtable — big, brittle, no new cases
COMPRESSmodel — small, flexible
GENERALIZEacts well on unseen data
the through-lineEvery technique in this guide — entropy, gradient descent, attention, RLHF, retrieval — is a way of finding pattern, and therefore a way of compressing. Keep this lens; it will keep paying off.
introduces →compressionpredictiongeneralization
← previousWhat Is Intelligence, Really?next →The Bit: A Yes or a No