Meta Optimal Transport

Brandon Amos, Samuel Cohen, Giulia Luise, Ievgen Redko

TL;DR

Meta Optimal Transport (Meta OT) introduces a way to "learn" how to solve optimal transport problems by using amortized optimization. Instead of solving every new transport problem from scratch, a neural network predicts the solution (dual potentials) based on the input measures, providing a "warm start" that speeds up standard solvers by orders of magnitude.

What Problem Does This Paper Address?

Optimal Transport (OT) is a powerful mathematical framework for comparing probability distributions, used in everything from generative modeling to cell biology. However, OT is computationally expensive. While efficient algorithms like the Sinkhorn algorithm exist, they are "forgetful": if you need to solve a stream of similar OT problems (e.g., matching color palettes between many pairs of images), standard solvers treat each one as a brand-new task, ignoring the shared structure between them.

The authors address this inefficiency by asking: Can we learn from past OT problems to solve new ones faster?

Methods

The core idea is objective-based amortization. Instead of training a model to predict the complex, high-dimensional transport coupling directly, the authors train a "Meta OT" model to predict the dual potentials.

Figure 1. Meta OT uses objective-based amortization for optimal transport. In the general formulation, the parameters θ capture shared structure in the optimal couplings π⋆between multiple input measures and costs over some distribution D. In practice, we learn this shared structure over the dual potentials which map back to the coupling: f ⋆in discrete settings and ψ⋆in continuous ones.

Key components include:

  • Discrete Meta OT: For discrete measures, an MLP takes the weights of the input atoms and predicts a dual potential vector. The model is trained by directly minimizing the OT dual objective, meaning it doesn't require expensive "ground truth" solutions for training.
  • Continuous Meta OT (Meta ICNN): For continuous measures (like RGB color space), the authors use a hypernetwork approach. A ResNet/MLP processes the input measures to predict the parameters of an Input-Convex Neural Network (ICNN), which represents the continuous dual potential.
  • Warm-Starting: The predicted potentials aren't always perfect, so they are used to initialize standard solvers (like Sinkhorn or W2GN). This "warm start" significantly reduces the number of iterations needed to reach convergence.

Datasets

The authors evaluate Meta OT across several diverse domains:

  • MNIST & USPS: Grayscale digit images used for discrete transport and testing out-of-distribution generalization.
  • Google Doodles: A dataset of sketches used to test how well models transfer between different image domains.
  • Spherical Data: A synthetic supply-demand problem where locations are sampled from Earth's landmass and population density.
  • CIFAR-10 & CIFAR-100: Used in the context of Wasserstein Adversarial Regularization (WAR) for image classification.
  • WikiArt: A collection of ~200 public domain paintings used for continuous color transfer experiments.

Key Insights and Ideas

  • Predicting Potentials vs. Couplings: Predicting the dual potentials is much easier than predicting the coupling matrix because potentials are lower-dimensional and don't have to satisfy the strict marginal constraints that couplings do.
  • Learning Without Labels: By optimizing the dual objective directly, the meta-model learns what an "optimal" solution looks like without ever needing a teacher to provide the correct answer.
  • Surprising Generalization: A Meta OT model trained only on simple uniform distributions can provide a helpful initialization for complex image datasets like MNIST. This suggests that the model learns fundamental geometric properties of the transport problem.

Key Results

Meta OT consistently outperforms standard zero-initialization across all tasks:

  • Speedups: In discrete settings, Meta OT's initial prediction is up to 37,500x faster than solving to optimality. When used as a warm start, it reduces total runtime by ~2x for MNIST and ~11x for spherical data.
  • Continuous Scaling: For color transfer, Meta OT is 1000x faster than training a standard neural OT solver (W2GN) from scratch, producing high-quality transfers almost instantly.
  • Convergence: As shown in the error plots, Meta OT starts with a much lower marginal error, allowing solvers to converge in a fraction of the usual iterations.
Meta OT provides a warm-start that significantly improves the convergence of Sinkhorn iterations.

Limitations and Future Work

  • Not a Magic Bullet: Meta OT is an accelerator, not a new class of solver. It doesn't make previously intractable problems (like extremely high-dimensional discrete OT) tractable; it just makes solvable problems faster.
  • Out-of-Distribution (OOD) Risks: If the input measures are very different from the training distribution, the model might give a poor prediction. The authors suggest falling back to a standard solver from scratch in these cases.
  • Future Directions: The authors envision extending this to more complex OT variants, such as Gromov-Wasserstein distances or multi-marginal transport, where the computational savings could be even more impactful.

Summary updated

BibTeX
@inproceedings{amos2023meta,
  author = {Brandon Amos and Samuel Cohen and Giulia Luise and Ievgen Redko},
  title = {{Meta Optimal Transport}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=vinsvrSJmd},
}
Figure