Sharpened Generalization Bounds based on Conditional Mutual Information and an Application to Noisy, Iterative Algorithms

Mahdi Haghifam, Jeffrey Negrea, Ashish Khisti, Daniel M. Roy, Gintare Karolina Dziugaite

Introduction

One of the holy grails of machine learning theory is predicting the generalization gap—the difference between how a model performs on its training data versus unseen data. Information-theoretic approaches traditionally bound this gap using the Mutual Information (MI) between the training set and the final model parameters.

However, this paper introduces a more precise method to bound a model's generalization error using Conditional Mutual Information (CMI). By framing the problem as a "membership attack" within a larger super-sample, the authors develop a novel "hypothesis testing" prior for iterative algorithms like Langevin Dynamics. This approach prevents generalization bounds from exploding or becoming useless (vacuous) as training progresses.

The Problem: Looseness and Accumulation

Standard MI bounds suffer from two major flaws:

  1. Looseness: They can be extremely loose or even infinite for certain common algorithms.
  2. The "Accumulation" Problem: For iterative algorithms (like Stochastic Gradient Descent), existing bounds tend to add up a "penalty" at every single optimization step. As training continues, these bounds often diverge, reaching absurd values like a 1,000% error bound. This tells us nothing useful about a model that actually has a 5% error.

The authors aim to create "sharper" bounds that remain meaningful even after many epochs of training.

Methodology: The Super-Sample Framework and CMI

The paper builds on the "super-sample" framework. Imagine you have a super-sample of $2n$ data points, and your actual training set of $n$ points is chosen by flipping $n$ coins. The goal is to measure how much the final model weights $W$ reveal about those coin flips.

Key technical contributions include:

  • CMI vs. IOM: The authors mathematically prove that CMI-based bounds are guaranteed to be tighter than standard Input-Output Mutual Information (IOM) bounds.
  • Individual Sample Bounds: They refine the bound further by analyzing the information contributed by each individual data point rather than the dataset as a whole.
  • The Hypothesis Testing Prior: This is the paper's most novel contribution. For iterative algorithms, they construct a "prior" that actually "learns" from the optimization trajectory. It performs an online hypothesis test: "Based on the gradients I've seen so far, which of these two points was likely in the training set?"
  • Information Discounting: If the prior can already guess which point was in the training set based on previous iterations, the bound doesn't "pay" for that information again. This "filters" the penalty and prevents the bound from diverging over time.

Empirical Results and Key Insights

The authors evaluated their bounds using Monte Carlo simulations on several standard benchmarks—MNIST (MLP and CNN), Fashion-MNIST (CNN), and CIFAR-10 (CNN)—comparing the proposed CMI bounds against previous state-of-the-art bounds.

Massive Improvements in Tightness

The empirical results show a massive improvement in the tightness of the bounds:

  • CIFAR-10: Previous bounds reached values over 20,000%, rendering them completely vacuous. The proposed CMI-OPT bound stayed around 63%. While still higher than the actual 32% generalization gap, it is in the right ballpark and provides a meaningful upper limit.
  • MNIST-CNN: The CMI bound was 16.5%, significantly closer to the actual 0.55% generalization error than the 245% predicted by previous methods.

Stability and Non-Vacuousness

By using the hypothesis testing approach, the bound eventually plateaus. This is a massive win over previous methods where the bound would keep climbing toward infinity even if the model had finished learning. The CMI bounds do not exceed 1 (100% error) even when severe overfitting occurs, whereas previous data-dependent bounds often diverged quickly.

Generalization as a Membership Attack

The CMI framework effectively treats generalization as a measure of how well an observer can recognize which samples were in the training set just by looking at the model. If the model "memorizes" the training set, the attack is easy, and the generalization gap is high.

The Trajectory Matters

Unlike "Markovian" priors that only look at the current step, this paper demonstrates that the entire history of the model's weights contains valuable information that can be used to tighten the bound.

Limitations and Future Directions

While a significant step forward, the approach has a few limitations:

  • Computational Complexity: Calculating these bounds requires Monte Carlo simulations, which can be computationally expensive for very large models or datasets.
  • Langevin Dynamics Focus: While the theory is general, the specific "hypothesis testing" application is demonstrated on Langevin Dynamics (which adds noise to gradients). Extending the specific prior construction to standard, non-noisy SGD remains an area for further exploration.
  • The Remaining Gap: Although the bounds are much tighter, there is still a gap between the theoretical bound and the actual observed generalization error. This suggests there is still more "information" to be accounted for or better priors to be discovered.

Summary updated

BibTeX
@inproceedings{haghifam2020sharpened,
  author = {Mahdi Haghifam and Jeffrey Negrea and Ashish Khisti and Daniel M. Roy and Gintare Karolina Dziugaite},
  title = {{Sharpened Generalization Bounds based on Conditional Mutual Information and an Application to Noisy, Iterative Algorithms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure