---
title: Dynamic Unbalanced Optimal Transport
url: https://www.emergentmind.com/topics/dynamic-unbalanced-optimal-transport-ot
type: topic
---

# Dynamic Unbalanced Optimal Transport

Dynamic unbalanced optimal transport (OT) extends the dynamic Benamou–Brenier paradigm of optimal transport by allowing both spatial mass transfer and mass variation (creation or destruction) along transport paths. This modeling framework is essential in situations where conservation of mass is not guaranteed, such as biological growth, chemical reactions, and population dynamics. The theory encompasses a diverse range of variational formulations—dynamic and static, continuous and discrete, convex and non-convex—each tailored to applications and computational demands. Central to the dynamic unbalanced OT framework are (i) the specification of a continuity equation with a source term, (ii) variational functionals penalizing both transport and mass change, (iii) a duality theory connecting dynamic and static problems, and (iv) scalable algorithms involving convex optimization, neural architectures, and control-theoretic reductions.

## 1. Dynamic Unbalanced Optimal Transport: Mathematical Formulation

Dynamic unbalanced OT generalizes the classical Benamou–Brenier formulation by introducing mass density $\rho_t(x)\in \mathcal{M}(\Omega)$, mass flux $j_t(x)\in \mathcal{M}(\Omega)^n$, and a mass change (source/sink) rate $s_t(x)\in \mathcal{M}(\Omega)$ for $t\in[0,1]$. The evolution is governed by a continuity equation with source:
\[
\partial_t \rho_t(x) + \nabla\cdot j_t(x) = s_t(x),\quad \rho_{t=0} = \rho_0, \quad \rho_{t=1} = \rho_1
\]
(where Neumann boundary conditions are often imposed at $\partial\Omega$). The canonical unbalanced OT problem, with Wasserstein-1 transport and a convex 1-homogeneous mass-change cost $C_D$, is to minimize
\[
P_D(\rho, j, s) = \int_0^1\left[\|j_t\|_{TV} + \int_\Omega C_D(\rho_t(x), s_t(x))\, dx\right]\,dt
\]
with $\|j_t\|_{TV} = \int_\Omega |j_t(x)|\,dx$ and $C_D$ satisfying $C_D(\rho,0)=0$ if $\rho\geq0$, $C_D(\rho,0)=\infty$ if $\rho<0$ [1705.04535].

Alternative dynamic formulations penalize both displacement and mass-change via a quadratic structure. In Wasserstein–Fisher–Rao (WFR) geometry,
\[
\inf_{\rho, v, f}\;\int_0^1\int_\Omega\!\left(\|v(x, t)\|^2 + \frac{1}{\alpha} f(x, t)^2\right)\rho(x, t)\,dx\,dt
\]
subject to
\[
\partial_t\rho + \nabla\cdot(\rho v) = f\rho, \quad \rho(\cdot, 0) = \rho_0, \; \rho(\cdot, 1) = \rho_1
\]
with $f$ controlling local production ($f{>}0$) or annihilation ($f{<}0$) of mass [2409.13188, 2601.06810].

## 2. Duality and Static Reductions

A remarkable structural result, particularly for Wasserstein-1–type costs, is that the dynamic unbalanced OT problem admits a static dual and primal formulation through convex duality. The dynamic dual:
\[
\sup_{\phi\in C^1([0,1]\times \Omega)}\,\int_\Omega\left[\phi(1,\cdot)\rho_1 - \phi(0,\cdot)\rho_0\right]
\]
subject to $\|\nabla\phi(t,x)\|\leq 1$ and $(\partial_t\phi, \phi)\in B_D$, is shown (via Fenchel–Rockafellar duality) to be equivalent to the static dual:
\[
\sup_{\alpha,\beta\in \mathrm{Lip}(\Omega)}\int_\Omega[\alpha \rho_0+\beta \rho_1],\quad (\alpha(x),\beta(x))\in B_{01}\;\forall x
\]
where $B_{01}$ is derived from $B_D$ by time integration. Conjugation transposes this to a static semi-coupling problem involving measures $\pi_0$, $\pi_1$ on $\Omega\times\Omega$ [1705.04535].

This equivalence enables the reformulation of the original time-dependent variational problem into one over static objects, facilitating efficient numerical solution schemes such as linear programming, primal–dual splitting, or entropic regularization.

## 3. Structure and Characterization of Dynamic Unbalanced OT Solutions

Optimal solutions in dynamic unbalanced OT exhibit a distinctive structure:
- All spatial transport occurs at the endpoints $t=0$ and $t=1$, with $\pi_0$ and $\pi_1$ representing mass flows.
- For intermediate times $t\in(0,1)$, only pointwise mass changes occur; no spatial redistribution is present.
- The optimizer thus decomposes into initial transport, purely local in-place mass evolution, and final transport.

