Information-Theoretic Understanding of Population Risk Improvement with Model Compression

Yuheng Bu, Weihao Gao, Shaofeng Zou, Venugopal V. Veeravalli

Introduction

In the era of massive deep neural networks, model compression—encompassing techniques like pruning, quantization, and knowledge distillation—is typically viewed as a necessary compromise. The primary goal is to shrink over-parameterized models to fit the memory and computational constraints of mobile and edge devices, usually with the expectation of a slight degradation in accuracy. However, an intriguing empirical phenomenon has emerged: in some cases, a compressed model actually performs better on unseen data than the original, uncompressed version.

This paper provides a formal, information-theoretic explanation for this counterintuitive behavior. By bridging Information Theory and Statistical Learning Theory, the authors demonstrate that model compression acts as a powerful regularizer. They analyze "Population Risk"—the expected error on new data—by decomposing it into the sum of training error (empirical risk) and generalization error, showing how compression optimizes the balance between the two.

Theoretical Framework

The core of the paper's argument rests on two pillars: Generalization Bounds and Rate-Distortion Theory.

Generalization via Mutual Information

The authors utilize mutual information, denoted as $I(S; W)$, to bound the generalization error of a model. In this context, $S$ represents the training data and $W$ represents the model weights. A key insight from information theory is the "data processing inequality," which states that post-processing data cannot increase its information content. Because a compressed model $\hat{W}$ is a post-processed version of the original model $W$, the mutual information between the training data and the model necessarily decreases: $I(S; \hat{W}) \leq I(S; W)$. Mathematically, this reduction in mutual information directly translates to a tighter generalization bound, formalizing compression as a regularization technique that prevents the model from "memorizing" noise in the training set.

The Cost of Compression: Rate-Distortion

While compression improves generalization, it inherently loses information, which typically increases the empirical risk (distortion). The authors use Rate-Distortion theory to quantify this trade-off, characterizing the increase in training error as a function of the "rate" (the number of bits used to represent the model). This leads to the identification of a "sweet spot" in the compression ratio. If a model is compressed too little, it remains overfitted; if compressed too much, it underfits due to high distortion. This relationship often results in a U-shaped population risk curve relative to the compression rate.

Figure 1: The trade-off between empirical risk and generalization error as a function of the compression ratio. Note how the compressed population risk can fall below the original population risk.

Proposed Method: Diameter-Regularized Hessian-weighted K-means

Building on their theoretical findings, the authors propose a novel compression algorithm. Standard quantization methods, like Hessian-weighted K-means, focus solely on minimizing distortion by preserving weights that the loss function is most sensitive to (as indicated by the Hessian matrix).

The authors' improved version adds a "diameter regularization" term. This term penalizes the distance between clustering centers (the "diameter" of the quantized weight space). By forcing these centers closer together, the algorithm specifically targets the reduction of the sub-Gaussian parameter of the loss function, further tightening the generalization bound beyond what standard compression achieves.

Experimental Results

The authors validated their theory and algorithm using synthetic data for linear regression, as well as standard benchmarks like MNIST (with a 3-layer fully connected network) and CIFAR-10 (with a 5-layer CNN).

Key results include:

  • Validation of Bounds: Simulations confirmed that both "Oracle" compression (using true underlying weights) and practical K-means compression could achieve lower population risk than the uncompressed Empirical Risk Minimization (ERM) solution.
  • Algorithmic Superiority: On MNIST and CIFAR-10, the Diameter-Regularized algorithm consistently outperformed standard Hessian-weighted K-means. As seen in the experimental data, the regularized version (with penalty parameter $\beta=50$) showed a significant improvement in population risk over the non-regularized version ($\beta=0$) across various compression ratios.
Figure 5: Comparison of population risk and generalization error for standard compression (beta=0) versus the proposed diameter-regularized compression (beta=50) on MNIST.

Conclusion and Future Work

This research shifts the perspective on model compression from a mere engineering necessity to a principled method for improving model robustness. By treating compression as an information-theoretic filter that removes overfitted "noise" while preserving the underlying "signal," the authors provide a rigorous foundation for why smaller models can be smarter.

Future work remains in addressing the computational complexity of Hessian calculations, which are currently approximated as diagonal matrices. Additionally, applying these insights to "training-aware" compression—where regularization is integrated directly into the training loop rather than applied post-training—presents a promising avenue for further enhancing deep learning generalization.

Summary updated

BibTeX
@inproceedings{bu2020information,
  author = {Yuheng Bu and Weihao Gao and Shaofeng Zou and Venugopal V. Veeravalli},
  title = {{Information-Theoretic Understanding of Population Risk Improvement with Model Compression}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5730},
}
Figure