Meta Optimal Transport

Brandon Amos, Giulia Luise, Samuel Cohen, Ievgen Redko

Optimal Transport (OT) is a powerful mathematical framework for comparing distributions, widely used in fields ranging from image processing to single-cell biology. However, it suffers from a major bottleneck: computational expense. Standard algorithms, such as the Sinkhorn algorithm, are inherently "memoryless." When tasked with finding the optimal way to move mass from one distribution to another, these solvers start from scratch every single time. Even if a nearly identical problem was solved moments prior, previous knowledge is ignored. This makes OT difficult to deploy in real-time systems or large-scale machine learning pipelines where thousands of similar transport problems are solved sequentially.

To address this, researchers introduce Meta Optimal Transport (Meta OT), a framework that uses amortized optimization to predict OT solutions directly from input data. By providing a high-quality "warm-start" for traditional solvers, Meta OT achieves massive speedups—up to several orders of magnitude—in applications requiring repeated solutions to similar transport problems.

The Meta OT Approach

Instead of running a full optimization loop for every new pair of measures, Meta OT trains a neural network to predict the solution. The core technical innovation lies in what the network predicts.

Graphical models illustrating the Meta OT framework across general, discrete, and continuous settings.

Solving directly for the "coupling" (the primal plan of how to move mass, shown in red above) is difficult because it must satisfy strict marginal constraints. Instead, Meta OT predicts the dual variables or potentials (shown in green). These dual variables are unconstrained, making them much easier for a neural network to output.

The model is trained by minimizing the OT dual objective itself, meaning it doesn't require "ground truth" solutions to learn. If the network's prediction improves the objective value, it is learning effectively.

Crucially, Meta OT employs a hybrid solving strategy. The neural network provides an initial "guess" (the warm-start). This guess is then refined using a few iterations of a standard solver, such as Sinkhorn for discrete data or W2GN for continuous data. This ensures the final result remains mathematically precise while heavily benefiting from the network's rapid inference speed.

Key Insights and Performance

The authors evaluated Meta OT across a diverse range of settings, including 2D image transport (MNIST, USPS, Google Doodles), spherical data (Earth's landmass and population density), and continuous color transfer (WikiArt paintings).

  • The "Warm-Start" Advantage: The neural network's prediction does not have to be perfect. Even an approximate prediction places the traditional solver so close to the optimal solution that it only needs a handful of iterations to converge, rather than hundreds.
  • Massive Speedups: For spherical transport problems, the initial prediction from Meta OT was roughly 37,500 times faster than solving with Sinkhorn to optimality. In continuous settings, Meta Input Convex Neural Networks (ICNNs) predicted color mappings between paintings 1,000 times faster than training a standard Wasserstein-2 Generative Network from scratch.
  • Generalization: A Meta OT model trained on MNIST digits can provide a helpful initialization for USPS digits or even Google Doodles, suggesting the network learns a general representation of how mass should move in 2D space.
  • Seamless Integration: Because Meta OT is exceptionally fast, it can be embedded inside other training loops—such as training a classifier with a Wasserstein loss (Wasserstein Adversarial Regularization)—without becoming a computational bottleneck. In these adversarial training setups, Meta OT maintained high accuracy while using only 25% of the usual Sinkhorn iterations.

Limitations and Future Directions

While Meta OT represents a significant step forward for computational optimal transport, it is not a silver bullet for all intractability issues. It accelerates solvable problems but does not magically resolve impossible, excessively high-dimensional OT problems; it remains fundamentally limited by the capabilities of the underlying base solver.

Furthermore, there are Out-of-Distribution (OOD) risks. If the input measures are completely unlike anything the model saw during training, the "warm-start" might actually be a "bad-start," requiring a fallback to standard methods. Finally, most current experiments assume a fixed "ground cost" (e.g., squared Euclidean distance). Future work could involve conditioning the meta-model on the cost matrix itself, allowing it to adapt dynamically to different distance metrics on the fly.

Summary updated

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