32 minute read

How much information is in a string of a million bits? The obvious answer is a million bits, but that can’t be right in general. If the string is a million zeros, the phrase “a million zeros” pins it down exactly, and most of us would say it contains almost no information at all. Kolmogorov complexity turns this intuition into a precise quantity: the information in an object is the length of the shortest program that produces it. It’s one of the most elegant ideas in computer science, relating complexity to compression, and it’s the foundation of an entire field called algorithmic information theory.

There’s a catch, though, and almost everyone who learns about Kolmogorov complexity spots it right away. A program has to be written in some programming language and run on some machine, and the length of the shortest program depends on which one we pick. Think of a one-million-bit string — any one you like, as random-looking as you want. If a machine’s designer has built in an instruction that prints exactly that string, then a one-bit program on that machine prints the whole thing. So is the string complex or not? It seems to depend on what the designer was entitled to take for granted.

If you work in machine learning, this should worry you more than it probably does. Complexity is central to how we understand generalization: we expect a model that explains its training data simply to generalize, and a model that has to memorize it not to. A lot of the theory behind that intuition is built on algorithmic information theory, from Solomonoff’s idealized account of prediction1 to minimum description length23, compression-based generalization bounds45, and explanations of why neural networks seem to prefer simple functions67. Every one of these inherits the choice of machine. The field’s usual strategy is to acknowledge the problem in a sentence, gesture at a reassuring theorem (which we’ll get to), and move on before anyone asks a follow-up question. That strategy has served us well enough in practice, but it means that our foundations for understanding generalization rest on a choice that few have really attempted to justify.

The standard reply from the field is a mathematical result called the invariance theorem, which bounds how much the choice of machine can change the length of a description. In this blog post, I’ll argue that the theorem doesn’t answer all the questions we’d like, and I’ll develop a separate, physical argument about what makes a choice of machine reasonable. The core idea is that machines are physical objects, and the laws of a universe determine which basic operations engineers there can readily build, repeat, and combine. A machine is a reasonable yardstick for complexity when it’s built from parts that its universe makes cheap — and which parts are cheap is a fact about physics, not computer science (or even mathematics). Pushed to its extreme, the argument goes beyond choosing among ordinary computers: under different laws of physics, the very class of machines over which Kolmogorov complexity is defined would change, and so would some of its most basic properties.

I should say up front that this is a philosophical post more than a technical one. There are no new theorems here, and much of what I’ll say builds on ideas that others — most notably David Deutsch — have developed in other contexts. My aim is to work out what those ideas mean for Kolmogorov complexity, and to find intuitive ways of explaining why the choice of machine is less arbitrary than it first appears.


Algorithmic information theory

I want to begin by introducing Kolmogorov complexity — the fundamental quantity in algorithmic information theory — and a few of its properties. If you’re already familiar with algorithmic information theory, you can safely skip ahead to the next section.

Information as compression

How should we measure the amount of information in an object? The most standard answer is Shannon’s.8 Shannon imagined a sender who wants to communicate an object $x$ to a receiver, and measured the information in $x$ by the length of the coded message needed to do so. If $x$ is drawn from some distribution $p$ that both the sender and the receiver know, then the optimal code uses about $-\log_2 p(x)$ bits to communicate $x$ — intuitively, frequent outcomes get short codewords and rare ones get long codewords.

Shannon information has an important limitation, though: it only makes sense when there’s a known distribution that the object was drawn from. Many of the objects whose information we’d like to quantify don’t fit this mould. What’s the distribution that a particular photograph, a scientific theory, or the source code of a program was drawn from? Kolmogorov complexity drops the assumption of a distribution altogether, and only asks one thing: how compressible is the object?

To get a feel for what this means, consider a black-and-white image of $1000 \times 1000$ pixels that shows a single black circle on a white background. The naive way to describe the image is to list its million pixels, one bit each. But we could also just give the circle’s centre and radius, which are three numbers that take a few dozen bits, and anyone who knows how to draw a circle can reconstruct every pixel from them. The image’s simplicity shows up directly as compressibility. The same goes for other regularities that we’d intuitively call simple, like an image that repeats the same small tile over and over, or one that’s symmetric about its middle. Each kind of regularity gives us a different scheme for compressing images.

