Partial Neural Optimal Transport

Milena Gazdieva, Alexander Korotin, Evgeny Burnaev · DOI

Abstract

Optimal Transport (OT) is a fundamental tool for distribution alignment, yet its traditional formulation suffers from rigid marginal constraints that fail in the presence of class imbalances or outliers. We present U-LightOT, a lightweight solver for Unbalanced Entropic Optimal Transport (UEOT). By replacing complex minimax optimization with a stable, theoretically-grounded objective and utilizing Gaussian Mixture Models (GMMs) for parametrization, U-LightOT achieves high-fidelity transport plans in minutes on standard CPU hardware.

Introduction

Classic Optimal Transport (OT) finds the most efficient mapping between two probability distributions by minimizing a cost function subject to strict marginal constraints. While powerful, this formulation assumes that the total mass of the source and target distributions must match exactly—a condition rarely met in real-world datasets. In applications ranging from single-cell RNA sequencing to image-to-image translation, datasets are frequently plagued by class imbalances, missing data, or significant outliers. Forcing these "extra" points to match a target distribution leads to distorted transport plans and poor generalization.

Unbalanced Optimal Transport (UOT) addresses these limitations by relaxing the hard marginal constraints, typically through the addition of divergence penalties. This allows the model to "create" or "destroy" mass, effectively ignoring outliers or handling mismatched cluster sizes. However, solving UOT for continuous distributions has historically required complex minimax optimization schemes, such as those used in Generative Adversarial Networks (GANs). These methods are notoriously difficult to train, sensitive to hyperparameters, and computationally demanding. This paper introduces U-LightOT, a lightweight alternative that bypasses these challenges.

Methods: The U-LightOT Solver

U-LightOT introduces a stable, non-minimax approach to UEOT through three primary innovations:

  1. Non-Minimax Objective: By leveraging a novel dual formulation of the UEOT problem, the authors transform the traditional "cat-and-mouse" minimax game into a straightforward minimization problem. This change of variables ensures that the objective is well-behaved and significantly more stable during training than previous neural OT solvers.
  2. Gaussian Mixture Parametrization: Instead of using high-capacity deep neural networks to represent transport potentials, U-LightOT employs unnormalized Gaussian Mixture Models (GMMs). This choice provides a balance between expressivity and simplicity.
  3. Analytical Tractability: A key advantage of GMM parametrization is that many of the complex integrals required for calculating transport plans and marginals can be solved analytically. This removes the reliance on expensive numerical integration, leading to massive speedups.
Conceptual diagram of the Unbalanced Entropic Optimal Transport (UEOT) framework, showing the mapping from source distribution p to target q via conditional distributions gamma(y|x).

Key Insights and Theoretical Rigor

The core innovation lies in the dual formulation, where changing variables allows the transport plan's conditionals and marginals to be explicitly and interpretably parametrized. Despite its simplicity, the GMM-based solver is a "universal approximator" for UEOT solutions and comes with formal generalization bounds. This efficiency allows the solver to run on standard CPUs, making it a "CPU-friendly" alternative to GPU-intensive deep learning models.

Experimental Results

The solver was evaluated on synthetic 2D mixtures and high-resolution latent codes from the FFHQ dataset (e.g., Man → Woman translation).

  • Efficiency: In the Young → Adult translation task, U-LightOT completed in approximately 2 minutes and 38 seconds, compared to over 16 minutes for GAN-based competitors.
  • Robustness: U-LightOT successfully ignores outliers that typically cause balanced OT solvers to produce nonsensical results. It correctly identifies which mass should be transported and which should remain stationary.
  • Accuracy: On image translation tasks, the model achieved superior "keep-accuracy" (identity preservation) while maintaining high "target-accuracy."
Visualization of a transport plan generated by U-LightOT on a synthetic 2D dataset, demonstrating its ability to map between clusters effectively while handling distribution geometry.

Discussion and Future Work

While GMMs provide excellent speed and analytical benefits, they may struggle with extremely high-dimensional or non-smooth distributions where deep neural networks might offer more expressivity. Future research may explore more flexible parametrizations that retain the non-minimax advantages while handling more complex data geometries.

Summary updated

BibTeX
@misc{gazdieva2023partial,
  author = {Milena Gazdieva and Alexander Korotin and Evgeny Burnaev},
  title = {{Partial Neural Optimal Transport}},
  year = {2023},
  eprint = {2303.07988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.07988},
}
Figure