Keeping Neural Networks Simple by Minimizing the Description Length of the Weights
Hinton's MDL approach to neural network regularization through noisy weights
Updated
Contents
Keeping Neural Networks Simple by Hinton and van Camp (1993) turned regularization into an information-theory problem: train networks with deliberately noisy weights, because noisy weights need fewer bits to describe — and models that can be described in fewer bits generalize better.
Prerequisite: the MDL Tutorial — this paper is the MDL principle applied to neural network weights. Skim that page’s “Core Idea” section if nothing else.
Why Students Should Care
- This 1993 paper is the origin of variational inference for neural networks — the math here reappears almost unchanged in VAEs, Bayesian neural nets, and modern compression-based views of generalization.
- It answers a deep question simply: why do smaller/simpler models generalize? Because they encode fewer bits of the training set, so they cannot have memorized the noise.
- It anticipated dropout-style noise injection and learned quantization decades early.
A Concrete Way In
Imagine you must fax a trained network to a friend, and every bit costs money. Weight 0.73916402… is expensive. But do you really need all those digits? If sending “roughly 0.74, give or take 0.02” barely hurts accuracy, most of those digits were describing noise, not knowledge. This paper makes networks train themselves to need fewer digits.
The MDL Principle
The Minimum Description Length principle states that the best model minimizes:
For neural networks:
A network with fewer effective bits in its weights spends less on the first term; a network that fits the data well spends less on the second. Training should minimize the sum.
The Key Insight: Noisy Weights Are Cheap Weights
Instead of transmitting precise weights, transmit noisy ones:
Higher noise means:
- Fewer bits to describe the weights (coarser precision suffices)
- More bits to describe the prediction errors (the network is less exact)
The trade-off differs per weight — some weights matter a lot, others barely — so the network learns the optimal noise level for each weight during training.
Interactive Demo
Explore the trade-off between weight precision and noise:
MDL Weight Regularization
Mathematical Framework
Treat each weight not as a number but as a distribution:
The description length (in bits) for communicating weights drawn from relative to an agreed prior (often ):
The takeaway: the cost of a weight is measured by how much its learned distribution deviates from the prior — a weight that stays vague and prior-like is nearly free; a sharply pinned-down weight is expensive.
The Bits-Back Argument
A subtle and famous trick. When the sender transmits weights sampled from a known distribution , the randomness used to pick the sample can itself carry other information, which the receiver can recover — the sender effectively gets those bits refunded:
Do not worry if this feels slippery on first read — it is. The punchline is that the true cost of the weights is exactly the KL divergence between and the prior. That is the same KL term that appears in VAEs, derived here fifteen years earlier.
Connection to Modern Regularization
This 1993 paper anticipated:
| MDL Concept | Modern Equivalent |
|---|---|
| Noisy weights | Dropout, weight noise |
| Description length | KL divergence in VAEs |
| Bits-back coding | Variational inference |
| Optimal precision | Learned quantization |
Training Procedure
- Forward pass with noisy weights:
- Compute expected loss:
- Update both and via gradient descent
- The network learns which weights need precision and which can stay fuzzy
Why This Matters
This paper established:
- Information-theoretic regularization: a derivation, not a heuristic
- Learned precision: different weights need different precision
- Compression = generalization: simpler (shorter-description) models generalize better
Common Confusion
- This paper vs. the MDL Tutorial: Grünwald’s tutorial explains the MDL principle in general; this paper is one specific application — compressing neural network weights.
- Noise here vs. dropout: dropout zeroes activations at random; this method adds Gaussian noise to weights, with a per-weight learned magnitude and an information-theoretic justification.
- Description length vs. parameter count: a network with many low-precision (high-noise) weights can have a shorter description than a network with few high-precision ones. Bits, not parameters, are what count.
- Not the same as post-hoc quantization: precision is limited during training, so the network adapts to it, rather than being rounded after the fact.
Where To Go Next
- Read MDL Tutorial for the general principle behind this paper.
- Read Kolmogorov Complexity for the deepest version of “short descriptions are good.”
- Read VAE to see the same KL-divergence machinery powering deep generative models.
- Read Variational Lossy Autoencoder for a modern analysis of what variational codes capture.
- Read Dropout for the heuristic noise-based regularizer this paper foreshadowed.
Key Paper
- Keeping Neural Networks Simple by Minimizing the Description Length of the Weights — Hinton, van Camp (1993)
https://www.cs.toronto.edu/~hinton/absps/colt93.pdf