Fast Estimation of Wasserstein Distances via Regression on Sliced Wasserstein Distances

Khai Nguyen, Hai Nguyen, Nhat Ho

TL;DR

Computing the exact Wasserstein distance (WD) is mathematically elegant but computationally expensive, often bottlenecking large-scale machine learning tasks. This paper introduces RG (Regression-Wasserstein), a framework that estimates the true WD by performing a simple linear regression on much faster "Sliced" Wasserstein variants. By using just a handful of training pairs, RG achieves near-exact accuracy and provides massive speedups, even enabling the acceleration of state-of-the-art embedding models like Wasserstein Wormhole.

The Bottleneck in Optimal Transport

Optimal Transport (OT) and its associated Wasserstein distance are the gold standard for comparing probability distributions—such as point clouds or gene expression profiles—because they effectively capture underlying geometry. However, calculating the exact WD for discrete distributions of size $n$ requires solving a linear program with a steep computational complexity of $O(n^3 \log n)$.

While "Sliced" Wasserstein (SW) distances, which project high-dimensional data onto 1D lines, are much faster ($O(n \log n)$), they are only approximations and lack the precision of true WD. Existing deep-learning-based estimators, such as Wasserstein Wormhole, are powerful but "data-hungry," requiring thousands of expensive ground-truth WD calculations to train. The authors identify a critical gap: the field needs a method that is as fast as Sliced Wasserstein but as accurate as the true Wasserstein distance, even when only a tiny amount of training data is available.

The RG Framework

The core idea of the RG framework is to treat different SW variants as "features" in a regression model where the true WD is the target variable.

  1. The Predictors: The authors leverage two types of SW variants to bound the estimate:
  2. Lower Bounds: Standard SW, Max-SW, and Energy-Based SW (EBSW). These are mathematically guaranteed to be less than or equal to the true WD.
  3. Upper Bounds: "Lifted" variants like Projected Wasserstein (PW), Minimum SW Generalized Geodesics (Min-SWGG), and Expected Sliced Transport (EST). These are guaranteed to be greater than or equal to the true WD.
  4. The Models:
  5. Unconstrained Linear Model: A standard least-squares regression that assigns weights to various SW features.
  6. Constrained Model: A "midpoint" approach that uses one lower bound and one upper bound, ensuring the estimate stays within a mathematically valid range. This model has half the parameters and is more robust when training data is extremely scarce.
Geometric intuition of the RG framework, showing linear projection and the bounding 'sandwich' effect.
  1. RG-Wormhole: The authors demonstrate that RG can be used as a "surrogate" during the training of more complex models. By replacing expensive WD calls with RG estimates in the Wasserstein Wormhole training loop, they create a hybrid that trains significantly faster without losing performance.

Key Insights and Geometric Intuition

  • The "Sandwich" Effect: By using both lower and upper bounds as predictors, the linear model effectively "sandwiches" the true distance. This geometric intuition makes a simple linear model surprisingly powerful.
  • Dimensionality Matters: Simulations showed that as dimensionality increases, the "upper bound" features become more informative for the regression, while lower bounds are more useful in low-dimensional spaces.
  • Extreme Data Efficiency: Unlike neural networks that might need thousands of examples, RG can be calibrated using as few as 10 to 100 pairs of distributions. This makes it practical for researchers who cannot afford to compute a massive ground-truth dataset.
  • Dataset-Specific Calibration: The authors found that the optimal weights for the regression vary significantly across different types of data (e.g., 3D objects vs. gene expression), justifying the need for a learnable regression framework rather than a fixed formula.

Key Results

The authors validated RG across a wide range of dimensionalities and domains, including Gaussian Mixtures, MNIST Point Clouds, ShapeNetV2, MERFISH Cell Niches, and scRNA-seq Atlas data.

  • High Accuracy: On the scRNA-seq and MERFISH datasets, RG variants achieved an $R^2$ score of 0.99, meaning they captured almost all the variance of the true Wasserstein distance.
  • Classification Performance: In a $k$-nearest neighbor classification task on ShapeNetV2, RG reached 82.5% accuracy, nearly matching the 84.2% peak of the exact (but slow) WD, while single SW baselines lagged behind at ~72%.
Classification accuracy and R-squared scores for various RG methods compared to exact Wasserstein Distance (WD).
  • Massive Speedups: In the "RG-Wormhole" experiment, the training time for the embedding model stayed nearly flat as batch sizes increased, whereas the original Wormhole's training time grew exponentially.
  • Low-Data Dominance: RG consistently outperformed the state-of-the-art Wasserstein Wormhole in "low-data regimes" (where only 10–50 training pairs are available).

Limitations and Future Work

While highly effective, the RG model is tied to the "meta-distribution" it was trained on. For instance, an RG model trained on 3D chairs might not generalize perfectly to 3D airplanes without some recalibration. Additionally, while linear models are efficient and interpretable, the authors suggest that non-linear models (like kernel regression) could potentially improve accuracy further, though at a higher computational cost. Finally, the current work focuses on the Euclidean distance as the "ground metric," leaving room for future extensions to more complex metrics, such as distances on manifolds or hyperbolic spaces.

Summary updated

BibTeX
@inproceedings{nguyen2026fast,
  author = {Khai Nguyen and Hai Nguyen and Nhat Ho},
  title = {{Fast Estimation of Wasserstein Distances via Regression on Sliced Wasserstein Distances}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=oa7L4vcJ77},
}
Figure