Subspace Robust Wasserstein Distances

François-Pierre Paty, Marco Cuturi

This paper introduces a robust framework for calculating Wasserstein distances in high-dimensional settings by focusing on informative low-dimensional subspaces.

TL;DR

Standard Optimal Transport (OT) suffers from the "curse of dimensionality," requiring an exponential number of samples to be accurate in high dimensions. This paper proposes Subspace Robust Wasserstein (SRW) distances, which find the $k$-dimensional subspace where two measures are most distinct, providing a metric that is more stable, computationally tractable, and robust to noise.

The Problem: Sample Complexity and Noise

Optimal Transport and the resulting Wasserstein distance are powerful tools for comparing probability distributions. However, they have a major weakness: sample complexity. In high-dimensional spaces, the number of samples needed to faithfully approximate the true distance between two continuous measures grows exponentially with the dimension ($d$).

In practice, this means that if you have data in 100 dimensions, the Wasserstein distance calculated from finite samples is often just "noise"—it reflects the randomness of the sampling rather than the underlying geometry of the distributions. Furthermore, OT is highly sensitive to outliers and noise in the input data. The authors seek a way to "filter" this noise by identifying the most relevant directions for transport.

Methods: Projection and Subspace Robustness

To address these limitations, the authors propose two main concepts:

  1. Projection Robust Wasserstein (PRW): This "max-min" approach looks for a $k$-dimensional subspace that maximizes the Wasserstein distance between the projected measures. Essentially, it asks: "In which $k$ directions do these two distributions look the most different?"
  2. Subspace Robust Wasserstein (SRW): Because PRW is computationally difficult (non-convex), the authors introduce SRW as a "min-max" tight convex relaxation.
1-Projection robust transport plan and the gap between standard and robust costs across projection angles.

The Mathematical "Aha!" Moment: Standard 2-Wasserstein distance can be viewed as minimizing the trace (the sum of all eigenvalues) of the second-order moment matrix of displacements ($V_\pi$). The authors show that SRW is equivalent to minimizing the sum of the $k$ largest eigenvalues of that same matrix.

To compute this, they provide two algorithms:

  • Algorithm 1: A projected supergradient method.
  • Algorithm 2: A Frank-Wolfe algorithm that leverages entropic regularization (Sinkhorn iterations) in the inner loop, making it much faster and compatible with modern GPU acceleration.

Key Insights and Results

The authors evaluate their method on both synthetic data (Fragmented Hypercube, 20-D Gaussians) and real-world data (movie scripts embedded in $R^{300}$ via word2vec).

  • Dimensionality Reduction via OT: Unlike PCA, which finds directions of maximum variance, SRW finds directions of maximum transport cost. This allows it to ignore high-variance noise that doesn't contribute to the structural difference between two distributions.
  • Robustness to Noise: In experiments with Gaussian noise, the error for standard Wasserstein distance spikes rapidly as noise increases. In contrast, SRW (with $k=5$) remains remarkably stable, effectively "ignoring" the noise added in the other 15 dimensions.
  • Sample Efficiency: SRW requires significantly fewer samples than standard OT to reach a stable estimate of the distance.
  • Semantic Clustering: On the movie script dataset, SRW successfully clustered movies by genre. For example, the optimal subspace for Kill Bill Vol. 1 vs. Interstellar highlighted semantically relevant words (e.g., "swords" and "blade" vs. "planets" and "spacecraft") while ignoring common filler words that standard OT might over-index on.
  • Geodesic Preservation: Despite being a "robust" variant, SRW still defines a proper metric space and supports constant-speed geodesics. This means you can still perform "interpolations" (morphing one distribution into another) in the SRW space.

Limitations and Future Work

  • Computational Overhead: While more robust, SRW is computationally more expensive than standard Sinkhorn OT because it requires an eigendecomposition of a $d \times d$ matrix and multiple Sinkhorn calls within an optimization loop.
  • Choosing $k$: The user must specify the subspace dimension $k$. While the authors suggest an "elbow rule" (plotting SRW distance against the dimension $k$ to identify where the curve flattens), automating this choice remains an open challenge.
  • Future Directions: The authors suggest looking into even faster optimization techniques and exploring automatic differentiation to integrate SRW into deep learning pipelines (e.g., as a loss function for GANs).

Summary updated

BibTeX
@inproceedings{paty2019subspace,
  author = {François-Pierre Paty and Marco Cuturi},
  title = {{Subspace Robust Wasserstein Distances}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=r14Ezjb_-r},
}
Figure