NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Approximation theory, computing, and deep learning on the Wasserstein space

Massimo Fornasier, Pascal Heid, Giacomo Enrico Sodini

Introduction

In fields ranging from generative modeling to image retrieval, the Wasserstein distance (or Earth Mover's Distance) has emerged as a critical metric for comparing probability distributions. Unlike simpler metrics, the Wasserstein distance accounts for the underlying geometry of the space, providing a more meaningful measure of similarity. However, this robustness comes at a high computational cost. Traditional solvers, such as the Sinkhorn algorithm or linear programming approaches, are efficient for individual pairs but become prohibitive when scaled to massive datasets or real-time applications like autonomous driving.

This research introduces a rigorous theoretical and computational framework to address this bottleneck. By shifting the focus from "pointwise" evaluation (calculating distance for a specific pair) to functional approximation, the authors demonstrate how to "learn" the Wasserstein distance function. Once learned, this function can be evaluated up to four orders of magnitude faster than traditional methods.

The Functional Approximation Paradigm

The fundamental challenge in learning the Wasserstein distance is that the space of probability measures is infinite-dimensional. To bridge the gap between abstract metric measure space theory and practical machine learning, the authors propose three primary methodological approaches:

  1. Kantorovich Potential Baselines: Leveraging the duality theory of optimal transport, the authors construct approximants based on a finite set of pre-computed Kantorovich potentials.
  2. Tikhonov Regularization in Sobolev Spaces: The framework employs Empirical Risk Minimization (ERM) incorporating a "Cheeger energy" term. This serves as a metric-space analogue to the Dirichlet energy used in standard Sobolev spaces, ensuring the model remains robust against noise and generalizes well across the measure space.
  3. Adversarial Saddle-Point Formulation: By transforming the Euler-Lagrange equations of the Tikhonov functional into a saddle-point problem, the authors enable an adversarial training setup. In this configuration, one neural network approximates the target function while a second "adversarial" network computes the norm of the gradient.

Theoretical Foundations: Cylinder Functions

A key theoretical contribution of this work is the utilization of "cylinder functions." These are functions that depend only on a finite number of linear measurements of a measure. The authors provide a rigorous proof that these functions are dense in Wasserstein Sobolev spaces. Furthermore, they demonstrate that these functions can be exactly realized by specific ReLU neural network architectures, providing a theoretical justification for using deep learning in this infinite-dimensional context.

To provide quantitative convergence rates, the authors introduce the concept of "random $\varepsilon$-subcoverings." This allows them to prove how many samples are required to effectively "cover" the support of the data distribution, establishing explicit bounds on generalization error as the network complexity and sample size increase.

Analytic Architecture Design

Rather than relying on standard black-box architectures, the authors developed a "cone-shaped" ReLU network. This design is specifically tailored to represent the maximum of affine functions, which is the natural mathematical form of the Kantorovich dual problem. Interestingly, this analytically motivated Feed-Forward Neural Network (FFNN) slightly outperformed state-of-the-art Convolutional Neural Networks (CNNs) in test error, despite CNNs being the standard choice for image-based data.

Empirical Results and Speedups

The framework was evaluated using MNIST and CIFAR-10 datasets, where images were treated as discrete probability densities. The results demonstrate a transformative shift in computational efficiency:

  • Inference Speed: On the CIFAR-10 dataset, the trained neural network evaluated distances 18,000 times faster than the standard ot.emd solver and 84,000 times faster than the Sinkhorn algorithm.
  • Amortized Efficiency: Even when accounting for the significant "up-front" time required to generate training labels and train the model, the proposed method was 4–5 times faster at processing the entire test set compared to traditional algorithms.
  • Generalization: The model successfully learned the geometry of the Wasserstein space for the given datasets, allowing for nearly instantaneous distance calculations for new, unseen data points within the same distribution.

Limitations and Future Directions

While the "learn once, evaluate everywhere" paradigm offers massive speedups, it does require a significant initial investment in ground-truth data generation. Additionally, the learned approximant is distribution-dependent; if the test data shifts significantly from the training regime, the model's accuracy may degrade compared to general-purpose solvers.

Future research aims to extend this framework to other metric distances, such as the Hellinger-Kantorovich distance, which may offer better robustness for measures with varying total masses. Additionally, addressing the challenges of extremely high-dimensional base spaces remains a priority for scaling these methods to even more complex data types.

Summary updated

BibTeX
@misc{fornasier2023approximation,
  author = {Massimo Fornasier and Pascal Heid and Giacomo Enrico Sodini},
  title = {{Approximation theory, computing, and deep learning on the Wasserstein space}},
  year = {2023},
  eprint = {2310.19548},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.19548},
}
Figure