This paper, presented at NeurIPS 2023, introduces UOTM (Unbalanced Optimal Transport Model), a generative framework that leverages the mathematical elegance of Optimal Transport (OT) while fixing its most glaring practical weaknesses: sensitivity to outliers and optimization instability.
TL;DR
UOTM is a novel generative model based on the semi-dual formulation of Unbalanced Optimal Transport (UOT). By relaxing the hard constraints of traditional Optimal Transport, it achieves significantly better robustness to outliers, faster convergence, and state-of-the-art performance for OT-based models on benchmarks like CIFAR-10 and CelebA-HQ.
What Problem Does This Paper Address?
Generative modeling often involves finding a "transport map" that transforms a simple prior (like Gaussian noise) into a complex data distribution. Optimal Transport (OT) is a natural framework for this, but it has two major "real-world" headaches:
- Outlier Sensitivity: Standard OT enforces a hard constraint where every point in the source must be mapped to the target. If your dataset has even 1% noise or outliers, the OT map can be severely warped as it tries to account for them, ruining the quality of generated samples.
- Optimization Instability: Minimizing Wasserstein distances (a core part of OT) often requires heavy regularization (like gradient penalties) to prevent the model from diverging, which can slow down training and complicate hyperparameter tuning.
Methods
The authors propose moving from standard OT to Unbalanced Optimal Transport (UOT).
- Soft Constraints: Unlike standard OT, UOT replaces hard marginal constraints with soft penalties using Csiszár divergences (like KL-divergence). This allows the model to "pay a fine" instead of perfectly matching every outlier.
- Semi-dual Formulation: The core technical contribution is deriving a semi-dual formulation for UOT. Traditional UOT can be complex to solve, sometimes requiring three separate neural networks. The semi-dual approach allows the authors to implement UOTM using a simpler adversarial training loop similar to GANs, involving just a generator ($T_\theta$) and a potential network ($v_\phi$).
- Adaptive Updates: The mathematical structure of the UOT objective naturally provides adaptive gradients. It takes stronger steps for samples that are poorly matched and gentler steps for those already well-modeled, preventing the "blow-up" often seen in standard OT training.
Datasets
The model was evaluated on:
- Toy Datasets: 1D and 2D mixtures of Gaussians designed to test distribution matching and outlier robustness.
- CIFAR-10: A standard image benchmark, including a version injected with 1% MNIST "outliers" to test robustness.
- CelebA-HQ-256: A high-resolution face dataset to demonstrate scalability.
Key Insights and Ideas
- Robustness is Built-in: Because UOT doesn't force a perfect match, it can effectively ignore outliers. As shown in Figure 2, standard OT (OTM) creates "failure samples" outside the target distribution to satisfy the hard constraint, whereas UOTM focuses on the main data mass.
- Faster Convergence through Stability: The authors prove theoretically (Theorem 3.4) that the UOT objective provides better control over function errors compared to standard OT. In practice, this translates to reaching high-quality results in roughly half the training time of previous OT-based methods.
- The "Unbalanced" Trade-off: A natural fear is that "unbalanced" means "inaccurate." However, the authors prove an upper bound showing that the divergence between the generated and target distributions is linearly proportional to the cost scaling factor $\tau$. By keeping $\tau$ small, you get the stability of UOT with the accuracy of OT.
Key Results
UOTM sets a new bar for OT-based generative models:
- CIFAR-10: Achieved an FID score of 2.97, significantly outperforming previous OT-based methods like OTM (FID 7.68) and Robust-OT (FID 21.57).
- CelebA-HQ-256: Achieved an FID of 6.36, approaching the performance of state-of-the-art diffusion and GAN models.
- Training Speed: UOTM converged in ~600 epochs on CIFAR-10, whereas standard OT models required ~1000 epochs to reach lower quality.
Limitations and Future Work
- Hyperparameter Sensitivity ($\tau$): The cost scaling parameter $\tau$ is critical. If it's too small, the model can suffer from mode collapse (lack of diversity); if it's too large, the samples become noisy as the model over-aligns with the prior noise.
- Regularization Dependency: While more robust than WGANs, the model still benefits significantly from $R_1$ regularization. Finding a way to remove this dependency entirely remains an open challenge.
- Societal Impact: Like all generative models, UOTM can inherit and amplify biases present in the training data, requiring careful monitoring in real-world deployments.
Summary updated