Computational mechanics, developed by James Crutchfield and colleagues since the late 1980s, asks what any predictor of a process must know about its past. Language models are predictors, so its answers apply directly to them. The first question is how predictable the next symbol is at all.
We will compute block entropies, take the entropy rate, and finish with random and periodic processes.
Step 1: Block entropies
A process emits a sequence of symbols X₁, X₂, …. Let H(L) be the entropy of a block of L consecutive symbols: the uncertainty, in bits, about the whole block. For an i.i.d. coin with P(1) = p, the symbols are independent, so their entropies add: H(L) = L × H(p), where H(p) is the entropy of one flip. With p = 0.25, H(p) ≈ 0.81, so a block of 5 flips has H(5) ≈ 4.05 bits. For processes with memory, later symbols are partly predictable from earlier ones and H(L) grows more slowly than L × H(1).
Step 2: The entropy rate
The entropy rate is the irreducible randomness per symbol, the uncertainty about the next symbol that remains even given the entire past:
H(L)/L approaches it because early uncertainty, such as not yet knowing a phase, gets spread over more and more symbols. For an i.i.d. coin, hμ = H(p). A next-token predictor's average log loss (its cross-entropy in bits) can never go below hμ, however good the model: the entropy rate is the floor on loss.
Step 3: Random and periodic processes
The entropy rate places processes on a scale of randomness. A periodic process such as 0110 0110 …, once its phase is known, is perfectly predictable, so hμ = 0. A fair coin has the largest possible rate for two symbols, 1 bit. Biased coins sit in between, with H(p) = H(1 − p): a coin landing 1 ninety percent of the time is exactly as unpredictable as one landing 1 ten percent of the time.