From Kolmogorov to Free Energy: Data Compression as a Common Problem for AIT, MDL, Bayes, and the FEP
★ Giulio Ruffini, ,
★ guarantor: Giulio Ruffini · vouches for the paper per WP0084 §6
Algorithmic information theory (AIT), minimum description length (MDL), Bayesian inference, and variational free energy can be organized around one operational question: how should a compressor for observed data be constructed? The individual correspondences are classical: probability determines ideal codelength, universal algorithmic probability recovers Kolmogorov complexity, MDL formulates inference as compression, and variational free energy admits a description-length interpretation. The purpose here is to put these results in one executable hierarchy. AIT asks for the shortest program in a universal class. MDL restricts the admissible compressor programs and selects one by model-plus-residual codelength. Bayes replaces hard selection by a mixture of probabilistic compressors. Variational free energy replaces exact mixture inference by an optimization over a tractable distribution (q). When the latent variable indexes candidate compressor programs, point-mass (q) recovers two-part MDL/MAP, exact (q) recovers the Bayesian mixture code, and restricted (q) gives its variational approximation. This synthesis extends the bounded-compression argument of Navigating Complexity by making the compressor produced at each level explicit. {small}
Four major inference frameworks — AIT, MDL, Bayes, and the Free Energy Principle — are the same compression problem viewed under progressively relaxed constraints on what the compressor is allowed to be.
The core intuition is simple: a "model" is really just a program that compresses data. If your model is good, it absorbs the structure in the observations and leaves behind a residual that looks like noise — nothing left to exploit. Shannon showed that probability and codelength are the same thing (short code ↔ high probability). Kolmogorov complexity is just the ultimate version of this: the shortest program that reproduces the data, full stop. The paper's move is to hold that compression framing fixed and show that MDL, Bayes, and the Free Energy Principle (FEP) are successive relaxations of the same ideal, each one trading some optimality for tractability.
The hierarchy works like this. Kolmogorov complexity (AIT) asks for the globally shortest program — perfect, but uncomputable. MDL makes it operational: restrict to a computable family of candidate compressors, then pick the one minimizing model-description-length plus residual-description-length. Bayesian inference softens that hard pick into a weighted mixture over all candidate compressors, which provably achieves a shorter code than any single choice. Variational free energy (the FEP's mathematical engine) then approximates that mixture when exact Bayesian averaging is itself too expensive — you optimize over a tractable family of distributions q(z) instead. The paper shows these aren't just analogies: point-mass q recovers MDL exactly, unconstrained q recovers exact Bayes, and restricted q gives variational Bayes. The "bits-back" interpretation makes the entropy term in the free energy concrete: it's the number of model-index bits the decoder can recover, not a formal regularizer inserted by hand.
One practically useful clarification the paper makes explicit: a probabilistic model isn't a separate kind of thing from a compressor. Pair any probability law with an arithmetic coder and you have a lossless compressor; the negative log-likelihood is literally the codelength. This dissolves a lot of apparent distance between "statistical modeling" and "data compression." The paper also pins down what successful modeling means in residual terms: for a stochastic model, success isn't small numerical error — it's innovations (normalized residuals) that are white, meaning no remaining temporal structure a better model could exploit.
The paper is explicit that its contribution is organizational rather than theorem-level — the individual bridges (Shannon, Solomonoff/Levin, Rissanen, Hinton/Zemel, Friston) are classical results. What it adds is a single executable reading that keeps the compressor object visible at every stage, and connects to the companion paper WP0017 (Navigating Complexity), where a resource-limited agent facing this compression problem is shown to naturally derive probabilistic inference and an Occam prior. A brief section on sequential model revision notes that switching compressors is worth it exactly when the compression gain on past data exceeds the information cost of the switch — a clean algorithmic payoff condition.
- Zenodo
- 10.5281/zenodo.22084394
- Preprint
- https://doi.org/10.5281/zenodo.22084394
- WP ID
- WP0222
- Lifecycle
- ongoing
- Visibility
- public
- Access level
- open
- Embargo until
- —
- Priority
- —
- Collab
- open
- Venue
- —
- DOI
- —
- Deadline
- —
- Owner
- —
- Source
- drive_legacy
- Repo path
- WP0222
- v1.1.2 (draft) · cut-version · zenodo:22085693v1.1.2: title-page byline updated to Giulio Ruffini, Klaus, Kaiti (Giulio's instruction 2026-08-24), aligning the PDF with the Calliope/Zenodo author record. No other changes.
- v1.1.1 (draft) · cut-version · zenodo:22084395v1.1.1: "From Kolmogorov to Free Energy: Data compression as a common problem for AIT, MDL, Bayes, and the FEP." Compressor-as-primitive reorganization (Giulio's external draft, revised): the object sought at every level is an executable compressor program; ladder = universal program search → restricted MDL selection → Bayesian mixture → variational approximation; exact hard/soft identity F[q] = E_q[J(z)] − H(q) with point-mass q → two-part MDL/MAP, exact q → Bayesian mixture code, restricted q → variational bound; residuals/innovations section (whitening, PIT); appendices on Levin's coding theorem and continuous-resolution coding; prior notation standardized to p(z). Ported from v0.5.0: mixture-overhead identity J(z) = −log P_mix − log p(z|D) (posterior surprise), dominance bound K(M) ≤ −log p(M) + K(p) + O(1) with one-sidedness, compact sequential-revision section (update cost, K(M_t|M_{t−1}), payoff condition, entrenchment, WP0221 link), Hinton–van Camp citation. 9 pp, self-contained bibliography.
- v1.1.0 (draft) · cut-versionv1.1.0: numbering placeholder aligning with the author's external draft rounds; content lands in v1.1.1.
- v1.0.0 (draft) · cut-versionv1.0.0: full reorganization begins (external draft rounds by Giulio/Kaiti). The v0.x lineage — "Complexity Relative to a Prior" and its 3-page synthesis note — is archived under versions/; superseded by the compressor-as-primitive architecture landing in v1.1.1.
- v0.5.0 (draft) · cut-versionv0.5.0: "the bound is the ledger." Exact identity −log p(M̂)−log p(D|M̂) = −log p(D) − log p(M̂|D): the two-part overhead over the one-part mixture code is the posterior surprise of the committed model, which equals the variational gap at q=δ — the mixture inequality and the evidence bound are one inequality read at different q; minimizing F over a family is redundancy minimization over bits-back codes. New "Certificates" paragraph in §4: K(D) uncomputable → agents hold upper-bound certificates; coding theorem = the tightness statement (universal semimeasure closes the gap up to O(1), analog of F[posterior] = −log p(D)); fourth pedagogical-map row pairing the bound gaps KL(q||p(M|D)) ↔ K(M)+K(D|M)−K(D). Cites WP0028 (bound derivation) and WP0176 (uncomputability → probabilistic inference). 20 pp.
- v0.4.0 (draft) · cut-versionv0.4.0: pedagogical restructure from Giulio's external draft, revised. One-part vs two-part codes throughout; M-hat (selected hypothesis) vs M* (shortest program, |M*|=K(M)); Bayesian mixture code −log p(D) ≤ any committed two-part code; F[posterior] = −log p(D); K(D) ≤ K(M)+K(D|M)+O(1) and min over M recovers K(D)+O(1); algorithmic statistics (finite-set models); exact chain rule via M*; new Appendix A separating syntactic K(M) from functional K_fun(f_M) (wrapper bound, million-bit example, Rice's theorem, K(D|⟦M⟧) via canonical program). Two referee rounds applied; two micro-examples added; register pass; Rice 1953 added to master bib; 19 pp.
- v0.3.0 (draft) · cut-versionv0.3.0: number reserved to align with the author's external draft numbering (intermediate external revision; no distinct content archived — see v0.4.0 for the changes).
- v0.2.0 (draft) · cut-versionv0.2.0: rewritten from the Downloads note on the BCOM template; bits-back reading of VFE, one-sided dominance bound K(M) ≤ −log p(M)+K(p)+O(1), chain-rule joint gap, Lindley identity, telescoping discrepancy, Fisher–Rao/Cauchy–Schwarz bound, algorithmic chain bound, payoff condition; §8 path dependence corrected after referee pass (sunk model cost; persistent only with discarded data).
- 0.1.0 (draft) · auto-run-placeholder
