An Optimal Transport View on Generalization

Jingwei Zhang, Tongliang Liu, Dacheng TaoarXiv 2018

Introduction

Understanding why deep neural networks (DNNs) generalize effectively despite their massive over-parameterization remains one of the most significant challenges in machine learning theory. Traditional statistical learning tools, such as VC dimension and Rademacher complexity, often fail to provide meaningful insights into deep learning, frequently yielding "vacuous" bounds that suggest models should simply memorize training data. While information-theoretic approaches using Mutual Information have offered improvements, they often require restrictive assumptions, such as bounded or sub-Gaussian loss functions.

In this work, Jingwei Zhang, Tongliang Liu, and Dacheng Tao propose a new theoretical framework based on Optimal Transport (OT). By leveraging the mathematics of the Wasserstein distance, the authors introduce the concept of "algorithmic transport cost" to bound generalization error. This approach not only accommodates a wider range of real-world scenarios, including heavy-tailed distributions and unbounded loss functions, but also provides a geometric explanation for why increasing the depth of a network improves its ability to generalize.

The Algorithmic Transport Cost

The core innovation of the proposed framework is the Algorithmic Transport Cost, which utilizes the 1-Wasserstein distance (also known as the Earth Mover's Distance). This metric quantifies the minimum "work" required to transform one probability distribution into another.

The authors define this cost as the expected Wasserstein distance between the distribution of the model's output hypothesis ($W$) and the distribution of that hypothesis conditioned on a specific training instance ($z$). Formally, the paper proves that if the loss function is $K$-Lipschitz continuous, the expected generalization error is upper-bounded by the product of $K$ and this transport cost.

This formulation acts as a conceptual "Rosetta Stone," unifying disparate fields of study. It relates the transport cost to classical metrics such as Total Variation distance, KL-divergence (Relative Entropy), and the VC dimension, demonstrating that many existing generalization bounds are actually specific instances or consequences of this broader OT-based view.

Breaking the Sub-Gaussian Barrier

A significant advantage of the Optimal Transport perspective is its robustness. Previous information-theoretic bounds often rely on the assumption that the data distribution is sub-Gaussian. When faced with "heavy-tailed" distributions common in real-world data, these traditional bounds often fail to apply. However, the OT framework remains valid as long as the loss function satisfies Lipschitz continuity. This flexibility makes the theory applicable to a much broader class of learning problems and more realistic data distributions.

The Role of Depth: Hierarchy as a Filter

One of the paper's most compelling insights is the treatment of a DNN's layers as a sequence of "contraction layers." The authors model the flow of information through a network as a "noisy channel." Operations such as ReLU activations, pooling, and dropout are inherently non-invertible or introduce noise, causing them to act as filters.

By applying the Strong Data Processing Inequality (SDPI), the authors demonstrate a "contraction property." As information propagates through the hierarchical structure of the DNN, the model gradually "forgets" the specific, idiosyncratic details of individual training samples (which lead to overfitting) while preserving the essential, general patterns required for accurate prediction. This suggests that the internal structure of DNNs is what drives their success, rather than just the total number of parameters.

Key Results: Exponential Decay

The theoretical climax of the paper is the proof that the hierarchical structure of DNNs is a primary driver of generalization. In Theorem 7, the authors demonstrate that for a network with $H$ hidden layers, the generalization error decreases exponentially as $H$ increases.

The bound is scaled by a factor of $\exp(-\frac{H}{2} \log \frac{1}{\eta})$, where $\eta$ represents the contraction or noise level inherent in each layer. This result provides a rigorous mathematical justification for the empirical success of deep architectures: depth is not merely about increasing capacity; it is a fundamental mechanism for error reduction.

Limitations and Future Directions

While the framework is elegant, the authors acknowledge several areas for future exploration:

  • High Probability Bounds: The current work focuses on expected generalization error. Extending these results to high-probability bounds (e.g., "this model will generalize with 99% certainty") would provide more practical guarantees for specific model instances.
  • Computational Complexity: Calculating Wasserstein distances in high-dimensional hypothesis spaces is computationally expensive. Developing efficient methods for estimating these costs in large-scale models remains a challenge.
  • Optimization as Regularization: The authors suggest that the algorithmic transport cost could serve as a regularizer. Designing an efficient way to minimize this cost during backpropagation could lead to "generalization-aware" optimization algorithms.

Conclusion

By viewing generalization through the lens of Optimal Transport, this research provides a unifying theory that bridges information theory and statistical learning. It offers a clear, geometric intuition for the success of deep learning, suggesting that the very structure of deep networks is designed to filter out noise and distill generalizable knowledge from data.

Summary updated

BibTeX
@misc{zhang2018optimal,
  author = {Jingwei Zhang and Tongliang Liu and Dacheng Tao},
  title = {{An Optimal Transport View on Generalization}},
  year = {2018},
  eprint = {1811.03270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.03270},
}
Figure