We can take this idea to its limit and most general form by asking: what’s the shortest computer program that outputs the object? A program can exploit any regularity whatsoever, including ones that we haven’t thought of in advance. Take the first million binary digits of $\pi$. They look statistically random — zeros and ones appear equally often, and there are no repeated blocks or symmetries — so none of the schemes above would help. Yet a program only a few lines long can compute them. In this sense, a programming language is a universal means of compression: the program is the compressed version of the object, and running the program decompresses it. The most compressed version of an object is the shortest program that outputs it.

This is the idea behind Kolmogorov complexity, which was introduced independently by Kolmogorov, Solomonoff, and Chaitin in the 1960s.9110 We fix a programming language, along with the interpreter that runs it — formally, a universal Turing machine, which just means a machine that can run any program we could write for any other computer. The machine we fix is called the reference machine. The Kolmogorov complexity of an object is then the length, in bits, of the shortest program for the reference machine that outputs the object and halts.

Kolmogorov complexity

Given a finite binary string $x$ and a universal Turing machine $U$, the Kolmogorov complexity $K_U(x)$ is the length $\ell(p)$ of the shortest binary program $p$ that makes $U$ print $x$ and halt:

\[K_U(x) = \min_p \{\ell(p) : U(p) = x\}\]

When the reference machine is clear from context, we will drop the subscript and just write $K(x)$.

Going back to our examples, the circle image and the digits of $\pi$ both have low Kolmogorov complexity, since short programs output them. In contrast, an image whose million pixels were each set by flipping a coin has no regularity to exploit. The shortest program for it almost certainly just contains the pixels and prints them, so its complexity is about a million bits.

A few basic properties

Kolmogorov complexity has a handful of basic properties that will matter for the rest of this post.

First, $K(x)$ can never be much larger than the length of $x$. Any string can be produced by a program that contains the string verbatim, followed by an instruction to print it. The “print” part has a fixed length that depends on the reference machine but not on $x$, so $K(x) \leq \ell(x) + c$ for some small constant $c$.

Second, almost all strings are incompressible, meaning that their Kolmogorov complexity is close to their length. The argument is a simple counting one. There are $2^n$ strings of length $n$, but fewer than $2^{n-10}$ programs shorter than $n - 10$ bits, and each program outputs at most one string. So fewer than one string in a thousand can be compressed by 10 bits or more, and fewer than one in a million by 20 bits or more. A string produced by flipping a fair coin a million times is therefore almost certainly incompressible. This gives us something that probability theory alone can’t: a definition of what it means for a single, individual string to be random. A string is random if it has no description shorter than itself.

Finally, Kolmogorov complexity is uncomputable: there’s no program that takes an arbitrary string and returns its Kolmogorov complexity. The natural way to compute it would be to run every program in order of length and stop at the first one that prints the string. The trouble is that some of the shorter programs will never halt, and while the search is waiting on one of them, it can’t tell whether that program is stuck in an infinite loop or just needs more time before it prints the string. To know for sure, we’d need to solve the halting problem: deciding whether an arbitrary program eventually stops running, which Turing famously showed no program can do. In practice, this means that we can only ever approximate Kolmogorov complexity from above using empirical, computable compression algorithms. Keep this property in mind, because it’ll come back in a surprising way near the end of the post.

Box: Kolmogorov complexity and Shannon information

I introduced Kolmogorov complexity by contrasting it with Shannon information, so it’s worth saying more precisely how the two relate. Under the optimal code for a known distribution $p$, an outcome $x$ gets a codeword of about $-\log_2 p(x)$ bits, so the expected length of a codeword is the entropy $H(p)$.

Kolmogorov complexity needs no distribution at all, and in a rough but useful sense it contains Shannon information as a special case. For any distribution $p$ that a program can compute, the expected Kolmogorov complexity of its outcomes is at least the entropy $H(p)$, and at most $H(p) + K(p)$, up to a constant. Here, $K(p)$ is the length of the shortest program that describes the distribution itself.11 In other words, the average algorithmic description of an outcome is the Shannon code for it, plus whatever it takes to describe the code. Shannon’s setting assumes that the sender and receiver already share $p$, so that last term is free. Many other Shannon quantities, such as mutual information, have algorithmic counterparts that obey the same identities up to small error terms.

The reverse doesn’t work, though. A fair coin assigns every million-bit string the same probability, $2^{-1{,}000{,}000}$, so Shannon information has no way to say that the first million binary digits of $\pi$ are simpler than a typical sequence of coin flips. Kolmogorov complexity says exactly that. I’d put the relationship like this (with the caveat that the details take more care than a box can give them): Kolmogorov complexity is Shannon information plus an account of the structure that Shannon assumes has already been shared, and it applies to individual objects where Shannon information doesn’t apply at all.

