Robust Estimation under the Wasserstein Distance

Sloan Nietert, Rachel Cummings, Ziv Goldfeld

TL;DR

Standard Wasserstein distance is highly sensitive to outliers, making generative models like Wasserstein GANs (WGANs) vulnerable to data corruption. This paper introduces a robust framework combining Partial Optimal Transport (POT) and Minimum Distance Estimation (MDE) to achieve minimax-optimal estimation risk under adversarial data contamination. Crucially, the authors derive a novel dual form for POT that translates into an elegant, one-line code modification to robustify WGANs against corrupted datasets.

What Problem Does This Paper Address?

The paper addresses the challenge of robust distribution estimation under the Wasserstein distance when the training data is contaminated by adversarial outliers (the strong $\varepsilon$-contamination or Huber contamination model).

The standard Wasserstein distance ($W_p$) is a popular metric in machine learning because it effectively captures the underlying geometry of probability distributions and tolerates support mismatches. However, it suffers from extreme sensitivity to outliers: altering even a tiny fraction ($\varepsilon$) of a distribution's mass and moving it far away can cause the Wasserstein distance to explode to infinity. This vulnerability means that generative models like WGANs can easily be derailed if the training dataset contains malicious outliers or measurement errors. The authors seek a mathematically rigorous and computationally practical way to recover a clean distribution from corrupted samples.

Methods

To tackle this problem, the authors merge concepts from optimal transport (OT) and robust statistics:

  1. Partial Optimal Transport (POT): Instead of forcing all mass to be transported between two distributions, POT allows an $\varepsilon$-fraction of the mass (the suspected outliers) to be ignored.
  2. Minimum Distance Estimation (MDE): The authors employ MDE under this robustified partial Wasserstein distance ($W_p^\varepsilon$) to project the corrupted empirical measure back onto a known family of clean distributions.
  3. A Novel Penalized Dual Form: The core theoretical breakthrough is a new Kantorovich-type dual formulation for POT. For $p=1$, the standard Kantorovich dual maximizes the difference in expectations under a 1-Lipschitz potential function $\phi$. The authors prove that introducing an $\varepsilon$-contamination constraint in the primal problem corresponds exactly to adding a supremum-norm (sup-norm) penalty to the dual objective: $$\mathcal{W}_1^\varepsilon(\mu, \nu) = \sup_{\|\phi\|_{\text{Lip}} \le 1} \mathbb{E}_\mu[\phi] - \mathbb{E}_\nu[\phi] - 2\varepsilon\|\phi\|_\infty$$
  4. Robust WGAN: Because WGANs natively implement MDE via Kantorovich duality, this penalized dual allows the authors to robustify WGANs simply by subtracting a scaled maximum value of the critic/discriminator over the sample batch.

Datasets

The authors evaluated their robust WGAN framework on several standard image datasets intentionally injected with outliers:

  • MNIST: Contaminated with 20% uniform random noise.
  • CelebA-HQ: 80% clean face photos contaminated with 20% MNIST digit images.
  • CIFAR-10: Contaminated with 5% uniform random noise to compare against existing robust OT baselines.

Key Insights and Ideas

  • Duality Simplification: Prior approaches to robust or unbalanced optimal transport often resulted in complex dual problems requiring optimization over multiple potential functions or strict constraints. This paper shows that for total variation (TV) bounded corruptions, the problem simplifies beautifully to a single potential function with a sup-norm penalty.
  • Mass Removal vs. Mass Addition: The authors establish that POT can be equivalently viewed as either removing mass from the distributions (trimming outliers) or adding mass to bridge the gap. This geometric symmetry simplifies the statistical analysis and directly links POT to the concept of "generalized resilience" in robust statistics.
Visualization of mass removal/addition for POT
  • The "One-Liner" Practicality: The theoretical dual form translates directly into an incredibly simple change in deep learning code. In PyTorch, robustifying the WGAN loss function literally takes just one line of code adjustment: score = f_data.mean()/(1-eps) - f_gen.mean() - eps*f_data.max()/(1-eps).

Key Results

  • Theoretical Optimality: The authors proved that MDE under the partial Wasserstein distance achieves the minimax-optimal robust estimation risk in the population limit, and matches near-optimal bounds in finite-sample settings for standard distribution families (such as sub-Gaussian and bounded covariance distributions).
  • Generative Modeling Clean-up:
  • When trained on MNIST with 20% noise, a standard WGAN-GP generated blurry, noisy images, whereas the robust WGAN successfully ignored the noise and generated clean digits.
  • On the CelebA-HQ dataset contaminated with MNIST digits, a standard StyleGAN2 model frequently generated artifacts and hybrid face-digit images. The robustified version completely mitigated this, generating clean, high-quality face photos.
  • Quantitative Superiority: On contaminated CIFAR-10 data, the proposed robust WGAN achieved a Frechet Inception Distance (FID) score of 18.87 after 100k training batches, significantly outperforming existing robust methods like Balaji et al. (30.44), Staerman et al. (40.81), and the unrobustified control model (31.40).

Limitations and Future Work

  • Optimization Guarantees: Due to the non-convex and non-smooth nature of the robustified objective function ($h^\varepsilon$), providing formal optimization convergence guarantees for neural networks remains an open challenge.
  • Understanding Implicit Biases: The current statistical theory assumes certain complexity bounds on the generator's distribution family. However, in practical deep learning, neural networks are highly expressive. Fully explaining why the optimization process successfully avoids overfitting to corrupted data will require a deeper "white-box" examination of the implicit biases in gradient descent, which the authors leave for future work.

Summary updated

BibTeX
@misc{nietert2023robust,
  author = {Sloan Nietert and Rachel Cummings and Ziv Goldfeld},
  title = {{Robust Estimation under the Wasserstein Distance}},
  year = {2023},
  eprint = {2302.01237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.01237},
}
Figure