In one-dimensional Dirac examples ($\rho_0=a\delta_0$, $\rho_1=b\delta_L$), the optimal partition between transport and in-situ mass modification is characterized by geometric tangent-line conditions imposed by the mass-change cost function $C_D$ [1705.04535].

A consequence is the existence of a maximal threshold distance $L_{\max}$ such that mass is only relocated over distances $\leq L_{\max}$, beyond which mass creation or destruction is favored energetically.

## 4. Computational Methods and High-dimensional Extensions

Dynamic unbalanced OT's static reduction supports efficient high-dimensional optimization. For general Wasserstein–Fisher–Rao models,
- Lagrangian discretization tracks characteristic curves, with densities evolved via coupled ODEs and Monte Carlo integration over initial samples for scalability [2409.13188].
- Neural-parameterized velocity and source fields enable flexible modeling of the transport and mass-creation vectors and source functions, with automatic differentiation for gradient computation and stochastic gradient optimization (e.g., Adam).
- Approaches on surfaces leverage mesh-free neural representations with structure-exploiting physics-informed losses derived from the underlying Hamiltonian flows of the KKT system [2407.21346].

In control-theoretic and discrete-time settings, for Gaussian reference measures and linear dynamics, the infinite-dimensional dynamic UOT problem admits reduction to a convex semidefinite program (SDP) over moments and covariances, with closed-form updates for optimal transported mass [2605.04246, 2605.06391].

Simulation-free learning of unbalanced OT geodesics is tractable through flow matching, wherein neural networks directly regress both velocity and mass-change fields against analytically constructed targets, bypassing ODE solvers and leading to substantial empirical speedup and improved accuracy [2601.06810].

## 5. Generalizations, Constraints, and Synchronization

Dynamic unbalanced OT readily accommodates integral path constraints, such as:
- Fixed total mass curves, prescribed statistical moments, or more general affine functionals of densities and fluxes [2402.15860, 2512.09250].
- Inequality and equality constraints on densities, fluxes, or source terms.
- Constraints can be imposed in the static reduction or directly in the time-dependent variational problems, preserving convexity and the existence of minimizers.

Synchronization across multiple spaces (e.g., modalities or geometric domains) is formalized through Unbalanced Synchronized OT, which couples transport-reaction flows either via Monge (push-forward) or Kantorovich (Markov kernel) synchronization operators. In the Monge case, transport costs are metric–modified Benamou–Brenier actions; in the Kantorovich case, nonlocal dissipation actions characterize the joint evolution. These extensions admit efficient discretizations and primal–dual solution schemes [2602.18725].

## 6. Special Cases and Connections to Classical OT

Dynamic unbalanced OT frameworks recover standard mass-preserving OT in the zero-mass-change limit (e.g., $C_D(\rho, \zeta) = 0$ for $\zeta=0$, $\infty$ otherwise), realizing the Benamou–Brenier $W_1$ or $W_2$ geodesics [1705.04535]. The quadratic class (Wasserstein–Fisher–Rao or Hellinger–Kantorovich) blends displacement and Fisher–Rao mass creation costs, resulting in joint penalization and admitting both dynamic and static (semi-coupling, “soft marginal”) formulations.

Partial transport and total variation penalized marginals are subsumed by appropriate choices of $C_D$, and are represented naturally within this unifying framework.

## 7. Applications and Extensions

Dynamic unbalanced OT has been applied in:
- High-dimensional distribution interpolation and density matching under mass-creation and loss (e.g., computational biology, population flows, density control in engineered systems) [2601.06810, 2409.13188].
- Shape morphing and registration on surfaces or point clouds, robustly handling noisy geometric data [2407.21346].
- Synchronized transport across heterogeneous modalities in multi-view data [2602.18725].
- Constrained interpolation under prescribed statistical or geometric constraints (e.g., convex body morphing, trajectory control with resource budgets) [2402.15860, 2512.09250].

Algorithmic innovations—scalable convex formulations, parallel proximal splitting, simulation-free flow matching—combine with neural parameterization to facilitate efficient solution schemes, handling previously intractable high-dimensional or large-scale instances. The incorporation of affine and integral path constraints broadens the range of admissible applications while maintaining mathematical tractability.

---

The theory of dynamic unbalanced optimal transport now supports a broad spectrum of variational, duality, computational, and modeling generalizations, with precise correspondence between dynamic time-evolution problems and static optimization formulations, robust structural results for optimizer characterizations, and a diverse ecosystem of scalable, structure-exploiting solvers [1705.04535, 2409.13188, 2407.21346, 2601.06810, 2504.03301, 2512.09250, 2402.15860, 2602.18725, 2605.04246, 2605.06391].

Source: https://www.emergentmind.com/topics/dynamic-unbalanced-optimal-transport-ot