Relative to what language?

The first objection that comes up when people learn about Kolmogorov complexity is nearly always the same: shortest program in what language? Different languages are good at expressing very different kinds of structure. In MATLAB, a $1000 \times 1000$ identity matrix is the nine-character program eye(1000), whereas in assembly it takes a couple of nested loops and some careful memory management. A language with a built-in function for the digits of $\pi$ can print a billion of them in a single line, while most languages need a page of numerical code. If the measure of information in an object depends on which language we happened to pick, then Kolmogorov complexity starts to look relative, and maybe arbitrary.

Within algorithmic information theory, this objection is usually set aside quickly by appealing to the invariance theorem, which I’ll describe in the next section. As we’ll see, though, the theorem answers a narrower question than we’d like. The question I want to explore in the rest of this post is this:

How should we think about the dependence of Kolmogorov complexity on the choice of language, and is there a way of thinking about it that makes the choice seem less arbitrary?


The invariance theorem and the choice of programming language

To see exactly where the problem lies, let’s make the objection of language-dependence as sharp as possible.

Suppose that a particular string takes a million bits to describe in some familiar language. In that language, the string looks random: no program shorter than the string itself prints it. Now, a designer creates a new language by adding a single instruction to the familiar one. The new instruction prints that exact string, and the designer assigns it the one-bit program 0 (to keep every old program available, the designer puts a 1 in front of each of them, which makes them one bit longer). In the new language, the string has a description that’s one bit long. Since any string could get the same treatment, in what sense is its complexity an objective property of the string?

The standard answer is the invariance theorem. Suppose that we fix two universal languages before we choose the string. The theorem guarantees that there’s a constant, which depends only on that pair of languages, that bounds the difference between their shortest program lengths for every possible output.

The invariance theorem

For any two universal Turing machines $U$ and $V$, there is a constant $c_{U,V}$ such that, for every string $x$,

\[|K_U(x) - K_V(x)| \leq c_{U,V}\]

The reason it holds is quite simple. Because $V$ is universal, we can write an interpreter for $U$’s language in $V$’s language. Any program for $U$ can then run on $V$ by putting the interpreter in front of it, and so $K_V(x)$ can never be more than $K_U(x)$ plus the length of the interpreter (and the same argument works in the other direction). Crucially, the interpreter doesn’t depend on $x$: it has to work for every possible string. A language that’s been tailored to one particular string can give that string a large advantage, but the advantage can never exceed the constant.

Unfortunately, this doesn’t really answer the objection that Kolmogorov complexity is language-dependent. The theorem only guarantees that, for any two universal languages, the lengths of the shortest programs differ by at most a constant. Take the familiar language and the cherry-picked one from our previous example. An interpreter for the cherry-picked language, written in the familiar one, has to contain the entire million-bit string just to implement the instruction 0, so the constant between these two languages is about a million bits. For any single string, there’s some universal language that gives it a one-bit description, so the invariance theorem tells us nothing about how complex any one fixed string is. It only has force for families of strings that keep growing, like the first $n$ digits of $\pi$ as $n$ increases. The complexity of those strings grows without bound (for $\pi$, it takes at most about $\log_2 n$ bits plus a constant, since the program only needs to know $n$), so any fixed constant eventually becomes negligible by comparison. Results in algorithmic information theory are full of statements of this asymptotic kind as a result of Kolmogorov complexity’s language-dependence.

The invariance theorem tells us how much the choice of language can matter (and it can matter a lot), but it doesn’t tell us which language we should choose. So the real question is: when is one programming language justified over another?


Machines are physical objects

The key to this question, I think, is to notice that we don’t treat programming languages as arbitrary in practice. Nobody would accept the designer’s esoteric language from the previous section as a fair way of measuring complexity, and we have strong intuitions that some languages are more reasonable than others. Those intuitions come from how languages actually get run in the real world. A programming language together with the interpreter that runs it is a Turing machine, and a machine is ultimately a physical object that has to be built before it can run anything.

This view of computation isn’t new. In The Beginning of Infinity and later in his work on constructor theory, David Deutsch argues that proof and computation are features of the physical world in much the same way that geometry is. Different laws of physics would make different functions computable and would make different physical transformations simple.1213 What follows is, in essence, that view applied to algorithmic information theory.

