Overcoming Spurious Solutions in Semi-Dual Neural Optimal Transport: A Smoothing Approach for Learning the Optimal Transport Plan

Jaemoo Choi, Jaewoong Choi, Dohyun Kwon

TL;DR

Neural Optimal Transport (OT) models frequently encounter a critical flaw known as "spurious solutions," where the model optimizes its mathematical objective but fails to accurately map source data to the target distribution. This paper identifies the theoretical geometric conditions causing these failures and introduces a novel smoothing-based algorithm—the Optimal Transport Plan (OTP) model. OTP successfully learns the true optimal transport plan and excels at complex, stochastic one-to-many mappings like image colorization.

The Problem: Spurious Solutions in Neural OT

Optimal Transport (OT) is a mathematical framework for finding the most cost-effective way to transform one probability distribution (the source) into another (the target). Recently, researchers have adopted neural networks to learn these mappings directly from unpaired data, a method known as Semi-dual Neural OT (SNOT).

SNOT relies on a max-min optimization game, conceptually similar to Generative Adversarial Networks (GANs). However, it suffers from a major bug: the spurious solution problem. Even if the neural network perfectly solves the max-min optimization objective, the resulting mapping might be completely wrong. It may fail to actually transform the source distribution into the target distribution.

Synthetic 2D Perpendicular dataset used to evaluate mapping failures.

The authors ask a fundamental question: Why does this happen, and how can we design a Neural OT framework mathematically guaranteed to find the correct mapping?

Methods: A Two-Part Fix

The authors tackle this ambiguity through both theoretical and practical contributions:

  1. The Theoretical Fix: They prove a sufficient condition to prevent spurious solutions. The mathematics reveal that the ambiguity arises from the geometry of the source distribution. If the source distribution places mass on lower-dimensional shapes (specifically, sets with a Hausdorff dimension $\le d-1$, such as sharp lines or points in a 2D space), the max-min game breaks down. Conversely, if the source is "smooth" (absolutely continuous), the problem vanishes.
  2. The Practical Fix (OTP Model): Because real-world data is rarely perfectly smooth, the authors propose the Optimal Transport Plan (OTP) model. Borrowing a concept from diffusion models, they apply Gaussian noise to the source data. This artificially "smooths" the distribution, forcing it to satisfy their theoretical condition.
  3. Gradual Annealing: During training, the model solves the SNOT objective on this noisy data while gradually decreasing the noise level toward zero. Because the model learns a joint distribution rather than a strict 1-to-1 function, it learns an OT Plan (a stochastic mapping) rather than just an OT Map (a deterministic mapping).

Key Insights and Ideas

  • The Source is the Culprit: The paper proves that the failure of SNOT models isn't caused by the target distribution; it is entirely dependent on the source. If the source data lacks volume (e.g., data lying on a thin manifold), the neural network can find infinite "fake" mappings that satisfy the math but fail in reality.
  • Noise as a Geometric Bridge: Adding noise to the input isn't just a regularization hack. It fundamentally alters the geometry of the source distribution so that the max-min optimization game has a mathematically unique, correct solution.
  • Plans > Maps: By shifting the objective from finding a deterministic OT Map to a stochastic OT Plan, the framework naturally handles real-world ambiguities.
One-to-Many mapping illustrating stochastic OT plans.

For example, in colorization, one grayscale pixel could validly be mapped to multiple colors. Standard OT maps fail here, but OT plans succeed.

Datasets and Key Results

The researchers evaluated OTP across a variety of datasets, from custom synthetic setups to high-dimensional image translation:

  • Fixing Failure Cases on Synthetic Data: On custom toy datasets (Perpendicular, Parallel, One-to-Many, Grid) specifically designed to trigger spurious solutions, standard Neural OT models completely collapsed. The OTP model successfully recovered the true target distributions across all dimensions (up to $d=256$).
  • Stochastic Mapping Success (MNIST $\to$ CMNIST): In a task mapping grayscale digits to red, green, or blue digits, standard models suffered from mode collapse (e.g., mapping all digits to just blue). OTP learned the stochastic mapping perfectly, dropping the FID score from 62.4 to 3.18.
  • State-of-the-Art Image Translation: OTP outperformed existing Neural OT and Entropic OT models on high-dimensional, unpaired image-to-image translation (e.g., Male $\to$ Female on CelebA-HQ, Wild $\to$ Cat on AFHQ). On the Male $\to$ Female (128x128) task, OTP achieved an FID of 6.38, beating the standard OT model (7.55) and diffusion-based Schrödinger Bridge models (37.8).

Limitations and Future Work

While highly effective, the approach has a few theoretical boundaries:

  • Theoretical Bounds: The authors note that their theoretical condition (smoothness of the source) is sufficient to prevent spurious solutions, but it may not be strictly necessary.
  • Convergence Technicalities: The mathematical proof for the noise-annealing process only guarantees convergence up to a "subsequence." While this didn't cause instability in practical experiments, it remains a theoretical limitation.
  • Non-Zero Terminal Noise: In practice, the noise schedule is annealed to a very small constant ($\epsilon_{min} > 0$) rather than exactly zero to maintain training stability, meaning the final mapping still operates on infinitesimally perturbed data.

Summary updated

BibTeX
@inproceedings{choi2025overcoming,
  author = {Jaemoo Choi and Jaewoong Choi and Dohyun Kwon},
  title = {{Overcoming Spurious Solutions in Semi-Dual Neural Optimal Transport: A Smoothing Approach for Learning the Optimal Transport Plan}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=apKzwImoXt},
}
Figure