Information-theoretic generalization bounds for black-box learning algorithms

Hrayr Harutyunyan, Maxim Raginsky, Greg Ver Steeg, Aram Galstyan

TL;DR

Traditional information-theoretic generalization bounds measure how much training data leaks into model weights, which often blows up to infinity for deterministic deep networks and is notoriously difficult to calculate. This paper introduces functional conditional mutual information (f-CMI), shifting the focus from model weights to the network's actual output predictions. The resulting bounds apply directly to deterministic "black-box" models, are provably tightest when evaluated on single example pairs, and closely track real generalization gaps in deep learning.

What Problem Does This Paper Address?

Overparameterized neural networks routinely achieve near-zero training error while still generalizing remarkably well to unseen data. Information-theoretic frameworks attempt to explain this by bounding the generalization gap—the difference between population risk and empirical training risk—using the mutual information between the training set and the learned model weights $W$ (e.g., $I(W; S)$).

However, weight-based bounds face three major roadblocks:

  1. Deterministic failure: If an algorithm is deterministic (like standard gradient descent with a fixed seed), the mutual information between continuous weights and the dataset can be infinite or trivially equal to the dataset's entropy.
  2. Estimation nightmare: Estimating Shannon mutual information between high-dimensional weights (millions of parameters) and high-dimensional data is computationally intractable.
  3. Irrelevant capacity: A network can encode arbitrary training data into unused weights or low-order bits without hurting generalization, which artificially inflates weight-based bounds.

Methods

The authors adopt the conditional mutual information (CMI) framework of Steinke and Zakynthinou (2020), which pairs $n$ training points with $n$ test points into a superset $\tilde{Z} \in \mathcal{Z}^{n \times 2}$ and uses an unbiased random binary vector $S \in \{0, 1\}^n$ to select which sample from each pair enters the training set.

Rather than measuring the information that $S$ imparts to the weights $W$, the authors evaluate the information that $S$ imparts to the predictions $f(\tilde{z}_S, \tilde{x}_u, R)$ on an index subset $u \subseteq [n]$ of size $m$:

$$\text{f-CMI}(f, \tilde{z}, u) = I(f(\tilde{z}_S, \tilde{x}_u, R); S_u)$$

Key theoretical contributions include:

  • Optimal subset choice ($m=1$): The authors prove that the bound is monotonically non-decreasing in subset size $m$. Hence, choosing $m=1$ yields both the tightest bound and the simplest computation.
  • Trivial estimation for classification: For $m=1$ in binary classification, computing the bound requires evaluating the mutual information between a single binary selection variable $S_i$ and a 2-dimensional vector of discrete predictions $f(\tilde{z}_S, \tilde{x}_i, R)$—a simple, low-dimensional calculation that avoids density estimation entirely.
  • Handling deterministic stability: To apply information-theoretic stability tools to deterministic models (where KL divergences typically explode), they analyze a "virtual" noisy predictor, optimize the noise scale, and translate the result into bounds based on functional stability (deriving explicit Lipschitz-continuity and self-stability bounds).

Datasets

The authors empirically validated their bounds on standard vision benchmarks:

  • MNIST: Specifically a binary classification task between digits 4 and 9.
  • CIFAR-10: 10-class image classification (using subsets of size $n = 20{,}000$, as well as smaller subsets).
  • ImageNet: Used exclusively for pretraining the ResNet-50 weights prior to fine-tuning on CIFAR-10.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Predictions matter, weights do not: By the data processing inequality ($S \to W \to \text{Predictions}$), prediction-based mutual information is always smaller than or equal to weight-based mutual information. Unused network parameters cannot artificially inflate the bound.
  • The simplest bound is the tightest: Counterintuitively, choosing individual pairs ($m=1$) rather than the full dataset ($m=n$) produces strictly tighter theoretical guarantees while drastically simplifying empirical estimation.
  • Black-box applicability: Because f-CMI only requires observing input-output query pairs, it treats models as black boxes. It applies equally well to deep networks, ensembles, Bayesian predictors, and non-parametric algorithms.

Key Results

  • Deterministic Deep Networks: On MNIST (4 vs. 9) using a 4-layer CNN (~200K parameters) trained deterministically with Adam, the f-CMI bound closely tracks the generalization gap even down to only 75 training samples. Widening the model to 3 million parameters yielded virtually identical non-vacuous bounds, confirming robustness to parameter scale.
  • Transfer Learning on CIFAR-10: Fine-tuning an ImageNet-pretrained ResNet-50 on 20,000 CIFAR-10 images showed that the f-CMI bound tracked the generalization gap within roughly a factor of 3 (generalization gap ~5%, f-CMI bound ~16%).
  • Superiority over SGLD bounds: When comparing against specialized Stochastic Gradient Langevin Dynamics (SGLD) bounds (Negrea et al., 2019):
  • On ResNet-50 fine-tuned with SGLD, Negrea et al.'s bound produced an error bound of ~0.45 after one epoch (actual gap ~0.02). In contrast, the f-CMI bound was ~0.10.
  • Across training epochs, the SGLD bound quickly exploded as gradient variance accumulated, whereas f-CMI stabilized alongside the test error.

Limitations and Future Work

  • Early-epoch looseness: In early training epochs, the f-CMI bound temporarily spikes and overestimates generalization error before settling down as training converges.
  • Constant factor slack: While non-vacuous and substantially tighter than weight-based counterparts, the bounds can still overestimate the true generalization gap by a factor of ~2–3×.
  • Ensemble subset restrictions: The data-processing chain rule used to decompose ensemble bounds works over the full index set $S$, but does not directly hold for arbitrary subsets $S_u$.
  • Squared gap bound dependencies: In the functional stability bound for expected squared error, conditioning relies on predictions across all $2n$ points rather than just the $i$-th pair; reducing this conditioning remains an open theoretical question.

Summary updated

BibTeX
@inproceedings{harutyunyan2021information,
  author = {Hrayr Harutyunyan and Maxim Raginsky and Greg Ver Steeg and Aram Galstyan},
  title = {{Information-theoretic generalization bounds for black-box learning algorithms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=L_cN8vD0XdT},
}
Figure