Two ways to build the same instruction

Are all machines equally easy to build and run? Let’s go back to the million-bit string. To build a machine whose instruction 0 prints that string, a designer has to obtain a million independently specified bits and wire them into the machine’s memory. This gains nothing over simply writing the million bits into the program. The information has only moved from the program into the machine, and someone had to supply it either way. I’ll call a machine like this gerrymandered, since its design has been drawn around one particular string. There’s no reason to prefer a gerrymandered machine when a far simpler, general-purpose machine does the job equally well.

Notice, though, that this argument depends on the laws of physics of our universe. Imagine a different universe in which some naturally occurring device reliably emits that very same million-bit sequence whenever it’s triggered. An engineer there can connect the trigger to the instruction 0. Both machines now print the sequence from a one-bit program, but in our universe someone had to supply the string to build the machine, whereas in the other universe the string comes for free. The second machine is simple and cheap to build, and nobody in that universe would think of the string as arbitrary at all. To them, it would be something like a physical constant.

My argument, then, is that the constant in the invariance theorem counts the difference in description length between two machines, but it can’t tell us which machine is the reasonable one to start from. That depends on what each machine costs to build, and costs are set by the universe the machine is built in.

An obvious objection is that the million bits have just moved again, this time into the laws of physics of the second universe. In a sense, yes, and that’s the point. Complexity is always measured against something that’s taken as given. In our universe, we take as given the simple, general-purpose parts that our physics makes cheap, and a computer built from those parts is our yardstick. In the second universe, the device that emits the string is one of those parts.

We could try to go one level up and ask how complex each universe’s laws are. But that would require yet another reference machine, one standing outside of any universe, and that’s exactly the kind of arbitrary choice we’re trying to ground. Rathmanner and Hutter run into this circularity when they try to say what makes a reference machine “natural”.14 Their example of a clearly unnatural machine is one with a long, arbitrary number hard-coded into its hardware, which is our gerrymandered machine. They suggest calling a machine natural if it has a short compiler on some agreed-upon reference machine, but, as they acknowledge, there’s no such agreed-upon machine, and so the criterion goes in a circle. The way out is to stop looking for a starting point outside of every universe, and to take one from inside a universe instead: from what its laws make cheap.

What makes a machine cheap?

So far I’ve used the word “cheap” loosely, and it’s fair to ask what exactly it should mean. There are plenty of intuitive candidates: the information that someone has to supply to build a machine, the work, time, or materials it takes, how reliably its parts run, or how easily they combine into larger machines. Each one gives sensible answers on its own.

Consider the minimum amount of work needed to build each of our two machines, as one possible candidate. Writing a million specified bits into the gerrymandered machine’s memory means setting a million physical switches, which overwrites whatever they held before. In our universe, Landauer’s principle says that erasing a bit of information takes a minimum amount of energy.15 So the work needed to build the gerrymandered machine grows with the length of the string it was built around. A general-purpose computer, on the other hand, costs the same no matter which string we later ask it to print. In the second universe, building the one-bit machine only means connecting a trigger to a device that’s already there, which takes very little work. Counting the bits that someone has to supply gives the same verdicts, and so does counting the time or labour involved.

These candidates are also related to one another, and physics sets how. Landauer’s principle links bits to energy by setting a minimum exchange rate between the two. But that exchange rate is a fact about our universe. In a universe where bits could be erased for free, energy would no longer penalize the gerrymandered machine, and we’d have to rely on the other candidates instead. More generally, the candidate criteria that we could use for judging the suitability of a particular machine relate, and their importance could look quite different from one universe to the next.

Is there a single measure of cheapness that’s the right one in every universe? I don’t know. Counting the bits that someone has to supply looks like the candidate that depends least on any particular universe, but supplying bits is itself a physical process, and what it costs depends on physics too. Fortunately, we can learn something without settling the question. Earlier, the dependence of Kolmogorov complexity on the choice of language looked like an arbitrary choice that mathematics couldn’t make for us. Once we see machines as physical objects that cost something to build, the choice becomes a question about the world, even if we can’t yet say which physical quantity the answer should be stated in. In short: asking which language is reasonable for measuring complexity involves asking what universe we’re in.

