NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Dependent Generalization Bounds via Variable-Size Compressibility

Milad Sefidgaran, Abdellatif Zaidi

TL;DR

This paper introduces a novel "variable-size compressibility" framework that provides data-dependent upper bounds on generalization error. By linking an algorithm's generalization performance to how much its optimization trajectory can be compressed, the authors create a unified theory that subsumes existing PAC-Bayes and intrinsic-dimension-based bounds while remaining computable from a single training dataset.

What Problem Does This Paper Address?

In statistical learning, the "generalization gap"—the difference between a model's performance on training data versus unseen data—is the holy grail of theoretical analysis. While many frameworks exist to bound this gap (information-theoretic, PAC-Bayes, fractal-based), they often suffer from two major issues:

  1. Data-Independence: Many information-theoretic bounds depend on the true underlying distribution of the data, which is unknown in practice.
  2. Vacuity: Some bounds (like traditional PAC-Bayes) can become "vacuous" (infinite or uselessly large) when applied to deterministic algorithms or models with continuous parameters.

The authors seek a "data-dependent" approach: a way to calculate tight, meaningful bounds using only the specific training sample at hand, while unifying disparate theoretical perspectives into a single framework.

Methods

The core innovation is the Variable-Size Compressibility framework.

  • From Fixed to Variable Size: Previous compression-based bounds used "fixed-size" books (a set of potential models). This paper allows the size of the "hypothesis book" to vary based on the specific input data. This flexibility is what allows the bounds to be truly data-dependent.
  • Rate-Distortion Theory: The authors use rate-distortion theory to measure the "complexity" of an algorithm. They look at how much a model (or its training trajectory) can be compressed while keeping the "distortion" (the change in generalization error) below a certain threshold.
  • General Purpose Bounds: They derive general tail bounds and in-expectation bounds that apply not just to generalization error, but to any function of the input data and the model.
  • Optimization Trajectories: A significant portion of the work focuses on the "compressibility" of the path a model takes during training (e.g., the SGD trajectory). They connect this to the rate-distortion dimension, the Rényi information dimension, and the metric mean dimension.

Datasets

The authors validated their theoretical findings using:

  • CIFAR-10: A standard image classification dataset consisting of 60,000 32x32 color images in 10 classes.
  • Synthetic Setup: They also use a specific counter-example setup from prior literature (Xu & Raginsky) to prove that their bounds remain tight ($O(1/n)$) where others fail.

Key Insights and Ideas

  • The Unifying Character: The framework is a "Grand Unified Theory" for generalization. The authors show that by choosing specific distortion measures and functions, they can recover classical PAC-Bayes bounds and modern fractal-dimension bounds as special cases.
  • Generalization is Compressibility: The "aha moment" is that an algorithm generalizes well if its optimization trajectory is highly compressible. If you can describe the path the model took during training with very few bits (relative to a distortion threshold), the model is likely to perform well on new data.
  • CNNs vs. FCNs: The theory provides a formal explanation for why Convolutional Neural Networks (CNNs) often generalize better than Fully Connected Networks (FCNs): the optimization trajectories of CNNs are demonstrably more compressible.
  • Learning Rate Impact: The bounds correctly predict that larger learning rates (within a reasonable range) lead to more compressible trajectories and, consequently, better generalization—a phenomenon often observed empirically but difficult to prove theoretically.

Key Results

  • Theorem 7: Establishes a direct link between the average generalization error and the rate-distortion dimension of the optimization trajectory.
  • Experimental Validation: Using the "Neural Estimator of the Rate-Distortion" (NERD), the authors showed that their theoretical bound closely tracks the actual generalization error of FCN4 and CNN4 models across various learning rates.
  • Non-Vacuous Bounds: The paper demonstrates that their Proposition 1 provides non-infinite bounds for deterministic algorithms where traditional PAC-Bayes bounds would fail.
  • Tightness: In specific stochastic convex optimization settings, their bounds decay at a rate of $O(1/n)$, significantly tighter than the $O(1/\sqrt{n})$ rates found in some previous information-theoretic frameworks.

Limitations and Future Work

  • Estimation Complexity: The "coupling coefficient" ($M$), which measures the dependency of the trajectory on the data, is notoriously difficult to estimate. In their experiments, the authors had to ignore its contribution, suggesting a need for better estimation techniques.
  • Scaling to Large Models: While tested on 4-layer networks, calculating these bounds for massive models (like LLMs) remains computationally intensive due to the need to estimate rate-distortion values across high-dimensional weight spaces.
  • Future Directions: The authors suggest extending this framework to representation learning (compressing latent features) and distributed learning (where communication cost and generalization are naturally linked).

Summary updated

BibTeX
@article{sefidgaran2024data,
  author = {Milad Sefidgaran and Abdellatif Zaidi},
  title = {{Data-Dependent Generalization Bounds via Variable-Size Compressibility}},
  journal = {IEEE Trans. Information Theory},
  year = {2024},
  doi = {10.1109/tit.2024.3414266},
}
Figure