Universal Neural Optimal Transport

Jonathan Geuter, Vaios Laschos, Ingimar Tomasson

TL;DR

This paper introduces UNOT, a novel neural network framework that can efficiently and accurately predict Optimal Transport (OT) distances and plans for discrete measures across various datasets and resolutions. UNOT leverages Fourier Neural Operators and an adversarial training strategy to achieve state-of-the-art performance, significantly speeding up the Sinkhorn algorithm.

What Problem Does This Paper Address?

Optimal Transport (OT) is a powerful mathematical framework with applications spanning machine learning, physics, and economics. It provides a way to measure the "distance" between probability distributions and to find optimal ways to move mass from one distribution to another. However, solving OT problems, especially the entropic regularized version, is computationally expensive, often requiring iterative algorithms like the Sinkhorn algorithm. While existing methods can approximate OT solutions, they often struggle with generalization across different datasets, resolutions, or cost functions. This paper addresses the need for a universal, efficient, and accurate OT solver that can handle variable resolutions and generalize across diverse domains.

Methods

The core of UNOT is built upon Fourier Neural Operators (FNOs). FNOs are a class of neural networks designed to operate on function spaces and are inherently discretization-invariant, meaning they can handle inputs of varying resolutions without needing to be retrained. This is crucial for UNOT, as it allows the model to process measures represented by grids of different sizes.

UNOT is trained using a combination of techniques:

  • Adversarial Training: A generator network creates synthetic probability distributions, and UNOT (the predictive network) is trained to predict the correct OT dual potentials for these distributions. The generator tries to "fool" UNOT, leading to a more robust predictive model.
  • Self-Supervised Bootstrapping Loss: Instead of relying on ground truth OT solutions (which are expensive to compute), UNOT uses a bootstrapping loss. This involves running the Sinkhorn algorithm for a few iterations with UNOT's prediction as an initialization, and then training UNOT to match this "bootstrapped" target. This is theoretically shown to minimize the error against the true OT solution.
  • Universal Generator: A key theoretical contribution is a generator network that can provably generate any pair of discrete probability measures, ensuring UNOT's training data covers a wide range of distributions.

Datasets

UNOT was trained and evaluated on a variety of datasets, including:

  • Euclidean Domains:
    • MNIST (28x28)
    • CIFAR-10 (28x28)
    • Quick, Draw! dataset (teddy bear class, 64x64)
    • Labeled Faces in the Wild (LFW, 64x64)
    • Cross-dataset combinations (e.g., CIFAR-MNIST, LFW-BEAR)
  • Non-Euclidean Domains:
    • Spherical datasets (using spherical coordinates for images)
  • Newly Introduced Benchmarks: The paper uses standard image datasets but emphasizes their use across varying resolutions (10x10 to 64x64) and in both Euclidean and spherical settings, creating a more challenging and generalizable benchmark for OT solvers.

Key Insights and Ideas

  • FNOs for Generalizable OT: The discretization-invariance of FNOs is a perfect fit for OT problems where measures can come from sources with varying resolutions. This allows UNOT to generalize across different input sizes without retraining.
  • Adversarial Bootstrapping for Efficiency: Training a neural network to predict OT solutions directly is challenging due to the computational cost of ground truth solutions. The proposed adversarial bootstrapping loss provides a clever way to train UNOT effectively without needing exact OT plans.
  • Theoretical Guarantees for Generator: The paper provides theoretical backing for the generator's ability to produce diverse distributions, which is crucial for ensuring UNOT's generalization capabilities.
  • UNOT as a Superior Sinkhorn Initializer: UNOT doesn't just predict OT distances; it significantly accelerates the Sinkhorn algorithm by providing a highly accurate initialization, leading to speedups of up to 7.4x.

Key Results

  • Accurate OT Distance Prediction: UNOT achieves low relative errors (typically 1-3%) on OT distances across various datasets, cost functions (Euclidean and spherical), and resolutions.
  • State-of-the-Art Sinkhorn Initialization: UNOT provides a significant speedup for the Sinkhorn algorithm, outperforming default and Gaussian initializations. For example, it achieves a 3.57x speedup on 28x28 datasets and 4.4x on 64x64 datasets.
  • Captures Wasserstein Geometry: UNOT accurately approximates Wasserstein barycenters and geodesics, demonstrating its ability to capture the underlying geometry of the Wasserstein space.
  • Generalization Across Resolutions: UNOT shows strong performance across a wide range of resolutions (10x10 to 64x64), even for resolutions not seen during training.
  • Competitive with Specialized Models: UNOT performs comparably to or better than specialized models like Meta OT on various datasets, even when Meta OT was trained on specific data distributions.

Limitations and Future Work

  • Extrapolation to Higher Resolutions: UNOT does not extrapolate well to measures with significantly higher resolutions than those seen during training.
  • Generalization to New Cost Functions: The current UNOT model is trained for specific cost functions and does not generalize to entirely new cost functions without retraining.
  • Future Work: The authors suggest exploring scaling UNOT to higher resolutions, applying it to other data modalities, and adapting it for non-uniform grids. They also mention that fine-tuning UNOT on specific datasets could further improve performance.

Summary updated

BibTeX
@inproceedings{geuter2022universal,
  author = {Jonathan Geuter and Vaios Laschos and Ingimar Tomasson and Vaios Laschos},
  title = {{Universal Neural Optimal Transport}},
  booktitle = {Open},
  year = {2022},
}
Figure