Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.The shortest explanation wins
Suppose you need to tell a friend a list of a thousand numbers. If they follow a simple rule (“each is the previous plus 3”), you can just tell them the rule and the first number. If they’re random, you have to read them all out. A good model is a short description: it captures the pattern so you only need to describe what’s left over. The minimum description length principle says to pick the model that makes the total message (model plus leftovers) shortest.
Choosing how complex a model should be is everywhere: how many terms in a thruster calibration curve, how many states in a hidden Markov model of a rover’s terrain, how many clusters in sensor data. MDL gives a principled stopping rule that doesn’t need a held-out set, which matters when every data point cost a space mission to collect.
- 1. MDL prefers the model that…
- 2. Random data with no pattern…
- 3. Adding a parameter is worth it only if…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Two-part codes
is the code length of the data under the fitted model (A7-7). is the cost of describing the model.
What does a parameter cost?
With data points, a parameter only needs to be stated to precision about (its statistical uncertainty). That takes about bits. So for a -parameter model:
This is exactly the BIC criterion (Schwarz, 1978), in bits.
Gaussian residuals
For regression with i.i.d. Gaussian noise, .
- 1. Cost of 2 parameters with n = 1024 data points (bits):
- 2. The ½ log₂ n parameter cost corresponds to…
- 3. L(D | M) is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Universal codes and regret
A universal code for a model class compresses every sequence nearly as well as the best model chosen in hindsight. Its regret is .
- Krichevsky–Trofimov (KT): sequential prediction . It’s a Bayes mixture with a Jeffreys prior, with regret at most about on every sequence.
- Normalized maximum likelihood (NML): . Its regret is the same, , for every sequence, and that is the minimax-optimal worst case (Shtarkov, 1987). For Bernoulli, .
is the parametric complexity: how many distinguishable distributions the model class contains. “Refined MDL” uses it in place of the crude parameter count (Rissanen, 1996; Grünwald, 2007).
- 1. NML regret is…
- 2. The KT estimator is a Bayes mixture with prior…
- 3. Parametric complexity measures…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Why ½ log₂ n per parameter
Quantize to a grid of spacing . Stating it costs about bits. Rounding by increases the data cost by about (Taylor expansion with Fisher information ). Minimizing gives , so the cost is . ∎
MDL and Bayes
A Bayes mixture code is a valid universal code. Its Laplace approximation is
That’s BIC plus terms. Choosing the model with the shortest mixture code is choosing the largest marginal likelihood.
Stochastic complexity
Rissanen’s asymptotic expansion of NML: . The integral term penalizes model geometry, not just the parameter count.
Exercise 3.1: is a degree-4 term worth it?
With n = 64, the extra coefficient costs bits. It’s worth it only if , i.e. RSS drops by more than a factor of (6.7%).
- 1. The optimal parameter precision scales like…
- 2. The shortest Bayes-mixture code corresponds to maximizing…
- 3. With n = 64, one more parameter costs…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Calibrating with just enough terms
An engineer fits a polynomial to 60 noisy calibration points (thrust vs. command, or sensor output vs. temperature). Minimum training error always takes the highest degree allowed, and overfits. MDL with Gaussian residuals, , recovers the true cubic in most trials and predicts new data better. With no validation set needed, MDL is attractive when data are scarce, as in flight-test or on-orbit calibration.
MDL in AI, robotics and aerospace
- Model order selection: AR model orders for vibration and telemetry time series, the number of HMM states, and the number of map features in SLAM.
- Change-point and anomaly detection: segmenting telemetry where a new model shortens the description.
- Neural networks: “keeping networks simple by minimizing the description length of the weights” (Hinton and van Camp, 1993). Modern compression-based generalization bounds and prequential (online) code length estimate the description length of a dataset under a learner (Blier and Ollivier, 2018).
- Program induction and scientific discovery: symbolic regression that trades off equation complexity against fit (AI Feynman: Udrescu and Tegmark, 2020).
References
- J. Rissanen (1978). “Modeling by shortest data description.” Automatica, 14(5).
- G. Schwarz (1978). “Estimating the dimension of a model.” Annals of Statistics, 6(2).
- Y. Shtarkov (1987). “Universal sequential coding of single messages.” Problems of Information Transmission, 23(3).
- J. Rissanen (1996). “Fisher information and stochastic complexity.” IEEE Transactions on Information Theory, 42(1).
- P. Grünwald (2007). The Minimum Description Length Principle. MIT Press.
- A. Barron, J. Rissanen, B. Yu (1998). “The minimum description length principle in coding and modeling.” IEEE Transactions on Information Theory, 44(6).
- G. Hinton, D. van Camp (1993). “Keeping neural networks simple by minimizing the description length of the weights.” COLT.
- L. Blier, Y. Ollivier (2018). “The description length of deep learning models.” NeurIPS.
- S.-M. Udrescu, M. Tegmark (2020). “AI Feynman: a physics-inspired method for symbolic regression.” Science Advances, 6(16).
- R. Krichevsky, V. Trofimov (1981). “The performance of universal encoding.” IEEE Transactions on Information Theory, 27(2).