Unnormalized optimal transport

Wilfrid Gangbo, Wuchen Li, Stanley J. Osher, Michael A. PuthawalaJournal of Computational Physics 2019

Introduction

Optimal Transport (OT) has become a cornerstone of modern data science, providing a powerful framework for comparing probability distributions through the Wasserstein metric. However, a significant limitation of classical OT is the requirement that distributions must have equal total mass. In many practical scenarios—ranging from medical imaging with varying intensities to seismic data analysis—this normalization constraint is restrictive. This paper introduces a "natural" extension of OT that accommodates distributions of unequal mass by incorporating a spatially independent source term into the fluid dynamics formulation.

The Unnormalized Formulation

The authors build upon the Benamou-Brenier formulation, which interprets OT as a dynamic problem of finding a velocity field that moves mass from a source density to a target density over a time interval.

The Spatially Independent Source Term

The core innovation lies in the modification of the continuity equation. Traditional OT uses the standard continuity equation to ensure mass conservation. The proposed model introduces a source function $f(t)$:

$$\partial_t \rho + \nabla \cdot (\rho v) = f(t)$$

Crucially, $f(t)$ depends only on time and is independent of spatial coordinates. This implies that mass is created or destroyed uniformly across the entire domain. This choice is mathematically strategic; it preserves the core structure of the Hamilton-Jacobi equation, which governs the optimal flow, while allowing for total mass fluctuations.

Optimization Objective

The cost functional is expanded to include a penalty for the source term:

$$J(\rho, v, f) = \int_0^1 \int_\Omega \rho |v|^2 dx dt + \frac{1}{\alpha} \int_0^1 |f(t)|^p dt$$

Here, $\alpha$ serves as a regularization parameter that balances the cost of transporting mass against the cost of creating or destroying it. As $\alpha \to \infty$, the cost of creating mass becomes prohibitive, and the model recovers classical OT (provided the total masses are balanced).

Mathematical and Computational Properties

By maintaining a spatially independent source term, the authors derive unnormalized versions of the three pillars of OT: the Monge mapping problem, the Monge-Ampère equation, and the Kantorovich duality.

A notable theoretical result is the uniqueness of the potential function $\Phi$. In classical OT, $\Phi$ is unique only up to an additive constant because the flow depends only on its gradient. In the unnormalized setting, the source term $f(t)$ is linked to the integral of $\Phi$, which fixes the additive constant and makes the potential itself unique.

From a computational standpoint, the problem remains convex with linear constraints. This allows the use of the Chambolle-Pock primal-dual algorithm, a first-order method well-suited for large-scale imaging and physics problems. The authors demonstrate that the computational overhead for this extension is negligible; if a system can solve standard OT, it can solve this unnormalized version with nearly identical efficiency.

Numerical Results and Applications

The framework was validated using synthetic benchmarks, including 1D and 2D Gaussians and standard image interpolation tests (e.g., the "Cat" benchmark).

  • Natural Interpolation: The model provides a smooth transition between densities of different masses. It effectively "fades" mass in or out globally while simultaneously performing the geometric transport, avoiding the artifacts often seen in simple linear blending.
  • Robustness: When using an $L^1$ penalty ($p=1$) for the source term, the metric exhibits significant robustness to noise. It maintains sensitivity to the underlying geometric structure of the data even when the signal-to-noise ratio is low.

Limitations and Future Work

The primary limitation of this approach is the assumption of uniform mass change. While this simplifies the mathematics and computation, it may not be ideal for applications where mass changes are localized—such as an object appearing or disappearing in a specific region of a video frame.

Future research directions include applying this framework to more complex inverse problems and machine learning architectures, such as improving the stability of Generative Adversarial Networks (GANs) or modeling mean-field games where population sizes vary over time.

Summary updated

BibTeX
@article{gangbo2019unnormalized,
  author = {Wilfrid Gangbo and Wuchen Li and Stanley J. Osher and Michael A. Puthawala},
  title = {{Unnormalized optimal transport}},
  journal = {Journal of Computational Physics},
  year = {2019},
  doi = {10.1016/j.jcp.2019.108940},
}
Figure