Does Compression Imply Generalization? A Minimum Description Length Perspective

Lincen Yang, Jiayang Shi, Nan Pu, Daniel Pelt, Matthijs van Leeuwen, Zhong Li, Shujian YuNeurIPS 2026

TL;DR

Why don't massive neural networks just memorize their training data and fail in the real world? This paper shows that you can predict how well a network generalizes simply by measuring how efficiently it compresses information as it learns—using nothing more than the training run itself. No test sets, no fancy priors, and no agonizing high-dimensional probability math required.

What Problem Does This Paper Address?

Classical machine learning theory says that if your model has more parameters than data points, it will memorize the data and fail on new examples. Modern deep learning violates this rule daily. A leading explanation is compression (Occam's razor in math form): models generalize when they discard irrelevant noise and retain only essential patterns.

However, actually measuring this compression in deep networks is a headache. Existing frameworks are split on what is being compressed—some look at the network's weights (like PAC-Bayes), while others look at internal feature representations (like the Information Bottleneck, or IB). Worse, computing these metrics in practice usually requires held-out "ghost" data, guessing complex parameter distributions, or estimating mutual information across millions of dimensions—a notoriously brittle task. We lacked a clean, practical complexity signal computed strictly from the inside of a standard training run.

Methods

The authors turn to the Minimum Description Length (MDL) principle, which frames learning as lossless data compression: the best model is the one that minimizes the bits needed to transmit both the model and the data.

Instead of explicitly compressing millions of weights, they use a standard sequential technique called prequential coding. Imagine Alice wants to send training labels to Bob, who already has the inputs and the exact training code.

  1. They split the training data into $K$ sequential blocks.
  2. Alice guesses the first block's labels uniformly, and they both train a model $\hat{\theta}_1$ on that block.
  3. They use $\hat{\theta}_1$ to predict (and compress) block 2, then train $\hat{\theta}_2$ on blocks 1 and 2, repeating this up to the full dataset. Because Bob mimics the training step-by-step, the final network parameters $\theta^*$ are transmitted implicitly through the data predictions.

What is novel here is how the authors formalize and deploy prequential regret ($L_{\text{preq}} - \hat{L}$). This is the difference between the total bits spent during that step-by-step learning process ($L_{\text{preq}}$) and the bits the final, fully-trained model $\theta^*$ would need to encode the training labels in hindsight ($\hat{L}$). The authors mathematically prove that this regret acts as a rigorous upper bound on the true parameter description length, and plug it into transductive PAC-MDL and PAC-Bayes frameworks to yield formal generalization bounds for both deterministic and stochastic training.

Datasets

The authors evaluate their theoretical bounds empirically on two standard image classification benchmarks: CIFAR-10 and CIFAR-100, training hundreds of ResNet architectures across varying depths, batch sizes, weight decays, and dropout rates. No new benchmarks are introduced.

Key Insights and Ideas

  • Unifying Two Worlds of Compression: Historically, compressing representations (Information Bottleneck) and compressing weights (MDL) evolved separately. Recent fixes to IB had to add an "encoder-complexity" penalty so networks wouldn't cheat by memorizing data inside the feature extractor. The authors prove this IB correction is upper-bounded by the MDL parameter description length—showing these two rival views of compression actually meet at the exact same mathematical junction.
  • Turning Heuristics into Hard Math: Researchers previously suspected that prequential codes "contained" the complexity of a neural network, since every bit is technically spent encoding labels, not weights. By separating the model's predictive distribution from the algorithm-induced distribution over trained weights, the authors prove that prequential regret rigorously bounds the bits needed to describe the learned parameters.
  • Stochasticity Gives You "Bits Back": If your training uses random seeds, dropout, or random batches, multiple parameter states perform similarly. The math naturally incorporates a "bits-back" coding discount, tightening the complexity bound by subtracting the algorithm's intrinsic randomness.

Key Results

Prequential regret was tested against six existing information-theoretic and IB-based complexity estimators to see which best tracked the actual generalization gap (the difference between train and test performance):

  • CIFAR-10 (540 ResNet models): Prequential regret outperformed all baselines across every correlation metric (Spearman, Pearson, and Kendall). It achieved a 0.9211 Pearson correlation with the loss gap and 0.9172 with the classification error gap.
  • Crushing Pure Weight-Complexity Baselines: Compared to the only other pure parameter-level baseline—estimating mutual information between data and weights via Gaussian approximations, which scored a Pearson correlation of 0.2512 (loss) and 0.0775 (error)—reading regret straight off the training trajectory was vastly more reliable.
  • CIFAR-100 (99 ResNet models): Strong tracking held up, achieving Pearson correlations of 0.9079 (loss gap) and 0.8994 (accuracy gap), while IB baselines timed out of a 48-hour compute budget due to expensive post-training estimation.

Limitations and Future Work

  • The Interpolation Catch: The core theorem relies on an "interpolation-genericity" condition—meaning the network must fit the training data reasonably well without uniquely memorizing label sequences. On CIFAR-100, three severely underfit networks (training accuracy $< 0.25$ due to tiny size and heavy weight decay) yielded negative regret, breaking the bound just as the theory predicts.
  • Transductive Setting: The formal generalization guarantees hold in a transductive setup, where a finite pool of data is randomly split into train and test sets. Extending this math to open-ended population risk (infinite unseen data) remains an open problem.
  • Beyond ResNets and Vision: Because prequential regret only looks at predictions along the training curve, it is completely architecture-agnostic. Testing it on Transformers, language, and massive pretraining runs—where models don't nearly interpolate their massive training sets—is a prime target for future work.

Summary updated

Abstract

A central question in modern learning theory is what notion of compression, if any, explains why over-parameterized neural networks generalize. Existing answers measure complexity at different levels, ranging from weights to representations; however, estimating the associated quantities either requires held-out data in principle or relies on the challenging (ultra) high-dimensional mutual information estimation. To overcome these challenges, we approach the question through the minimum description length (MDL) principle, and specifically, we propose the prequential regret as a complementary signal that is computable from the training trajectory alone. We establish that, in the (nearly) interpolating regime, the expected prequential regret upper-bounds the description length of the trained parameter under the algorithm-induced distribution, and that this description length translates into a high-probability generalization bound in the PAC-MDL setting. Along the way, we show that the encoder-complexity correction recently added to the algorithm-level information bottleneck (IB) is upper-bounded by an MDL parameter description length, \new{bringing together} the two views of compression from MDL and IB. Empirically, the prequential regret tracks the generalization error on CIFAR-10 and CIFAR-100, with Pearson correlations exceeding 0.9.
BibTeX
@inproceedings{yang2026does,
  author = {Lincen Yang and Jiayang Shi and Nan Pu and Daniel Pelt and Matthijs van Leeuwen and Zhong Li and Shujian Yu},
  title = {{Does Compression Imply Generalization? A Minimum Description Length Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dQ36O5uJBs},
}
Figure