Tighter Expected Generalization Error Bounds via Wasserstein Distance

Borja Rodríguez Gálvez, German Bassi, Ragnar Thobaben, Mikael Skoglund

This NeurIPS 2021 paper, "Tighter Expected Generalization Error Bounds via Wasserstein Distance," provides a significant refinement to how we calculate the "gap" between a model's performance on training data versus unseen data. By moving from traditional information-theoretic measures to optimal transport, the authors offer a more robust way to analyze modern machine learning algorithms.

TL;DR

The authors introduce new generalization error bounds using the Wasserstein distance, which accounts for the underlying geometry of the hypothesis space. These bounds are tighter than traditional mutual information-based limits and, crucially, remain useful (non-vacuous) even for deterministic algorithms where traditional measures often fail.

What Problem Does This Paper Address?

In machine learning theory, we want to bound the generalization error: the difference between the "population risk" (true performance) and "empirical risk" (performance on the training set).

Recent popular approaches use Mutual Information $I(W; S)$ between the model weights ($W$) and the training data ($S$). However, these approaches have a major "vacuity" problem: if a learning algorithm is a deterministic function of the data (like most deep learning training), the mutual information can become infinite. This makes the resulting bound useless. Furthermore, information-theoretic measures like KL divergence are "geometry-agnostic"—they don't care if two hypotheses are physically close to each other in the parameter space, only how their probability distributions overlap.

Methods

The researchers swap out the standard Relative Entropy (KL Divergence) for the Wasserstein distance ($W_1$), also known as the Earth Mover’s Distance.

Key technical components include:

  • Lipschitz Continuity: The bounds assume the loss function is $L$-Lipschitz. This allows the authors to use Kantorovich-Rubinstein (KR) duality, a mathematical tool that links the difference in expected loss to the Wasserstein distance between distributions.
  • Single-Letter and Random-Subset Bounds: Instead of looking at the entire dataset at once, the authors decompose the problem. They look at how a single sample ($Z_i$) or a random subset of samples affects the hypothesis. This "single-letter" approach is what allows the bounds to exhibit a $1/\sqrt{n}$ decay rate, matching the actual behavior of many learning systems.
  • Randomized Subsample Setting: They extend their work to the "randomized subsample" framework (introduced by Steinke and Zakynthinou), which studies how the identity of the samples used for training affects the model.

Empirical Validation on Synthetic Models

As a theoretical paper, the work focuses on mathematical proofs rather than large-scale empirical benchmarks like ImageNet. However, they use a Gaussian Location Model (a synthetic $d$-dimensional mean estimation task) to validate their theory.

Comparison of generalization bounds

In this model, they demonstrate that while Mutual Information is infinite and other recent bounds (like ISMI) are sub-optimal, their new Wasserstein-based bounds (Theorems 1 and 2) correctly track the true generalization error rate of $O(\sqrt{d/n})$.

Key Insights and Ideas

  • Bridging the Gap: The authors show that Wasserstein bounds are a "bridge." If you ignore the geometry of the space (by using a discrete metric), the Wasserstein bounds actually recover—and improve upon—classic KL-based bounds.
  • Geometry Matters: By using a metric $\rho$ that reflects the actual distance between models, the bounds become much more sensitive to the learning process.
  • The Backward Channel: The paper explores the "backward channel" ($P_{S|W}$), measuring how much information the final model carries about the original data. This connects generalization theory to rate-distortion theory in signal processing.
  • Flexibility: The framework is modular. By changing the metric or the divergence measure, they can derive new bounds based on the Hellinger distance, $\chi^2$-divergence, or Lautum information.

Key Results

  • Tighter Bounds: Theorem 1 and Theorem 2 provide the first "single-letter" and "random-subset" Wasserstein bounds.
  • Strict Improvement: Corollary 1 proves that when the loss is bounded, their Wasserstein approach is strictly tighter than the standard relative entropy bounds used in previous state-of-the-art literature.
  • Non-Vacuousness: Unlike mutual information bounds, these do not blow up to infinity for deterministic algorithms, provided a suitable metric is chosen for the hypothesis space.

Limitations and Future Work

  • Metric Selection: The tightness of the bound depends heavily on the choice of the metric $\rho$. While the paper suggests some (like the discrete metric or Minkowski distance), finding the "optimal" metric for a complex deep neural network remains an open challenge.
  • Computational Complexity: Calculating or even estimating Wasserstein distances in high-dimensional parameter spaces (millions of weights) is computationally expensive compared to simpler information measures.
  • PAC-Bayes Extension: These results are for "expected" generalization error. The authors note that extending these to "high-probability" bounds (which guarantee performance for a specific run of an algorithm) is a vital next step for the field.

Summary updated

BibTeX
@inproceedings{galvez2021tighter,
  author = {Borja Rodríguez Gálvez and German Bassi and Ragnar Thobaben and Mikael Skoglund},
  title = {{Tighter Expected Generalization Error Bounds via Wasserstein Distance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=xJYek6zantM},
}
Figure