Abstract
Neural network-based solvers for Optimal Transport (OT) are increasingly used in high-dimensional tasks like generative modeling, yet their accuracy has remained difficult to verify due to a lack of continuous ground-truth solutions. This paper introduces a rigorous benchmark for the Wasserstein-2 ($W_2$) distance by leveraging Input-Convex Neural Networks (ICNNs) to construct problems with known optimal maps. The study reveals that many popular solvers fail to recover true transport maps despite performing well in downstream applications, highlighting a significant gap between mathematical optimality and generative utility.
Introduction
Optimal Transport (OT) provides a mathematical framework for efficiently transforming one probability distribution into another. The Wasserstein-2 ($W_2$) distance, which employs a quadratic cost, has become a cornerstone in machine learning for tasks such as generative modeling (e.g., W-GANs), domain adaptation, and image processing.
While OT can be solved for discrete point sets, scaling to continuous, high-dimensional distributions requires neural network-based solvers. Historically, these solvers have operated as "black boxes." Without ground-truth solutions for continuous distributions, researchers have relied on indirect metrics—such as the visual quality of generated images—to assume solver efficacy. This research challenges that assumption by providing the first rigorous benchmark for evaluating neural OT solvers in continuous spaces.
Methodology
The authors utilize Brenier’s Theorem, which establishes that for the $W_2$ distance, the optimal transport map is the gradient of a convex function. To create a benchmark with known solutions, they reversed the typical OT problem:
- Source Distribution ($P$): Start with a known distribution.
- Convex Potential ($\psi$): Represent a convex function using Input-Convex Neural Networks (ICNNs), which are architecturally guaranteed to be convex.
- Target Distribution ($Q$): Define the target as the push-forward of $P$ through the gradient of the ICNN ($\nabla \psi$).
By construction, the ground-truth map between $P$ and $Q$ is exactly $\nabla \psi$. This allows for a direct comparison between a solver's predicted map and the true mathematical solution.
Datasets
The solvers were evaluated across two primary benchmark types:
- High-Dimensional Gaussian Mixtures: Synthetic datasets (ranging from 2 to 256 dimensions) designed to test multi-modal data handling.
- CelebA 64x64 Images: Benchmark pairs created in image space by fitting ICNNs to the transport between different checkpoints of a generative model (e.g., transforming blurry faces into clear ones).
Key Insights
- The "Good GAN" Paradox: Some solvers, such as the Quadratic Cost (QC) solver, excel at training GANs for high-quality image generation but perform poorly at recovering the true optimal transport map. This indicates that accurate OT mapping and effective generative loss are distinct objectives.
- Gradient Deviation: Solvers may accurately estimate the scalar "distance" while failing to capture the "map" (the specific direction of mass movement). This is critical for applications like style transfer where the mapping itself is the product.
- Asymmetry and Architecture: Performance often varies significantly when source and target distributions are swapped. Furthermore, solvers utilizing ICNN architectures generally achieved higher map accuracy than standard Residual Networks (ResNets), despite being more challenging to train.
Results
Solvers were evaluated using $L^2$-Unexplained Variance Percentage (UVP), where 0% represents a perfect match and 100% represents a random guess.
- Accuracy: In 64-dimensional tests, many popular solvers yielded UVP scores exceeding 70%, failing to capture the majority of the transport map's structure.
- Batching Bias: Solvers relying on small mini-batches (e.g., [MM-B]) exhibited significant bias, often resulting in "blurry" outputs in generative tasks.
- Generative Performance: Interestingly, the most mathematically accurate OT solvers (ICNN-based) often produced lower-quality images (higher FID scores) than less accurate solvers, suggesting that the requirements for stable training gradients differ from those for mathematical optimality.
Conclusion and Future Work
While this benchmark provides a vital tool for assessing $W_2$ solvers, it is currently limited by its reliance on ICNNs, which may not represent all possible complex transport maps. Future research is needed to extend these benchmarking techniques to other costs, such as the $W_1$ (linear) cost. Most importantly, the discrepancy between OT accuracy and generative quality remains an open question: why do mathematically "suboptimal" maps sometimes provide superior gradients for neural network training?
Summary updated