TL;DR
Semi-dual Neural Optimal Transport (SNOT) often converges to "spurious solutions" that fail to accurately map one distribution to another. This paper identifies the geometric conditions causing these failures and introduces OTP (Optimal Transport Plan), a noise-annealing approach that guarantees convergence to the true transport plan and enables the learning of stochastic, one-to-many mappings.
What Problem Does This Paper Address?
Optimal Transport (OT) is a powerful framework for tasks like image-to-image translation and generative modeling, as it finds the most "efficient" way to transform a source distribution into a target. A popular way to implement this with neural networks is Semi-dual Neural OT (SNOT), which uses a minimax (adversarial) objective.
However, researchers have noticed a frustrating trend: even when the minimax objective is perfectly optimized, the resulting "optimal" transport map might be a "fake" or spurious solution. These solutions might fail to cover the target distribution's support or ignore the underlying cost function entirely. This paper seeks to answer two questions:
- Why does this happen?
- How can we fix it so that neural networks reliably learn the correct transport plan?
Methods
The authors tackle the problem through a combination of rigorous theory and a new training algorithm:
- Theoretical Diagnosis: They identify a sufficient condition to prevent spurious solutions: the source distribution must not place mass on low-dimensional sets (specifically, sets with Hausdorff dimension $\le d-1$). If your data lies on a "thin" manifold (common in deep learning), SNOT is mathematically prone to failure.
- The OTP Algorithm: To satisfy the theoretical condition, the authors propose OTP (Optimal Transport Plan). Instead of training on the raw source distribution $\mu$, they introduce a smoothed version $\mu_\epsilon$ by adding Gaussian noise. This makes the distribution "thick" enough to satisfy the uniqueness conditions.
- Noise Annealing: As training progresses, the noise level $\epsilon$ is gradually decreased toward zero. This allows the model to start in a regime where the solution is well-defined and unique, then "track" that solution as it approaches the original, potentially thin, distribution.
- Stochastic Mapping: Unlike standard SNOT, which typically learns a deterministic map, OTP can learn a Kantorovich transport plan. By utilizing the initial noise as a latent variable, the model can represent one-to-many mappings, which is essential for tasks like colorization where one input has multiple valid outputs.
Datasets
The authors evaluated OTP across a range of synthetic and real-world datasets:
- Synthetic 2D & High-Dimensional: Custom datasets designed to trigger failures, including "Perpendicular," "Parallel," "One-to-Many," and "Grid" configurations, scaled up to 256 dimensions.
- MNIST-to-CMNIST: A colorization task where grayscale MNIST digits are mapped to Red, Green, or Blue versions to test stochastic mapping.
- Image-to-Image Benchmarks:
- CelebA: Male-to-Female translation (64x64 and 128x128).
- AFHQ: Wild-to-Cat translation (64x64).
- Standard Benchmarks: The [MMv2:R] benchmark consisting of Gaussian mixtures.
Key Insights and Ideas
- Geometry Matters: The "aha" moment is realizing that the failure of SNOT isn't just a training instability or a bad architecture—it's a fundamental consequence of the minimax objective when applied to low-dimensional data distributions.
- Smoothing as a Theoretical Bridge: Adding noise isn't just a heuristic for better generalization; it's a mathematical necessity to ensure the Kantorovich potential is unique and the transport map is well-defined.
- Recovering Stochasticity: By framing the problem as learning a plan rather than just a map, OTP avoids the "mode collapse" seen in other neural OT methods. In the One-to-Many synthetic case, vanilla models collapse to a single point, while OTP correctly identifies the full range of target possibilities.
Key Results
- Eliminating Spurious Solutions: In synthetic tests (Figure 3), vanilla SNOT models failed to cover the target distribution in 3 out of 4 cases. OTP recovered the correct transport plan in all scenarios.
- Superior Accuracy: In high-dimensional settings ($d=256$), OTP reduced the target distribution error ($D_{target}$) significantly compared to baseline OTM models (e.g., 61.27 vs 84.91).
- State-of-the-Art Image Translation: On the Male-to-Female (128x128) task, OTP achieved a FID score of 6.38, outperforming existing Neural OT models like OTM (7.55) and DIOTM (7.40).
- Effective Colorization: In the MNIST-to-CMNIST task, OTP successfully mapped grayscale images to diverse colors, achieving an FID of 3.18 compared to 62.4 for OTM-s, which suffered from severe mode collapse.
Limitations and Future Work
- Subsequence Convergence: The authors note that their convergence proof (Theorem 4.1) holds "up to a subsequence," which is a standard but slightly weaker theoretical guarantee. However, they observed no convergence issues in practice.
- Condition Necessity: The paper identifies a sufficient condition for uniqueness. Exploring whether this condition is also necessary, or if even weaker conditions exist, remains an open theoretical question.
- Computational Overhead: The noise annealing schedule adds another hyperparameter to tune, and the inner-loop optimization required for semi-dual methods remains computationally intensive compared to simple GANs.
Summary updated