[Paper Review] The Description Length of Deep Learning Models
This paper demonstrates that deep neural networks can achieve strong data compression even when accounting for model parameter encoding, contradicting the expectation that large parameter counts hinder compression. Using prequential coding—incremental encoding during training—it achieves significantly better compression bounds than variational inference, which is explicitly designed for this purpose, revealing a critical inefficiency in variational methods despite their theoretical alignment with the Minimum Description Length (MDL) principle.
Solomonoff's general theory of inference and the Minimum Description Length principle formalize Occam's razor, and hold that a good model of data is a model that is good at losslessly compressing the data, including the cost of describing the model itself. Deep neural networks might seem to go against this principle given the large number of parameters to be encoded. We demonstrate experimentally the ability of deep neural networks to compress the training data even when accounting for parameter encoding. The compression viewpoint originally motivated the use of variational methods in neural networks. Unexpectedly, we found that these variational methods provide surprisingly poor compression bounds, despite being explicitly built to minimize such bounds. This might explain the relatively poor practical performance of variational methods in deep learning. On the other hand, simple incremental encoding methods yield excellent compression values on deep networks, vindicating Solomonoff's approach.
Motivation & Objective
- To evaluate whether deep learning models truly compress data when accounting for model description length, challenging assumptions about parameter count as a barrier to compression.
- To investigate why variational inference methods—designed to minimize description length—perform poorly in practice for deep networks.
- To compare different compression estimation techniques (variational, 2-part, Bayesian, prequential) in terms of actual codelength performance on deep learning models.
- To clarify the relationship between model generalization, compression efficiency, and predictive performance using information-theoretic principles.
- To provide practical, tight compression bounds for deep networks using incremental coding schemes that correlate better with test accuracy.
Proposed method
- Employs the Minimum Description Length (MDL) principle to measure the total codelength of data and model parameters, treating model selection as data compression.
- Uses prequential coding: sequentially encoding each training example using the current model state, which naturally incorporates generalization into compression performance.
- Compares codelengths from variational inference (with approximate posterior over weights), 2-part codes, and Bayesian marginalization, using standard deep learning architectures on MNIST and CIFAR.
- Measures the variational objective as an upper bound on the true Bayesian codelength, analyzing the KL divergence gap between approximate and true posterior.
- Applies standard deep learning practices (dropout, early stopping) during training to ensure regularization and realistic model behavior.
- Empirically evaluates codelengths on both real and random (fake) labels to test whether models truly compress information or just memorize data.
Experimental results
Research questions
- RQ1Can deep neural networks achieve effective data compression when the cost of describing the model is included, despite their large number of parameters?
- RQ2Why do variational inference methods—explicitly designed to minimize description length—yield such poor compression bounds in practice for deep networks?
- RQ3How do different compression estimation techniques (prequential, variational, 2-part, Bayesian) compare in terms of actual codelength performance on deep learning models?
- RQ4To what extent does compression efficiency correlate with generalization performance and test accuracy in deep learning models?
- RQ5Is the failure of variational methods due to poor optimization, poor posterior approximation, or inherent limitations of the Bayesian framework in deep learning?
Key findings
- Prequential coding achieves significantly better compression bounds than variational inference, with codelengths up to an order of magnitude lower on MNIST and CIFAR datasets.
- Despite being explicitly designed to minimize description length, variational inference yields poor compression performance, suggesting a fundamental mismatch between theory and practice in deep learning.
- Models trained on random labels fail to compress the data, as evidenced by codelengths approaching uniform encoding, confirming that no information is learned.
- The prequential code correlates strongly with test set performance, indicating that good compression is a reliable proxy for generalization ability.
- The gap between variational codelength and true Bayesian codelength is large, suggesting that the approximate posterior poorly approximates the true posterior, even with optimal variational parameters.
- The results validate Solomonoff’s MDL principle: deep networks do compress data effectively, and the number of parameters does not inherently prevent compression when proper encoding is used.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.