I’m not the first to reach for physics to ground the reference machine. Özkural proposes measuring the complexity of a message by the volume of the smallest physical machine that can emit it, with variants based on energy and action, and points out that a gerrymandered machine would be penalized for the physical cost of building it.16 His proposal differs from mine in a few important ways (see the footnote), but the core intuition — that physical cost is what makes some machines unreasonable — is the same. In a similar spirit, Soklakov restricts the class of reference machines to those that are physically available to us, although his motivation is more technical: the restriction lets him remove some of the error terms that the standard theory carries for simple strings.17

Box: Natural properties and the laws of nature

Philosophers of science have run into a version of this problem when trying to say what makes something a law of nature. On David Lewis’s best-system account, the laws are the axioms of whichever true theory of the world strikes the best balance between simplicity and strength (roughly, how much the theory tells us).18 The trouble is that simplicity depends on the language that a theory is written in. Lewis saw the extreme case himself: invent a predicate $F$ that applies to exactly the things in our world, and the one-line theory “everything is $F$” is as simple and as strong as a theory can be. This is our one-bit instruction for the million-bit string, in different clothing. Lewis’s fix was to only admit theories stated in terms of perfectly natural properties, the ones that “carve nature at its joints”.

Wheeler has since argued that algorithmic information theory makes this fix unnecessary: if we treat simplicity as compression, the invariance theorem takes care of the language dependence.19 If the argument of this post is right, though, the invariance theorem can’t do that job on its own. When we compare two candidate theories of a single world, some universal machine can always flip their ranking. What does the job instead looks a lot like a physical version of Lewis’s naturalness: a reasonable reference machine is one built from what a universe’s laws make cheap.

There’s a twist, however. Lewis wanted natural properties to help define the laws, whereas I’ve used the laws to pick out the natural machine. Running the argument in both directions at once would be circular, so a best-system theorist can’t simply hand the job of measuring simplicity over to Kolmogorov complexity.


The Infinity Hotel and machines beyond Turing

So far, the second universe changes which machine is reasonable, but it leaves the invariance theorem intact. The million-bit string is finite, and so an ordinary universal machine can always imitate the million-bit instruction by storing the string in its interpreter, however long that makes the interpreter. That makes the constant from the invariance theorem about a million bits larger, but the constant still exists. To break the theorem, a universe would have to supply a device whose behaviour no ordinary machine can imitate, with any interpreter at all.

Deutsch’s Infinity Hotel

Deutsch describes such a universe in The Beginning of Infinity, where he uses Hilbert’s famous Infinity Hotel as a thought experiment about the laws of physics.12 The hotel has infinitely many rooms, numbered 1, 2, 3, and so on, with one guest in each. The management can speak to every guest at once over the public-address system, and all of the guests carry out the same instruction in parallel, each using their own room number as an input.

Importantly, no guest or staff member ever performs more than a finite number of actions. The hotel gets its power from a trick for passing things between rooms instead. Each guest hands an item to the next room within one minute, passes on anything they receive within the next half minute, then within the next quarter minute, and so on. Every guest does a finite amount of work, yet after two minutes, infinitely many hand-offs have been made. Messages can travel back down to room 1 in the same way. Deutsch is upfront that such a hotel breaks several of our laws of physics, but that’s fine for a thought experiment: its imaginary laws only need to be consistent, and they are.

Deutsch uses the hotel to settle an open problem in number theory, the prime-pairs conjecture, in five minutes. The same trick solves the halting problem, which we first met when discussing why Kolmogorov complexity is uncomputable: given an arbitrary program, decide whether it eventually stops running or runs forever. Turing showed that no ordinary computer can do this, since a program that hasn’t halted yet might halt in the next step, or never. But pick any ordinary program and input, and have the management at Infinity Hotel make the following announcement: “Within the next minute, run the program for as many steps as your room number. If it has halted, send a message back to room 1 using the rapid method.” If the program halts at some step $n$, then every guest from room $n$ onward sees it halt, and a message reaches room 1 within three minutes. If no message has arrived by then, the program never halts.

For the management, this whole procedure is a single, finite announcement. That’s exactly Deutsch’s point: the laws of physics — not computer science or even mathematics — decide which operations count as finite. In the hotel’s universe, a halting test is a primitive that engineers can build on, just like the device that emits the million-bit string in our second universe. The difference is that no ordinary Turing machine can implement the halting test for all inputs.

No constant at all

In fact, the halting test is just the million-bit device with infinitely many bits. List every possible program in order, and write down one bit for each, saying whether or not it halts. An ordinary universal machine could store any finite piece of that infinite string in its interpreter, but never all of it, and no program can compute the rest. So no interpreter can imitate the halting test, and there’s no constant at all relating a machine that has the halting test to an ordinary one. The invariance theorem only applies to machines that can simulate each other, and which machines a universe allows is a question about its physics.

