Researchers from Google DeepMind have bridged the gap between the theoretical ideal of "perfect" data compression—known as Kolmogorov complexity—and practical deep learning. They prove that Transformers are computationally universal and can be trained with "asymptotically optimal" objectives that theoretically guarantee the best possible generalization. However, their work also reveals a critical bottleneck: current optimization techniques still struggle to find these ideal solutions from scratch.
The Problem: Occam’s Razor and Data Compression
In machine learning, we frequently rely on Occam’s Razor: the simplest explanation that fits the data is usually the best. The formal mathematical version of this is the Minimum Description Length (MDL) principle, which frames learning as a data compression problem.
If you can describe your model and your data very concisely, you’ve likely captured the true underlying patterns, leading to better generalization on unseen data. However, applying MDL to modern neural networks is notoriously difficult. How do you measure the true "complexity" of a billion-parameter Transformer? While we use heuristics like weight decay or dropout, we lack a principled, universal measure of complexity that works across architectures.
This paper seeks a "gold standard" objective grounded in Kolmogorov complexity—defined as the length of the shortest possible computer program that can produce a given piece of data.
Bridging Theory and Practice
The authors bridge this theoretical-practical divide through several key methodological steps:
1. Computational Universality
They provide a novel proof that Transformer encoders are "computationally universal." By using a compiler to map symbolic programs to Transformer weights, they demonstrate that a Transformer can simulate a Universal Turing Machine.
Essentially, a Transformer can be viewed as an interpreter for a program encoded directly within its own weights or input prompts.
2. Asymptotically Optimal Objectives
Building on this universality, they define a class of description length objectives that are "asymptotically optimal." This means that as you increase the model's resources (e.g., more layers, larger context window), the objective's minimum mathematically converges to the absolute theoretical limit of compression defined by Kolmogorov complexity.
3. Differentiable Variational Codes
To make this abstract theory "trainable" via gradient descent, they construct a variational objective using an adaptive Gaussian Mixture Model (GMM) prior. This allows the model to "cluster" its weights around a few precise values during training. By effectively quantizing itself, the model drastically reduces its description length.
4. The "Bits-Back" Argument
They use variational inference to estimate the cost of transmitting model weights, creating a differentiable loss function that perfectly balances model complexity against data fit.
Experimental Insights: The Optimization Gap
The paper focuses on "algorithmic" tasks where the ground truth is a simple program, making them perfect for testing MDL principles. A primary testbed is the Computing Parity task: determining if a sequence of 0s and 1s has an even or odd number of 1s. This is a notoriously hard task for standard Transformers to generalize on out-of-distribution (OOD).
The researchers uncovered a fascinating "optimization gap":
- The Theoretical Ideal Exists: The authors manually constructed a low-complexity Transformer (using their compiler) that generalized perfectly, achieving 100% OOD accuracy on the parity task. Their new MDL objective correctly identified this manual solution as "better" (lower complexity) than standard trained models.
- Standard Training Fails: A standard Transformer trained with Maximum Likelihood Estimation (MLE) achieved only 56.4% OOD accuracy—barely better than random guessing.
- The Objective Works, But Optimizers Struggle: When training with the new variational objective from a random initialization, the model reached 60.4% OOD accuracy. While this is an improvement over MLE, it falls far short of the 100% achieved by the manual solution.
Even though the objective function technically "prefers" the manual solution's lower complexity, standard optimizers (like Adam) starting from random initialization couldn't find it. They get stuck in "complex" local minima. The authors attribute this to prior collapse, where during random training, the weight prior collapses to a simple unimodal distribution, preventing the model from discovering the precise, multimodal "quantized" weight settings needed for perfect logic.
Conclusion and Future Work
This paper successfully proves that a "perfect" objective for neural network compression and generalization exists and can be formulated differentiably. However, it also highlights a major limitation in modern deep learning: our current optimization tools (gradient descent combined with random initialization) are poorly suited to finding these highly compressed, algorithmic solutions from scratch.
Future breakthroughs will likely require moving beyond simple gradient descent to better explore the space of low-complexity programs, developing new initialization strategies to avoid prior collapse, and scaling these asymptotically optimal codes to massive, real-world datasets.
Summary updated