Quantifying the Rise and Fall of Complexity in Closed Systems

The Coffee Automaton paper formalizing how complexity peaks then declines

Updated

Contents
  1. Why Students Should Care
  2. The Model
  3. Measuring Complexity: Sophistication
  4. Interactive Demo
  5. The Main Theorem
  6. The Three Phases
  7. Why This Happens
  8. Connection to Learning
  9. Compression Perspective
  10. Common Confusion
  11. Where To Go Next
  12. Key Paper

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:

Initial: 1111...1111n/20000...0000n/2\text{Initial: } \underbrace{1111...1111}_{n/2}\underbrace{0000...0000}_{n/2}

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:

Soph(x)=min{K(S):xS,K(xS)logSO(1)}\text{Soph}(x) = \min\{K(S) : x \in S, K(x|S) \geq \log|S| - O(1)\}

In words: find the simplest set SS that captures xx‘s structure, such that within SS, xx looks like a typical random member. The sophistication of xx 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 KK 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

Step
0
Entropy
Complexity
The Coffee Metaphor
Like cream mixing into coffee: starts ordered (separated), becomes complex (swirling patterns), ends disordered (uniform). Complexity peaks in the middle.

The Main Theorem

For a broad class of reversible cellular automata, there exist times t1t_1 and t2t_2 such that:

Soph(xt1)Soph(x0)\text{Soph}(x_{t_1}) \gg \text{Soph}(x_0) Soph(xt2)Soph(xt1)\text{Soph}(x_{t_2}) \ll \text{Soph}(x_{t_1})

Complexity provably rises then falls. The blog-post intuition becomes a theorem once the right complexity measure is in hand.

The Three Phases

PhaseStateEntropyComplexity
InitialOrdered layersLowLow
MixingIntricate patternsMediumHigh
EquilibriumUniform randomHighLow

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:

  1. Early: random weights, simple predictions
  2. Middle: complex feature detectors emerge
  3. 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:

K(x)=K(structure)+K(noisestructure)K(x) = K(\text{structure}) + K(\text{noise}|\text{structure})

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

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
Found an error or want to contribute? Edit this page on GitHub

↑↓ to navigate ↵ to open esc to close