This means that the dependence on physics goes deeper than choosing among Turing machines. It’s built into the definition of Kolmogorov complexity itself. In the hotel’s universe, the right class of reference machines would be, at the very least, Turing machines with a built-in halting device, and the invariance theorem would hold within that larger class instead.

I say “at the very least” because the hotel can do even more. A machine with a halting device still can’t decide whether its own programs halt, since the original argument for the halting problem just repeats one level up. Deutsch’s prime-pairs example asks for more than a single halting test. A halting test answers a question with one open-ended search: is there some step at which this program stops? The prime-pairs conjecture has two searches, one inside the other: for every number, is there some pair of primes beyond it? Checking any one number is a halting-style question, because you search upward until you find a pair. The conjecture asks for that answer at every number at once, and in general a halting device can’t settle questions with this layered form. The hotel can, though. Each guest checks one number and files a record if it starts a prime pair. If the records go on forever, the conjecture is true. If they stop, some guest holds the last record, sees that no guest further along has filed one, and reports that there’s a largest pair.

The point of this discussion is that we restrict Kolmogorov complexity to Turing machines because, as far as we know, they capture exactly what machines in our universe can compute. Under other laws, they wouldn’t.

Kolmogorov complexity in the hotel

Does Kolmogorov complexity still make sense in the universe of Infinity Hotel? It does: we can define it relative to the hotel, in the same way that we define it relative to a universal Turing machine in our universe. All the definition needs is for descriptions to be finite, so that there’s a shortest one, and the hotel’s descriptions are. The management’s announcements are finite strings of words, so, as Deutsch points out, they can only ever specify a vanishing fraction of all the ways in which the guests could be rearranged. The Kolmogorov complexity of an object in the hotel’s universe is then the length of the shortest announcement that gets the hotel to produce it, and, just as in ours, most objects have no short description at all. In other words, the hotel keeps the definition of Kolmogorov complexity intact, and changes how much a short description can get a machine to do.

Deutsch spells out the general lesson himself. Operations on single bits like not, and, and or seem elementary to us because of our physics. Under the hotel’s laws, some operations on infinitely many bits would seem just as elementary. Under stranger laws still, the roles could flip, putting our elementary operations out of reach while some of the functions that we call uncomputable became basic. He applies the same idea to simplicity: whether an explanation is short or long depends on the physics it’s stated under. He even objects, in passing, to weighing possibilities by counting programs in order of length, because doing so presumes a preferred notion of an elementary operation. In a sense, this post is an attempt to work out what that objection means for Kolmogorov complexity.

Computing the uncomputable

There’s one more twist. Recall from the first section that no program can compute Kolmogorov complexity, because doing so would require solving the halting problem. With a halting device, that obstacle disappears, and computing it becomes easy. Go through programs in order of length, skip the ones that the device says will never halt, run the rest, and stop at the first one that prints the string. Its length is the string’s Kolmogorov complexity. In the hotel’s universe, then, the quantity this whole post has been about would be computable. Even its most basic properties depend on physics.


Conclusion

Kolmogorov complexity is independent of the choice of machine only up to an additive constant, and only within a class of machines that can simulate each other. Contrary to common belief, I don’t see this as a defect of the theory. Rather, it tells us that the very notion of complexity is tied to the universe we live in, and to what its laws make possible and easy. Within a class of machines that can simulate each other, the invariance theorem tells us everything we can know about information that doesn’t depend on which machine we pick. Beyond that, physics decides two things: which machine in the class is reasonable to build, and which class of machines is available in the first place.

Computation can be studied apart from physics up to a point, and much of computer science does so very productively. But some questions, like the questions about complexity raised here, can only be answered by thinking about the two together. Machine learning is a case in point. Our theories of generalization lean on Kolmogorov complexity more than we usually admit, and rather than treating the choice of machine as an embarrassing detail to be quietly stepped around, we can treat it as a question about the world, which is where it belongs. When we call a description short, we’re always relying on what the universe has already made easy.

To cite this blog post, please use the following:

@online{elmoznino2026physicskolmogorov,
    author = {Eric Elmoznino},
    title = {Why the Laws of Physics Matter to Kolmogorov Complexity},
    year = {2026},
    url = {https://ericelmoznino.github.io/blog/2026/11/27/laws-of-physics-and-kolmogorov-complexity/},
}
  1. Solomonoff, R. J. (1964). A formal theory of inductive inference. Part I. Information and Control, 7(1), 1–22. ↩ ↩2

  2. Rissanen, J. (1978). Modeling by shortest data description. Automatica, 14(5), 465–471. ↩

  3. Grünwald, P. D. (2007). The Minimum Description Length Principle. MIT Press. ↩

  4. Goldblum, M., Finzi, M., Rowan, K., & Wilson, A. G. (2024). Position: The no free lunch theorem, Kolmogorov complexity, and the role of inductive biases in machine learning. In Proceedings of the 41st International Conference on Machine Learning (pp. 15788–15808). arXiv:2304.05366. ↩

  5. Wilson, A. G. (2025). Position: Deep learning is not so mysterious or different. In Proceedings of the 42nd International Conference on Machine Learning (pp. 82326–82346). arXiv:2503.02113. ↩

  6. Mingard, C., Rees, H., Valle-Pérez, G., & Louis, A. A. (2025). Deep neural networks have an inbuilt Occam’s razor. Nature Communications, 16, 220. ↩

  7. Blier, L., & Ollivier, Y. (2018). The description length of deep learning models. In Advances in Neural Information Processing Systems 31. arXiv:1802.07044. ↩

  8. Shannon, C. E. (1948). A mathematical theory of communication. The Bell System Technical Journal, 27(3), 379–423. ↩

  9. Kolmogorov, A. N. (1965). Three approaches to the quantitative definition of information. Problems of Information Transmission, 1(1), 1–7. ↩

  10. Chaitin, G. J. (1966). On the length of programs for computing finite binary sequences. Journal of the ACM, 13(4), 547–569. ↩

  11. Li, M., & Vitányi, P. (2008). An Introduction to Kolmogorov Complexity and Its Applications (3rd ed.). Springer. The precise statement uses prefix-free Kolmogorov complexity, a variant in which no program is a prefix of another, and appears in the book’s section relating Kolmogorov complexity to Shannon entropy. ↩

  12. Deutsch, D. (2011). The Beginning of Infinity: Explanations that Transform the World. Allen Lane. See chapter 8, “A Window on Infinity”. ↩ ↩2

  13. Deutsch, D. (2013). Constructor theory. Synthese, 190(18), 4331–4359. arXiv:1210.7439. ↩

  14. Rathmanner, S., & Hutter, M. (2011). A philosophical treatise of universal induction. Entropy, 13(6), 1076–1136. ↩

  15. Landauer, R. (1961). Irreversibility and heat generation in the computing process. IBM Journal of Research and Development, 5(3), 183–191. The minimum is $kT \ln 2$ per bit erased, where $k$ is Boltzmann’s constant and $T$ is the temperature of the surroundings. ↩

  16. Özkural, E. (2015). Ultimate intelligence part I: Physical completeness and objectivity of induction. In International Conference on Artificial General Intelligence (pp. 131–141). Springer. arXiv:1501.00601. Our proposals agree that physical cost is what rules out gerrymandered machines, but they differ in two ways. First, Özkural replaces program length with a single physical quantity (volume, or alternatively energy or action) and takes the universe itself as the reference machine, with the aim of a fully objective measure. I keep program length as the measure and use physical cost only to judge which reference machine is reasonable. I also deliberately avoid committing to a single cost measure, since that would fix one exchange rate between bits, energy, time, and so on, when those exchange rates are themselves set by the laws of physics. Second, Özkural argues that machines more powerful than Turing machines are physically impossible, since they would need infinite memory or speed, and the Bekenstein bound (a physical limit on how much information a finite region of space can hold) limits how precisely any physical quantity can be specified. This lets physics settle which class of machines to use. In the next section, I use a thought experiment about exactly such a machine to make the opposite point: which class of machines is available is itself contingent on the laws of physics. ↩

  17. Soklakov, A. N. (2000). Complexity analysis for algorithmically simple strings. arXiv preprint cs/0009001. ↩

  18. Lewis, D. (1983). New work for a theory of universals. Australasian Journal of Philosophy, 61(4), 343–377. ↩

  19. Wheeler, B. (2016). Simplicity, language-dependency and the best system account of laws. Theoria: An International Journal for Theory, History and Foundations of Science, 31(2), 189–206. ↩

Updated: