Skip to main content
QUICK REVIEW

[Paper Review] Measuring Generalization with Optimal Transport

Ching-Yao Chuang, Youssef Mroueh|arXiv (Cornell University)|Jun 7, 2021
Domain Adaptation and Few-Shot LearningComputer Science57 references5 citations
TL;DR

This paper introduces a novel generalization bound for deep neural networks using optimal transport to measure feature distribution structure, specifically through k-variance—a generalized variance capturing clustering and separation in latent space. The proposed k-variance normalized margin bounds robustly predict generalization error across diverse architectures and datasets, outperforming prior theoretical measures while linking to empirical robustness and decision boundary properties.

ABSTRACT

Understanding the generalization of deep neural networks is one of the most important tasks in deep learning. Although much progress has been made, theoretical error bounds still often behave disparately from empirical observations. In this work, we develop margin-based generalization bounds, where the margins are normalized with optimal transport costs between independent random subsets sampled from the training distribution. In particular, the optimal transport cost can be interpreted as a generalization of variance which captures the structural properties of the learned feature space. Our bounds robustly predict the generalization error, given training data and network parameters, on large scale datasets. Theoretically, we demonstrate that the concentration and separation of features play crucial roles in generalization, supporting empirical results in the literature. The code is available at \url{https://github.com/chingyaoc/kV-Margin}.

Motivation & Objective

  • To address the gap between theoretical generalization bounds and empirical observations in deep learning.
  • To develop theoretically grounded, data-dependent generalization bounds that are predictive across diverse architectures and hyperparameters.
  • To formalize the role of feature clustering and inter-class separation in generalization using optimal transport.
  • To unify margin-based bounds with structural properties of learned representations via k-variance.
  • To provide a theoretically justified alternative to vacuous or inconsistent bounds like spectral norms or VC-dimension.

Proposed method

  • Uses optimal transport cost between independent random subsets of the training distribution as a proxy for variance, generalizing classical variance to capture data structure.
  • Defines k-variance as a generalized notion of variance based on optimal transport, measuring feature concentration and separation in the latent space.
  • Proposes k-variance normalized margins by scaling standard margins with the k-variance of the feature distribution.
  • Derives theoretical margin bounds using Wasserstein-1 distance and robust risk optimization, linking to decision boundary robustness.
  • Applies the framework to multi-class classification, showing that good generalization occurs when features are well-clustered within classes and separable across classes in Wasserstein sense.
  • Empirically estimates the bounds using the training data and network parameters, achieving strong correlation with test error on PGDL challenge data.

Experimental results

Research questions

  • RQ1Can optimal transport-based measures of feature distribution structure improve generalization bounds in deep learning?
  • RQ2How does k-variance, as a generalized variance, capture structural properties of learned features that influence generalization?
  • RQ3Can k-variance normalized margins predict generalization error more accurately than existing theoretical bounds?
  • RQ4What is the theoretical relationship between feature clustering, separation, and generalization in deep networks?
  • RQ5How does the proposed bound relate to gradient-normalized margins and decision boundary robustness?

Key findings

  • The k-variance normalized margin bounds correlate strongly with generalization error on the PGDL challenge datasets, demonstrating robustness across architectures and hyperparameters.
  • Theoretical analysis shows that effective generalization requires both tight clustering of features within each class and sufficient separation between classes in the Wasserstein sense.
  • The optimal transport cost used as a variance proxy captures structural properties of the feature distribution more effectively than standard variance or norm-based measures.
  • The proposed bounds generalize the gradient-normalized margin of Elsayed et al. [16], linking theoretical bounds to decision boundary robustness.
  • The bounds are derived under mild assumptions and are empirically estimable from training data and model parameters, enabling practical application.
  • The method outperforms classic complexity measures such as VC-dimension and weight norms, which often correlate negatively with generalization gap.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.