Scaling Algorithms for Unbalanced Transport Problems

Lénaïc Chizat, Gabriel Peyré, Bernhard Schmitzer, François‐Xavier VialardarXiv 2016 · DOI · arXiv

Abstract

This article introduces a new class of fast algorithms to approximate variational problems involving unbalanced optimal transport. While classical optimal transport considers only normalized probability distributions, it is important for many applications to be able to compute some sort of relaxed transportation between arbitrary positive measures. A generic class of such "unbalanced" optimal transport problems has been recently proposed by several authors. In this paper, we show how to extend the, now classical, entropic regularization scheme to these unbalanced problems. This gives rise to fast, highly parallelizable algorithms that operate by performing only diagonal scaling (i.e. pointwise multiplications) of the transportation couplings. They are generalizations of the celebrated Sinkhorn algorithm. We show how these methods can be used to solve unbalanced transport, unbalanced gradient flows, and to compute unbalanced barycenters. We showcase applications to 2-D shape modification, color transfer, and growth models.

Introduction

Classical Optimal Transport (OT) has emerged as a powerful mathematical framework for measuring distances between probability distributions. However, its utility is often hampered by a strict "balanced" constraint: the total mass of the source measure must exactly equal the total mass of the target measure. In real-world scenarios—such as biological modeling where cells divide or die, or computer vision where objects are partially occluded—this assumption is frequently violated. Forcing normalization in these cases often introduces artificial distortions and "ghosting" artifacts.

This paper addresses these limitations by introducing a generalized, computationally efficient framework for Unbalanced Optimal Transport (UOT). By relaxing marginal constraints and allowing for mass creation and destruction at a defined cost, the authors provide a robust toolset for comparing arbitrary positive measures.

The Unbalanced Variational Framework

The core of the proposed approach is a variational framework that replaces the hard marginal constraints of classical OT with convex penalty functions, specifically $\phi$-divergences. This formulation allows the transport plan to find an optimal trade-off between the cost of moving mass and the cost of adjusting the mass at the source or target locations.

This framework successfully unifies several existing models, including:

  • Wasserstein-Fisher-Rao distance
  • Partial Optimal Transport
  • Hellinger-Kantorovich distances

Algorithmic Innovation: Generalized Sinkhorn

To solve the resulting optimization problem, the authors apply entropic regularization. By adding an entropy term to the objective function, the problem becomes strictly convex, which not only stabilizes the solution but also enables the use of fast scaling algorithms.

Scaling Iterations

The authors derive a "Generalized Sinkhorn" algorithm. While the standard Sinkhorn algorithm relies on hard projections onto marginal constraints, this version utilizes proximal operators of the marginal penalty functions. The algorithm proceeds by alternating updates between two scaling vectors, $a$ and $b$. These updates consist of simple matrix-vector multiplications and pointwise operations, making the process highly parallelizable and well-suited for GPU acceleration.

Numerical Stability

To achieve high precision, the regularization parameter $\epsilon$ must often be very small. To prevent numerical overflow or underflow in these regimes, the authors provide a stabilized version of the algorithm that operates in the log-domain. This ensures robustness even when dealing with complex distributions.

Applications and Performance

The paper validates the framework through several illustrative applications:

  1. Shape Morphing: In 2D shape interpolation (e.g., circles to squares), UOT preserves the topology of the distributions more naturally than classical OT. It avoids the forced splitting of mass that often occurs when the source and target have different structures.
  2. Color Transfer: Using image histograms in the CIE-Lab color space, the algorithm performs color transfer between images with different color distributions. The UOT approach avoids the "stretching" artifacts common in balanced methods.
  3. Computational Speed: The transition from a linear programming problem to a regularized scaling problem reduces complexity from approximately $O(n^3)$ to $O(n^2)$ per iteration. For a 1D problem with 1,000 samples, the algorithm converges in roughly 30 seconds on a standard laptop.

Discussion and Limitations

While the framework is powerful, it introduces new parameters—specifically the regularization parameter $\epsilon$ and the marginal penalty $\lambda$—which currently require heuristic tuning based on the application. Additionally, the algorithm requires storing a kernel matrix $K$. For extremely high-dimensional data, such as 3D volumes, memory constraints may necessitate the use of separable kernels or sparse approximations.

In conclusion, this work provides a significant advancement in transport theory by offering a fast, scalable, and flexible algorithm for unbalanced measures, opening new doors for applications in biological growth modeling, imaging, and beyond.

Summary updated

Abstract

This article introduces a new class of fast algorithms to approximate variational problems involving unbalanced optimal transport. While classical optimal transport considers only normalized probability distributions, it is important for many applications to be able to compute some sort of relaxed transportation between arbitrary positive measures. A generic class of such "unbalanced" optimal transport problems has been recently proposed by several authors. In this paper, we show how to extend the, now classical, entropic regularization scheme to these unbalanced problems. This gives rise to fast, highly parallelizable algorithms that operate by performing only diagonal scaling (i.e. pointwise multiplications) of the transportation couplings. They are generalizations of the celebrated Sinkhorn algorithm. We show how these methods can be used to solve unbalanced transport, unbalanced gradient flows, and to compute unbalanced barycenters. We showcase applications to 2-D shape modification, color transfer, and growth models.
BibTeX
@misc{chizat2016scaling,
  author = {Lénaïc Chizat and Gabriel Peyré and Bernhard Schmitzer and François‐Xavier Vialard},
  title = {{Scaling Algorithms for Unbalanced Transport Problems}},
  year = {2016},
  eprint = {1607.05816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.05816},
}
Figure