Neural Weight Norm = Kolmogorov Complexity
This paper proves that in fixed-precision regimes, the minimal weight norm of a neural network outputting a binary string is equivalent to the string's Kolmogorov complexity up to logarithmic factors, thereby demonstrating that weight decay implicitly enforces Solomonoff's universal prior over computable functions.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Question: Why Does "Weight Decay" Work?
In modern artificial intelligence (AI), we train massive neural networks to solve problems. A common trick to make these networks work better on new data is called weight decay. It's like a penalty fee: if the network's internal numbers (weights) get too big, the system charges a fine.
For years, scientists knew this trick worked, but they didn't know why. Standard theories about how much "capacity" a network has couldn't explain it. This paper argues that weight decay works because it is secretly acting as a complexity meter. It forces the network to find the simplest possible explanation for the data, similar to how a detective looks for the most straightforward theory to solve a crime.
The Core Discovery: Weights = Code Length
The author, Tiberiu Musat, proves a surprising mathematical link: The size of a neural network's weights is directly related to the "Kolmogorov Complexity" of the string it outputs.
Let's break that down:
- Kolmogorov Complexity is a fancy way of asking: "What is the shortest computer program needed to generate this specific piece of data?" If you have a string of text like "01010101...", the shortest program is just "print '01' 4 times." That's low complexity. If you have a random string of noise, the shortest program is "print this exact string," which is very long. That's high complexity.
- The Paper's Claim: In a digital computer (which uses fixed precision, like the chips in your phone or laptop), the smallest amount of "weight" a neural network needs to produce a specific output is almost exactly the same as the length of the shortest program that could produce that same output.
The Analogy: The Lego Castle
Imagine you want to build a specific castle using Lego bricks.
- The Network: The Lego bricks are the "weights."
- The Output: The finished castle is the "string" (the data).
- Weight Decay: This is a rule that says, "You are only allowed to use a small number of bricks."
The paper proves that if you are forced to use the minimum number of bricks to build a specific castle, that number of bricks tells you exactly how "complicated" the castle's design is. If the castle is a simple tower, you need few bricks. If the castle is a chaotic, unique masterpiece, you need many bricks.
The "Fixed Precision" Rule
The paper makes a crucial distinction: this only works because computers use fixed precision (like 16-bit or 8-bit numbers).
- Infinite Precision (Theoretical): If a computer could use numbers with infinite decimal places (like 3.14159... forever), a single number could hold an infinite amount of information. In that world, you could build a super-complex castle with just one giant brick. The math breaks.
- Fixed Precision (Real World): Real computers use chunks of data (bits). Every "brick" has a limited size. Because of this, the number of bricks you use is a perfect measure of how much information you are storing.
The author argues that because all real-world AI runs on fixed-precision hardware, this math applies to the AI we actually use today.
The "Sandwich" Proof
The paper proves this relationship with a "sandwich" bound, meaning it traps the complexity between two limits:
- The Lower Limit (Programs to Weights): You can take any computer program and turn it into a neural network. The number of "active" weights needed is roughly the same as the number of bits in the program.
- The Upper Limit (Weights to Programs): You can take any neural network and write it down as a computer program. The length of this program is roughly the number of non-zero weights multiplied by a small "addressing" cost (like writing down which brick goes where).
The "Logarithmic Factor" (The Address Book)
Why isn't it an exact 1-to-1 match? There is a small extra cost called a "logarithmic factor."
- Analogy: Imagine you have a box of 1,000 Lego bricks. To build a specific shape, you don't just need the bricks; you need a list saying which brick goes where. If you have 1,000 bricks, you need about 10 bits of information to say "Brick #452 goes here."
- The paper shows that for certain complex patterns (like shuffling a deck of cards), the network needs this extra "address book" space. This proves the math is tight and accurate, not just a rough guess.
The "Universal Prior" Connection
The paper connects this to a famous idea in math called Solomonoff's Universal Prior.
- The Idea: If you want to predict the future, the best strategy is to assume that simpler explanations are more likely than complex ones.
- The Result: The paper shows that when you use weight decay (the penalty for big weights), you are mathematically forcing the AI to adopt this "simplest explanation" strategy.
- The Takeaway: The most reliable tool in modern AI (weight decay) is actually a practical, working version of the "perfect" mathematical theory of how an ideal brain should learn.
Summary of Claims
- Weight Decay is a Complexity Meter: In fixed-precision networks, minimizing the weight norm is the same as minimizing the description length of the data.
- It Matches the "Ideal" Theory: This regularizer forces the network to behave like an ideal Bayesian agent that prefers simple, short programs (Solomonoff's prior).
- It Works for Any Norm: Whether you use L1, L2, or other types of weight penalties, in fixed precision, they all effectively count the number of non-zero parameters, so they all do the same job.
- It's About Real Hardware: This isn't just theory; it applies to the actual chips (int8, fp16) used in modern AI.
What the paper does NOT claim:
- It does not claim to solve the "black box" problem of how neural networks learn specific features.
- It does not claim to improve AI performance on specific medical or clinical tasks (it stays strictly in the realm of learning theory).
- It does not claim that the constants in the math are small enough to be useful for predicting exact performance on small datasets today; it is a theoretical proof of why the mechanism works.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.