Quantifying the Rise and Fall of Complexity in Closed Systems
The Coffee Automaton paper formalizing how complexity peaks then declines
Updated
Contents
The Coffee Automaton paper by Aaronson, Carroll, and Ouellette takes an everyday observation — cream stirred into coffee forms beautiful swirls before dissolving into boring uniformity — and turns it into a theorem: in closed systems, complexity provably rises, peaks, and falls, even while entropy only rises.
This page is the formal follow-up to The First Law of Complexodynamics, which poses the puzzle in blog form. Read that first for the setup, and Kolmogorov Complexity for the measurement tool both pages rely on.
Why Students Should Care
- It demonstrates how to take a vague idea (“the universe got interesting before it gets boring”) and make it precise enough to prove things about.
- The measurement problem it solves — separating meaningful structure from random noise — is the same problem behind compression-based views of learning like MDL.
- The rise-and-fall pattern is a useful lens on neural network training dynamics (see below).
The Model
Consider a cellular automaton initialized in a “simple” state — the digital version of cream layered on top of coffee:
Cells then mix under simple local update rules. As the system evolves, it passes through intricate intermediate states before reaching a fully mixed equilibrium. The question: can we prove the middle is more complex than either end?
Measuring Complexity: Sophistication
Plain Kolmogorov complexity will not work here — a fully mixed random state has the highest Kolmogorov complexity, but it is obviously not “complex” in the interesting sense. The paper instead uses sophistication:
In words: find the simplest set that captures ‘s structure, such that within , looks like a typical random member. The sophistication of is the description length of that set.
The takeaway: sophistication counts only the “interesting” part of a description — the structure — and charges nothing for the residual randomness. Random strings have high but low sophistication, because the set “all strings of length n” is simple.
Interactive Demo
Watch complexity rise and fall in a cellular automaton:
Coffee Automaton
The Main Theorem
For a broad class of reversible cellular automata, there exist times and such that:
Complexity provably rises then falls. The blog-post intuition becomes a theorem once the right complexity measure is in hand.
The Three Phases
| Phase | State | Entropy | Complexity |
|---|---|---|---|
| Initial | Ordered layers | Low | Low |
| Mixing | Intricate patterns | Medium | High |
| Equilibrium | Uniform random | High | Low |
Why This Happens
Initial state: described by a short program (“n/2 ones, n/2 zeros”) — simple.
Mixing state: the partly-mixed patterns have real structure (tendrils, boundaries) that any faithful description must spell out — complex.
Final state: described as “a sample from the uniform distribution” — simple again, because all the detail is now pure noise that sophistication does not charge for.
The set of intermediate states is “special” — neither trivially ordered nor purely random.
Connection to Learning
A similar arc appears in neural network training:
- Early: random weights, simple predictions
- Middle: complex feature detectors emerge
- Late: simplified, generalizable representations
Loss landscapes may follow similar complexity dynamics — a suggestive analogy, though not something this paper proves.
Compression Perspective
Any state’s description splits into two parts:
At peak complexity:
- Non-trivial structure to describe
- Non-trivial variation around that structure
At equilibrium:
- The structure is just “uniform distribution” (simple)
- Everything else is noise
Sophistication tracks only the first term — which is exactly why it peaks in the middle.
Common Confusion
- Complexity is not entropy: entropy rises monotonically the whole time; sophistication rises and falls. The final state has maximum entropy and near-minimum sophistication.
- This paper vs. Complexodynamics: Aaronson’s blog post poses the question and sketches “complextropy”; this paper builds the concrete automaton model and proves the rise-and-fall result using sophistication.
- Random does not mean sophisticated: high Kolmogorov complexity means incompressible, not structured. Sophistication was chosen precisely to filter randomness out.
- “Closed system” matters: no outside input is adding order — the complexity peak emerges purely from internal mixing dynamics.
Where To Go Next
- Read The First Law of Complexodynamics for the original puzzle in accessible blog form.
- Read Kolmogorov Complexity for the foundation under and sophistication.
- Read MDL Tutorial for the structure-plus-noise decomposition applied to model selection.
- Read MDL Weights for compression thinking applied to neural networks.
Key Paper
- Quantifying the Rise and Fall of Complexity in Closed Systems: The Coffee Automaton — Aaronson, Carroll, Ouellette (2014)
https://arxiv.org/abs/1405.6903