Every file has an ideal shortest description. A video with a frozen frame compresses well because the frame is repeated, and a novel in one language compresses better than the same novel translated into another. The theoretical floor, the size of the smallest possible program that reproduces the file exactly, has a name: Kolmogorov complexity.
Andrey Kolmogorov, a Soviet mathematician already famous for the axioms of probability, defined it in a short 1965 paper in the journal Problemy Peredachi Informatsii. His goal was to fix what he saw as a gap in Shannon information theory. Shannon measured the average information of a source, a whole distribution of messages. Kolmogorov wanted the information in a single object: this string, this image, this number. His answer was algorithmic. The information content of an object is the length, in bits, of the shortest program that prints it and halts.
Six decades later that definition has stopped being a curiosity of mathematical logic. Labs now train, evaluate, and argue about large language models using the idea that prediction and compression are the same task. This post explains what Kolmogorov complexity is, why no program can ever compute it, and what the number says about the models shipping today.
The shortest program that prints the string
The definition is easy to state. Take a string, say ten thousand digits of pi. One way to describe those digits is to write them out, all ten thousand. Another way is to hand someone a two-hundred-line program that computes pi to ten thousand places and run it. The program is shorter than the list, so the string has structure. Now take a string produced by true coin flips at a casino. There the list is the only honest description: any program that outputs that particular sequence must effectively carry the sequence inside it.
Kolmogorov complexity, written K(x), is the length of the shortest program that outputs x on a fixed reference computer. Random, in the everyday sense, and random in the technical sense become synonyms: a string is algorithmically random when no description is shorter than the string itself. Most strings are random in this sense. There are 2^n binary strings of length n but far fewer programs shorter than n bits, so counting alone proves that the great majority of strings are incompressible, even though any specific one is hard to certify.
Two properties make the definition usable. First, it is machine-independent up to a constant. Switch from one computer to another and K(x) changes by at most a fixed offset, the size of an interpreter, and that offset does not depend on which string you encode. Solomonoff sketched this invariance idea in 1960 and 1964, Kolmogorov published it in 1965, and Gregory Chaitin developed the same theory independently, submitting his paper in 1966 and publishing Kolmogorov-style complexity in 1969. The theorem, often credited to all three, is why a definition resting on "shortest program" is treated as a property of the object rather than of the laptop.
Second, you can almost always find an upper bound on K(x) but never a lower one that is fully general. "Here are the digits of pi" plus a printer program bounds K(pi digits) from above. Proving a string needs at least so many bits is where the theory hits a wall.
The number cannot be computed
There is no program that takes an arbitrary string and returns its Kolmogorov complexity. This is not an engineering limitation; it follows from the same diagonal argument that gives the halting problem. If you could compute K(x), you could enumerate strings in order of complexity, write a program that searches for "the first string with complexity greater than the complexity of my own description," and produce a string that is provably both simple (it has your short program) and complex (it was defined to need no short program). The classic version of this is the Berry paradox, the phrase "the smallest positive integer not definable in under eleven words" being itself eleven words.
Because K is uncomputable, it leaks into physics-adjacent philosophy and into pure mathematics. Chaitin used the machinery to define Omega, the probability that a random program halts. Omega is a single, specific real number, yet its first thousand bits are incompressible: knowing them would let you solve the halting problem for programs up to that size, which is impossible. A number can be perfectly defined and still have almost all of its digits carry no discoverable structure.
What practitioners actually have are computable approximations. Real compressors (gzip, zstd, LZMA) and trained predictors give upper bounds on K(x): every byte they save is a proof that some description shorter than the raw file exists. And the invariance theorem guarantees those bounds converge toward the same ideal up to a constant, no matter which tool you use.
From induction to a training objective
Kolmogorov complexity is not just a limit on compression. It sits at the top of a ladder of results that connect compression to prediction, and that ladder is the reason machine learning researchers care.
Shannon's source coding theorem says that the optimal average code length for messages from a distribution is the entropy of that distribution. Kolmogorov's theory is the single-object version. Ray Solomonoff went one step further in 1964: define a universal prior over all computable ways the world might generate your data, weighted by 2^-K, and you get an ideal prediction engine. Solomonoff induction assigns high probability exactly to sequences with short explanations. It is provably optimal among computable predictors, and it is uncomputable, like K itself. Everything practical is an approximation, which is a defensible way to describe a language model: a tractable machine assigning probabilities to token sequences, trained to make them compressible.
Jorma Rissanen turned the same intuition into a statistical practice in 1978 with the minimum description length principle. In MDL, the best model of some data is the one that minimizes the total code length: the bits needed to describe the model plus the bits needed to describe the data given the model. That framing quietly penalizes overfitting. A model that memorizes noise pays for it in model bits. Modern regularization and model selection are relatives of this idea; MDL theory connects to Bayesian penalties, BIC, and later to Lasso-style sparsity.

Language modeling is compression
The equivalence got its most direct statement in a 2024 ICLR paper from Google DeepMind and Meta AI, "Language Modeling Is Compression." The mechanics are old: given a next-token predictor, you can use arithmetic coding to losslessly encode a text file, spending -log p bits on each token, and a decoder running the same predictor recovers the bytes exactly. A model's cross-entropy loss on a file is, up to a constant, the compressed size.
The paper then measured what foundation models actually compress. Chinchilla 70B, trained mostly on text, compresses ImageNet patches to 43.4 percent of raw size and LibriSpeech audio samples to 16.4 percent, beating PNG's 58.5 percent and FLAC's 30.3 percent. A general predictor that never specialized in pixels or waveforms beat the dedicated codecs, because PNG and FLAC model redundancy while the language model models the data. The authors use the same lens to re-derive scaling laws and to explain tokenization and in-context learning: a tokenizer is a fixed first pass at compression, and in-context learning acts like a model briefly improving its code on new data. They also note the practical bottleneck: offline compression with a Transformer is limited by context length, which caps how much of a file the model can see at once, and costs a forward pass per token.
Compression as an intelligence meter
If prediction is compression, then a benchmark-free intelligence test suggests itself: hand a model a corpus it has never seen and measure how few bits it needs. A 2024 COLM paper, "Compression Represents Intelligence Linearly," ran exactly this. Across 31 public models and 12 downstream benchmarks, average benchmark scores correlated almost linearly with bits-per-character on held-out corpora drawn from Common Crawl, GitHub, and arXiv, with the paper reporting an overall Pearson correlation near -0.95 between benchmark averages and compression efficiency. Better compressors were, on average, better reasoners, coders, and mathematicians on the authors' proxy for intelligence.
The same bit-level view has a second use: catching contamination. The authors' MIN-K% PROB method flags evaluation examples that sit suspiciously low in a model's probability distribution, the trace left when a test string was in the pretraining data. Compression statistics become a lie detector for benchmarks, which matters for a site that has watched benchmark scores and training corpora blur together.
Skeptics should keep the caveat attached. The correlation is across-model and domain-general, not a guarantee for a single new model, and the corpora are small relative to a frontier model's training mix. But the direction of the finding is now hard to miss: labs that want a cheap, unsupervised capability signal have a working one in the bits.

How close do today's models get to the limit
On ordinary human text, LLM-backed compressors beat the classics but remain impractical. The FineZip paper (September 2024) put the cost bluntly: LLMZip, driving Llama3-8B as a predictor, needed 9.5 days to losslessly compress 10 MB of text; FineZip restructured the same pipeline to finish in about 4 hours, at roughly 50 percent better ratios than traditional algorithms. A 2026 VLDB workshop study on throughput agreed with the blunt version: LLM compressors can reach 11.2x on code where zstd gives 3.06x, but they run orders of magnitude slower and today belong only to cold, write-once storage where bytes are worth more than GPU hours.
Where LLM compression does shine is on text written by LLMs. A 2025 study, "Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction," fed 8 LLM-authored datasets through 14 models used as entropy-coding predictors and got compression ratios above 20x, against gzip's roughly 3x. Machine prose is highly predictable to the machines that make it, because a model sampling from itself generates exactly the low-entropy strings its distribution loves. That result is quietly a comment on the synthetic-data flood: AI text is cheap to store because AI text is easy to guess.
None of this reaches Kolmogorov's floor. K(x) is uncomputable, so no compressor, however large, can promise it found the shortest description. Every practical number, bits per character included, is an upper bound on the ideal, separated from it by whatever structure the model failed to learn. When a lab says its model compresses a corpus well, it is saying its approximation of a Solomonoff-style universal predictor got closer to an unreachable limit than last year's approximation did.
What the number still says about AI
Three takeaways are fair as of late 2026:
- Compression is the shared root of prediction and learning. Shannon, Solomonoff, Kolmogorov, and Chaitin proved the equivalences under ideal assumptions; Delétang et al. and the COLM line of work made them measurable on actual models.
- Every language model is an approximator of an uncomputable object. Cross-entropy loss is compressed file size. Scaling laws can be read as a bill for approaching the ideal.
- Compression ratios are now a usable, cheap capability signal and contamination check, with the caveat that they measure the predictability of the test corpus, not the model's mind.
The irony Kolmogorov would have appreciated: the shortest-description idea that began as pure mathematical logic, with a number no computer can ever compute, became first a theory of induction, then a training objective, and now, in the shape of a 70B Transformer compressing images better than PNG, a partial description of machine intelligence.
Sources
- A. N. Kolmogorov, Three approaches to the quantitative definition of information, Problemy Peredachi Informatsii 1(1):3-11, 1965
- Kolmogorov complexity, Wikipedia (Solomonoff 1960/1964, Kolmogorov 1965, Chaitin 1966/1969 history and incompressibility results)
- Algorithmic information theory, Scholarpedia (invariance theorem, uncomputability, Chaitin's Omega)
- Minimum description length, Wikipedia (Rissanen 1978, Automatica 14(5):465-471)
- G. Delétang et al., Language Modeling Is Compression, ICLR 2024; code and results
- Compression Represents Intelligence Linearly, COLM 2024; benchmark corpora
- Y. Mao et al., Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction, 2025
- High-Throughput LLM-Based Compression and What It Takes, VLDB 2026 ADMS workshop
- FineZip: Pushing the Limits of Large Language Models for Practical Lossless Text Compression, September 2024
- L. Bai, From Kolmogorov to LLMs: The compression view of learning
