Introduction
Generative modeling synthesizes new data by transforming probability distributions, either from noise or more generally between unpaired datasets, resulting in models that capture the temporal evolution of their underlying densities ([80 , 66 , 45 , 20 ] ). The unpaired distributions problem naturally arises in modeling real-world stochastic dynamics from sparse measurements, like in biology ([81 , 44 , 84 ] ), climate science ([53 , 71 ] ), and economics ([33 , 3 ] ). It also plays a central role in domain adaptation, tackling distribution shifts in applications such as synthetic-to-real image translation ([50 ] ), medical imaging ([74 ] ), and systems control (Li et al., 2026a, 2025; Xu et al., 2025). Figure 1 -left contrasts some leading approaches for connecting probability distributions. Diffusion processes ([31 ] (Ho et al. 2020)) require an intermediate Gaussian noise state ([43 ] ), whereas
Figure 1. Left: Two marginals connected by a diffusion process (noisy gray path), an OT map (purple), and a uOT map (black), the latter preventing mode leakage by adapting sample weights according to the growth rate z t z^t z t . Middle-Right: Comparison between uOT methods, namely WFR (brown squares) and CuOT (gold squares), in a dataset pairing experiment (App. § 19 .3). Our CuOT method avoids bias toward high-growth regions and adapts the step size to the data structure.
Preprint. Optimal Transport (OT) instead enforce direct, minimum-transport connections, yielding minimum-length paths under the Wasserstein metric ([68 ] ). While often easier to learn and integrate, OT approaches are brittle under class imbalance or outliers ([15 , 24 ] ). Unbalanced OT (uOT) addresses this by allowing mass variations during transport, so that semantically related but differently sized modes can be matched without cross-mode leakage ([22 ] ). Yet, current uOT solutions (§ 2 ) based on the Wasserstein–Fisher–Rao (WFR) distance ([41 ] ) introduce a new pathology: they bias the transport dynamics toward regions of maximal mass growth, resulting in soft mode collapse ([12 , 85 ] ).
This paper overcomes the foregoing limitations by introducing a novel contact geometric formulation of uOT (Sec. 4), which decouples the direction of sample transport dynamics from its weight growth. The contact geometry (Sec. 3) naturally induces a bias whereby sampling step sizes decrease in regions of increasing weight (i.e., higher data density). Since these regions exhibit richer variability ([36 ] ), requiring finer resolution to avoid overshooting ([34 , 77 ] (Li et al. 2026b)), the WFR geometry falls short. In contrast, our Contact Unbalanced Optimal Transport method successfully adapts generative dynamics by producing smaller steps in high-density regions, as shown in Figure 1 -middle-right. Furthermore, our contact geometric interpretation of the uOT problem enables a stable and efficient solver via path-length minimization (Sec. 5). We validate our method on reconstructing stochastic dynamics first through an illustrative ablation study and then on biological datasets, unpaired image-to-image translation, and ensemble regression for video generation, consistently outperforming both OT- and WFR-based uOT approaches (Sec. 7).
In summary, our contributions are: (1) A contact-geometric formulation of unbalanced optimal transport, where we recast uOT through the lens of the geometry of non-conservative dynamics, resulting in a data-informed regularization that adapts sampling step sizes to the local data density and decouples it from mass growth; (2) A geometry-aware efficient solver, the Contact Unbalanced Optimal Transport (CuOT), which treats generative dynamics as minimum-length curves in probability space. CuOT delivers provably stable computation while maintaining an efficient profile: scaling linearly with dimensionality and achieving near-linear complexity in sample size.
Related Works
Table 1 surveys recent approaches for learning OT maps between stochastic distributions. Using OT solvers during training to measure the discrepancy between predicted and reference marginals has become standard in the field. Despite their super-linear complexity in the number of samples N N N (ranging from O ( N log N ) \mathcal{O}(N \log N) O ( N log N ) to O ( N 2 ) \mathcal{O}(N^2) O ( N 2 ) ), OT solvers achieve high reconstruction accuracy via explicit sample matching, compared to density-estimation methods based on direct parameterization or normalizing flows ([58 , 65 , 46 ] ). A key feature of
Table 1. Comparison of OT methods. Bold entries are evaluated in Sec. 7. Unbalanced indicates whether mass variation is explicitly modeled and learned. Geometry denotes the structure of the transport problem. WFR* indicates that the formulation recovers WFR geometry only for a specific choice of the penalty ψ ( z θ t ) \psi(z_\theta^t) ψ ( z θ t ) , and otherwise lacks a clear geometric interpretation. Networks lists the parameterized quantities: ( φ θ t , ϕ θ t ) (\varphi_\theta^t,\phi_\theta^t) ( φ θ t , ϕ θ t ) denote the Schrödinger potentials, v θ t v_\theta^t v θ t the drift, z θ t z_\theta^t z θ t the growth rate, ρ θ t \rho_\theta^t ρ θ t the density, and s θ t s_\theta^t s θ t the score function. Complexity reports the training computational cost: N N N is the number of samples, D D D the data dimensionality, K K K the number of time steps, M M M the number of intermediate marginals, I I P F I_{\mathrm{IPF}} I IPF the number of IPF iterations, and I r e f I_{\mathrm{ref}} I ref the number of reference refinement iterations.
the OT’s geometric structure is the coupling between the transport drift v t v^t v t and the local growth rate z t z^t z t . Balanced OT approaches [65 ] assume zero mass change, or hardcode the growth rate using task-specific knowledge [16 , 37 , 48 , 69 , 55 ] , which fails to extend to broader cases.
More generally, in unbalanced settings, mass variation is controlled via a penalty ψ ( z t ) \psi(z^t) ψ ( z t ) , inducing the constraint v t = ∇ z ψ ( z t ) v^t = \nabla_{z}\psi(z^t) v t = ∇ z ψ ( z t ) [85 , 61 , 73 ] . This constraint is enforced either by parameterizing the growth rate alone, which can yield noisy gradient estimates, or through a regularization term in the loss. The quadratic penalty ψ ( z t ) = 1 2 ∥ z t ∥ 2 \psi(z^t) = \frac{1}{2}\lVert z^t\rVert^2 ψ ( z t ) = 2 1 ∥ z t ∥ 2 [58 , 49 , 75 , 45 b] yields a tighter coupling v t = ∇ z t v^t = \nabla z^t v t = ∇ z t , which corresponds to a WFR geometry that admits a distance-based regularization that is more stable than Hamilton–Jacobi–Bellman-based (HJB) formulations [11 ] . Instead, contact geometry relaxes the constraint between the direction of v t v^t v t and z t z^t z t . Building on Testa et al. [63 ] (App. § 17 .3), who used a fixed time schedule for z t z^t z t to modulate ∥ v t ∥ \lVert v^t\rVert ∥ v t ∥ in balanced OT, we learn z t z^t z t as a spatially-varying growth rate field. This enables general uOT while adapting ∥ v t ∥ \lVert v^t\rVert ∥ v t ∥ directly to the data.
Geometric Background
We introduce the necessary notation throughout the following sections, and summarize it in App. § 14 .
Dynamics on the probability manifold. Let P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) be the space of smooth, positive densities ρ ( x ) : M → R + \rho(x):\mathcal{M}\to\mathbb{R}^{+} ρ ( x ) : M → R + with total mass ∫ M ρ ( x ) d x \int_{\mathcal{M}}\rho(x)\,dx ∫ M ρ ( x ) d x , where x ∈ M x\in\mathcal{M} x ∈ M denotes the sample space. A time-evolving density is described by a trajectory { ρ t } t ≥ 0 ⊂ P + ( M ) \{\rho^t\}_{t\geq0}\subset\mathcal{P}^{+}(\mathcal{M}) { ρ t } t ≥ 0 ⊂ P + ( M ) , whose infinitesimal variation is given by ∂ t ρ t ( x ) ∈ T ρ t P + ( M ) \partial_t\rho^t(x)\in T_{\rho^t}\mathcal{P}^{+}(\mathcal{M}) ∂ t ρ t ( x ) ∈ T ρ t P + ( M ) , with T ρ t P + ( M ) T_{\rho^t}\mathcal{P}^{+}(\mathcal{M}) T ρ t P + ( M ) being the tangent space. The pair ( ρ t , ∂ t ρ t ) (\rho^t,\partial_t\rho^t) ( ρ t , ∂ t ρ t ) thus defines a trajectory on the tangent bundle T P + ( M ) T\mathcal{P}^{+}(\mathcal{M}) T P + ( M ) , the collection of all tangent spaces. The evolution of ρ t \rho^t ρ t is typically modeled by the Fokker–Planck (FP) equation, combining deterministic density transport with its associated velocity field v t v^t v t and diffusion of strength ϵ \epsilon ϵ ,
∂ t ρ t ( x ) = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ϵ Δ x ρ t ( x ) . (1) \partial_t\rho^t(x)=-\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)+\epsilon\Delta_x\rho^t(x). \tag*{(1)} ∂ t ρ t ( x ) = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ϵ Δ x ρ t ( x ) . (1)
The classic OT seeks the trajectory ρ t ⊂ P + ( M ) \rho^t\subset\mathcal{P}^{+}(\mathcal{M}) ρ t ⊂ P + ( M ) connecting two densities ρ a , ρ b ∈ P + ( M ) \rho_a,\rho_b\in\mathcal{P}^{+}(\mathcal{M}) ρ a , ρ b ∈ P + ( M ) that minimizes the kinetic energy 1 2 ∫ M ∥ v t ( x ) ∥ 2 ρ t ( x ) \frac{1}{2}\int_{\mathcal{M}}\lVert v^t(x)\rVert^2\rho^t(x) 2 1 ∫ M ∥ v t ( x ) ∥ 2 ρ t ( x ) [5 ] . The diffusion term introduces an entropy regularization in the transport map, interpretable as a solution of the Schrödinger Bridge (SB) problem [56 , 57 ] , or as a geodesic in P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) under the Wasserstein metric g W 2 g^{W_2} g W 2 [4 ] , which induces the corresponding distance d W 2 d^{W_2} d W 2 . In particular,
g W 2 ( ∂ t ρ t , ∂ t ρ t ) = ∫ M ∂ t ρ t ( x ) ( − Δ ρ ) † ∂ t ρ t ( x ) d x . (2) g^{W_2}(\partial_t\rho^t,\partial_t\rho^t)=\int_{\mathcal{M}}\sqrt{\partial_t\rho^t(x)(-\Delta_\rho)^{\dagger}\partial_t\rho^t(x)}\,dx. \tag*{(2)} g W 2 ( ∂ t ρ t , ∂ t ρ t ) = ∫ M ∂ t ρ t ( x ) ( − Δ ρ ) † ∂ t ρ t ( x ) d x . (2)
where ( − Δ ρ ) † (-\Delta_\rho)^{\dagger} ( − Δ ρ ) † is the inverse of the weighted Laplacian operator Δ ρ = − ∇ x ⋅ ( ρ t ∇ x ) \Delta_\rho=-\nabla_x\cdot(\rho^t\nabla_x) Δ ρ = − ∇ x ⋅ ( ρ t ∇ x ) [17 ] (App. § 15 .4 for details). The density dynamics ( ρ t , ∂ t ρ t ) ∈ T P + ( M ) (\rho^t,\partial_t\rho^t)\in T\mathcal{P}^{+}(\mathcal{M}) ( ρ t , ∂ t ρ t ) ∈ T P + ( M ) can be equivalently expressed as ( ρ t , S t ) (\rho^t,S^t) ( ρ t , S t ) on the cotangent bundle T ∗ P + ( M ) T^*\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) , the dual of T P + ( M ) T\mathcal{P}^{+}(\mathcal{M}) T P + ( M ) . Here, the covector S t ( x ) : = ( − Δ ρ ) † ∂ t ρ t ( x ) S^t(x):=(-\Delta_\rho)^{\dagger}\partial_t\rho^t(x) S t ( x ) := ( − Δ ρ ) † ∂ t ρ t ( x ) is defined to transform covariantly with ∂ t ρ t \partial_t\rho^t ∂ t ρ t , ensuring invariance of the Wasserstein metric (2) . In the OT setting, S t S^t S t is the potential generating the flow via v t = ∇ x S t ( x ) v^t=\nabla_xS^t(x) v t = ∇ x S t ( x ) .
Symplectic and contact geometries. On the cotangent bundle T ∗ P + ( M ) T^*\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) , the vector field ( ∂ t ρ t , ∂ t S t ) (\partial_t\rho^t,\partial_tS^t) ( ∂ t ρ t , ∂ t S t ) , which is the solution of the OT problem, respects the symplectic constraint ω ( ( ∂ t ρ t , ∂ t S t ) , ⋅ ) = d H ( ∂ t ρ t , ∂ t S t ) \omega((\partial_t\rho^t,\partial_tS^t),\cdot)=d\mathcal{H}(\partial_t\rho^t,\partial_tS^t) ω (( ∂ t ρ t , ∂ t S t ) , ⋅ ) = d H ( ∂ t ρ t , ∂ t S t ) . That is, the density dynamics evolve along level sets of the Hamiltonian function H \mathcal{H} H , corresponding to constant volume sections of T ∗ P + ( M ) T^*\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) [17 ] . This symplectic form ω \omega ω , is a geometric structure measuring a generalized notion of area, is preserved along the dynamics in traditional OT settings. uOT relaxes this constraint, which can be geometrically achieved by augmenting the cotangent bundle with an additional scalar variable z t z^t z t , governing deviations from Hamiltonian level sets. The resulting dynamics evolve on the extended space T ∗ P + ( M ) × R T^*\mathcal{P}^{+}(\mathcal{M})\times\mathbb{R} T ∗ P + ( M ) × R and are described by a contact structure satisfying η ( ( ∂ t ρ t , ∂ t S t , ∂ t z t ) , ⋅ ) = d H ( ∂ t ρ t , ∂ t S t , ∂ t z t ) \eta((\partial_t\rho^t,\partial_tS^t,\partial_tz^t),\cdot)=d\mathcal{H}(\partial_t\rho^t,\partial_tS^t,\partial_tz^t) η (( ∂ t ρ t , ∂ t S t , ∂ t z t ) , ⋅ ) = d H ( ∂ t ρ t , ∂ t S t , ∂ t z t ) . Here, η \eta η denotes the contact form, a generalized signed-length quantifying the component of the vector field transversing Hamiltonian flow lines. L ( ∂ t ρ t , ∂ t S t , ∂ t z t ) η ( ⋅ ) \mathcal{L}_{(\partial_t\rho^t,\partial_tS^t,\partial_tz^t)}\eta(\cdot) L ( ∂ t ρ t , ∂ t S t , ∂ t z t ) η ( ⋅ ) denotes the Lie derivative of the contact form along the vector field. In general, this term is nonzero, implying that the induced dynamics do not preserve the volume element, but instead evolve across sections of T ∗ P + ( M ) T^*\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) with varying volume (see App. § 15 .§ 1 ). While the symplectic dynamics correspond to a Wasserstein geodesic, the contact dynamics project to geodesics w.r.t. a dynamically varying metric (see App. § 15 .§ 2 ). As shown in Sec. 4, this change in the local volume form across the contact dynamics induces density changes that correspond to mass variations on P + ( M ) P^{+}(\mathcal{M}) P + ( M ) , thereby moving from symplectic OT to the more general uOT setting.
Problem definition. We propose an entropy-regularized uOT rooted in contact geometry. By treating the growth rate z t z^{t} z t as an independent dynamical variable, we decouple it from the spatial transport velocity v t v^{t} v t . In contrast, WFR formulations build on symplectic variables ( ρ t , S t ) (\rho^{t}, S^{t}) ( ρ t , S t ) , constraining the growth rate to the action potential via z t : = S t z^{t} := S^{t} z t := S t and thus enforcing coupled dynamics where v t = ∇ x z t v^{t} = \nabla_{x}z^{t} v t = ∇ x z t . Let M \mathcal{M} M be a domain and let { ρ m } m = 0 M \{\rho^{m}\}_{m=0}^{M} { ρ m } m = 0 M be a collection of densities observed at times { t m } m = 0 M \{t_{m}\}_{m=0}^{M} { t m } m = 0 M . We seek a continuous trajectory { ρ t } t ∈ [ t 0 , t M ] \{\rho^{t}\}_{t\in[t_{0},t_{M}]} { ρ t } t ∈ [ t 0 , t M ] , interpolating these marginals, together with a velocity field v t v^{t} v t and a scalar field z t z^{t} z t governing local mass variation. The problem is defined as,
min v t , z t 0 J = ∫ t 0 t M ∫ M ∂ t z t ( x ) d x d t , s.t. ∂ t z t ( x ) = 1 2 ∥ v t ( x ) ∥ 2 ρ t ( x ) − 1 2 ∥ v t 0 ( x ) ∥ 2 ρ t 0 ( x ) + 1 2 w z z t ( x ) 2 , ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) = ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) , ρ t m = ρ m , ∀ m ∈ { 0 , … , M } . (3) \begin{aligned}
\min_{v^{t},z^{t_{0}}}\quad J &= \int_{t_{0}}^{t_{M}}\int_{\mathcal{M}} \partial_{t}z^{t}(x)\,dx\,dt,\\
\text{s.t.}\quad\partial_{t}z^{t}(x) &= \frac{1}{2}\lVert v^{t}(x)\rVert^{2}\rho^{t}(x)-\frac{1}{2}\lVert v^{t_{0}}(x)\rVert^{2}\rho^{t_{0}}(x)+\frac{1}{2}w_{z}z^{t}(x)^{2},\\
\partial_{t}\rho^{t}(x)+\nabla_{x}\cdot\left(\rho^{t}(x)v^{t}(x)\right) &= \varepsilon\Delta_{x}\rho^{t}(x)+w_{z}z^{t}(x)\rho^{t}(x),\\
\rho^{t_{m}} &= \rho^{m},\quad\forall m\in\{0,\ldots,M\}. \tag*{(3)}
\end{aligned} v t , z t 0 min J s.t. ∂ t z t ( x ) ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) ρ t m = ∫ t 0 t M ∫ M ∂ t z t ( x ) d x d t , = 2 1 ∥ v t ( x ) ∥ 2 ρ t ( x ) − 2 1 ∥ v t 0 ( x ) ∥ 2 ρ t 0 ( x ) + 2 1 w z z t ( x ) 2 , = ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) , = ρ m , ∀ m ∈ { 0 , … , M } . (3)
The objective functional (3a) minimizes the terminal value of the action z t z^{t} z t , whose evolution is governed by the dynamics (3b). Equation (3c) is a generalized FP equation of the state ρ t \rho^{t} ρ t , extending the balanced FP (1) with the term w z z t ( x ) ρ t ( x ) w_{z}z^{t}(x)\rho^{t}(x) w z z t ( x ) ρ t ( x ) to account for mass modulation. In the limit w z → 0 w_{z}\to0 w z → 0 , the problem reduces to minimizing the kinetic energy of the transport map, recovering the balanced OT formulation (details in Sec. 6). However, for w z ≠ 0 w_{z}\ne0 w z = 0 , the dynamics introduce a nonlinear recursive dependence on z t z^{t} z t , such that it is neither a static action nor reducible to a standard state variable. In particular, the system cannot be cast into a symplectic form ( ( ρ t , z t ) , ( S t , λ t ) ) \left((\rho^{t},z^{t}), (S^{t},\lambda^{t})\right) ( ( ρ t , z t ) , ( S t , λ t ) ) with a conjugate variable λ t \lambda^{t} λ t acting as dual potential of z t z^{t} z t , and thus, falls outside the scope of classical Hamiltonian formulations on even-dimensional phase spaces. Instead, the system (3) is naturally described within the Herglotz variational framework (Herglotz, [29 ] ), leading to a contact Hamiltonian system on an odd-dimensional contact manifold.
Contact Hamiltonian solution. As demonstrated in App. § 16 .§ 1 , the optimal solution of problem (3) follows a contact Hamiltonian dynamics with Hamiltonian H \mathcal{H} H defined as,
H ( ρ t , S t , z t ) = K ( ρ t , S t ) + ε F ( ρ t , S t ) − w z ∫ M 1 2 z t ( x ) 2 d x + H 0 . (4) \mathcal{H}(\rho^{t},S^{t},z^{t})=\mathcal{K}(\rho^{t},S^{t})+\varepsilon\mathcal{F}(\rho^{t},S^{t})-w_{z}\int_{\mathcal{M}}\frac{1}{2}z^{t}(x)^{2}dx+\mathcal{H}_{0}. \tag*{(4)} H ( ρ t , S t , z t ) = K ( ρ t , S t ) + ε F ( ρ t , S t ) − w z ∫ M 2 1 z t ( x ) 2 d x + H 0 . (4)
At optimality, v t = ∇ x S t v^{t}=\nabla_{x}S^{t} v t = ∇ x S t , so the term K = ∫ M 1 2 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x \mathcal{K}=\int_{\mathcal{M}}\frac{1}{2}\lVert\nabla_{x}S^{t}(x)\rVert^{2}\rho^{t}(x)\,dx K = ∫ M 2 1 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x represents the kinetic energy. The term F = ∫ M S t ( x ) Δ x ρ t ( x ) d x \mathcal{F}=\int_{\mathcal{M}}S^{t}(x)\Delta_{x}\rho^{t}(x)\,dx F = ∫ M S t ( x ) Δ x ρ t ( x ) d x introduces an entropic coupling, scaled by the diffusion coefficient ε \varepsilon ε , which adjusts the transport map to preserve the entropy level imposed by the FP constraint (3c). Finally, the term 1 2 z t ( x ) 2 \frac{1}{2}z^{t}(x)^{2} 2 1 z t ( x ) 2 governs energy variation, while the constant H 0 = ∫ M 1 2 ∥ v t 0 ( x ) ∥ 2 ρ t 0 ( x ) d x \mathcal{H}_{0}=\int_{\mathcal{M}}\frac{1}{2}\lVert v^{t_{0}}(x)\rVert^{2}\rho^{t_{0}}(x)\,dx H 0 = ∫ M 2 1 ∥ v t 0 ( x ) ∥ 2 ρ t 0 ( x ) d x fixes the reference energy level. The contact optimality conditions are,
∂ t ρ t ( x ) = ∂ S H ( ⋅ ) − 1 2 ρ t ( x ) ∂ z H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) , (via the FP eq. xref‘(3c)‘). (5) \begin{aligned}
\partial_{t}\rho^{t}(x) &= \partial_{S}\mathcal{H}(\cdot)-\frac{1}{2}\rho^{t}(x)\partial_{z}\mathcal{H}(\cdot)\\
&=-\nabla_{x}\cdot\left(\rho^{t}(x)\nabla_{x}S^{t}(x)\right)+\varepsilon\Delta_{x}\rho^{t}(x)+w_{z}z^{t}(x)\rho^{t}(x),\quad\text{(via the FP eq. {xref}`(3c)`).} \tag*{(5)}
\end{aligned} ∂ t ρ t ( x ) = ∂ S H ( ⋅ ) − 2 1 ρ t ( x ) ∂ z H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) , (via the FP eq. xref ‘(3c)‘). (5)
∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) − 1 2 S t ( x ) ∂ z H ( ⋅ ) = − 1 2 ∥ ∇ x S t ( x ) ∥ 2 − ε Δ x S t ( x ) + w z z t ( x ) S t ( x ) , (6) \begin{aligned}
\partial_{t}S^{t}(x) &= -\partial_{\rho}\mathcal{H}(\cdot)-\frac{1}{2}S^{t}(x)\partial_{z}\mathcal{H}(\cdot)\\
&=-\frac{1}{2}\lVert\nabla_{x}S^{t}(x)\rVert^{2}-\varepsilon\Delta_{x}S^{t}(x)+w_{z}z^{t}(x)S^{t}(x), \tag*{(6)}
\end{aligned} ∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) − 2 1 S t ( x ) ∂ z H ( ⋅ ) = − 2 1 ∥ ∇ x S t ( x ) ∥ 2 − ε Δ x S t ( x ) + w z z t ( x ) S t ( x ) , (6)
∂ t z t ( x ) = 1 2 ( S t ( x ) ∂ S H ( ⋅ ) + ρ t ( x ) ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) = 1 2 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) + 1 2 w z z t ( x ) 2 − 1 2 ∥ v t 0 ∥ 2 ρ t ( x ) , (via the z t dynamics (3b)). (7) \begin{aligned}
\partial_{t}z^{t}(x) &= \frac{1}{2}\left(S^{t}(x)\partial_{S}\mathcal{H}(\cdot)+\rho^{t}(x)\partial_{\rho}\mathcal{H}(\cdot)\right)-\mathcal{H}(\cdot)\\
&=\frac{1}{2}\lVert\nabla_{x}S^{t}(x)\rVert^{2}\rho^{t}(x)+\frac{1}{2}w_{z}z^{t}(x)^{2}-\frac{1}{2}\lVert v^{t_{0}}\rVert^{2}\rho^{t}(x),\quad\text{(via the }z^{t}\text{ dynamics (3b)).} \tag*{(7)}
\end{aligned} ∂ t z t ( x ) = 2 1 ( S t ( x ) ∂ S H ( ⋅ ) + ρ t ( x ) ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) = 2 1 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) + 2 1 w z z t ( x ) 2 − 2 1 ∥ v t 0 ∥ 2 ρ t ( x ) , (via the z t dynamics (3b)). (7)
where the partial derivatives of the contact Hamiltonian H \mathcal{H} H provide the local coordinate form of the contact geometric constraints (see Sec. 3). The explicit dependence on z t z^{t} z t encodes the trajectory traversed so far, distinguishing the contact Hamiltonian framework from the classical Hamiltonian setting. This enables modeling non-conservative, path-dependent forces, allowing the system’s energy to evolve over time (Testa et al., [63 ] ). In particular, this system induces a source or sink term in the generalized FP equation (5) , along with a corresponding amplification or damping term in the HJB equation (6) . More generally, the non-conservative dynamics implies that the volume of regions in T ∗ P + ( M ) T^{*}\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) explored by ( ρ t , S t , z t ) (\rho^{t},S^{t},z^{t}) ( ρ t , S t , z t ) is not preserved. As a result, both the transport velocity and the density are affected: the former adapts to traverse varying-volume regions, while the latter varies according to the local expansion or contraction of the support. This geometric structure is fundamental, as it couples mass variation and transport while keeping them as distinct, independently evolving quantities.
Geodesic interpretation. The optimization (3) can be reformulated on the probability space P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) by reparametrizing time t t t with an arc-length variable s s s , such that d s = K d t \mathrm{d}s=\sqrt{\mathcal{K}}\,\mathrm{d}t d s = K d t . Consequently, the problem reduces to finding a distance-minimizing curve ρ s ∈ P + ( M ) \rho^{s}\in\mathcal{P}^{+}(\mathcal{M}) ρ s ∈ P + ( M ) w.r.t. a suitable metric (Udrişte, [67 ] ; Abraham and Marsden, [2 ] ; Testa et al., [62 ] ). In the limit w z , ε → 0 w_z,\varepsilon\to0 w z , ε → 0 , the cost functional (3a) is equivalent to the Wasserstein distance (see App. § 15 .4), and the problem reduces to a standard Wasserstein geodesic computation. In our formulation, however, two aspects reshape this geometric picture. First, F \mathcal{F} F introduces an entropy regularization component, so that the resulting metric increases for distributions ρ s \rho^{s} ρ s deviating from the reference entropy measure. Sinkhorn-based methods (Feydy et al., [23 ] ) can efficiently incorporate this effect when approximating the distributional distance. Second, the explicit dependence on z t z^{t} z t drives energy variations along the trajectories in T ∗ P + ( M ) T^{*}\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) , reflecting density volume changes in the underlying space. To account for this, we adjust the Wasserstein metric with a conformal scaling factor K \sqrt{\mathcal{K}} K , yielding the contact Wasserstein metric g c = K g W 2 g^{c}=\sqrt{\mathcal{K}}\,g^{W_2} g c = K g W 2 . Thus, the solution ρ s \rho^{s} ρ s is a piecewise entropy-regularized geodesic w.r.t. the dynamically varying metric g c g^{c} g c . Computing the solution as a minimum-length path is advantageous, as it promotes optimization stability (see App. § 18 .4), avoiding the need to enforce the HJB equation (6) in the loss, whose direct minimization is prone to instabilities (Buzun et al., [11 ] ).
Geodesic discretization. Our objective is to compute the geodesic induced by problem (3) , i.e., a path ρ s ⊂ P + ( M ) \rho^{s}\subset\mathcal{P}^{+}(\mathcal{M}) ρ s ⊂ P + ( M ) consistent with the contact Hamiltonian dynamics and interpolating the observed marginals { ρ m } m = 0 M \{\rho^{m}\}_{m=0}^{M} { ρ m } m = 0 M . These constraints naturally lead to a discretization of ρ s \rho^{s} ρ s as a sequence of nodes { s k } k = 0 K ⊂ P + ( M ) \{s_k\}_{k=0}^{K}\subset\mathcal{P}^{+}(\mathcal{M}) { s k } k = 0 K ⊂ P + ( M ) , each represented by a weighted particle ensemble ρ s k = { ( x n s k , w n s k ) } n = 0 N \rho^{s_k}=\{(x_n^{s_k},w_n^{s_k})\}_{n=0}^{N} ρ s k = {( x n s k , w n s k ) } n = 0 N approximating the corresponding density. Therefore, each discrete marginal is obtained by integrating: (1) a parameterized transport network v θ ( x s k , s k ) v_\theta(x^{s_k},s_k) v θ ( x s k , s k ) , representing the velocity field; and (2) a growth network z θ ( x s k , s k ) z_\theta(x^{s_k},s_k) z θ ( x s k , s k ) , representing the local mass growth rate. Both networks take as input a batch of particles { x n s k } n = 0 N ∼ ρ s k \{x_n^{s_k}\}_{n=0}^{N}\sim\rho^{s_k} { x n s k } n = 0 N ∼ ρ s k and the current arc-length parameter s k s_k s k . For a given step size τ \tau τ , this generative process, representing the discrete unbalanced FP equation (3c), is defined as follows,
x n s k + 1 = x n s k + τ v θ ( x n s k , s k ) (8) x_n^{s_{k+1}}=x_n^{s_k}+\tau v_\theta(x_n^{s_k},s_k) \tag*{(8)} x n s k + 1 = x n s k + τ v θ ( x n s k , s k ) (8)
w n s k + 1 = w n s k + τ w z z θ ( x n s k , s k ) w n s k . (9) w_n^{s_{k+1}}=w_n^{s_k}+\tau w_z z_\theta(x_n^{s_k},s_k)w_n^{s_k}. \tag*{(9)} w n s k + 1 = w n s k + τ w z z θ ( x n s k , s k ) w n s k . (9)
Training procedure. Training these networks requires discretizing the rest of the contact uOT (3a)–(3b)–(3d). The objective minimization (3a)–(3b) is addressed by the *optimality loss* term $\ell_{\mathrm{opt}}$, which minimizes the total geodesic arc-length and penalizes deviations of the simulated trajectory (6) from the optimality conditions (5). Adherence to the marginal constraints (3d), in terms of total mass and reconstruction accuracy, is then measured by the feasibility loss ℓ f e a \ell_{\mathrm{fea}} ℓ fea . Thus, our training objective is,
ℓ = w f e a ℓ f e a + w o p t ℓ o p t , where, (10) \ell=w_{\mathrm{fea}}\ell_{\mathrm{fea}}+w_{\mathrm{opt}}\ell_{\mathrm{opt}},\qquad\text{where,} \tag*{(10)} ℓ = w fea ℓ fea + w opt ℓ opt , where, (10)
ℓ f e a = ∑ m = 1 M ( d W 2 ( w s m , x s m , w m , x m ) + w m a s s ∥ W s m − W m ∥ 2 ) , (11) \ell_{\mathrm{fea}}=\sum_{m=1}^{M}\left(d^{W_2}(w^{s_m},x^{s_m},w^m,x^m)+w_{\mathrm{mass}}\left\lVert W^{s_m}-W^m\right\rVert^2\right), \tag*{(11)} ℓ fea = m = 1 ∑ M ( d W 2 ( w s m , x s m , w m , x m ) + w mass ∥ W s m − W m ∥ 2 ) , (11)
ℓ o p t = ∑ k = 0 K − 1 ∑ n = 0 N − 1 ( ( ν n s k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 + ∥ z n s k + 1 − z θ ( x n s k , s k + 1 ) ∥ 2 ) . (12) \ell_{\mathrm{opt}}=\sum_{k=0}^{K-1}\sum_{n=0}^{N-1}\left((\nu_n^{s_k})^2w_n^{s_k}\left\lVert x_n^{s_{k+1}}-x_n^{s_k}\right\rVert^2+\left\lVert z_n^{s_{k+1}}-z_\theta(x_n^{s_k},s_{k+1})\right\rVert^2\right). \tag*{(12)} ℓ opt = k = 0 ∑ K − 1 n = 0 ∑ N − 1 ( ( ν n s k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 + ∥ z n s k + 1 − z θ ( x n s k , s k + 1 ) ∥ 2 ) . (12)
Minimizing the geodesic arc-length requires computing the contact Wasserstein metric g c = K g W 2 g^c=\sqrt{\mathcal{K}}g^{W_2} g c = K g W 2 , obtained by scaling the Wasserstein metric by the kinetic energy (Sec. 4). To this end, we integrate the optimality conditions (5) forward, discretized along the estimated path (see App. § 18 for details),
ν n s k + 1 = ν n s k + τ 1 + ν n s k ( 1 2 w z z θ ( x n s k , s k ) ν n s k + w z ( ( z θ ( x n s k + 1 , s k ) − z θ ( x n s k , s k ) ) S n s k ) ) , (13) \nu_n^{s_{k+1}}=\nu_n^{s_k}+\frac{\tau}{1+\nu_n^{s_k}}\left(\frac{1}{2}w_z z_\theta(x_n^{s_k},s_k)\nu_n^{s_k}+w_z\left((z_\theta(x_n^{s_{k+1}},s_k)-z_\theta(x_n^{s_k},s_k))S_n^{s_k}\right)\right), \tag*{(13)} ν n s k + 1 = ν n s k + 1 + ν n s k τ ( 2 1 w z z θ ( x n s k , s k ) ν n s k + w z ( ( z θ ( x n s k + 1 , s k ) − z θ ( x n s k , s k )) S n s k ) ) , (13)
S n s k + 1 = S n s k − τ 2 ( ν n s k ) 2 + τ 2 w z z θ ( x n s k , s k ) S n s k , (14) S_n^{s_{k+1}}=S_n^{s_k}-\frac{\tau}{2}(\nu_n^{s_k})^2+\frac{\tau}{2}w_z z_\theta(x_n^{s_k},s_k)S_n^{s_k}, \tag*{(14)} S n s k + 1 = S n s k − 2 τ ( ν n s k ) 2 + 2 τ w z z θ ( x n s k , s k ) S n s k , (14)
z n s k + 1 = z n s k + τ 2 ( ν n s k ) 2 w n s k + τ 2 w z z θ ( x n s k , s k ) − τ 2 ( ν n s 0 ) 2 w n s 0 . (15) z_n^{s_{k+1}}=z_n^{s_k}+\frac{\tau}{2}(\nu_n^{s_k})^2w_n^{s_k}+\frac{\tau}{2}w_z z_\theta(x_n^{s_k},s_k)-\frac{\tau}{2}(\nu_n^{s_0})^2w_n^{s_0}. \tag*{(15)} z n s k + 1 = z n s k + 2 τ ( ν n s k ) 2 w n s k + 2 τ w z z θ ( x n s k , s k ) − 2 τ ( ν n s 0 ) 2 w n s 0 . (15)
Here, ν n s k \nu_n^{s_k} ν n s k denotes the scalar speed of the particle x n s k x_n^{s_k} x n s k , evolving jointly with the dual potential S n s k S_n^{s_k} S n s k under the learned growth rate z θ z_\theta z θ . The per-sample kinetic energy ( ν n s k ) 2 w n s k (\nu_n^{s_k})^2w_n^{s_k} ( ν n s k ) 2 w n s k acts as a conformal scaling factor for particle displacements, weighting the distance ∥ x n s k + 1 − x n s k ∥ 2 \lVert x_{n}^{s_k+1}-x_{n}^{s_k}\rVert^2 ∥ x n s k + 1 − x n s k ∥ 2 in the optimality loss (12) , to provide a discrete realization of the contact metric g c g^c g c . High metric values, occurring in regions of positive growth z θ z_\theta z θ , penalize large displacements, forcing v θ v_\theta v θ to predict smaller steps. As empirically shown in Sec. 7, this mechanism effectively refines the sampling resolution in high-density regions (see App. § 18 .6). In the optimality loss (12) , we also regularize the inter-marginal evolution of the learned growth rate z θ z_\theta z θ via the optimal action dynamics (15) . Reconstruction accuracy is enforced by requiring that the learned weighted ensemble ρ s k = { ( x n s k , w n s k ) } n = 1 N \rho^{s_k}=\{(x_n^{s_k},w_n^{s_k})\}_{n=1}^{N} ρ s k = {( x n s k , w n s k ) } n = 1 N remains close to the reference marginal ρ m = { ( x n m , w n m ) } n = 1 N m \rho^m=\{(x_n^m,w_n^m)\}_{n=1}^{N_m} ρ m = {( x n m , w n m ) } n = 1 N m at each observation step s k = m s_k=m s k = m . We achieve this by defining the feasibility loss (11) as a function of the total mass W s k = ∫ M ρ s k ( x ) d x ≈ ∑ n = 0 N w n s k W^{s_k}=\int_{\mathcal{M}}\rho^{s_k}(x)dx\approx\sum_{n=0}^{N}w_n^{s_k} W s k = ∫ M ρ s k ( x ) d x ≈ ∑ n = 0 N w n s k , and the distributional accuracy quantified by the weighted Wasserstein distance d W 2 d_{W_2} d W 2 . The weighted distance is necessary as the number N m N_m N m of available samples from the marginal ρ m \rho^m ρ m may differ from the batch size N N N used for the sample discretization of the geodesic. The training phase is summarized in Alg. 1, while implementation details and a computational complexity analysis are given in App. E.
Symplectic geometry of OT. Since symplectic dynamics is a special case of contact dynamics in which the action z t z^t z t does not influence the evolution of ( ρ t , S t ) (\rho^t,S^t) ( ρ t , S t ) , the entropy-regularized OT problem is recovered as a limiting case of the contact formulation (3) when w z → 0 w_z\to0 w z → 0 , as,
min v t J ( v t , ρ t ) = ∫ t 0 t M ∫ M 1 2 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x d t , s.t. ∂ t ρ t ( x ) = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ε Δ x ρ t ( x ) , ρ t m = ρ m , ∀ m ∈ { 0 , … , M } . (16) \begin{aligned}
\min_{v^t} \quad J(v^t,\rho^t)&=\int_{t_0}^{t_M}\int_{\mathcal{M}}\frac{1}{2}\lVert v^t(x)\rVert^2\rho^t(x)\,dx\,dt,\\
\text{s.t.}\quad\partial_t\rho^t(x)&=-\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)+\varepsilon\Delta_x\rho^t(x),\\
\rho^{t_m}&=\rho^m,\quad\forall m\in\{0,\ldots,M\}. \tag*{(16)}
\end{aligned} v t min J ( v t , ρ t ) s.t. ∂ t ρ t ( x ) ρ t m = ∫ t 0 t M ∫ M 2 1 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x d t , = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ε Δ x ρ t ( x ) , = ρ m , ∀ m ∈ { 0 , … , M } . (16)
The Hamiltonian of the optimization problem (16) is H ( ρ t , S t ) = K ( ρ t , S t ) + ε F ( S t , ρ t ) \mathcal{H}(\rho^t,S^t)=\mathcal{K}(\rho^t,S^t)+\varepsilon\mathcal{F}(S^t,\rho^t) H ( ρ t , S t ) = K ( ρ t , S t ) + ε F ( S t , ρ t ) , and consists solely of the kinetic energy and an entropy regularization term Chen et al., [14 ] (see App. § 17 .§ 1 ). The optimality conditions define a Hamiltonian system evolving on the symplectic manifold ( T ∗ P + ( M ) , ω ) (T^*\mathcal{P}_+(\mathcal{M}),\omega) ( T ∗ P + ( M ) , ω ) Cui et al., [19 ] ; Chow et al. [17 ] ; Neklyudov et al. [46 ] . As a consequence, the flow preserves volume within T ∗ P + ( M ) T^*\mathcal{P}_+(\mathcal{M}) T ∗ P + ( M ) , and the density ρ t ∈ P + ( M ) \rho^t\in\mathcal{P}_+(\mathcal{M}) ρ t ∈ P + ( M ) conserves its total mass ∫ M ρ t ( x ) d x \int_{\mathcal{M}}\rho^t(x)\,dx ∫ M ρ t ( x ) d x throughout the evolution, reflecting the balanced nature of classical OT.
Wasserstein-Fisher-Rao geometry of uOT. To connect distributions with different mass, several related works (Sec. 2) propose WFR-based extensions of the OT problem (16) , such as,
min v t , z t J ( v t , z t , ρ t ) = ∫ t 0 t M ∫ M ( 1 2 ∥ v t ( x ) ∥ 2 + w z ψ ( z t ( x ) ) ) ρ t ( x ) d x d t , s.t. ∂ t ρ t ( x ) = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ε Δ x ρ t ( x ) + z t ( x ) ρ t ( x ) , ρ t m = ρ m , ∀ m ∈ { 0 , … , M } . (17) \begin{aligned}
\min_{v^t,z^t}\quad J(v^t,z^t,\rho^t)&=\int_{t_0}^{t_M}\int_{\mathcal{M}}\left(\frac{1}{2}\lVert v^t(x)\rVert^2+w_z\psi(z^t(x))\right)\rho^t(x)\,dx\,dt,\\
\text{s.t.}\quad\partial_t\rho^t(x)&=-\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)+\varepsilon\Delta_x\rho^t(x)+z^t(x)\rho^t(x),\\
\rho^{t_m}&=\rho^m,\quad\forall m\in\{0,\ldots,M\}. \tag*{(17)}
\end{aligned} v t , z t min J ( v t , z t , ρ t ) s.t. ∂ t ρ t ( x ) ρ t m = ∫ t 0 t M ∫ M ( 2 1 ∥ v t ( x ) ∥ 2 + w z ψ ( z t ( x )) ) ρ t ( x ) d x d t , = − ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) + ε Δ x ρ t ( x ) + z t ( x ) ρ t ( x ) , = ρ m , ∀ m ∈ { 0 , … , M } . (17)
The dynamics constraint (10b) extends the FP equation (9b) by introducing a local mass growth rate z t z^t z t Lu et al., 2019, yielding a formulation equivalent to (3c). The growth rate z t z^t z t enters the cost functional (10a) through a penalty term ψ ( z t ) \psi(z^t) ψ ( z t ) , but unlike the contact Hamiltonian case, it does not correspond to the minimized action. The optimization problem (17) therefore retains the standard variational form and still yields a classical Hamiltonian structure.
When setting ψ ( z t ) = ( z t ( x ) ) 2 \psi(z^t)=(z^t(x))^2 ψ ( z t ) = ( z t ( x ) ) 2 , the Hamiltonian takes form H ( ρ t , S t ) = K ( ρ t , S t ) + ε F ( S t , ρ t ) \mathcal{H}(\rho^t,S^t)=\mathcal{K}(\rho^t,S^t)+\varepsilon\mathcal{F}(S^t,\rho^t) H ( ρ t , S t ) = K ( ρ t , S t ) + ε F ( S t , ρ t ) , where the kinetic energy is given by K ( ρ t , S t ) = 1 2 ∫ M ( ∥ ∇ x S t ( x ) ∥ 2 + 1 w z S t ( x ) 2 ) ρ t ( x ) d x \mathcal{K}(\rho^t,S^t)=\frac{1}{2}\int_{\mathcal{M}}(\lVert\nabla_xS^t(x)\rVert^2+\frac{1}{w_z}S^t(x)^2)\rho^t(x)dx K ( ρ t , S t ) = 2 1 ∫ M (∥ ∇ x S t ( x ) ∥ 2 + w z 1 S t ( x ) 2 ) ρ t ( x ) d x , and defines the WFR metric, which reinterprets the symplectic dynamics on T ∗ P + ( M ) T^*\mathcal{P}_+(\mathcal{M}) T ∗ P + ( M ) as a tractable geodesic ρ s ⊂ P + ( M ) \rho^s\subset\mathcal{P}_+(\mathcal{M}) ρ s ⊂ P + ( M ) Kondratyev et al., [35 ] ; Neklyudov et al. [46 ] . This yields a conic space that converges to the Wasserstein manifold as w z → ∞ w_z\to\infty w z → ∞ , where mass variation is suppressed and the WFR-based uOT reduces to the classic OT (16) . The optimality condition v t ( x ) = ∇ x z t ( x ) v^t(x)=\nabla_xz^t(x) v t ( x ) = ∇ x z t ( x ) (see App. § 17 .§ 2 for details) biases the transport dynamics toward regions of maximal mass growth. This induces a structural bias that can lead to mode collapse by discouraging the reconstruction of low-mass target modes Chapel et al., [12 ] ; Zhang et al. [85 ] . The same mechanism also introduces instability, as the transport velocity becomes sensitive to gradients of the growth field, which are often noisy in real datasets. This limitation is inherent to the volume-preserving symplectic dynamics that can only accommodate mass variation through a rigid coupling between z t z^t z t and v t v^t v t . Notably, CuOT (3) overcomes these structural constraints by leveraging contact geometry to decouple transport from mass growth, providing a principled framework for more accurate and controlled adaptation to mass variations.
Results
We benchmark the proposed CuOT framework against established OT and uOT baselines summarized in Table 1 . Additionally, to isolate the individual sources of performance gains, we conduct an ablation study comparing our full model against variants that systematically omit key components.
Ablation study We first evaluate CuOT on a synthetic 2D distribution-bridging task with known mode correspondences and mass dynamics. The source distribution comprises three Gaussian modes (400 samples each), and the target distribution features three distinct shapes: a Swiss roll, concentric rings, and a pinwheel (600, 600, and 200 samples, respectively). Matching the ground truth requires mass expansion (z θ > 0 z_\theta> 0 z θ > 0 ) on the first two modes and decay on the third, posing a challenge for OT frameworks. Furthermore, the deliberate misalignment between the transport direction and the growth gradient on the third mode highlights key failure modes in WFR. Table 2 summarizes ablation results and App. § 19 .§ 1 details all variants. The CuOT variant w/o Adaptive Step differs from the full model only in Equation (7c), where the contact metric g c g^c g c is replaced by the standard Wasserstein metric g W 2 g_{W_2} g W 2 . Although this produces a virtually identical growth field (Figure 2 a), removing the adaptive step reduces overall transport accuracy (W 2 W_2 W 2 : 0.10 → \to → 0.13; W 1 W_1 W 1 : 0.08 → \to → 0.10). The variant with growth only dependent on time z θ ( s k ) z_\theta(s_k) z θ ( s k ) performs the worst because it cannot capture spatially varying dynamics (Figure 2 d). WFR-based variants suffer from mode leakage as forward transport directions are incompatible with negative growth rates (Figure 2 b). Vanishing growth regularization (w z → 0 w_z \to0 w z → 0 ) eliminates leakage but results in a high Chamfer distance (> 0.3 > 0.3 > 0.3 ) and mode collapse, as the WFR geometry enforces positive growth across all modes. Finally, OT-based frameworks with constant sample weights cannot prevent misrouting, even when learning to scale global mass. This yields the highest mode leakage (17.7%) by assigning positive growth to samples in the low-mass cluster (Figure 2 c).
Table 2. Quantitative ablation study on the 2D multi-mode synthetic transport problem. Mode coverage is evaluated using the Chamfer distance (CD) between the target and generated distributions.
Figure 2. Learned growth field z θ ( x s k , s k ) z_\theta(x^{s_k},s_k) z θ ( x s k , s k ) across variants in the ablation study. a CuOT (Complete), b WFR Geometry, c Standard OT, and d w/ Time-Only Growth.
Single-cell reconstruction. We next benchmark the proposed CuOT framework on the trajectory inference from temporal snapshots of single-cell data, considering 5 well-established benchmarks (see Table 3 ). Analysis on these datasets reveals a fundamental mismatch: the Wasserstein distance d W 2 d^{W_2} d W 2 between successive marginals { p m } m = 0 M \{p^m\}_{m=0}^{M} { p m } m = 0 M is not proportional to the growth rate gradient ∇ x z t ( x ) \nabla_x z^t(x) ∇ x z t ( x ) . This means that real-world biological processes often violate the assumption underlying WFR-based methods. Even in the simulated three-gene dataset (Zhang et al., [85 ] ), the distance between successive distributions decreases monotonically, while ∇ x z t ( x ) \nabla_x z^t(x) ∇ x z t ( x ) remains nearly constant (see Table 12 in App. § 19 .§ 2 ), exposing a structural decoupling that WFR cannot accommodate. Figure 3 shows the 2D projection of the gene dynamics, alongside the predicted growth rate. The ground-truth dynamics consist of two distinct modes: a stationary primary mode and a dynamically evolving secondary mode. Balanced OT methods fail to model this dynamics, suffering from spurious cross-mode leakage. While uOT approaches successfully isolate the evolving mode, WFR-based solutions are hindered by the structural biases that degrade their reconstruction accuracy (see Table 4 ). In contrast, our CuOT approach achieves superior performance across all metrics. On real-world datasets, the gradient ∇ x z t \nabla_x z^t ∇ x z t is highly variable and noisy, rendering the WFR-based estimation of the transport term v t v^t v t unstable. This is evident in the zebrafish embryogenesis dynamics (Farrell et al. [21 ] ), where a single progenitor population branches into multiple lineage modes. As shown in Figure 4 , balanced OT methods achieve broad modality coverage, but fail to adapt sample weights, hindering precise matching. Conversely, although most uOT methods achieve higher scores in Table 5 through weight adjustments, their coverage of the different modalities remains unsatisfactory. By avoiding these structural biases, our CuOT approach consistently outperforms the state-of-the-art baselines, successfully capturing both the diversity and the precision of the biological dynamics.
Table 3. Summary of single-cell reconstruction experiments (details in App. § 19 .§ 2 ).
Table 13. Details on the mouse blood hematopoiesis dataset (Weinreb et al., [78 ] ).
Figure 8. Qualitative analysis on the mouse blood hematopoiesis dataset [78 ] . Predicted dynamics (t 0 ∙ t_0\bullet t 0 ∙ , t 1 ∙ t_1\bullet t 1 ∙ , t 2 ∙ t_2\bullet t 2 ∙ ) (top) and growth rate (bottom).
Table 14. Quantitative analysis on the mouse blood hematopoiesis dataset [78 ] .
Table 15. Details on the Emt dataset [18 ] .
Figure 9. Qualitative analysis on the EMT dataset [18 ] . Predicted dynamics (t 0 ∙ t_0\bullet t 0 ∙ , t 1 ∙ t_1\bullet t 1 ∙ , t 2 ∙ t_2\bullet t 2 ∙ , t 3 ∙ t_3\bullet t 3 ∙ ) (top) and growth rate (bottom).
Table 16. Quantitative analysis on the EMT dataset (Cook and Vanderhyden, [18 ] ).
Table 17. Details on the pancreatic β \beta β -cell differentiation dataset (Veres et al., [70 ] ).
Figure 10. Qualitative analysis on the pancreatic β \beta β -cell differentiation dataset (Veres et al., [70 ] ). Predicted dynamics (t 0 t_0 t 0 ●, t 1 t_1 t 1 ●, t 2 t_2 t 2 ●, t 3 t_3 t 3 ●, t 4 t_4 t 4 ●, t 5 t_5 t 5 ●, t 6 t_6 t 6 ●, t 7 t_7 t 7 ●) (top) and growth rate (bottom).
Table 18. Quantitative analysis on the pancreatic β \beta β -cell differentiation dataset (Veres et al., [70 ] ).
Table 19. Quantitative analysis on the pancreatic β \beta β -cell differentiation dataset (Veres et al., [70 ] ).
Table 20. Details on the zebrafish embryogenesis dataset Farrell et al. [21 ] .
Table 21. Quantitative analysis on the zebrafish embryogenesis dataset (Farrell et al., [21 ] ).
Figure 3. Top: Dynamics (t 0 t_0 t 0 🟣, t 1 t_1 t 1 🔵, t 2 t_2 t 2 🟢, t 3 t_3 t 3 🟦, t 4 t_4 t 4 🟡). Bottom: Growth rate (bottom) for Zhang et al. [85 ] .
Table 4. Quantitative analysis on the three-gene simulated dataset ([85 ] ).
Table 5. Quantitative analysis on the dataset Farrell et al. [21 ] . Results averaged over t = 1 , … , 6 t = 1, \ldots, 6 t = 1 , … , 6 .
Figure 4. Qualitative analysis on the zebrafish embryogenesis dataset ([21 ] ). Top: Predicted dynamics (t 0 t_0 t 0 , t 1 t_1 t 1 , t 2 t_2 t 2 , t 3 t_3 t 3 , t 4 t_4 t 4 , t 5 t_5 t 5 , t 6 t_6 t 6 ). Bottom: Growth rate.
Table 12. Details on the three-gene simulated dataset (Zhang et al., [85 ] ).
Unpaired dataset matching. We then test CuOT on unpaired image-matching tasks using the Flickr-Faces-HQ (FFHQ) human face dataset ([32 ] ). We employ pre-trained encoders to compute the stochastic dynamics in two distinct latent representations: a 512-dimensional space provided by ALAE ([51 ] ) and a 9216-dimensional space provided by e4e ([54 ] ). We partition the dataset into two age-based groups: adults (45K samples) and children (15K samples). The Adult → \to → Child task requires accurate early-stage dynamics in a highly-dense source to ensure correct transport to the target mode. Conversely, the Child → \to → Adult task demands high-fidelity reconstructions and a correct coverage of the target distribution support. Within the ALAE latent space (Table 6 ), balanced OT approaches yield larger distances from the target distribution than WFR-based uOT methods; however, they achieve the second-best FID scores on decoded images, which better measures mode coverage in the reconstruction. As illustrated in Figure 5 , although higher latent distances correlate with lower visual fidelity, balanced OT methods provide broader distribution coverage, producing images that faithfully reflect the target age group. In contrast, WFR-based uOT baselines frequently fail to complete the transport trajectory effectively and suffer from severe scalability bottlenecks in the higher-dimensional e4e latent space (Table 7 ). By leveraging contact geometry over the WFR structure, CuOT avoids mode collapse, achieving state-of-the-art performance across all metrics and latent representations with superior sample quality and target coverage. Additional details are provided in App. F.3, where Figure 12 –Figure 15 show how CuOT allocates more sampling steps in high-density regions to improve accuracy.
Table 6. Adult↔Child image generation on the FFHQ dataset ([32 ] ), ALAE encoder.
Table 7. Adult↔Child image generation on the FFHQ dataset ([32 ] ), e2e encoder.
Figure 5. Child → Adult generation on the FFHQ dataset ([32 ] ) with ALAE encoder.
Figure 12. Visualization of the bridge computed on the FFHQ dataset [32 ] by our CuOT method (ALAE encoder [51 ] ).
Figure 15. Visualization of the bridge computed on the FFHQ dataset ([32 ] ) by the OTCFM method Tong et al. [65 ] (ALAE encoder Pidhorskyi et al. [51 ] ).
Image-to-Video generation. We further evaluate our method by performing video trajectory reconstruction on the UCF101 dataset ([60 ] ). Here, the learned transport map reconstructs temporal frame sequences across M = 60 M = 60 M = 60 intermediate marginal distributions, with each marginal corresponding to a discrete time step along the video dynamics. Because the frame count per video remains constant, mass variation is negligible. Therefore, this benchmark primarily evaluates scalability and stability over high-dimensional, long-transport horizons. We operate in pre-trained latent spaces to focus on semantic video dynamics over pixel redundancies. Specifically, we ablate performance across two representations: (i) the Deep Compression Autoencoder ([13 ] ), which maps video frames into a 32 × 8 × 8 = 2048 32 \times8 \times8 = 2048 32 × 8 × 8 = 2048 -dimensional space, and (ii) the TiTok encoder ((Yu et al., 2024)), which compresses frames into a 128 × 32 128 \times32 128 × 32 sequence representation. We consider three action classes with approximately 100 videos each: BreastStroke , BlowingCandles , and CuttingInKitchen . As summarized in Table 8 , WFR-based uOT methods fail to scale to this regime, often producing collapsed trajectories that do not evolve beyond the initial frame, or exhibiting poor distributional alignment that leads to high noise and distortion. In contrast, CuOT successfully recovers the underlying video dynamics. Figure 6 shows a qualitative example for the BreastStroke class. In both latent representations, CuOT maintains high-fidelity reconstructions across the full temporal horizon. Detailed breakdowns across individual classes and latent representations are provided in App. § 19 .4.
Table 8. Image-to-Video generation on the UCF101 dataset ([60 ] ).
Figure 6. Image-to-Video generation on the UCF101 dataset ([60 ] ), for DC encoder.
Conclusions and Limitations
We introduced Contact unbalanced Optimal Transport (CuOT), a stable and scalable generative model for unpaired dataset matching grounded in contact geometry. CuOT outperforms traditional uOT approaches by eliminating structural biases toward high-density regions and adapting the sampling step size to the data geometry. As detailed in App. § 21 , while CuOT is architecture-agnostic, validation on structured data with spatial or sequential relationships, where Transformers are the established backbone, remains open. Furthermore, establishing formal connections with diffusion methods that match data via Fisher–Rao geometry in noise space remains an open direction for future work.
NeurIPS Paper Checklist
Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: Abstract and § 1 .
Guidelines:
The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Section 7, Appendix § 21 .
Guidelines:
The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
The authors are encouraged to create a separate “Limitations” section in their paper.
The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes]
Justification: Section 4, 6, Appendix § 15 .4, C.1, D.1, D.2.
Guidelines:
The answer [N/A] means that the paper does not include theoretical results.
All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
All assumptions should be clearly stated or referenced in the statement of any theorems.
The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
Theorems and Lemmas that the proof relies upon should be properly referenced.
Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Section 5, Appendix § 18 , F.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed
instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [No]
Justification: We will release code for full reproducibility upon publication of the paper.
Guidelines:
The answer [N/A] means that paper does not include experiments requiring code.
Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: Appendix § 18 , § 19 .
Guidelines:
The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
The full details can be provided either with the code, in appendix, or as supplemental material.
Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: Section F, Appendix § 19 .
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
The assumptions made should be given (e.g., Normally distributed errors).
It should be clear whether the error bar is the standard deviation or the standard error of the mean.
It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: Appendix § 19 .
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines ?
Answer: [Yes]
Justification: N/A
Guidelines:
The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Appendix § 20 .
Guidelines:
The answer [N/A] means that there is no societal impact of the work performed.
If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: N/A
Guidelines:
The answer [N/A] means that the paper poses no such risks.
Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: Appendix F.
Guidelines:
The answer [N/A] means that the paper does not use existing assets.
The authors should cite the original paper that produced the code package or dataset.
The authors should state which version of the asset is used and, if possible, include a URL.
The name of the license (e.g., CC-BY 4.0) should be included for each asset.
For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [No]
Justification: We will release code along with examples and documentation for full reproducibility upon publication of the paper.
Guidelines:
The answer [N/A] means that the paper does not release new assets.
Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
The paper should discuss whether and how consent was obtained from people whose asset is used.
At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: N/A
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: N/A
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: N/A
Guidelines:
The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.
Notation
Table 9. Summary of mathematical notation.
Geometric details
Symplectic and Contact Geometries
Hamiltonian and contact Hamiltonian dynamics are governed by specific energy constraints that can be analyzed via differential geometry as flows on specialized manifolds. Hamiltonian dynamics is energy-conserving and evolves on a symplectic manifold . Contact Hamiltonian dynamics is more general, allowing for variable energy levels, and takes place on a contact manifold . Their formal definitions and key differences are discussed next.
Symplectic and contact structures. Let N \mathcal{N} N be a smooth compact manifold, and let T x N T_x\mathcal{N} T x N denote the tangent space at x ∈ N x \in\mathcal{N} x ∈ N . The collection of all the tangent spaces identifies the tangent bundle T N = ⋃ x ∈ N T x N T\mathcal{N} = \bigcup_{x \in\mathcal{N}} T_x\mathcal{N} T N = ⋃ x ∈ N T x N . A vector field X : N → T N X:\mathcal{N} \to T\mathcal{N} X : N → T N assigns a tangent vector v v v to each point x ∈ N x \in\mathcal{N} x ∈ N . The set of all the vector fields over T N T\mathcal{N} T N is denoted as Γ ( T N ) \Gamma(T\mathcal{N}) Γ ( T N ) . A differential 1-form α : T N → R \alpha:T\mathcal{N} \to\mathbb{R} α : T N → R is a smooth map field acting on vectors of the tangent bundle. For a smooth function f : N → R f:\mathcal{N} \to\mathbb{R} f : N → R , the 1-form α = d f \alpha= df α = df generalizes the gradient from Euclidean spaces. Specifically, d f df df measures the variation of f f f under an infinitesimal displacement on N \mathcal{N} N . This displacement is locally described by a starting point x x x and a direction v v v , such that ( x , v ) ∈ T N (x,v) \in T\mathcal{N} ( x , v ) ∈ T N . Alternatively, it can be globally expressed by a vector field X X X . The variation of f f f along the vector field X X X is given by d f ( X ) df(X) df ( X ) . This variation is independent of the choice of reference frame. To preserve this invariance, d f df df must transform covariantly with X X X . Consequently, the 1-form α = d f \alpha= df α = df resides in the cotangent bundle T ∗ N T^*\mathcal{N} T ∗ N , the dual space to T N T\mathcal{N} T N . The symplectic and contact structures provide two distinct mechanisms for associating a 1-form to a vector field, thereby establishing connections between the tangent and cotangent bundles. By considering the dynamics governed by the vector field and the scalar function defining the 1-form, a relationship between these elements emerges, as illustrated in Figure 7 .
Figure 7. The same scalar function f f f , associated with the 1-form α = d f \alpha= df α = df , gives rise to two distinct vector fields under the symplectic (left) and contact (right) geometric structures. The streamlines of these vector fields are illustrated on a representation of the state manifold. In symplectic geometry, the streamlines are tangent to the level curves of f f f , representing isoenergetic trajectories where f f f remains constant, thus describing the dynamics of conservative systems. In contrast, in contact geometry, a single flow line can traverse different energy levels.
Symplectic geometry. A differential 2-form ω : T N × T N → R \omega:T\mathcal{N} \times T\mathcal{N} \to\mathbb{R} ω : T N × T N → R is a skew-symmetric, bilinear, and smooth field of maps acting on pairs of tangent vectors. A 2-form is called symplectic if it is both closed (d ω = 0 d\omega= 0 d ω = 0 ) and non-degenerate. The symplectic form lacks the properties required to define an inner product. However, it still establishes a fundamental relation between differential 1-forms and vector fields: Given a 1-form d f df df , the symplectic form ω \omega ω uniquely determines a vector field X f X_f X f that is tangent to the level sets of f f f . This relation is defined by,
d f ( X ) = ω ( X f , X ) , ∀ X ∈ Γ ( T N ) . (18) df(X) = \omega(X_f,X), \quad\forall X \in\Gamma(T\mathcal{N}). \tag*{(18)} df ( X ) = ω ( X f , X ) , ∀ X ∈ Γ ( T N ) . (18)
By definition, f f f remains constant along the flow of X f X_f X f , which in turn preserves the symplectic form ω \omega ω , i.e., L X f ω = 0 \mathcal{L}_{X_f}\omega= 0 L X f ω = 0 where L X f \mathcal{L}_{X_f} L X f denotes the Lie derivative ([86 ] ). Since the symplectic form captures a generalized notion of signed area on pairs of tangent vectors, its invariance under the flow implies the preservation of volume. In this framework, the function f f f is interpreted as a conserved energy, or equivalently, as a Hamiltonian H \mathcal{H} H . The symplectic structure thereby endows N \mathcal{N} N with a natural geometric framework for formulating Hamiltonian dynamics (Tokasi and Pickl, 2022). The pair ( N , ω ) (\mathcal{N},\omega) ( N , ω ) is referred to as a symplectic manifold. Notably, the non-degeneracy of ω \omega ω implies that N \mathcal{N} N must be even-dimensional.
Contact geometry. While symplectic manifolds provide a geometric framework for modeling the dynamics of volume-preserving, conservative systems in classical mechanics, a more general approach is required to describe non-conservative systems. This is addressed by contact manifolds, the odd-dimensional counterparts of symplectic manifolds [9 ] (Geiges 2001). A contact manifold is defined as ( N , η ) (\mathcal{N}, \eta) ( N , η ) , where N \mathcal{N} N is an odd-dimensional smooth manifold, and η \eta η is a non-degenerate 1-form known as the contact form [26 ] . The contact form satisfies the maximal non-integrability condition, meaning that the top-degree differential form η ∧ ( d η ) d ≠ 0 \eta\wedge(\mathrm{d}\eta)^d \ne0 η ∧ ( d η ) d = 0 is nowhere vanishing on N \mathcal{N} N . This form is constructed by taking the exterior product of η \eta η with the d d d -fold wedge product of its exterior derivative d η \mathrm{d}\eta d η , i.e.,
( d η ) d = d η ∧ ⋯ ∧ d η ⏟ d times . (19) (\mathrm{d}\eta)^d = \underbrace{\mathrm{d}\eta\wedge\cdots\wedge\mathrm{d}\eta}_{d\ \text{times}}. \tag*{(19)} ( d η ) d = d times d η ∧ ⋯ ∧ d η . (19)
The ( 2 d + 1 ) (2d+1) ( 2 d + 1 ) -form defines a volume form on N \mathcal{N} N , ensuring that the hyperplanes ker ( η ) ⊂ T N \ker(\eta) \subset T\mathcal{N} ker ( η ) ⊂ T N , constraining the dynamics on the contact manifold, do not form a foliation, i.e., they do not partition the manifold into lower-dimensional submanifolds (Geiges, 2001, 2008). Geometrically, this means that the contact distribution imposes non-holonomic constraints : it restricts the admissible directions of motion at each point without confining the dynamics to a fixed submanifold or energy level. This property is crucial for modeling systems where energy can change over time, enabling constraints on energy behavior without enforcing conservation.
Like symplectic geometry, contact geometry connects scalar functions to vector fields, enabling the description of dynamical systems (Zadra, 2023). Given an energy function H : N → R \mathcal{H} : \mathcal{N} \to\mathbb{R} H : N → R , the dynamics on a contact manifold are defined by a contact Hamiltonian vector field X H X_{\mathcal{H}} X H , as follows,
d H ( X ) = d η ( X H , X ) − L X H η ( X ) , ∀ X ∈ Γ ( T N ) . (20) \mathrm{d}\mathcal{H}(X) = \mathrm{d}\eta(X_{\mathcal{H}}, X) - \mathcal{L}_{X_{\mathcal{H}}}\eta(X), \quad\forall X \in\Gamma(T\mathcal{N}). \tag*{(20)} d H ( X ) = d η ( X H , X ) − L X H η ( X ) , ∀ X ∈ Γ ( T N ) . (20)
Unlike symplectic geometry, where dynamics are confined to energy-preserving flows along the level sets of the Hamiltonian, contact geometry allows for an additional component of motion. Specifically, the dynamics on a contact manifold are not restricted to the term d η ( X H , X ) \mathrm{d}\eta(X_{\mathcal{H}}, X) d η ( X H , X ) , which lies tangent to the level sets of H \mathcal{H} H , but also include a transverse component L X H η ( X ) \mathcal{L}_{X_{\mathcal{H}}}\eta(X) L X H η ( X ) , arising from the non-degeneracy of the contact form. Consequently, while in symplectic geometry the symplectic form ω \omega ω is strictly preserved, contact geometry allows the contact form η \eta η to be preserved only up to a scaling factor a ∈ R a \in\mathbb{R} a ∈ R [9 ] . Consequently, the volume form η ∧ ( d η ) d \eta\wedge(\mathrm{d}\eta)^d η ∧ ( d η ) d need not be conserved along the flow, permitting the dynamics to unfold on regions of the contact manifold N \mathcal{N} N of varying measure.
Riemannian Geometry
The Riemannian metric. Let M \mathcal{M} M be a smooth compact manifold. A Riemannian metric g : T M × T M → R g : T\mathcal{M} \times T\mathcal{M} \to\mathbb{R} g : T M × T M → R is a smooth, symmetric, and positive-definite bilinear field of maps defined on pairs of vectors in the tangent bundle. This enables the introduction of an inner product on the tangent spaces of the manifold, allowing us to measure distances and curve lengths. For a curve x ( t ) : [ t 0 , t 1 ] → M x(t) : [t_0,t_1] \to\mathcal{M} x ( t ) : [ t 0 , t 1 ] → M , the length l l l w.r.t. the metric g g g is l = ∫ t 0 t 1 g ( x ˙ ( t ) , x ˙ ( t ) ) d t l = \int_{t_0}^{t_1} \sqrt{g(\dot{x}(t),\dot{x}(t))}\,\mathrm{d}t l = ∫ t 0 t 1 g ( x ˙ ( t ) , x ˙ ( t )) d t , where x ˙ ( t ) ∈ T x ( t ) M \dot{x}(t) \in T_{x(t)}\mathcal{M} x ˙ ( t ) ∈ T x ( t ) M is the vector tangent to the curve at x ( t ) x(t) x ( t ) . The curve minimizing this length between two points x ( t 0 ) x(t_0) x ( t 0 ) and x ( t 1 ) x(t_1) x ( t 1 ) on M \mathcal{M} M is called a geodesic . Geodesics generalize straight lines in Euclidean space to curved spaces, representing the shortest paths in the geometry induced by g g g .
Hamiltonian geodesics. The geodesic flow x ( t ) x(t) x ( t ) on a Riemannian manifold ( M , g ) (\mathcal{M},g) ( M , g ) lifts to the joint evolution of coordinates ( x ( t ) , α ( t ) , x ˙ ( t ) ) (x(t),\alpha(t),\dot{x}(t)) ( x ( t ) , α ( t ) , x ˙ ( t )) on the cotangent bundle T ∗ M T^*\mathcal{M} T ∗ M [2 ] . This extended dynamics is governed by an energy function H ( x , α ) : T ∗ M → R = g − 1 ( α , α ) \mathcal{H}(x,\alpha) : T^*\mathcal{M} \to\mathbb{R} = g^{-1}(\alpha,\alpha) H ( x , α ) : T ∗ M → R = g − 1 ( α , α ) , which remains constant along the flow. A reparameterization d s = H d t \mathrm{d}s = \sqrt{\mathcal{H}}\mathrm{d}t d s = H d t links the trajectory of the integrated dynamical system at time t t t on T ∗ M T^*\mathcal{M} T ∗ M with the length of the corresponding geodesic on M \mathcal{M} M . This framework reveals a fundamental connection between geodesic flows and Hamiltonian dynamics in the special case where the Hamiltonian consists solely of a kinetic energy term H = K \mathcal{H} = \mathcal{K} H = K . The cotangent bundle T ∗ M T^*\mathcal{M} T ∗ M is naturally equipped with a symplectic structure, making it a symplectic manifold ( T ∗ R , ω ) (T^*\mathcal{R},\omega) ( T ∗ R , ω ) .
Contact Hamiltonian geodesics. This formulation admits a further generalization within the framework of contact Hamiltonian systems. In this setting, the contact Hamiltonian H ( x , α , z ) \mathcal{H}(x,\alpha,z) H ( x , α , z ) depends explicitly on the action-like variable z ∈ R z \in\mathbb{R} z ∈ R , which evolves along the flow on the augmented space ( T ∗ R × R , η ) (T^*\mathcal{R} \times\mathbb{R},\eta) ( T ∗ R × R , η ) . Since the reparameterization d s = K d t \mathrm{d}s = \sqrt{\mathcal{K}}\mathrm{d}t d s = K d t is no longer constant, the Hamiltonian does not define a unique metric, rather inducing a family of Riemannian metrics { K g } \{\sqrt{\mathcal{K}g}\} { K g } scaled by a z z z -dependent conformal factor. Consequently, the resulting dynamics can be interpreted as a piecewise geodesic flow on a manifold where the metric evolves according to the value of z z z .
Geometry of the Probability Space
Symplectic and Contact Structures on the Wasserstein Manifold. Denoting the Wasserstein manifold by P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) , its cotangent bundle T ∗ P + ( M ) T^{*}\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) is an even-dimensional space whose state is described by the local coordinate chart ( ρ t , S t ) (\rho^{t},S^{t}) ( ρ t , S t ) . The balanced OT problem induces a volume-preserving Hamiltonian dynamics on ( T ∗ P + ( M ) , ω ) (T^{*}\mathcal{P}^{+}(\mathcal{M}),\omega) ( T ∗ P + ( M ) , ω ) , with symplectic form given by
ω ( ( ∂ t ρ 1 t , ∂ t S 1 t ) , ( ∂ t ρ 2 t , ∂ t S 2 t ) ) : = ∫ M ∂ t S 1 t ( x ) ∂ t ρ 2 t ( x ) d x − ∫ M ∂ t S 2 t ( x ) ∂ t ρ 1 t ( x ) d x , (21) \omega\left((\partial_{t}\rho_{1}^{t},\partial_{t}S_{1}^{t}),(\partial_{t}\rho_{2}^{t},\partial_{t}S_{2}^{t})\right) := \int_{\mathcal{M}}\partial_{t}S_{1}^{t}(x)\partial_{t}\rho_{2}^{t}(x)\,\mathrm{d}x-\int_{\mathcal{M}}\partial_{t}S_{2}^{t}(x)\partial_{t}\rho_{1}^{t}(x)\,\mathrm{d}x, \tag*{(21)} ω ( ( ∂ t ρ 1 t , ∂ t S 1 t ) , ( ∂ t ρ 2 t , ∂ t S 2 t ) ) := ∫ M ∂ t S 1 t ( x ) ∂ t ρ 2 t ( x ) d x − ∫ M ∂ t S 2 t ( x ) ∂ t ρ 1 t ( x ) d x , (21)
where ( ∂ t ρ 1 t , ∂ t S 1 t ) , ( ∂ t ρ 2 t , ∂ t S 2 t ) ∈ T ( ρ t , S t ) ( T ∗ P + ( M ) ) (\partial_{t}\rho_{1}^{t},\partial_{t}S_{1}^{t}),(\partial_{t}\rho_{2}^{t},\partial_{t}S_{2}^{t})\in T_{(\rho^{t},S^{t})}(T^{*}\mathcal{P}^{+}(\mathcal{M})) ( ∂ t ρ 1 t , ∂ t S 1 t ) , ( ∂ t ρ 2 t , ∂ t S 2 t ) ∈ T ( ρ t , S t ) ( T ∗ P + ( M )) are admissible tangent vectors. The conservation properties of this dynamics are evident from the associated evolution equations (Appendix Appendix § 17 .§ 1 ), which preserve both the kinetic energy, as the velocity field remains constant along trajectories, and the total probability mass ∫ M ρ t ( x ) d x \int_{\mathcal{M}}\rho^{t}(x)\,\mathrm{d}x ∫ M ρ t ( x ) d x . These conservation properties can be relaxed by augmenting the state space with an additional scalar variable z t ∈ R z^{t}\in\mathbb{R} z t ∈ R , yielding a contact dynamical system with extended state ( ρ t , S t , z t ) ∈ T ∗ P + ( M ) × R (\rho^{t},S^{t},z^{t})\in T^{*}\mathcal{P}^{+}(\mathcal{M})\times\mathbb{R} ( ρ t , S t , z t ) ∈ T ∗ P + ( M ) × R . The additional degree of freedom z t z^{t} z t tracks the accumulated action of the dynamics and defines a direction transverse to T ∗ P + ( M ) T^{*}\mathcal{P}^{+}(\mathcal{M}) T ∗ P + ( M ) , foliating the contact manifold into a family of symplectic hyperplanes parametrized by the value of z t z^{t} z t . The contact manifold ( T ∗ P + ( M ) × R , η ) (T^{*}\mathcal{P}^{+}(\mathcal{M})\times\mathbb{R},\eta) ( T ∗ P + ( M ) × R , η ) is endowed with a form η \eta η , representing a signed length, specifically the projection of the velocity ( ∂ t ρ t , ∂ t S t , ∂ t z t ) ∈ T ( ρ t , S t , z t ) ( T ∗ P + ( M ) × R ) (\partial_{t}\rho^{t},\partial_{t}S^{t},\partial_{t}z^{t})\in T_{(\rho^{t},S^{t},z^{t})}(T^{*}\mathcal{P}^{+}(\mathcal{M})\times\mathbb{R}) ( ∂ t ρ t , ∂ t S t , ∂ t z t ) ∈ T ( ρ t , S t , z t ) ( T ∗ P + ( M ) × R ) onto the transverse direction, i.e., the part of the dynamics that escapes the symplectic hyperplane. The expression of η \eta η in local coordinates depends on the choice of coordinate system. The two most common options are the canonical coordinates, leading to η s t d 1 \eta_{\mathrm{std1}} η std1 , and the Legendre-variant coordinates, leading to η s t d 2 \eta_{\mathrm{std2}} η std2 ([10 ] ),
η s t d 1 = ∂ t z ~ t − ∫ M S ~ t ( x ) ∂ t ρ ~ t ( x ) d x , (22) \eta_{\mathrm{std1}}=\partial_{t}\widetilde{z}^{t}-\int_{\mathcal{M}}\widetilde{S}^{t}(x)\partial_{t}\widetilde{\rho}^{t}(x)\,\mathrm{d}x, \tag*{(22)} η std1 = ∂ t z t − ∫ M S t ( x ) ∂ t ρ t ( x ) d x , (22)
η s t d 2 = ∂ t z t − 1 2 ∫ M S t ( x ) ∂ t ρ t ( x ) d x + 1 2 ∫ M ρ t ( x ) ∂ t S t ( x ) d x . (23) \eta_{\mathrm{std2}}=\partial_{t}z^{t}-\frac{1}{2}\int_{\mathcal{M}}S^{t}(x)\partial_{t}\rho^{t}(x)\,\mathrm{d}x+\frac{1}{2}\int_{\mathcal{M}}\rho^{t}(x)\partial_{t}S^{t}(x)\,\mathrm{d}x. \tag*{(23)} η std2 = ∂ t z t − 2 1 ∫ M S t ( x ) ∂ t ρ t ( x ) d x + 2 1 ∫ M ρ t ( x ) ∂ t S t ( x ) d x . (23)
As the contact form governs the relationship between the scalar contact Hamiltonian H \mathcal{H} H and the associated vector field, each of the two forms gives rise to a distinct set of evolution equations,
∂ t ρ ~ t = ∂ S ~ H ( ⋅ ) , ∂ t S ~ t = − ∂ ρ ~ H ( ⋅ ) − S ~ t ∂ z ~ H ( ⋅ ) , ∂ t z ~ t = S ~ t ∂ S ~ H ( ⋅ ) − H ( ⋅ ) , (24) \begin{aligned}
\partial_{t}\widetilde{\rho}^{t} &= \partial_{\widetilde{S}}\mathcal{H}(\cdot),\\
\partial_{t}\widetilde{S}^{t} &= -\partial_{\widetilde{\rho}}\mathcal{H}(\cdot)-\widetilde{S}^{t}\partial_{\widetilde{z}}\mathcal{H}(\cdot),\\
\partial_{t}\widetilde{z}^{t} &= \widetilde{S}^{t}\partial_{\widetilde{S}}\mathcal{H}(\cdot)-\mathcal{H}(\cdot), \tag*{(24)}
\end{aligned} ∂ t ρ t ∂ t S t ∂ t z t = ∂ S H ( ⋅ ) , = − ∂ ρ H ( ⋅ ) − S t ∂ z H ( ⋅ ) , = S t ∂ S H ( ⋅ ) − H ( ⋅ ) , (24)
∂ t ρ t = ∂ S H ( ⋅ ) − 1 2 ρ t ∂ z H ( ⋅ ) , ∂ t S t = − ∂ ρ H ( ⋅ ) − 1 2 S t ∂ z H ( ⋅ ) , ∂ t z t = 1 2 ( S t + ρ t ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) . (25) \begin{aligned}
\partial_{t}\rho^{t} &= \partial_{S}\mathcal{H}(\cdot)-\frac{1}{2}\rho^{t}\partial_{z}\mathcal{H}(\cdot),\\
\partial_{t}S^{t} &= -\partial_{\rho}\mathcal{H}(\cdot)-\frac{1}{2}S^{t}\partial_{z}\mathcal{H}(\cdot),\\
\partial_{t}z^{t} &= \frac{1}{2}\left(S^{t}+\rho^{t}\partial_{\rho}\mathcal{H}(\cdot)\right)-\mathcal{H}(\cdot). \tag*{(25)}
\end{aligned} ∂ t ρ t ∂ t S t ∂ t z t = ∂ S H ( ⋅ ) − 2 1 ρ t ∂ z H ( ⋅ ) , = − ∂ ρ H ( ⋅ ) − 2 1 S t ∂ z H ( ⋅ ) , = 2 1 ( S t + ρ t ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) . (25)
A contact dynamics is characterized by η \eta η being rescaled by a constant factor along its flow, a condition strictly weaker than that of a symplectic dynamics: the symplectic form ω \omega ω on each hyperplane need not be preserved, allowing the contact flow to traverse hyperplanes of varying volume. As shown in Appendix § 16 .§ 1 , this volume variation on the augmented cotangent bundle induces mass variation on the probability space, providing a geometrically principled framework for the uOT without complicating the metric structure of the problem.
Geodesics on the Wasserstein Manifold. Analogously to the framework detailed in Appendix § 15 .§ 2 , the symplectic dynamics ( ρ t , S t ) ⊂ ( T ∗ P + ( M ) , ω ) (\rho^{t},S^{t})\subset(T^{*}\mathcal{P}^{+}(\mathcal{M}),\omega) ( ρ t , S t ) ⊂ ( T ∗ P + ( M ) , ω ) project to a geodesic on the Wasserstein manifold P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) . Since the Hamiltonian function H = ∫ M 1 2 ∥ ∇ S t ( x ) ∥ 2 ρ t ( x ) d x \mathcal{H}=\int_{\mathcal{M}}\frac{1}{2}\lVert\nabla S^{t}(x)\rVert^{2}\rho^{t}(x)\,\mathrm{d}x H = ∫ M 2 1 ∥ ∇ S t ( x ) ∥ 2 ρ t ( x ) d x represents the minimal constant kinetic energy K \mathcal{K} K associated with the symplectic dynamics, the projected trajectory minimizes the Wasserstein distance, equivalent to the action functional (see Appendix § 15 .4), thereby constituting a geodesic. In the contact Hamiltonian setting, the dynamics ( ρ t , S t , z t ) ⊂ ( T ∗ P + ( M ) × R , η ) (\rho^{t},S^{t},z^{t})\subset(T^{*}\mathcal{P}^{+}(\mathcal{M})\times\mathbb{R},\eta) ( ρ t , S t , z t ) ⊂ ( T ∗ P + ( M ) × R , η ) are characterized by a contact Hamiltonian H ( ρ t , S t , z t ) \mathcal{H}(\rho^{t},S^{t},z^{t}) H ( ρ t , S t , z t ) whose value evolves over time. This implies that the Wasserstein metric is no longer scaled uniformly. Instead, the geometry is governed by a dynamic scaling factor, resulting in a conformal transformation of the metric expressed as K g W 2 \sqrt{\mathcal{K}g_{\mathcal{W}^{2}}} K g W 2 .
Proposition 1. Consider the dynamic formulation of OT (Benamou and Brenier [5 ] ),
J = ∫ t 0 t M ∫ M ∥ v t ( x ) ∥ 2 ρ t ( x ) d x d t . (26) J=\int_{t_0}^{t_M}\int_{\mathcal{M}}\left\|v^t(x)\right\|^2\rho^t(x)\,dx\,dt. \tag*{(26)} J = ∫ t 0 t M ∫ M v t ( x ) 2 ρ t ( x ) d x d t . (26) At optimality, this functional coincides with the Wasserstein distance between the endpoint densities.
Proof. To interpret this functional as a distance, consider a curve ρ t \rho^t ρ t connecting two probability densities. At optimality, the density evolution satisfies the continuity equation ∂ t ρ t + ∇ x ⋅ ( ρ t ∇ x S t ( x ) ) \partial_t\rho^t+\nabla_x\cdot(\rho^t\nabla_xS^t(x)) ∂ t ρ t + ∇ x ⋅ ( ρ t ∇ x S t ( x )) for some potential S t S^t S t , where ∇ x S t ( x ) = v t ( x ) \nabla_xS^t(x)=v^t(x) ∇ x S t ( x ) = v t ( x ) represents a velocity field. Substituting this representation into (26) yields a kinetic energy of the form,
∫ t 0 t M ∫ M ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x d t . (27) \int_{t_0}^{t_M}\int_{\mathcal{M}}\left\|\nabla_xS^t(x)\right\|^2\rho^t(x)\,dx\,dt. \tag*{(27)} ∫ t 0 t M ∫ M ∇ x S t ( x ) 2 ρ t ( x ) d x d t . (27)
By focusing on the temporal integrand and leveraging the scalar nature of ρ t \rho^t ρ t , we can write,
∫ M ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x = ∫ M ∇ x S t ( x ) ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) d x . (28) \int_{\mathcal{M}}\left\|\nabla_xS^t(x)\right\|^2\rho^t(x)\,dx=\int_{\mathcal{M}}\nabla_xS^t(x)\cdot\left(\rho^t(x)\nabla_xS^t(x)\right)\,dx. \tag*{(28)} ∫ M ∇ x S t ( x ) 2 ρ t ( x ) d x = ∫ M ∇ x S t ( x ) ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) d x . (28)
Applying integration by parts (assuming suitable boundary conditions),
∫ M S t ( x ) ( − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) ) d x = ∫ M S t ( x ) Δ ρ S t ( x ) d x . (29) \int_{\mathcal{M}}S^t(x)\left(-\nabla_x\cdot\left(\rho^t(x)\nabla_xS^t(x)\right)\right)\,dx=\int_{\mathcal{M}}S^t(x)\Delta_{\rho}S^t(x)\,dx. \tag*{(29)} ∫ M S t ( x ) ( − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) ) d x = ∫ M S t ( x ) Δ ρ S t ( x ) d x . (29)
The continuity equation connects the density variation ∂ t ρ t \partial_t\rho^t ∂ t ρ t and the potential S t S^t S t by the weighted Laplacian operator, Δ ρ = − ∇ x ⋅ ( ρ t ∇ x ) \Delta_{\rho}=-\nabla_x\cdot(\rho^t\nabla_x) Δ ρ = − ∇ x ⋅ ( ρ t ∇ x ) (Chow et al. [17 ] ), as
∂ t ρ t ( x ) = Δ ρ S t ( x ) , equivalently S t ( x ) = Δ ρ † ∂ t ρ t ( x ) . (30) \partial_t\rho^t(x)=\Delta_{\rho}S^t(x),\qquad\text{equivalently}\qquad S^t(x)=\Delta_{\rho}^{\dagger}\partial_t\rho^t(x). \tag*{(30)} ∂ t ρ t ( x ) = Δ ρ S t ( x ) , equivalently S t ( x ) = Δ ρ † ∂ t ρ t ( x ) . (30)
Using (30) in , this becomes
g W 2 2 = ∫ M S t ( x ) ∂ t ρ t ( x ) d x . (31) g_{W_2}^2=\int_{\mathcal{M}}S^t(x)\,\partial_t\rho^t(x)\,dx. \tag*{(31)} g W 2 2 = ∫ M S t ( x ) ∂ t ρ t ( x ) d x . (31)
Substituting S t ( x ) = Δ ρ † ∂ t ρ t ( x ) S^t(x)=\Delta_{\rho}^{\dagger}\partial_t\rho^t(x) S t ( x ) = Δ ρ † ∂ t ρ t ( x ) in (29) , we obtain
g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) = ∫ M ∂ t ρ t ( x ) ( − Δ ρ ) † ∂ t ρ t ( x ) d x , (32) g_{W_2}^2(\partial_t\rho^t,\partial_t\rho^t)=\int_{\mathcal{M}}\partial_t\rho^t(x)(-\Delta_{\rho})^{\dagger}\partial_t\rho^t(x)\,dx, \tag*{(32)} g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) = ∫ M ∂ t ρ t ( x ) ( − Δ ρ ) † ∂ t ρ t ( x ) d x , (32)
which matches the standard formulation of the Wasserstein metric (2) . Therefore, the kinetic energy functional (26) can be equivalently expressed as
J = ∫ t 0 t M g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) d t , (33) J=\int_{t_0}^{t_M}g_{W_2}^2(\partial_t\rho^t,\partial_t\rho^t)\,dt, \tag*{(33)} J = ∫ t 0 t M g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) d t , (33)
which corresponds to the energy of a curve in P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) endowed with the Wasserstein metric. Minimizing J J J thus amounts to computing a geodesic. This interpretation can be made explicit by introducing an arc-length parametrization. Defining d s = ∥ v t ( x ) ∥ 2 ρ t ( x ) d t = g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) d t ds=\sqrt{\|v^t(x)\|^2\rho^t(x)}\,dt=\sqrt{g_{W_2}^2(\partial_t\rho^t,\partial_t\rho^t)}\,dt d s = ∥ v t ( x ) ∥ 2 ρ t ( x ) d t = g W 2 2 ( ∂ t ρ t , ∂ t ρ t ) d t , the functional reduces to J = ∫ s 0 s M d s J=\int_{s_0}^{s_M}ds J = ∫ s 0 s M d s , showing that the minimization of kinetic energy is equivalent to minimizing the length of the curve. □
Contact Unbalanced Optimal Transport
This part presents the derivation of the Hamiltonian structure of the Contact uOT problem (3) (Section 4), obtained via the method of Lagrange multipliers. To transform the constrained optimization problem (3) into an unconstrained one, we incorporate the generalized Fokker–Planck equation, scaled by the Lagrange multiplier S t S^t S t , into the original running cost, yielding the augmented Lagrangian,
J ( v t , ρ t , S t , z t ) = ∫ t 0 t M ∫ M L ( v t , ρ t , S t , z t ) d x d t ; (34) J(v^t,\rho^t,S^t,z^t)=\int_{t_0}^{t_M}\int_{\mathcal{M}}\mathcal{L}(v^t,\rho^t,S^t,z^t)\,\mathrm{d}x\,\mathrm{d}t; \tag*{(34)} J ( v t , ρ t , S t , z t ) = ∫ t 0 t M ∫ M L ( v t , ρ t , S t , z t ) d x d t ; (34)
L ( v t , ρ t , S t , z t ) = 1 2 ∥ v t ( x ) ∥ 2 + 1 2 w z z t ( x ) 2 + S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) ) , (35) \mathcal{L}(v^t,\rho^t,S^t,z^t)=\frac{1}{2}\lVert v^t(x)\rVert^2+\frac{1}{2}w_z z^t(x)^2+S^t(x)\left(\partial_t\rho^t(x)+\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)\right), \tag*{(35)} L ( v t , ρ t , S t , z t ) = 2 1 ∥ v t ( x ) ∥ 2 + 2 1 w z z t ( x ) 2 + S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) ) , (35)
dependent on the optimization variable v t v^t v t and the contact state ( ρ t , S t , z t ) (\rho^t,S^t,z^t) ( ρ t , S t , z t ) . The problem (3) falls outside the scope of classical variational calculus due to the explicit dependence of the cost functional J J J on the evolving action z t z^t z t . Instead, it is naturally framed within non-conservative variational principles, where J J J evolves dynamically with the system. This setting is naturally addressed by the Herglotz variational principle, which extends the Euler–Lagrange equations to systems with dissipative effects. Applying this framework to derive the optimality conditions leads to a contact Hamiltonian dynamical system expressed in canonical coordinates [10 ] . For our purposes, however, it is particularly convenient to employ an equivalent non-canonical representation (Appendix § 15 .§ 1 ), as it simplifies the structure of the Hamiltonian. To carry out the Hamiltonian derivation using Herglotz-type Euler–Lagrange equations, it is therefore necessary to transition from the non-canonical state ( ρ t , S t , z t ) (\rho^t,S^t,z^t) ( ρ t , S t , z t ) to the canonical one ( ρ ~ t , S ~ t , z ~ t ) (\widetilde{\rho}^t,\widetilde{S}^t,\widetilde{z}^t) ( ρ t , S t , z t ) , via the substitution introduced in [10 ] ,
ρ t ( x ) = 1 2 ρ ~ t ( x ) − S ~ t ( x ) , (36) \rho^t(x)=\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x), \tag*{(36)} ρ t ( x ) = 2 1 ρ t ( x ) − S t ( x ) , (36)
S t ( x ) = S ~ t ( x ) + 1 2 ρ ~ t ( x ) , (37) S^t(x)=\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x), \tag*{(37)} S t ( x ) = S t ( x ) + 2 1 ρ t ( x ) , (37)
z t ( x ) = z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 . (38) z^t(x)=\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2. \tag*{(38)} z t ( x ) = z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 . (38)
Accordingly, the Lagrangian (35) transforms as follow,
L = 1 2 ∥ v t ∥ 2 ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) + 1 2 w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) 2 + ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ( 1 2 ∂ t ρ ~ t ( x ) − ∂ t S ~ t ( x ) + ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ⋅ v t ) − ε Δ x ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ) (39) \begin{aligned}
\mathcal{L}={}&\frac{1}{2}\lVert v^t\rVert^2\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)+\frac{1}{2}w_z\left(\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2\right)^2\\
&+\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)\left(\frac{1}{2}\partial_t\widetilde{\rho}^t(x)-\partial_t\widetilde{S}^t(x)+\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)\cdot v^t\right)-\varepsilon\Delta_x\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)\right) \tag*{(39)}
\end{aligned} L = 2 1 ∥ v t ∥ 2 ( 2 1 ρ t ( x ) − S t ( x ) ) + 2 1 w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) 2 + ( S t ( x ) + 2 1 ρ t ( x ) ) ( 2 1 ∂ t ρ t ( x ) − ∂ t S t ( x ) + ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ⋅ v t ) − ε Δ x ( 2 1 ρ t ( x ) − S t ( x ) ) ) (39)
The optimality conditions obtained from the variations of L \mathcal{L} L , namely, the Herglotz-type Euler–Lagrange equations, for a generic field argument ψ t ( x ) \psi^t(x) ψ t ( x ) in this case take the form,
d ψ L = ∂ ψ L − ∂ t ( ∂ L ∂ ∂ t ψ ) − ∇ x ⋅ ( ∂ L ∂ ∇ x ψ ) + Δ x ( ∂ L ∂ Δ x L ) − ∂ z L ∂ L ∂ ∂ t ψ = 0. (40) \mathrm{d}_{\psi}\mathcal{L}=\partial_{\psi}\mathcal{L}-\partial_t\left(\frac{\partial\mathcal{L}}{\partial\partial_t\psi}\right)-\nabla_x\cdot\left(\frac{\partial\mathcal{L}}{\partial\nabla_x\psi}\right)+\Delta_x\left(\frac{\partial\mathcal{L}}{\partial\Delta_x\mathcal{L}}\right)-\partial_z\mathcal{L}\frac{\partial\mathcal{L}}{\partial\partial_t\psi}=0. \tag*{(40)} d ψ L = ∂ ψ L − ∂ t ( ∂ ∂ t ψ ∂ L ) − ∇ x ⋅ ( ∂ ∇ x ψ ∂ L ) + Δ x ( ∂ Δ x L ∂ L ) − ∂ z L ∂ ∂ t ψ ∂ L = 0. (40)
Applying the Herglotz-type Euler–Lagrange equations (40) to the Lagrangian L \mathcal{L} L defined in equation (39) , with respect to the fields v t v^t v t , ρ ~ t \widetilde{\rho}^t ρ t , and S ~ t \widetilde{S}^t S t , yields the following optimality conditions,
d v L = v ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) − ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) = 0 \mathrm{d}_v\mathcal{L}=v\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)-\nabla_x\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)=0 d v L = v ( 2 1 ρ t ( x ) − S t ( x ) ) − ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) ( 2 1 ρ t ( x ) − S t ( x ) ) = 0
⟹ v t = ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) , (41) \Longrightarrow v^t=\nabla_x\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right), \tag*{(41)} ⟹ v t = ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) , (41)
d ρ ~ L = 1 4 ∥ v ∥ 2 + w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) 1 4 ρ ~ t ( x ) + 1 2 ( 1 2 ∂ t ρ ~ t ( x ) − ∂ t S ~ t ( x ) + ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ⋅ v t ) − ε ( 1 4 Δ x ρ ~ t ( x ) − Δ x S ~ t ( x ) ) ) − 1 2 ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) v t − 1 2 ∂ t S ~ t ( x ) − 1 4 ∂ t ρ ~ t ( x ) − 1 8 ε Δ x S ~ t ( x ) − 1 4 ε Δ x ρ ~ t ( x ) − 1 2 w z ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) = 0 , (42) \begin{aligned}
\mathrm{d}_{\widetilde{\rho}}\mathcal{L}={}&\frac{1}{4}\lVert v\rVert^2+w_z\left(\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2\right)\frac{1}{4}\widetilde{\rho}^t(x)\\
&+\frac{1}{2}\left(\frac{1}{2}\partial_t\widetilde{\rho}^t(x)-\partial_t\widetilde{S}^t(x)+\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)\cdot v^t\right)-\varepsilon\left(\frac{1}{4}\Delta_x\widetilde{\rho}^t(x)-\Delta_x\widetilde{S}^t(x)\right)\right)\\
&-\frac{1}{2}\nabla_x\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)v^t-\frac{1}{2}\partial_t\widetilde{S}^t(x)-\frac{1}{4}\partial_t\widetilde{\rho}^t(x)-\frac{1}{8}\varepsilon\Delta_x\widetilde{S}^t(x)-\frac{1}{4}\varepsilon\Delta_x\widetilde{\rho}^t(x)\\
&-\frac{1}{2}w_z\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)\left(\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2\right)=0, \tag*{(42)}
\end{aligned} d ρ L = 4 1 ∥ v ∥ 2 + w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) 4 1 ρ t ( x ) + 2 1 ( 2 1 ∂ t ρ t ( x ) − ∂ t S t ( x ) + ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ⋅ v t ) − ε ( 4 1 Δ x ρ t ( x ) − Δ x S t ( x ) ) ) − 2 1 ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) v t − 2 1 ∂ t S t ( x ) − 4 1 ∂ t ρ t ( x ) − 8 1 ε Δ x S t ( x ) − 4 1 ε Δ x ρ t ( x ) − 2 1 w z ( S t ( x ) + 2 1 ρ t ( x ) ) ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) = 0 , (42)
∂ S ~ L = − 1 2 ∥ v ∥ 2 − w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) S ~ t ( x ) S ~ t ( x ) + ( 1 2 ∂ t ρ ~ t ( x ) − ∂ t S ~ t ( x ) + ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ⋅ v t ) − ε ( 1 4 Δ x ρ ~ t ( x ) − Δ x S ~ t ( x ) ) ) + ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) v t + 1 2 ∂ t ρ ~ t ( x ) + ∂ t S ~ t ( x ) + ε Δ x S ~ t ( x ) + 1 2 ε Δ x ρ ~ t ( x ) + w z ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) = 0 (43) \begin{aligned}
\partial_{\widetilde{S}}\mathcal{L}={}&-\frac{1}{2}\lVert v\rVert^2-w_z\left(\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2\right)\widetilde{S}^t(x)\widetilde{S}^t(x)\\
&+\left(\frac{1}{2}\partial_t\widetilde{\rho}^t(x)-\partial_t\widetilde{S}^t(x)+\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^t(x)-\widetilde{S}^t(x)\right)\cdot v^t\right)-\varepsilon\left(\frac{1}{4}\Delta_x\widetilde{\rho}^t(x)-\Delta_x\widetilde{S}^t(x)\right)\right)\\
&+\nabla_x\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)v^t+\frac{1}{2}\partial_t\widetilde{\rho}^t(x)+\partial_t\widetilde{S}^t(x)+\varepsilon\Delta_x\widetilde{S}^t(x)+\frac{1}{2}\varepsilon\Delta_x\widetilde{\rho}^t(x)\\
&+w_z\left(\widetilde{S}^t(x)+\frac{1}{2}\widetilde{\rho}^t(x)\right)\left(\widetilde{z}^t(x)+\frac{1}{8}\widetilde{\rho}^t(x)^2-\frac{1}{2}\widetilde{S}^t(x)^2\right)=0 \tag*{(43)}
\end{aligned} ∂ S L = − 2 1 ∥ v ∥ 2 − w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) S t ( x ) S t ( x ) + ( 2 1 ∂ t ρ t ( x ) − ∂ t S t ( x ) + ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ⋅ v t ) − ε ( 4 1 Δ x ρ t ( x ) − Δ x S t ( x ) ) ) + ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) v t + 2 1 ∂ t ρ t ( x ) + ∂ t S t ( x ) + ε Δ x S t ( x ) + 2 1 ε Δ x ρ t ( x ) + w z ( S t ( x ) + 2 1 ρ t ( x ) ) ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) = 0 (43)
Rearranging the expression and performing the necessary algebraic simplifications yields,
∂ t S ~ t ( x ) = 1 2 ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ) − 1 4 ∥ ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ∥ 2 − 1 2 ε Δ x ρ ~ t ( x ) − 1 2 w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) S ~ t ( x ) . (44) \partial_t \widetilde{S}^{t}(x)=\frac{1}{2}\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^{t}(x)-\widetilde{S}^{t}(x)\right)\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right)-\frac{1}{4}\left\|\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right\|^2-\frac{1}{2}\varepsilon\Delta_x\widetilde{\rho}^{t}(x)-\frac{1}{2}w_z\left(\widetilde{z}^{t}(x)+\frac{1}{8}\widetilde{\rho}^{t}(x)^2-\frac{1}{2}\widetilde{S}^{t}(x)^2\right)\widetilde{S}^{t}(x). \tag*{(44)} ∂ t S t ( x ) = 2 1 ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) ) − 4 1 ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) 2 − 2 1 ε Δ x ρ t ( x ) − 2 1 w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) S t ( x ) . (44)
∂ t ρ ~ t ( x ) = − ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ) − 1 2 ∥ ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ∥ 2 − 2 ε Δ x S ~ t ( x ) + 1 2 w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) ρ ~ t ( x ) . (45) \partial_t\widetilde{\rho}^{t}(x)=-\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^{t}(x)-\widetilde{S}^{t}(x)\right)\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right)-\frac{1}{2}\left\|\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right\|^2-2\varepsilon\Delta_x\widetilde{S}^{t}(x)+\frac{1}{2}w_z\left(\widetilde{z}^{t}(x)+\frac{1}{8}\widetilde{\rho}^{t}(x)^2-\frac{1}{2}\widetilde{S}^{t}(x)^2\right)\widetilde{\rho}^{t}(x). \tag*{(45)} ∂ t ρ t ( x ) = − ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) ) − 2 1 ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) 2 − 2 ε Δ x S t ( x ) + 2 1 w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) ρ t ( x ) . (45)
Taking the sum and difference of equations (31b) and (31a), we obtain,
1 2 ∂ t ρ ~ t ( x ) − ∂ t S ~ t ( x ) = − ∇ x ⋅ ( ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ) + ε Δ x ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) + 1 2 w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) ( 1 2 ρ ~ t ( x ) − S ~ t ( x ) ) . (46) \frac{1}{2}\partial_t\widetilde{\rho}^{t}(x)-\partial_t\widetilde{S}^{t}(x)=-\nabla_x\cdot\left(\left(\frac{1}{2}\widetilde{\rho}^{t}(x)-\widetilde{S}^{t}(x)\right)\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right)+\varepsilon\Delta_x\left(\frac{1}{2}\widetilde{\rho}^{t}(x)-\widetilde{S}^{t}(x)\right)+\frac{1}{2}w_z\left(\widetilde{z}^{t}(x)+\frac{1}{8}\widetilde{\rho}^{t}(x)^2-\frac{1}{2}\widetilde{S}^{t}(x)^2\right)\left(\frac{1}{2}\widetilde{\rho}^{t}(x)-\widetilde{S}^{t}(x)\right). \tag*{(46)} 2 1 ∂ t ρ t ( x ) − ∂ t S t ( x ) = − ∇ x ⋅ ( ( 2 1 ρ t ( x ) − S t ( x ) ) ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) ) + ε Δ x ( 2 1 ρ t ( x ) − S t ( x ) ) + 2 1 w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) ( 2 1 ρ t ( x ) − S t ( x ) ) . (46)
∂ t S ~ t ( x ) + 1 2 ∂ t ρ ~ t ( x ) = − 1 2 ∥ ∇ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) ∥ 2 − ε Δ x ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) + 1 2 w z ( z ~ t ( x ) + 1 8 ρ ~ t ( x ) 2 − 1 2 S ~ t ( x ) 2 ) ( S ~ t ( x ) + 1 2 ρ ~ t ( x ) ) . (47) \partial_t\widetilde{S}^{t}(x)+\frac{1}{2}\partial_t\widetilde{\rho}^{t}(x)=-\frac{1}{2}\left\|\nabla_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)\right\|^2-\varepsilon\Delta_x\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right)+\frac{1}{2}w_z\left(\widetilde{z}^{t}(x)+\frac{1}{8}\widetilde{\rho}^{t}(x)^2-\frac{1}{2}\widetilde{S}^{t}(x)^2\right)\left(\widetilde{S}^{t}(x)+\frac{1}{2}\widetilde{\rho}^{t}(x)\right). \tag*{(47)} ∂ t S t ( x ) + 2 1 ∂ t ρ t ( x ) = − 2 1 ∇ x ( S t ( x ) + 2 1 ρ t ( x ) ) 2 − ε Δ x ( S t ( x ) + 2 1 ρ t ( x ) ) + 2 1 w z ( z t ( x ) + 8 1 ρ t ( x ) 2 − 2 1 S t ( x ) 2 ) ( S t ( x ) + 2 1 ρ t ( x ) ) . (47)
At this stage, we transform equations (32) using the inverse of the canonical coordinate transformation (27), namely,
ρ ~ t ( x ) = ρ t ( x ) + S t ( x ) , (48) \widetilde{\rho}^{t}(x)=\rho^{t}(x)+S^{t}(x), \tag*{(48)} ρ t ( x ) = ρ t ( x ) + S t ( x ) , (48)
S ~ t ( x ) = 1 2 ( S t ( x ) − ρ t ( x ) ) , (49) \widetilde{S}^{t}(x)=\frac{1}{2}\left(S^{t}(x)-\rho^{t}(x)\right), \tag*{(49)} S t ( x ) = 2 1 ( S t ( x ) − ρ t ( x ) ) , (49)
z ~ t ( x ) = z t ( x ) − 1 2 ρ t ( x ) S t ( x ) . (50) \widetilde{z}^{t}(x)=z^{t}(x)-\frac{1}{2}\rho^{t}(x)S^{t}(x). \tag*{(50)} z t ( x ) = z t ( x ) − 2 1 ρ t ( x ) S t ( x ) . (50)
and recover the dynamical equation for the action z t z^{t} z t (3b). This yields the optimality conditions in equation (5), expressed in non-canonical coordinates,
∂ t ρ t ( x ) = ∂ S H ( ⋅ ) − 1 2 ρ t ( x ) ∂ z H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) , \begin{aligned}
\partial_t\rho^{t}(x)=\partial_S\mathcal{H}(\cdot)-\frac{1}{2}\rho^{t}(x)\partial_z\mathcal{H}(\cdot) \\
&=-\nabla_x\cdot\left(\rho^{t}(x)\nabla_xS^{t}(x)\right)+\varepsilon\Delta_x\rho^{t}(x)+w_z z^{t}(x)\rho^{t}(x),
\end{aligned} ∂ t ρ t ( x ) = ∂ S H ( ⋅ ) − 2 1 ρ t ( x ) ∂ z H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + w z z t ( x ) ρ t ( x ) ,
∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) − 1 2 S t ( x ) ∂ z H ( ⋅ ) = − 1 2 ∥ ∇ x S t ( x ) ∥ 2 − ε Δ x S t ( x ) + w z z t ( x ) S t ( x ) , \begin{aligned}
\partial_tS^{t}(x)=-\partial_\rho\mathcal{H}(\cdot)-\frac{1}{2}S^{t}(x)\partial_z\mathcal{H}(\cdot) \\
&=-\frac{1}{2}\left\|\nabla_xS^{t}(x)\right\|^2-\varepsilon\Delta_xS^{t}(x)+w_z z^{t}(x)S^{t}(x),
\end{aligned} ∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) − 2 1 S t ( x ) ∂ z H ( ⋅ ) = − 2 1 ∇ x S t ( x ) 2 − ε Δ x S t ( x ) + w z z t ( x ) S t ( x ) ,
∂ t z t ( x ) = 1 2 ( S t ( x ) ∂ S H ( ⋅ ) + ρ t ( x ) ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) = 1 2 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) + 1 2 w z z t ( x ) 2 − 1 2 ∥ v 0 ∥ 2 ρ t ( x ) . \begin{aligned}
\partial_tz^{t}(x)=\frac{1}{2}\left(S^{t}(x)\partial_S\mathcal{H}(\cdot)+\rho^{t}(x)\partial_\rho\mathcal{H}(\cdot)\right)-\mathcal{H}(\cdot) \\
&=\frac{1}{2}\left\|\nabla_xS^{t}(x)\right\|^2\rho^{t}(x)+\frac{1}{2}w_z z^{t}(x)^2-\frac{1}{2}\|v_0\|^2\rho^{t}(x).
\end{aligned} ∂ t z t ( x ) = 2 1 ( S t ( x ) ∂ S H ( ⋅ ) + ρ t ( x ) ∂ ρ H ( ⋅ ) ) − H ( ⋅ ) = 2 1 ∇ x S t ( x ) 2 ρ t ( x ) + 2 1 w z z t ( x ) 2 − 2 1 ∥ v 0 ∥ 2 ρ t ( x ) .
This defines a contact Hamiltonian system associated with the following contact Hamiltonian function,
H ( ρ t , S t , z t ) = ∫ M 1 2 ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x − w z ∫ M 1 2 z t ( x ) 2 d x − ∫ M 1 2 ∥ ∇ x S t ( x ) ∥ 2 ρ 0 ( x ) d x . (51) \mathcal{H}(\rho^{t},S^{t},z^{t})=\int_{\mathcal{M}}\frac{1}{2}\left\|\nabla_xS^{t}(x)\right\|^2\rho^{t}(x)\,dx+\varepsilon\int_{\mathcal{M}}S^{t}(x)\Delta_x\rho^{t}(x)\,dx-w_z\int_{\mathcal{M}}\frac{1}{2}z^{t}(x)^2\,dx-\int_{\mathcal{M}}\frac{1}{2}\left\|\nabla_xS^{t}(x)\right\|^2\rho^{0}(x)\,dx. \tag*{(51)} H ( ρ t , S t , z t ) = ∫ M 2 1 ∇ x S t ( x ) 2 ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x − w z ∫ M 2 1 z t ( x ) 2 d x − ∫ M 2 1 ∇ x S t ( x ) 2 ρ 0 ( x ) d x . (51)
Here, the first term represents the kinetic energy of the flow, while the second term introduces an entropic coupling scaled by the diffusion coefficient ε \varepsilon ε . The latter modifies the drift of the transport map so as to maintain a level of entropy consistent with the reference process in the Fokker–Planck equation (3c). The third term constitutes the damping factor, responsible for drawing or increasing energy. As direct consequences, this have the introduction of a damping or accelerating term in the Hamilton-Jacobi-Bellman equation (6) , and a source or sink term in the Fokker–Planck equation (5) . The last term represents a constant fixing the reference energy level.
Geometric Analysis of State-of-the-Art Methods
Hamiltonian Structure of the Optimal Transport
This part presents the derivation of the Hamiltonian structure of the entropy-regularized OT problem (16) (Section 3), obtained via the method of Lagrange multipliers Testa et al. [63 ] . To transform the constrained optimization problem into an unconstrained one, we incorporate the Fokker–Planck equation, scaled by the Lagrange multiplier S t S^t S t , into the original running cost L \mathcal{L} L (i.e., the Lagrangian), as follows,
J ( v t , ρ t , S t ) = ∫ t 0 t M L ( v t , ρ t , S t ) d t ; (52) J(v^t,\rho^t,S^t)=\int_{t_0}^{t_M}\mathcal{L}(v^t,\rho^t,S^t)\,\mathrm{d}t; \tag*{(52)} J ( v t , ρ t , S t ) = ∫ t 0 t M L ( v t , ρ t , S t ) d t ; (52)
L ( v t , ρ t , S t ) = ∫ M 1 2 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x + ∫ M S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) − ε Δ ρ t ( x ) ) d x . (53) \begin{aligned}
\mathcal{L}(v^t,\rho^t,S^t)
&=\int_{\mathcal{M}}\frac{1}{2}\lVert v^t(x)\rVert^2\rho^t(x)\,\mathrm{d}x\\
&\quad+\int_{\mathcal{M}}S^t(x)\left(\partial_t\rho^t(x)+\nabla_x\cdot(\rho^t(x)v^t(x))-\varepsilon\Delta\rho^t(x)\right)\,\mathrm{d}x. \tag*{(53)}
\end{aligned} L ( v t , ρ t , S t ) = ∫ M 2 1 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x + ∫ M S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x )) − ε Δ ρ t ( x ) ) d x . (53)
The optimality conditions resulting from the extremization of the cost functional J J J in equation (52) follow from the Euler–Lagrange equations, generalized to the setting of classical field theory Blohmann [7 ] . In this framework, the arguments of the Lagrangian L \mathcal{L} L , in equation (53) , are viewed as smooth fields defined over space and time. By setting to zero the variations of L \mathcal{L} L with respect to these fields, we obtain the stationarity conditions for J J J . For a generic field ψ t ( x ) \psi^t(x) ψ t ( x ) , the corresponding Euler–Lagrange equation takes the form,
d ψ L = ∂ ψ L − ∂ t ( ∂ ∂ t ψ L ) − ∇ x ⋅ ( ∂ ∇ x ψ L ) + Δ x ( ∂ Δ x L ) = 0. (54) \mathrm{d}_{\psi}\mathcal{L}=\partial_{\psi}\mathcal{L}-\partial_t(\partial_{\partial_t\psi}\mathcal{L})-\nabla_x\cdot(\partial_{\nabla_x\psi}\mathcal{L})+\Delta_x(\partial_{\Delta_x}\mathcal{L})=0. \tag*{(54)} d ψ L = ∂ ψ L − ∂ t ( ∂ ∂ t ψ L ) − ∇ x ⋅ ( ∂ ∇ x ψ L ) + Δ x ( ∂ Δ x L ) = 0. (54)
Applying equation (54) to equation (53) for the fields v t v^t v t , ρ t \rho^t ρ t , and S t S^t S t , we obtain the following system of optimality conditions,
d v L = v t ( x ) ρ t ( x ) − ρ t ( x ) ∇ x S t ( x ) = 0 ⟹ v t ( x ) = ∇ x S t ( x ) , (55) \mathrm{d}_{v}\mathcal{L}=v^t(x)\rho^t(x)-\rho^t(x)\nabla_xS^t(x)=0\quad\Longrightarrow\quad v^t(x)=\nabla_xS^t(x), \tag*{(55)} d v L = v t ( x ) ρ t ( x ) − ρ t ( x ) ∇ x S t ( x ) = 0 ⟹ v t ( x ) = ∇ x S t ( x ) , (55)
d ρ L = 1 2 ∥ v t ( x ) ∥ 2 − ∂ t S t ( x ) − ∇ x S t ( x ) ⋅ v t ( x ) − ε Δ x S t ( x ) = 0 , (56) \mathrm{d}_{\rho}\mathcal{L}=\frac{1}{2}\lVert v^t(x)\rVert^2-\partial_tS^t(x)-\nabla_xS^t(x)\cdot v^t(x)-\varepsilon\Delta_xS^t(x)=0, \tag*{(56)} d ρ L = 2 1 ∥ v t ( x ) ∥ 2 − ∂ t S t ( x ) − ∇ x S t ( x ) ⋅ v t ( x ) − ε Δ x S t ( x ) = 0 , (56)
d S L = ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v ( x ) ) − ε Δ x ρ t ( x ) = 0. (57) \mathrm{d}_{S}\mathcal{L}=\partial_t\rho^t(x)+\nabla_x\cdot(\rho^t(x)v(x))-\varepsilon\Delta_x\rho^t(x)=0. \tag*{(57)} d S L = ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v ( x )) − ε Δ x ρ t ( x ) = 0. (57)
Substituting the expression for the optimal velocity from equation (55) into equations (56) and (57) , we obtain the following Hamiltonian system,
∂ t ρ t ( x ) = ∂ S H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ ρ t ( x ) , (58) \partial_t\rho^t(x)=\partial_SH(\cdot)=-\nabla_x\cdot(\rho^t(x)\nabla_xS^t(x))+\varepsilon\Delta\rho^t(x), \tag*{(58)} ∂ t ρ t ( x ) = ∂ S H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x )) + ε Δ ρ t ( x ) , (58)
∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) = − 1 2 ∥ ∇ x S t ( x ) ∥ 2 − ε Δ x S t ( x ) , (59) \partial_tS^t(x)=-\partial_{\rho}H(\cdot)=-\frac{1}{2}\lVert\nabla_xS^t(x)\rVert^2-\varepsilon\Delta_xS^t(x), \tag*{(59)} ∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) = − 2 1 ∥ ∇ x S t ( x ) ∥ 2 − ε Δ x S t ( x ) , (59)
with the corresponding Hamiltonian function,
H ( ρ t , S t ) = 1 2 ∫ M ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x . (60) \mathcal{H}(\rho^t,S^t)=\frac{1}{2}\int_{\mathcal{M}}\lVert\nabla_xS^t(x)\rVert^2\rho^t(x)\,\mathrm{d}x+\varepsilon\int_{\mathcal{M}}S^t(x)\Delta_x\rho^t(x)\,\mathrm{d}x. \tag*{(60)} H ( ρ t , S t ) = 2 1 ∫ M ∥ ∇ x S t ( x ) ∥ 2 ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x . (60)
Here, the first term represents the kinetic energy of the flow, while the second term introduces an entropic coupling scaled by the diffusion coefficient ε \varepsilon ε . The latter modifies the drift of the transport map so as to maintain a level of entropy consistent with the Brownian motion used as the reference process. In the limiting case ε → 0 \varepsilon\to0 ε → 0 , the entropic correction vanishes and one recovers a classical OT plan, wherein the minimization of the Hamiltonian kinetic energy on T ∗ P + ( M ) T^*\mathcal{P}_+(\mathcal{M}) T ∗ P + ( M ) is equivalent to the computation of a geodesic on the Wasserstein manifold P + ( M ) \mathcal{P}_+(\mathcal{M}) P + ( M ) , with the kinetic energy coinciding with the Wasserstein metric g W 2 g^{W_2} g W 2 defined in equation (2) (Appendix B.4). In the general case ε > 0 \varepsilon>0 ε > 0 , the Hamiltonian governs the minimization of an entropy-regularized transport cost, whose solution is equivalent to that obtained via the Sinkhorn algorithm Feydy et al. [23 ] .
Hamiltonian Structure of the Fisher-Rao Unbalanced Optimal Transport
This part presents the derivation of the Hamiltonian structure of the Fisher–Rao uOT problem (17) (Section 3), obtained via the method of Lagrange multipliers. To transform the constrained optimization problem (17) into an unconstrained one, we incorporate the generalized Fokker–Planck equation, scaled by the Lagrange multiplier S t S^t S t , into the original running cost, yielding the augmented Lagrangian,
J ( v t , z t , ρ t , S t ) = ∫ t 0 t M L ( v t , z t , ρ t , S t ) d t ; (61) J(v^t,z^t,\rho^t,S^t)=\int_{t_0}^{t_M}\mathcal{L}(v^t,z^t,\rho^t,S^t)\,\mathrm{d}t; \tag*{(61)} J ( v t , z t , ρ t , S t ) = ∫ t 0 t M L ( v t , z t , ρ t , S t ) d t ; (61)
L ( v t , z t , ρ t , S t ) = ∫ M 1 2 ( ∥ v t ( x ) ∥ 2 + w z z t ( x ) 2 ) ρ t ( x ) d x + ∫ M S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) − ε Δ x ρ t ( x ) − z t ( x ) ρ t ( x ) ) d x . (62) \begin{aligned}
\mathcal{L}(v^t,z^t,\rho^t,S^t)
={}&\int_{\mathcal{M}}\frac{1}{2}\left(\lVert v^t(x)\rVert^2+w_z z^t(x)^2\right)\rho^t(x)\,\mathrm{d}x\\
&+\int_{\mathcal{M}}S^t(x)\left(\partial_t\rho^t(x)+\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)-\varepsilon\Delta_x\rho^t(x)-z^t(x)\rho^t(x)\right)\,\mathrm{d}x. \tag*{(62)}
\end{aligned} L ( v t , z t , ρ t , S t ) = ∫ M 2 1 ( ∥ v t ( x ) ∥ 2 + w z z t ( x ) 2 ) ρ t ( x ) d x + ∫ M S t ( x ) ( ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) − ε Δ x ρ t ( x ) − z t ( x ) ρ t ( x ) ) d x . (62)
Applying the Euler–Lagrange equations (62) to L \mathcal{L} L with respect to the fields v t v^t v t , z t z^t z t , ρ t \rho^t ρ t , and S t S^t S t , we obtain the following optimality conditions,
d v L = v t ( x ) ρ t ( x ) − ρ t ( x ) ∇ x S t ( x ) = 0 ⟹ v t ( x ) = ∇ x S t ( x ) , (63) d_v\mathcal{L}=v^t(x)\rho^t(x)-\rho^t(x)\nabla_xS^t(x)=0\quad\Longrightarrow\quad v^t(x)=\nabla_xS^t(x), \tag*{(63)} d v L = v t ( x ) ρ t ( x ) − ρ t ( x ) ∇ x S t ( x ) = 0 ⟹ v t ( x ) = ∇ x S t ( x ) , (63)
d z L = w z z t ( x ) ρ t ( x ) − S t ( x ) ρ t ( x ) = 0 ⟹ z t ( x ) = S t ( x ) w z , (64) d_z\mathcal{L}=w_z z^t(x)\rho^t(x)-S^t(x)\rho^t(x)=0\quad\Longrightarrow\quad z^t(x)=\frac{S^t(x)}{w_z}, \tag*{(64)} d z L = w z z t ( x ) ρ t ( x ) − S t ( x ) ρ t ( x ) = 0 ⟹ z t ( x ) = w z S t ( x ) , (64)
d ρ L = 1 2 ∥ v t ( x ) ∥ 2 + w z 2 z t ( x ) 2 − ∂ t S t ( x ) − ∇ x S t ( x ) ⋅ v t ( x ) − ε Δ x S t ( x ) − z t ( x ) S t ( x ) = 0 , (65) d_\rho\mathcal{L}=\frac{1}{2}\lVert v^t(x)\rVert^2+\frac{w_z}{2}z^t(x)^2-\partial_tS^t(x)-\nabla_xS^t(x)\cdot v^t(x)-\varepsilon\Delta_xS^t(x)-z^t(x)S^t(x)=0, \tag*{(65)} d ρ L = 2 1 ∥ v t ( x ) ∥ 2 + 2 w z z t ( x ) 2 − ∂ t S t ( x ) − ∇ x S t ( x ) ⋅ v t ( x ) − ε Δ x S t ( x ) − z t ( x ) S t ( x ) = 0 , (65)
d S L = ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) − ε Δ x ρ t ( x ) − z t ( x ) ρ t ( x ) = 0. (66) d_S\mathcal{L}=\partial_t\rho^t(x)+\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)-\varepsilon\Delta_x\rho^t(x)-z^t(x)\rho^t(x)=0. \tag*{(66)} d S L = ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) − ε Δ x ρ t ( x ) − z t ( x ) ρ t ( x ) = 0. (66)
Substituting the optimal velocity (63) and growth rate (64) into equations (65) and (66) , we obtain the Hamiltonian system,
∂ t ρ t ( x ) = ∂ S H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + S t ( x ) w z ρ t ( x ) , (67) \partial_t\rho^t(x)=\partial_SH(\cdot)=-\nabla_x\cdot\left(\rho^t(x)\nabla_xS^t(x)\right)+\varepsilon\Delta_x\rho^t(x)+\frac{S^t(x)}{w_z}\rho^t(x), \tag*{(67)} ∂ t ρ t ( x ) = ∂ S H ( ⋅ ) = − ∇ x ⋅ ( ρ t ( x ) ∇ x S t ( x ) ) + ε Δ x ρ t ( x ) + w z S t ( x ) ρ t ( x ) , (67)
∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) = − 1 2 ∥ ∇ x S t ( x ) ∥ 2 − 1 2 w z S t ( x ) 2 − ε Δ x S t ( x ) , (68) \partial_tS^t(x)=-\partial_\rho H(\cdot)=-\frac{1}{2}\lVert\nabla_xS^t(x)\rVert^2-\frac{1}{2w_z}S^t(x)^2-\varepsilon\Delta_xS^t(x), \tag*{(68)} ∂ t S t ( x ) = − ∂ ρ H ( ⋅ ) = − 2 1 ∥ ∇ x S t ( x ) ∥ 2 − 2 w z 1 S t ( x ) 2 − ε Δ x S t ( x ) , (68)
governed by the Hamiltonian function,
H ( ρ t , S t ) = 1 2 ∫ M ( ∥ ∇ x S t ( x ) ∥ 2 + 1 w z S t ( x ) 2 ) ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x . (69) \mathcal{H}(\rho^t,S^t)=\frac{1}{2}\int_{\mathcal{M}}\left(\lVert\nabla_xS^t(x)\rVert^2+\frac{1}{w_z}S^t(x)^2\right)\rho^t(x)\,\mathrm{d}x+\varepsilon\int_{\mathcal{M}}S^t(x)\Delta_x\rho^t(x)\,\mathrm{d}x. \tag*{(69)} H ( ρ t , S t ) = 2 1 ∫ M ( ∥ ∇ x S t ( x ) ∥ 2 + w z 1 S t ( x ) 2 ) ρ t ( x ) d x + ε ∫ M S t ( x ) Δ x ρ t ( x ) d x . (69)
Compared to the OT Hamiltonian (60) , the Fisher–Rao unbalanced formulation introduces an explicit dependence on S t S^t S t in the kinetic energy. This dependence arises from the deformation of the underlying conic space induced by the growth rate S t S^t S t . Despite this structural complication, the quadratic Fisher–Rao penalty, ψ ( z t ( x ) ) = ( z t ( x ) ) 2 \psi(z^t(x))=(z^t(x))^2 ψ ( z t ( x )) = ( z t ( x ) ) 2 , remains the most tractable choice within the class of ψ \psi ψ -divergences. Indeed, it is the only choice that preserves a polynomial structure of the Hamiltonian. By contrast, a generic convex ψ \psi ψ -divergence induces a transcendental dependence on S t S^t S t , thereby significantly increasing the analytical complexity of the Hamiltonian and hindering the explicit computation of geodesics [35 ] . In this setting, distance-based regularization cannot be recovered, requiring Hamilton-Jacobi-Bellman regularization [11 ] , whose PDE-based formulation lacks comparable optimization stability (see Appendix § 18 .4).
The dynamical equations (45) describe a symplectic flow on T ∗ P + ( M ) T^*\mathcal{P}^+(\mathcal{M}) T ∗ P + ( M ) , corresponding to a geodesic with respect to the WFR metric. Indeed, as in problems (3) and (16) , K \mathcal{K} K defines a proper geometric metric that is linear in ρ t \rho^t ρ t , allowing the WFR geodesic length of ρ k s ⊂ P + ( M ) \rho^s_k\subset\mathcal{P}^+(\mathcal{M}) ρ k s ⊂ P + ( M ) to be computed as an expectation over samples x_n^{s_k}_{n=0} [46 ] . In the limit w z → ∞ w_z\to\infty w z → ∞ , mass variation is suppressed and this formulation recovers the classical OT (16) , constituting a principled extension thereof. However, the optimality conditions v t ( x ) = ∇ x S t ( x ) v^t(x)=\nabla_xS^t(x) v t ( x ) = ∇ x S t ( x ) and z t ( x ) = S t ( x ) z^t(x)=S^t(x) z t ( x ) = S t ( x ) drives the transport dynamics to regions of maximal mass growth. This structural bias leads to mode collapse by discouraging the reconstruction of small target modes [12 , 85 ] , where sample weights must naturally decrease. This bias is also unstable as it regulates the transport velocity w.r.t. the gradient of the weight growth, often noisy in real datasets. This limitation is baked into the symplectic manifold ( T ∗ P + ( M ) , ω ) (T^*\mathcal{P}^+(\mathcal{M}),\omega) ( T ∗ P + ( M ) , ω ) , which, enforcing volume-preserving dynamics, can only accommodate mass variation by rigidly coupling z t z^t z t and v t v^t v t within a fixed bound. Notably, CuOT overcomes the symplectic structural limitations by exploiting contact geometry to decouple transport from mass growth, offering a principled framework for more accurate, controlled adaptation to mass changes.
Our formulation is inspired by Testa et al. [63 ] , who reformulated the conservative Hamiltonian OT problem (16) via a contact framework to let energy vary during transport, yielding more flexible maps with non-constant velocity v t v^t v t that better capture real-world processes involving energy dissipation and external interactions,
min v t J ( v t , ρ t ) = ∫ 0 1 ∂ t z t d t ; (70) \min_{v^t} J(v^t,\rho^t)=\int_0^1 \partial_t z^t\,dt; \tag*{(70)} v t min J ( v t , ρ t ) = ∫ 0 1 ∂ t z t d t ; (70)
s.t. ∂ t z t = ∫ M 1 2 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x − γ z t ; (71) \text{s.t.}\quad\partial_t z^t=\int_{\mathcal{M}}\frac{1}{2}\lVert v^t(x)\rVert^2\rho^t(x)\,dx-\gamma z^t; \tag*{(71)} s.t. ∂ t z t = ∫ M 2 1 ∥ v t ( x ) ∥ 2 ρ t ( x ) d x − γ z t ; (71)
∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) = ϵ Δ x ρ t ( x ) ; (72) \partial_t\rho^t(x)+\nabla_x\cdot\left(\rho^t(x)v^t(x)\right)=\epsilon\Delta_x\rho^t(x); \tag*{(72)} ∂ t ρ t ( x ) + ∇ x ⋅ ( ρ t ( x ) v t ( x ) ) = ϵ Δ x ρ t ( x ) ; (72)
ρ t m = ρ m , ∀ m ∈ { 0 , … , M } . (73) \rho^{tm}=\rho_m,\ \forall m\in\{0,\ldots,M\}. \tag*{(73)} ρ t m = ρ m , ∀ m ∈ { 0 , … , M } . (73)
Here, z t z^t z t represents a scalar Lagrangian action and γ ∈ R \gamma\in\mathbb{R} γ ∈ R is a constant damping factor. Our problem (3) extends their framework in two fundamental ways by introducing (i) a spatially varying action field through the quadratic term 1 2 z t ( x ) 2 \frac{1}{2}z^t(x)^2 2 1 z t ( x ) 2 in equation (7) , instead of the scalar linear action z t z^t z t in (71) , and (ii) a corresponding source/sink term w z t ρ t ( x ) z t ( x ) wz^t\rho^t(x)z^t(x) w z t ρ t ( x ) z t ( x ) in equation (5) , which is missing in (72) . These differences reflect a different interpretation of the contact action. In Testa et al. [63 ] , z t z^t z t is a time-dependent, non-learnable scalar obtained by integrating the dynamics generated by the learned velocity field. Through the relation (71) , it acts as a global damping or amplification variable that modulates the energy of the dynamics according to a prescribed coefficient γ \gamma γ , thereby allowing non-conservative dynamics with a predefined energy trend. In contrast, we reinterpret z t ( x ) z^t(x) z t ( x ) as a local mass growth-rate field learned from the data, allowing the energy of the transport map to adapt to the geometry of the space. To this end, we introduce a quadratic term 1 2 z t ( x ) 2 \frac{1}{2}z^t(x)^2 2 1 z t ( x ) 2 to obtain a source/sink term w z t ρ t ( x ) z t ( x ) wz^t\rho^t(x)z^t(x) w z t ρ t ( x ) z t ( x ) in equation (5) via the contact Hamiltonian equations, ensuring a theoretically consistent evolution of the density. Consequently, while their approach is restricted to balanced OT problems, our method extends to unbalanced OT and adapts the velocity field v t v^t v t to the local data density, refining the integration step size in high-density regions rather than relying on an a priori schedule for v t v^t v t based on a prescribed damping coefficient γ \gamma γ .
Moreover, the formal derivation of problem (3) diverges from that of Testa et al. [63 ] by employing a different basis on the contact manifold (the Legendre-variant coordinates). A discussion of this alternative representation, alongside the formal mathematical proofs for our derivation, is provided in Appendices B.3 and C.1.
Implementation Details
Architecture
The transport and growth networks v θ v_\theta v θ and z θ z_\theta z θ share a common backbone: a time-conditioned multilayer perceptron (MLP) with a sinusoidal Fourier feature encoding of the input. Concretely, given a particle position x n s k ∈ R d x_n^{s_k}\in\mathbb{R}^d x n s k ∈ R d and a scalar variable s k ∈ [ 0 , 1 ] s_k\in[0,1] s k ∈ [ 0 , 1 ] , the concatenated input [ x n s k , s k ] ∈ R d + 1 [x_n^{s_k},s_k]\in\mathbb{R}^{d+1} [ x n s k , s k ] ∈ R d + 1 is lifted to a higher-dimensional representation via a multi-scale Fourier encoding,
ϕ ( [ x n s k , s k ] ) = [ [ x n s k , s k ] , sin ( 2 0 [ x n s k , s k ] ) , cos ( 2 0 [ x n s k , s k ] ) , … , sin ( 2 F − 1 [ x n s k , s k ] ) , cos ( 2 F − 1 [ x n s k , s k ] ) ] , (74) \phi([x_n^{s_k},s_k])=\left[[x_n^{s_k},s_k],\sin(2^0[x_n^{s_k},s_k]),\cos(2^0[x_n^{s_k},s_k]),\ldots,
\sin(2^{F-1}[x_n^{s_k},s_k]),\cos(2^{F-1}[x_n^{s_k},s_k])\right], \tag*{(74)} ϕ ([ x n s k , s k ]) = [ [ x n s k , s k ] , sin ( 2 0 [ x n s k , s k ]) , cos ( 2 0 [ x n s k , s k ]) , … , sin ( 2 F − 1 [ x n s k , s k ]) , cos ( 2 F − 1 [ x n s k , s k ]) ] , (74)
where F F F denotes the number of frequency bands. The encoded input ϕ ( [ x n s k , s k ] ) \phi([x_n^{s_k},s_k]) ϕ ([ x n s k , s k ]) is then processed by a shared trunk consisting of L L L hidden layers of width H H H , with SiLU activations and LayerNorm normalization applied after each hidden layer to prevent mode collapse in the learned vector fields. The trunk output is then passed to two separate linear heads: a velocity head producing v θ ( x n s k , s k ) ∈ R d v_\theta(x_n^{s_k},s_k)\in\mathbb{R}^d v θ ( x n s k , s k ) ∈ R d , and a growth head producing z θ ( x n s k , s k ) ∈ R z_\theta(x_n^{s_k},s_k)\in\mathbb{R} z θ ( x n s k , s k ) ∈ R . The full architecture is summarized as
h = Trunk ( ϕ ( [ x n s k , s k ] ) ) , v θ ( x n s k , s k ) = W v h , z θ ( x n s k , s k ) = W g h , (75) h=\operatorname{Trunk}(\phi([x_n^{s_k},s_k])),\qquad v_\theta(x_n^{s_k},s_k)=W_vh,\qquad z_\theta(x_n^{s_k},s_k)=W_gh, \tag*{(75)} h = Trunk ( ϕ ([ x n s k , s k ])) , v θ ( x n s k , s k ) = W v h , z θ ( x n s k , s k ) = W g h , (75)
where W v ∈ R d × H W_v\in\mathbb{R}^{d\times H} W v ∈ R d × H and W g ∈ R 1 × H W_g\in\mathbb{R}^{1\times H} W g ∈ R 1 × H are the learned head weights. The number of trunk layers L L L , hidden width H H H , and number of frequency bands F F F are treated as hyperparameters and tuned per dataset (see Table 11 ).
Table 11. Parameter configurations for each experimental setting. K K K : number of integration steps; L L L : number of hidden layers in the shared trunk network used by v θ v_\theta v θ and z θ z_\theta z θ ; F F F : number of sinusoidal frequencies; H H H : hidden feature dimension; B B B : batch size; N b N_b N b : number of batches per iteration; N i t e r N_{\mathrm{iter}} N iter : number of training iterations; η \eta η : learning rate; ε \varepsilon ε : entropy level in Sinkhorn algorithm. w ( ⋅ ) w(\cdot) w ( ⋅ ) : weighting coefficients. Additional details on these parameters are provided in Appendix § 18 .
Algorithm 1 Training procedure for the CuOT method.
Input: Marginal samples { x n m } n = 1 N m ∼ ρ m \{x_n^m\}_{n=1}^{N_m} \sim\rho^m { x n m } n = 1 N m ∼ ρ m for m = 0 , … , M m = 0, \ldots, M m = 0 , … , M ; integration step τ \tau τ .
Output: Trained transport and growth networks v θ v_\theta v θ , z θ z_\theta z θ .
Initialize network parameters θ \theta θ for v θ v_\theta v θ and z θ z_\theta z θ .
for each training epoch do
for each mini-batch do
Sample a batch { x n 0 } n = 1 N ∼ ρ 0 \{x_n^0\}_{n=1}^N \sim\rho^0 { x n 0 } n = 1 N ∼ ρ 0 from the initial marginal.
Propagate the discrete geodesic { ( x n s k , w n s k ) } k = 0 K \{(x_n^{s_k}, w_n^{s_k})\}_{k=0}^K {( x n s k , w n s k ) } k = 0 K forward via (6).
Compute the optimality variables { ( ν n s k , z n s k ) } k = 0 K \{(\nu_n^{s_k}, z_n^{s_k})\}_{k=0}^K {( ν n s k , z n s k ) } k = 0 K from the current z θ z_\theta z θ via (8).
Sample reference batches { x n m } n = 1 N m ∼ ρ m \{x_n^m\}_{n=1}^{N_m} \sim\rho^m { x n m } n = 1 N m ∼ ρ m for m = 1 , … , M m = 1, \ldots, M m = 1 , … , M , and evaluate the loss (10) .
Update θ \theta θ via gradient descent on (10) .
end for
end for
Discrete optimal equations
Given an estimated discrete geodesic { ( x n s k , w n s k ) } k = 0 K \{(x_n^{s_k}, w_n^{s_k})\}_{k=0}^K {( x n s k , w n s k ) } k = 0 K , the contact optimality conditions (5) can be deterministically discretized by evaluating all fields at the current sample positions. Since all distributional distances in our solver are computed with entropy-regularized Sinkhorn divergences, the entropy contribution associated with the diffusion term is already incorporated by the distance evaluation. Consequently, in the discretized dynamics we consider the limit ε → 0 \varepsilon\to0 ε → 0 . Moreover, the solver integrates the dynamics along the particle trajectories, so each transition k → k + 1 k \to k + 1 k → k + 1 advances the trajectory in time and updates the particle position. Therefore, all derivatives appearing in equations (5) are evaluated along the same discrete path using forward finite differences, D f = ( f n s k + 1 − f n s k ) / τ Df = (f_n^{s_{k+1}} - f_n^{s_k})/\tau D f = ( f n s k + 1 − f n s k ) / τ , where D D D denotes the corresponding derivative along the trajectory (time derivative for scalar fields and directional derivative for spatial quantities). Under this trajectory-based discretization, equations (6) and (7) directly yield equations (14) and (15) , respectively. Equation (13) is then obtained by taking the spatial derivative of equation (6) along the particle trajectory and using,
1 2 ∇ x ∥ ∇ x S t ( x ) ∥ 2 = 1 2 ∇ x ∥ v t ( x ) ∥ 2 = v t ( x ) ∇ x v t ( x ) ≈ ν n s k ν n s k + 1 − ν n s k τ . (76) \frac{1}{2}\nabla_x\lVert\nabla_x S^t(x)\rVert^2 = \frac{1}{2}\nabla_x\lVert v^t(x)\rVert^2 = v^t(x)\nabla_xv^t(x) \approx\nu_n^{s_k}\frac{\nu_n^{s_{k+1}}-\nu_n^{s_k}}{\tau}. \tag*{(76)} 2 1 ∇ x ∥ ∇ x S t ( x ) ∥ 2 = 2 1 ∇ x ∥ v t ( x ) ∥ 2 = v t ( x ) ∇ x v t ( x ) ≈ ν n s k τ ν n s k + 1 − ν n s k . (76)
Crucially, the resulting discrete equations (8) depend exclusively on the growth network z θ z_\theta z θ : given the current estimate of z θ z_\theta z θ , they can be integrated forward along the geodesic to obtain the contact Wasserstein metric g c = K g W 2 g^c = \sqrt{K}g_{W_2} g c = K g W 2 . This metric then governs the correction of the geodesic estimate via the transport network v θ v_\theta v θ , through the arc-length minimization objective (12) . Consequently, z θ z_\theta z θ and v θ v_\theta v θ are trained in a mutually consistent manner: z θ z_\theta z θ determines the geometry against which v θ v_\theta v θ is optimized, while v θ v_\theta v θ updates the particle trajectories along which z θ z_\theta z θ is subsequently re-evaluated, tightening the contact Hamiltonian constraints at each training step. The parameter w z w_z w z must be negative to ensure that z n s k z_n^{s_k} z n s k decays toward zero over the optimization interval [ t 0 , t M ] [t_0,t_M] [ t 0 , t M ] , thereby regularizing the learned initial condition z θ ( x , s 0 ) z_\theta(x,s_0) z θ ( x , s 0 ) and reducing its magnitude irrespective of the sign of the growth rate. This mechanism governs the temporal evolution of z θ ( x s k , s k ) z_\theta(x^{s_k},s_k) z θ ( x s k , s k ) without imposing spatial constraints. Consequently, since the growth rate is only relevant where the distribution has support, the optimizer can initialize z θ z_\theta z θ so that, under the induced dynamics, it attains suitable values when the distribution reaches those regions. The discrete geodesic { ( x n s k , w n s k ) } k = 0 K \{(x_n^{s_k},w_n^{s_k})\}_{k=0}^K {( x n s k , w n s k ) } k = 0 K is computed via explicit Euler integration of the learned vector fields over K K K uniform steps of step size τ = ( s 1 − s 0 ) / K \tau= (s_1-s_0)/K τ = ( s 1 − s 0 ) / K . The full particle trajectory { x n s k } k = 0 K \{x_n^{s_k}\}_{k=0}^K { x n s k } k = 0 K and weight trajectory { w n s k } k = 0 K \{w_n^{s_k}\}_{k=0}^K { w n s k } k = 0 K are stored at every integration step and used to evaluate the loss (10) . At each training iteration, the optimality variables { ( ν n s k , z n s k ) } k = 0 K \{(\nu_n^{s_k},z_n^{s_k})\}_{k=0}^K {( ν n s k , z n s k ) } k = 0 K are computed from the current growth network z θ z_\theta z θ by forward integration of the discretized contact Hamiltonian dynamics (8). The variables are initialized as ν n s 0 = 1 \nu_n^{s_0}=1 ν n s 0 = 1 and S n s 0 = 0 S_n^{s_0}=0 S n s 0 = 0 for all particles.
Training
Optimization. The training procedure is summarized in Algorithm 1. All models are trained using the Adam optimizer with weight decay 10 − 4 10^{-4} 1 0 − 4 and automatic mixed precision enabled for memory efficiency on GPU. Gradient norms are clipped to a maximum of 1.0 at each update step to stabilize training. At each iteration, a batch of B × N b B \times N_b B × N b particles is pre-sampled from the full dataset at the start of each epoch and partitioned into N b N_b N b mini-batches of size B B B , each processed as an independent gradient step. All particles are initialized with unit mass w n 0 = 1 w_n^0 = 1 w n 0 = 1 , and the relative total mass at each observed marginal ρ m \rho^m ρ m is computed from the empirical cell counts, providing the reference mass targets for the feasibility loss.
Loss function. The total training objective combines an optimality term and a feasibility term (10) , where w o p t w_{\mathrm{opt}} w opt and w f e a w_{\mathrm{fea}} w fea are scalar weights balancing the two objectives (see Table 11 ). The optimality term enforces minimization of the contact Wasserstein arc-length. It is computed as the sum of a geodesic energy term and a mass regularity term as shown in equation (12) ,
ℓ o p t = ∑ k = 0 K − 1 ∑ n = 0 N − 1 ( ( ν n k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 + ∥ z n s k + 1 − z θ ( x n s k , s k + 1 ) ∥ 2 ) . \ell_{\mathrm{opt}} = \sum_{k=0}^{K-1} \sum_{n=0}^{N-1} \left( (\nu_n^k)^2 w_n^{s_k} \left\lVert x_n^{s_{k+1}} - x_n^{s_k} \right\rVert^2 + \left\lVert z_n^{s_{k+1}} - z_\theta(x_n^{s_k},s_{k+1}) \right\rVert^2 \right). ℓ opt = k = 0 ∑ K − 1 n = 0 ∑ N − 1 ( ( ν n k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 + ∥ z n s k + 1 − z θ ( x n s k , s k + 1 ) ∥ 2 ) .
The geodesic energy ( ν n k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 (\nu_n^k)^2w_n^{s_k}\left\lVert x_n^{s_{k+1}}-x_n^{s_k}\right\rVert^2 ( ν n k ) 2 w n s k ∥ x n s k + 1 − x n s k ∥ 2 computed as ( ν ‾ n s k ) 2 w n s k ( d ‾ n s k ) 2 (\overline{\nu}_n^{s_k})^2w_n^{s_k}(\overline{d}_n^{s_k})^2 ( ν n s k ) 2 w n s k ( d n s k ) 2 , with ν ‾ n s k \overline{\nu}_n^{s_k} ν n s k and d ‾ n s k \overline{d}_n^{s_k} d n s k denoting the column-normalized scalar speeds and squared particle displacements at step k k k , respectively. The column-wise normalization
u ‾ k = u k ⋅ K ∑ k ′ u k ′ + ε (77) \overline{u}_k = u_k \cdot\frac{K}{\sum_{k'} u_{k'} + \varepsilon} \tag*{(77)} u k = u k ⋅ ∑ k ′ u k ′ + ε K (77)
is applied to both ν n s k \nu_n^{s_k} ν n s k and d n s k d_n^{s_k} d n s k before multiplication, ensuring that the energy is scale-invariant across integration steps and robust to vanishing gradients. The product ( ν ‾ n s k ) 2 w n s k ( d ‾ n s k ) 2 (\overline{\nu}_n^{s_k})^2w_n^{s_k}(\overline{d}_n^{s_k})^2 ( ν n s k ) 2 w n s k ( d n s k ) 2 implements the conformal scaling of the displacement by the contact Wasserstein metric g C = K g W 2 g_{\mathcal{C}} = \sqrt{K}g_{W^2} g C = K g W 2 : steps with higher kinetic energy (large ν n s k \nu_n^{s_k} ν n s k ) are penalized more heavily, aligning the learned velocity magnitude with the optimality condition for the given growth rate z θ z_\theta z θ .
The feasibility term enforces consistency of the predicted trajectory with the observed marginals { ρ m } m = 0 M \{\rho^m\}_{m=0}^M { ρ m } m = 0 M at the designated integration steps { s k m } \{s_{k_m}\} { s k m } . The loss (11) comprises two components,
ℓ f e a = ∑ m = 1 M ( d W 2 ( w s k m , x s k m , w m , x m ) + w m a s s ∥ W s k m − W m ∥ 2 ) . \ell_{\mathrm{fea}} = \sum_{m=1}^{M} \left(d_{W^2}(w^{s_{k_m}},x^{s_{k_m}},w^m,x^m) + w_{\mathrm{mass}}\left\lVert W^{s_{k_m}} - W^m \right\rVert^2\right). ℓ fea = m = 1 ∑ M ( d W 2 ( w s k m , x s k m , w m , x m ) + w mass ∥ W s k m − W m ∥ 2 ) .
where the weighted Wasserstein distance d W 2 d_{W^2} d W 2 is practically computed as the Sinkhorn approximation between the predicted weighted ensemble { ( x n s k m , w ~ n s k m ) } \{(x_n^{s_{k_m}},\widetilde{w}_n^{s_{k_m}})\} {( x n s k m , w n s k m )} and the reference marginal ρ m \rho^m ρ m , computed via the geomloss library (Feydy et al., [23 ] ). Here w ~ n s k m = w n s k m / ∑ n w n s k m \widetilde{w}_n^{s_{k_m}} = w_n^{s_{k_m}}/\sum_n w_n^{s_{k_m}} w n s k m = w n s k m / ∑ n w n s k m denotes the normalized predicted weights used as a discrete probability measure. The mass term ∥ W s k m − W m ∥ 2 \left\lVert W^{s_{k_m}} - W^m \right\rVert^2 ∥ W s k m − W m ∥ 2 penalizes the deviation of the predicted total mass W s k m W^{s_{k_m}} W s k m from the reference mass W m W^m W m . At the integration steps corresponding to observed marginals, the particle positions are detached from the computational graph, so that the geodesic is constrained to interpolate the observed marginals as fixed waypoints without back-propagating through them.
This loss formulation is consistent with our uOT baselines ([85 ] (Sun et al. 2025)), which also combine forward simulation with feasibility and optimality objectives. The key difference lies in the enforcement of the optimality conditions. Existing methods regularize the learned dynamics by minimizing Monte Carlo estimates of the Hamilton-Jacobi-Bellman residual, introducing additional objectives whose optimization may become unstable (Buzun et al., [11 ] ). In contrast, our formulation discretizes and simulates the optimality system itself. Since the learned variables have a direct contact-geometric interpretation, they can be evolved jointly with the transport dynamics and their corresponding action can be evaluated directly along the trajectory. As a result, the loss retains the variational interpretation of the continuous Contact-uOT problem while avoiding residual minimization. The empirical consequences of this design choice are discussed in the following stability analysis.
Stability Considerations
The CuOT solver discretizes the geodesic flow { ( x n s k , w n s k ) } k = 0 K \{(x_n^{s_k},w_n^{s_k})\}_{k=0}^{K} {( x n s k , w n s k ) } k = 0 K on the Wasserstein manifold P + ( M ) \mathcal{P}^{+}(\mathcal{M}) P + ( M ) and can be interpreted as a shooting direct method (Betts, [6 ] ) for the optimal control problem of finding parameters θ ∗ \theta^* θ ∗ minimizing the loss ℓ = w o p t ℓ o p t + w f e a ℓ f e a \ell= w_{\mathrm{opt}}\ell_{\mathrm{opt}} + w_{\mathrm{fea}}\ell_{\mathrm{fea}} ℓ = w opt ℓ opt + w fea ℓ fea (10) . We show that each gradient update does not destabilize training and converges toward a local minimum.
Proposition 2. The gradient ∇ θ ℓ f e a \nabla_\theta\ell_{\mathrm{fea}} ∇ θ ℓ fea is Lipschitz-continuous in θ \theta θ .
Proof. The feasibility loss ℓ f e a \ell_{\mathrm{fea}} ℓ fea comprises two terms, (1) Wasserstein term. The weighted Wasserstein distance d W 2 d_{W^2} d W 2 is computed via the Sinkhorn approximation, whose solution corresponds to the optimal transport plan π i l m ( θ ) \pi_{il}^{m}(\theta) π i l m ( θ ) between the predicted ensemble { ( x n s k m , w n s k m ) } \{(x_n^{s_km}, w_n^{s_km})\} {( x n s k m , w n s k m )} and the reference marginal { ( x n m , w n m ) } \{(x_n^m, w_n^m)\} {( x n m , w n m )} . Since π i l m ( θ ) \pi_{il}^{m}(\theta) π i l m ( θ ) solves a linear program with feasibility constraint ∑ i l π i l m = 1 \sum_{il} \pi_{il}^{m}=1 ∑ i l π i l m = 1 , and its dependence on θ \theta θ enters through the predicted positions and weights, which are Lipschitz-continuous functions of θ \theta θ by construction, the transport plan satisfies,
∥ π i l m ( θ ′ ) − π i l m ( θ ) ∥ ≤ L π ∥ θ ′ − θ ∥ , (78) \left\|\pi_{il}^{m}(\theta')-\pi_{il}^{m}(\theta)\right\| \le L_{\pi}\left\|\theta'-\theta\right\|, \tag*{(78)} ∥ π i l m ( θ ′ ) − π i l m ( θ ) ∥ ≤ L π ∥ θ ′ − θ ∥ , (78)
for a scalar constant L π > 0 L_{\pi}>0 L π > 0 . Consequently, ∇ θ π i l m ( θ ) \nabla_{\theta}\pi_{il}^{m}(\theta) ∇ θ π i l m ( θ ) is Lipschitz-continuous.
(2) Mass term. The total mass W s m = ∑ n w n s m W^{sm}=\sum_n w_n^{sm} W s m = ∑ n w n s m depends nonlinearly on θ \theta θ through the growth network z θ z_{\theta} z θ , so the map θ ↦ W s m \theta\mapsto W^{sm} θ ↦ W s m is in general non-convex. However, the squared mass deviation ∥ W s m − W m ∥ 2 \left\|W^{sm}-W^{m}\right\|^{2} ∥ W s m − W m ∥ 2 is locally convex in a neighborhood of any local minimizer θ ∗ \theta^{*} θ ∗ , since the Hessian ∇ θ 2 ∥ W s m − W m ∥ 2 ⪰ 0 \nabla_{\theta}^{2}\left\|W^{sm}-W^{m}\right\|^{2}\succeq0 ∇ θ 2 ∥ W s m − W m ∥ 2 ⪰ 0 in that neighborhood. Therefore ∇ θ ∥ W s m − W m ∥ 2 \nabla_{\theta}\left\|W^{sm}-W^{m}\right\|^{2} ∇ θ ∥ W s m − W m ∥ 2 is locally Lipschitz-continuous.
Combining (1) and (2), ∇ θ ℓ f e a \nabla_{\theta}\ell_{\mathrm{fea}} ∇ θ ℓ fea is locally Lipschitz-continuous in θ \theta θ .
Proposition 3. The gradient ∇ θ ℓ o p t \nabla_{\theta}\ell_{\mathrm{opt}} ∇ θ ℓ opt is locally Lipschitz-continuous in θ \theta θ under mild smoothness assumptions on the learned fields.
Proof. We show that ∇ θ ℓ o p t \nabla_{\theta}\ell_{\mathrm{opt}} ∇ θ ℓ opt is locally Lipschitz continuous by establishing this property for the dynamical variables ν n s k \nu_n^{s_k} ν n s k , S n s k S_n^{s_k} S n s k , and z n s k z_n^{s_k} z n s k via induction on k k k .
The initial conditions ν n s 0 \nu_n^{s_0} ν n s 0 , S s 0 S^{s_0} S s 0 , and z n s 0 z_n^{s_0} z n s 0 are fixed and independent of θ \theta θ . Consequently, their gradients with respect to θ \theta θ are identically zero and trivially locally Lipschitz. The growth network z θ ( x n s k , s k ) z_{\theta}(x_n^{s_k},s_k) z θ ( x n s k , s k ) employs smooth activations, therefore, both z θ z_{\theta} z θ and ∇ θ z θ \nabla_{\theta}z_{\theta} ∇ θ z θ are locally Lipschitz. The update equations (8) are rational functions of z θ z_{\theta} z θ and the step-k k k variables. Since rational operations preserve local Lipschitz continuity, the gradients of the updated variables ( ν n s 1 , S n s 1 , z n s 1 ) (\nu_n^{s_1},S_n^{s_1},z_n^{s_1}) ( ν n s 1 , S n s 1 , z n s 1 ) are also locally Lipschitz. Via induction, the gradients of ( ν n s k , S n s k , z n s k ) (\nu_n^{s_k},S_n^{s_k},z_n^{s_k}) ( ν n s k , S n s k , z n s k ) are locally Lipschitz for all k k k .
The loss ℓ o p t \ell_{\mathrm{opt}} ℓ opt is a finite sum of products involving these dynamical variables and the squared displacements ∥ x n s k + 1 − x n s k ∥ 2 \left\|x_n^{s_{k+1}}-x_n^{s_k}\right\|^2 ∥ x n s k + 1 − x n s k ∥ 2 . The particle positions depend on θ \theta θ through the velocity field v θ v_{\theta} v θ , which is locally Lipschitz. Since finite sums and products of locally Lipschitz functions remain locally Lipschitz, it follows that ∇ θ ℓ o p t \nabla_{\theta}\ell_{\mathrm{opt}} ∇ θ ℓ opt is locally Lipschitz continuous.
The parameter update rule
θ ( j + 1 ) = θ ( j ) − α ∇ θ ℓ ( θ ( j ) ) , (79) \theta_{(j+1)}=\theta_{(j)}-\alpha\nabla_{\theta}\ell(\theta_{(j)}), \tag*{(79)} θ ( j + 1 ) = θ ( j ) − α ∇ θ ℓ ( θ ( j ) ) , (79)
with step size α > 0 \alpha>0 α > 0 , is a gradient descent step on the total loss ℓ \ell ℓ . Since ∇ θ ℓ = w o p t ∇ θ ℓ o p t + w f e a ∇ θ ℓ f e a \nabla_{\theta}\ell=w_{\mathrm{opt}}\nabla_{\theta}\ell_{\mathrm{opt}}+w_{\mathrm{fea}}\nabla_{\theta}\ell_{\mathrm{fea}} ∇ θ ℓ = w opt ∇ θ ℓ opt + w fea ∇ θ ℓ fea is locally Lipschitz-continuous by Propositions 1 and 2, and the loss is bounded below by zero, the gradient descent iterates { θ ( j ) } j ≥ 0 \{\theta_{(j)}\}_{j\ge0} { θ ( j ) } j ≥ 0 satisfy the sufficient decrease condition
ℓ ( θ ( j + 1 ) ) ≤ ℓ ( θ ( j ) ) − α 2 ∥ ∇ θ ℓ ( θ ( j ) ) ∥ 2 , (80) \ell(\theta_{(j+1)})\le\ell(\theta_{(j)})-\frac{\alpha}{2}\left\|\nabla_{\theta}\ell(\theta_{(j)})\right\|^2, \tag*{(80)} ℓ ( θ ( j + 1 ) ) ≤ ℓ ( θ ( j ) ) − 2 α ∇ θ ℓ ( θ ( j ) ) 2 , (80)
for sufficiently small α \alpha α . Each update therefore strictly decreases the loss unless ∇ θ ℓ = 0 \nabla_{\theta}\ell=0 ∇ θ ℓ = 0 , guaranteeing convergence to a stationary point θ ∗ \theta^{*} θ ∗ . Geometrically, θ ∗ \theta^{*} θ ∗ corresponds to a local coordinate chart of the tangent bundle T P + ( M ) \mathcal{T}^{P+}(\mathcal{M}) T P + ( M ) that is consistent with the observed marginal constraints { ρ 0 m } m = 0 M \{\rho_0^m\}_{m=0}^{M} { ρ 0 m } m = 0 M .
Stability of shooting versus HJB residual minimization. An alternative approach to solving the optimal control problem (3) is to directly parameterize the dual potential (value function) S θ ( x n s k , s k ) S_{\theta}(x_n^{s_k},s_k) S θ ( x n s k , s k ) with a neural network and minimize the residual of the associated Hamilton-Jacobi-Bellman (HJB) equation (6) , as explored in Neklyudov et al. [45 ] ; Sun et al. (2025); Buzun et al. [11 ] . This strategy requires to learning the optimality conditions, rather than enforcing them directly, with important implications for both stability and numerical tractability.
In our formulation, the discretized optimality conditions (8) are enforced explicitly along predicted trajectories, reducing the problem to evaluating scalar quantities along sample paths ( x n s k m , w n s k m ) (x_n^{s_km},w_n^{s_km}) ( x n s k m , w n s k m ) that are already available. As a result, training only requires backpropagation through ∇ θ z θ \nabla_{\theta}z_{\theta} ∇ θ z θ , leading to a comparatively well-conditioned optimization procedure. In contrast, minimizing the HJB residual necessitates differentiating through mixed second-order terms ∇ x θ 2 S θ \nabla_{x_{\theta}}^{2}S_{\theta} ∇ x θ 2 S θ , which are notoriously ill-conditioned and often induce vanishing or exploding gradients [28 , 52 ] . Moreover, the HJB residual admits a constant degenerate solution S θ ( x n s k , s k ) = C S_{\theta}(x_n^{s_k},s_k)=C S θ ( x n s k , s k ) = C that trivially minimize the loss while encoding no transport information, thereby risking collapse of the optimization [72 ] . In this setting, methods that derive the drift solely from ∇ x S θ \nabla_x S_\theta ∇ x S θ tend to produce noisy approximations [46 , 11 ] (Sun et al. 2025). When no additional optimal transport solver is used to anchor the learned dynamics to the prescribed marginals, the problem further inherits the limitations of collocation-based schemes, including the curse of dimensionality and the need for extensive domain sampling [46 ] . These issues are exacerbated by the intrinsic regularity properties of optimal transport value functions, which frequently develop non-differentiable shocks. Accurately capturing such viscosity solutions is challenging for standard neural network parameterizations and typically requires substantial regularization [28 , 52 ] .
Taken together, these considerations highlight a key advantage of the proposed shooting formulation: by enforcing optimality conditions directly along trajectories, it avoids both the degeneracies and the numerical instabilities inherent to HJB residual minimization.
Computational Complexity and Practical Considerations
At each iteration of the geodesic optimization procedure (Alg. 1), we sample N N N points x n s 0 ∈ M x_n^{s_0} \in\mathcal{M} x n s 0 ∈ M of dimension D D D from the initial marginal ρ 0 \rho^0 ρ 0 . We then compute the discrete geodesic { ( x n s k , w n s k ) } \{(x_n^{s_k}, w_n^{s_k})\} {( x n s k , w n s k )} using equations (6), along with the optimality variables { ( ν n s k , S n s k , z n s k ) } \{(\nu_n^{s_k}, S_n^{s_k}, z_n^{s_k})\} {( ν n s k , S n s k , z n s k )} via equations (8). Each integration step requires 7 evaluations of the neural networks v θ v_\theta v θ and z θ z_\theta z θ , implemented as MLPs with L L L layers and hidden width W W W . For K K K integration steps, the computational cost of this forward pass scales as O ( 7 N D K L W ) O(7 N D K L W) O ( 7 N D K L W ) . The loss function ℓ \ell ℓ in equation (7a) requires M M M evaluations of the Wasserstein distance between sample batches. We employ the geomloss library [23 ] , which uses the Sinkhorn algorithm with time complexity O ( I s h M D N log N ) O(I_{\mathrm{sh}} M D N \log N) O ( I sh M D N log N ) , where I s h I_{\mathrm{sh}} I sh is the number of Sinkhorn iterations until convergence [23 ] . Combining both contributions, and noting that in practice N ≫ D , K , L , W N \gg D, K, L, W N ≫ D , K , L , W , the overall time complexity becomes,
O ( 7 N D K L W ) + O ( I s h D N log N ) ≈ O ( I s h D N log N ) . (81) O(7 N D K L W) + O(I_{\mathrm{sh}} D N \log N) \approx O(I_{\mathrm{sh}} D N \log N). \tag*{(81)} O ( 7 N D K L W ) + O ( I sh D N log N ) ≈ O ( I sh D N log N ) . (81)
Overall, the method exhibits favorable scaling properties: the complexity grows linearly with the data dimension D D D and nearly linearly with the batch size N N N . Additionally, it depends only weakly on the number of marginals and avoids costly outer iterative procedures required by alternative approaches.
Geodesic Parameterization: Finer discretization in high-variability regions
The result of integration equation (6), ( x n s k , w n s k ) (x_n^{s_k}, w_n^{s_k}) ( x n s k , w n s k ) , discretizes the geodesic ρ s \rho^s ρ s on P + ( M ) \mathcal{P}_+(\mathcal{M}) P + ( M ) into a piecewise-linear path segmented at nodes { ρ θ s k } k = 0 K \{\rho_\theta^{s_k}\}_{k=0}^K { ρ θ s k } k = 0 K , thereby defining a specific sampling of points along the geodesic. By default, minimizing the curve energy induced by the Wasserstein metric g W 2 g_{\mathcal{W}_2} g W 2 ,
d g W 2 2 ( ρ 0 , ρ M ) = ∑ k = 1 K d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) , (82) d_{g_{\mathcal{W}_2}}^2(\rho^0,\rho^M) = \sum_{k=1}^{K} d_{\mathcal{W}_2}^2(\rho_\theta^{s_k},\rho_\theta^{s_{k-1}}), \tag*{(82)} d g W 2 2 ( ρ 0 , ρ M ) = k = 1 ∑ K d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) , (82)
corresponds to a uniform arc-length discretization s s s , where each segment has approximately the same length, i.e., d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) ≈ C d_{\mathcal{W}_2}^2(\rho_\theta^{s_k},\rho_\theta^{s_{k-1}}) \approx C d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) ≈ C . The relationship between the arc-length discretization s s s and the time discretization t t t , which describes the progression along the geodesic with respect to the time variable, is given by d s = K d t ds = \sqrt{\mathcal{K}}\,dt d s = K d t , where K \mathcal{K} K denotes the kinetic energy of the system whose dynamics is interpreted as a geodesic. In the energy-conserving case, K \mathcal{K} K remains constant, and the time and arc-length discretizations differ only by a constant rescaling of the geodesic length. Nevertheless, the discretization nodes { ρ θ s k } k = 0 K \{\rho_\theta^{s_k}\}_{k=0}^K { ρ θ s k } k = 0 K remain unchanged, uniformly distributed in space and in time. In contrast, when modeling an energy-varying system whose associated trajectory projects onto a geodesic, the curve energy induced by the contact metric g c g^c g c takes the form,
d g c 2 ( ρ 0 , ρ M ) = ∑ k = 1 K K s k d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) . (83) d_{g^c}^2(\rho^0,\rho^M) = \sum_{k=1}^{K} \mathcal{K}^{s_k} d_{\mathcal{W}_2}^2(\rho_\theta^{s_k},\rho_\theta^{s_{k-1}}). \tag*{(83)} d g c 2 ( ρ 0 , ρ M ) = k = 1 ∑ K K s k d W 2 2 ( ρ θ s k , ρ θ s k − 1 ) . (83)
This optimization enforces an approximately uniform geodesic parameterization under g c g^c g c , resulting in a non-uniform node spacing Δ s \Delta s Δ s on the Wasserstein manifold, as Δ s = d W 2 ( ρ θ s k , ρ θ s k − 1 ) ≈ 1 K s k \Delta s = d_{\mathcal{W}_2}(\rho_\theta^{s_k},\rho_\theta^{s_{k-1}}) \approx\frac{1}{\mathcal{K}^{s_k}} Δ s = d W 2 ( ρ θ s k , ρ θ s k − 1 ) ≈ K s k 1 . As follows from equations (5), the scaling term K \mathcal{K} K increases with the growth rate z ˙ \dot{z} z ˙ . Consequently, regions with higher density concentration induce a larger effective metric. This, in turn, leads to a geodesic discretization that allocates more nodes in these areas, effectively assigning finer resolution to regions of higher variability and complexity.
Table 10. Model size and training time across methods and experimental settings. Memory is reported in MB and time in minutes.
Extended Results
Details on the experimental settings adopted in each experiments are provided in Table 11 . The synthetic ablation study (Appendix § 19 .§ 1 ) and the single-cell experiments (Appendix § 19 .§ 2 ) are conducted on a local machine equipped with an NVIDIA GeForce RTX 5090 GPU (32 GB memory, CUDA 13.0, driver 580.126.09). Methods are evaluated over 20 runs with different random seeds. The dataset-pairing (Appendix § 19 .3) and image-to-video generation experiments (Appendix § 19 .4) are run on a shared LSF-managed GPU cluster using the batch_a100 queue. Each run is allocated a single GPU in exclusive mode, together with 1 CPU core, 32 GB of system memory, and CUDA 12.6 support. Both Child → \to → Adult and Adult → \to → Child transports are evaluated over 10 independent retrainings each, while for image-to-video generation each method is retrained 10 times per action class.
Ablation Studies and Analysis of Mode Collapse
To isolate the individual sources of performance gains in the proposed CuOT framework, evaluate the impact of adaptive step-size selection, and quantitatively assess resilience to soft mode collapse, we perform a detailed empirical study on a synthetic dataset with known mode correspondences and mass dynamics.
The source distribution consists of three 2D Gaussian modes (variance σ = 0.15 \sigma= 0.15 σ = 0.15 ) centered at [0.0, 1.0], [− 0.8 -0.8 − 0.8 , 0.5], and [0.8, 0.5], each with 400 samples (total N = 1200 N = 1200 N = 1200 ). The target distribution comprises three distinct shapes centered at [0.0, 1.4] (Swiss roll, N = 600 N = 600 N = 600 ), [− 1.2 -1.2 − 1.2 , 0.7] (concentric rings, N = 600 N = 600 N = 600 ), and [1.2, 0.7] (pinwheel, N = 200 N = 200 N = 200 ). Under correct mode-to-mode matching, the first two source modes undergo mass expansion (requiring positive growth rates, z t > 0 z^t > 0 z t > 0 ), whereas the third mode undergoes mass decay (requiring a negative growth rate, z t < 0 z^t < 0 z t < 0 ). This setup intentionally misaligns the transport direction with the growth gradient for the third mode to directly target the failure modes of standard WFR-based formulations.
Performance is evaluated across global transport, mass conservation, and mode-level fidelity using, 2-Wasserstein (W 2 \mathcal{W}_2 W 2 ) and 1-Wasserstein (W 1 \mathcal{W}_1 W 1 ) distances between generated and ground-truth target distributions; absolute error in total reconstructed target mass; the fraction of source samples transported to incorrect target modes (Leakage); the chamfer distance from ground-truth target samples to generated samples (CD); and individual W 2 W_2 W 2 metrics for each of the three target modes [M 1 M_1 M 1 , M 2 M_2 M 2 , M 3 M_3 M 3 ] to quantify minority mode recovery. The results of the comparison are resumed in Table 2 .
We compare the complete CuOT model against five baselines and structural variants:
CuOT (Complete): The proposed full contact geometry formulation with spatial-temporal growth dynamics z θ ( x s k , s k ) z_\theta(x^{s_k}, s_k) z θ ( x s k , s k ) and adaptive step-size allocation.
CuOT w/ Time-Only Growth: Replaces z θ ( x s k , s k ) z_\theta(x^{s_k}, s_k) z θ ( x s k , s k ) with a spatially uniform, time-dependent growth rate parameter z θ ( s k ) z_\theta(s_k) z θ ( s k ) .
CuOT w/ WFR Geometry: Replaces the Herglotz variational uOT problem (3) with the WFR uOT (17) and applies the geodesic-based discretization described in Section 5. The discrete FP equation (6) and the feasibility loss term (11) remain unchanged, but the discrete optimality conditions (8) now discretize the WFR conditions (45), and the optimality loss optimizes the WFR geodesic objective coupled with growth regularization:
ℓ o p t = 1 2 ( v s k ) 2 w n s k d W 2 2 + ∥ z ~ n s k − z θ ( x n s k , s k ) ∥ 2 . \ell_{\mathrm{opt}} = \frac{1}{2}(v^{s_k})^2 w_n^{s_k} d_{\mathcal{W}_2}^2 + \left\lVert\tilde{z}_n^{s_k} - z_\theta(x_n^{s_k}, s_k) \right\rVert^2. ℓ opt = 2 1 ( v s k ) 2 w n s k d W 2 2 + ∥ z ~ n s k − z θ ( x n s k , s k ) ∥ 2 .
CuOT w/o Adaptive Step: Retains the growth regularization term from the contact formulation but uses standard 2-Wasserstein geodesic minimization for trajectory parameterization:
ℓ o p t = ( d W 2 ) 2 + ∥ z ~ n s k − z θ ( x n s k , s k ) ∥ 2 . \ell_{\mathrm{opt}} = (d^{\mathcal{W}_2})^2 + \left\lVert\tilde{z}_n^{s_k} - z_\theta(x_n^{s_k}, s_k) \right\rVert^2. ℓ opt = ( d W 2 ) 2 + ∥ z ~ n s k − z θ ( x n s k , s k ) ∥ 2 .
This isolates the contact-metric step adaptation but preserves mass variation dynamics.
VarRUOT: Standard variational WFR baseline.
OTCFM: OT-based baseline assisted by an independent global mass network.
Comparing CuOT (Complete) with CuOT w/o Adaptive Step directly isolates the impact of dynamic temporal resolution allocation. Although both variants achieve near-identical mass reconstruction errors (0.0006 vs. 0.0009) and mode leakage (0.2%), removing the adaptive step degrades overall transport accuracy (W 2 \mathcal{W}_2 W 2 : 0.10 → \to → 0.13; W 1 \mathcal{W}_1 W 1 : 0.08 → \to → 0.10). Inspecting per-mode target errors reveals that these performance gains are concentrated in regions undergoing mass expansion: CuOT (Complete) yields per-mode W 2 W_2 W 2 errors of [0.09, 0.10, 0.13], compared to [0.13, 0.14, 0.13] for the non-adaptive variant. This difference arises because the non-adaptive variant distributes discrete trajectory points uniformly due to the standard 2-Wasserstein geodesic objective. In contrast, the contact metric dynamically reduces step sizes in regions with positive local mass growth (z θ > 0 z_\theta> 0 z θ > 0 ), allocating higher temporal resolution to high-density target regions (Modes 1 and 2). Shrinking regions (Mode 3) retain standard resolution, maintaining consistent accuracy (W 2 = 0.13 \mathcal{W}_2 = 0.13 W 2 = 0.13 ).
WFR-based methods suffer from mode leakage, improperly assigning samples to distant target modes when transport directions conflict with local growth dynamics. This behavior is demonstrated in Table 2 , where VarRUOT and CuOT w/ WFR Geometry exhibit 6.5% and 10.4% mode leakage, respectively. Examining per-mode W 2 W_2 W 2 errors for VarRUOT ([0.15, 0.16, 0.20]) reveals progressive accuracy degradation on the third mode, which requires negative growth, because samples are instead transported toward other directions. As growth regularization vanishes, leakage decreases to 0, but WFR geometry induces positive growth for all modes and and high CD (> 0.3 > 0.3 > 0.3 ), causing samples to cover only partial modes and leading to mode collapse. The time-only growth variant cannot capture spatially varying dynamics, yielding the worst performance, as the target requires simultaneous growth and decay across different regions. The OTCFM method with the global mass network successfully minimizes global mass error (0.0001), but as it keeps sample weights constant it fails to prevent misrouting, resulting in the highest mode leakage (17.7%).
Single-Cell Dynamics Prediction
The benchmarks considered in the experiments range from a controlled synthetic setting to four real-world datasets of increasing dimensionality and complexity. All datasets share the common structure of temporal snapshots of single-cell gene expression data: each marginal ρ m \rho^m ρ m is a collection of cells measured at a given time point, represented as points in a high-dimensional feature space, with the total cell count varying across time points due to proliferation and death. As summarized in the dataset-specific tables below, the Wasserstein distance between successive marginals, which the learned transport network v θ v_\theta v θ must replicate, is not proportional to the growth rate gradient ∇ x z t \nabla_x z^t ∇ x z t , systematically violating the geometric coupling assumption underlying WFR-based reconstruction methods.
Three-gene simulation (Zhang et al., [85 ] ) (2D). This synthetic dataset simulates stochastic gene expression dynamics for a system of three genes incorporating self-activation, mutual inhibition, and external activation. The two-dimensional representation corresponds to the two leading principal genes of the gene expression trajectory. The initial distribution splits into two clusters, one of which remains quiescent while the other evolves through the state space, with a monotonically decreasing distance between successive marginals and an approximately constant growth rate gradient. The dataset comprises M = 4 M = 4 M = 4 observed marginals with three intermediate marginals included in training.
Mouse hematopoiesis (Weinreb et al., [78 ] ) (2D). This dataset tracks blood stem cells in a mouse as they commit to one of two specialized blood cell lineages over time. The two-dimensional representation corresponds to the two principal axes of the differentiation process. The dataset comprises M = 2 M = 2 M = 2 observed marginals plus the initial condition, with a single intermediate marginal included in training.
Epithelial–mesenchymal transition (EMT) [18 ] (10D). This dataset captures the process by which cancer cells switch from a stationary, tightly-packed epithelial state to a mobile, loosely-connected mesenchymal state, a key step in tumor metastasis and invasion. The 10-dimensional feature space corresponds to the leading principal components of the gene expression profile. The transition induces a pronounced shift in the distribution support across time points, accompanied by moderate mass variation, and the dataset includes M = 3 M=3 M = 3 observed marginals with two intermediate marginals used in training.
Pancreatic β \beta β -cell differentiation (Veres et al., [70 ] ) (30D). This dataset describes the in vitro maturation of human stem cells into insulin-secreting pancreatic β \beta β -cells, a process of direct relevance to diabetes research. The 30-dimensional feature space is obtained via UMAP dimensionality reduction of the full gene expression profile. The dataset presents significant variability across time points, partly attributable to experimental sampling noise inherent to the in vitro protocol, and strong mass variation reflecting heterogeneous differentiation rates. It comprises M = 7 M=7 M = 7 observed marginals with six intermediate marginals included in training, making it the most densely observed benchmark.
Zebrafish embryogenesis (Farrell et al., [21 ] ) (50D). This dataset captures the early development of a zebrafish embryo, during which a population of initially undifferentiated cells diversifies into 25 distinct specialized cell types over approximately 9 hours. The 50-dimensional feature space is obtained via UMAP reduction of the full transcriptome. This is the highest-dimensional single-cell benchmark, characterized by rapid and highly heterogeneous proliferation across branching cell lineages, and presents the most challenging mass variation profile. The dataset comprises M = 6 M = 6 M = 6 observed marginals with five intermediate marginals included in training.
Unmatched Datasets Pairing
The Flickr-Faces-HQ (FFHQ) dataset is a high-resolution (1024 × 1024 1024 \times1024 1024 × 1024 ) collection of human faces that exhibits a remarkably wide range of visual variations [32 ] . We follow the experimental protocol adopted by Gushchin et al. [27 ] , using their publicly available datasets from https://github.com/ngushchin/LightSB. We split the dataset into training (first 60K images) and testing (last 10K images) subsets. Each subset is further partitioned into age groups, specifically adults and children , using the per-image age labels provided by the FFHQ-Features dataset [32 ] , which supplies facial attribute annotations for the full FFHQ collection. These two groups correspond to the reference marginal distributions ρ m \rho^m ρ m , yielding an unbalanced, unpaired matching problem: the training split contains approximately 45 K 45K 45 K adult samples and 15 K 15K 15 K child samples. The goal of this experiment is to synthesize age-transformed images of the same individual. Specifically, given an adult image, the model generates a realistic depiction of that person as a child, and conversely, given a child image, it produces a plausible adult version of the same individual.
To train our solvers using the MLP architectures common across all baseline methods, we operate within the latent space of pre-trained autoencoders. To evaluate sensitivity to the choice of latent representation, we consider two encoder backbones: (i) the ALAE encoder [51 ] , which compresses a 1024 × 1024 1024 \times1024 1024 × 1024 image into a 512 512 512 -dimensional vector, and (ii) the e4e encoder [54 ] , which maps images into the StyleGAN latent space by generating a distinct 512 512 512 -dimensional style code for each of the 18 18 18 generator layers. This 18 18 18 -fold increase in feature dimensionality (9216 9216 9216 dimensions in total) necessitates scaling up the baseline model capacities accordingly. During inference, an input image is mapped to the latent space, transformed via the learned transport map, and reconstructed through the corresponding decoder to produce the age-transformed result. Full hyperparameter configurations for both setups are detailed in Table 11 .
The experiment defines two complementary transport directions. The Adult → \to → Child task requires accurate early-stage dynamics in a high-density source distribution to ensure correct transport to the right mode in the lower-density target mode. Because the adult distribution is roughly three times larger than the child distribution, correctly learning the initial transport direction is fundamental to retrieve the correct equivalent mode in the target. Conversely, the Child → \to → Adult task demands high-fidelity reconstructions and correct coverage of the broader adult distribution support, as the model must generate plausible, diverse adult appearances from a compact source.
We evaluate all methods using FID, and the latent-space Wasserstein distances W 1 \mathcal{W}_1 W 1 and W 2 \mathcal{W}_2 W 2 , together with a mass discrepancy term. FID is computed directly in pixel space using the standard InceptionV3 feature extractor (2048-dimensional pool layer), following the formulation,
FID = ∥ μ r − μ g ∥ 2 + Tr ( Σ r + Σ g − 2 ( Σ r Σ g ) 1 / 2 ) , (84) \operatorname{FID} = \lVert\mu_r - \mu_g \rVert^2 + \operatorname{Tr}\left(\Sigma_r + \Sigma_g - 2\left(\Sigma_r\Sigma_g\right)^{1/2}\right), \tag*{(84)} FID = ∥ μ r − μ g ∥ 2 + Tr ( Σ r + Σ g − 2 ( Σ r Σ g ) 1/2 ) , (84)
where ( μ r , Σ r ) (\mu_r, \Sigma_r) ( μ r , Σ r ) and ( μ g , Σ g ) (\mu_g, \Sigma_g) ( μ g , Σ g ) are the mean and covariance of the InceptionV3 activations computed over the real and generated test images, respectively. The matrix square root is computed via Schur decomposition, with the real part taken whenever the result contains negligible imaginary components due to numerical precision.
Quantitative results for both transport directions are reported separately in Table 22 and Table 23 for the ALAE latent space, and in Table 24 and Table 25 for the e2e latent space. Table 6 of the main paper reports the combined average across directions for the ALAE latent space. In this setting, while balanced OT approaches yield larger latent distances from the target distribution than WFR-based uOT methods, they achieve the second-best FID score, which better measures mode coverage in the reconstructed images. As shown in Figure 11 and Figure 5 , higher latent distances correlate with lower image quality. Nevertheless, balanced OT methods still correctly capture target modes and provide full distribution coverage, producing images that broadly reflect the intended age group. In contrast, WFR-based uOT methods frequently fail to complete the transport effectively: despite achieving lower latent distances, they exhibit significantly higher FID scores, indicating that mass-growth bias causes distributional collapse in pixel space rather than faithful age transformation. Due to contact geometry, CuOT achieves state-of-the-art performance across all metrics, with improved target coverage and sample quality in both directions. Qualitative examples of the full transport bridge computed by our CuOT method and each baseline are presented in Figure 12 –Figure 15 . These figures also illustrate how CuOT allocates more integration steps in high-density regions of the source distribution, following the finer geodesic discretization induced by the contact Wasserstein metric g C = K g W 2 g^C = \sqrt{K}\,g^{W_2} g C = K g W 2 (see Appendix E.6). A compact side-by-side qualitative comparison at the endpoint is shown in Figure 11 and 5. In the higher-dimensional latent space produced by the e2e encoder, CuOT maintains its competitive advantage, exhibiting only a modest performance drop relative to the lower-dimensional setup. Among the baselines, OTCFM is the sole method that scales reasonably well, whereas other WFR-based uOT frameworks suffer severe performance degradation. These results demonstrate both the adaptability of our framework to distinct latent architectures and its superior scalability compared to state-of-the-art baselines. Figure 16 visualize the bridge decoded from the the e2e late space.
Table 22. Adult → \to → Child. FFHQ dataset ([32 ] ), ALAE encoder ([51 ] ).
Table 23. Child → \to → Adult. FFHQ dataset ([32 ] ), ALAE encoder ([51 ] ).
Table 24. Adult → \to → Child. FFHQ dataset ([32 ] ), e2e encoder ([54 ] ).
Table 25. Child → \to → Adult. FFHQ dataset ([32 ] ), e2e encoder ([54 ] ).
Figure 11. Adult → Child image generation experiment on the FFHQ dataset [32 ] , ALAE encoder [51 ] .
Figure 16. Visualization of the bridge computed on the FFHQ dataset ([32 ] ) by our CuOT method (e2e encoder Richardson et al. [54 ] ).
Figure 13. Visualization of the bridge computed on the FFHQ dataset [32 ] by the VarRUOT method Sun et al. [61 ] (ALAE encoder [51 ] ).
Figure 14. Visualization of the bridge computed on the FFHQ dataset ([32 ] ) by the DeepRUOT method Zhang et al. [85 ] (ALAE encoder Pidhorskyi et al. [51 ] ).
Image-to-Video Experiment
We evaluate the scalability of CuOT on temporal video reconstruction using the UCF101 dataset Soomro et al., [60 ] , a benchmark of 101 human action classes recorded at 320 × 240 pixel resolution. We select three action classes: BreastStroke , BlowingCandles , and CuttingInKitchen , each comprising respectively of 101, 105 and 104 videos. Within each class, the temporal sequence of frames defines the reference marginal distributions { ρ m } m = 0 M \{\rho^m\}_{m=0}^{M} { ρ m } m = 0 M , with M = 60 M = 60 M = 60 intermediate marginals corresponding to uniformly sampled discrete time steps along the video. Each marginal ρ m \rho^m ρ m is thus represented by the ensemble of frames { x n m } \{x_n^m\} { x n m } at time step m m m across all videos in the class, providing the empirical distribution at that point in time. This formulation casts video reconstruction as a multi-marginal transport problem. Because the frame count per video remains constant across time steps, mass variation in this setting is negligible. Consequently, the primary objective of this experiment is not to test CuOT’s mass-unbalancing capabilities, as in our other benchmark evaluations, but rather to demonstrate its scalability and stability when interpolating across a large number of marginal distributions in high-dimensional, structured data spaces.
To mitigate computational overhead, all solvers are trained directly within the latent space of pretrained autoencoders. To evaluate method performance across varying latent space topologies, we consider two distinct encoder backbones: (i) the Deep Compression Autoencoder Chen et al., [13 ] , which maps each 320 × 240 frame into a compact 32 × 8 × 8 = 2048-dimensional feature map, and (ii) the TiTok encoder (Yu et al., 2024), which compresses frames into a 128 × 32 (4096-dimensional) sequence. Although TiTok yields a higher-dimensional representation, flattening the 2D spatial grid structure simplifies feature alignment for the transport networks, allowing us to maintain identical model capacities across both setups. During inference, an initial frame is encoded into the latent space, propagated along the predicted geodesic via the learned transport map, and decoded at each time step to reconstruct the video sequence. In both settings, we set the number of integration steps to K = 180 K = 180 K = 180 , providing K / M = 3 K/M = 3 K / M = 3 discretization steps per observed marginal interval to ensure high temporal resolution. Full network and training configurations are detailed in Table 11 .
This experiment poses two distinct challenges beyond those of the FFHQ pairing task. First, the high ambient dimensionality (D = 2048 D = 2048 D = 2048 ) stresses scalability, and the 32 × 8 × 8 grid structure preserves spatial information, meaning the data do not lie in a simple vector space. Second, the large number of intermediate marginals (M = 60 M = 60 M = 60 ) requires the learned transport map to remain consistent across a long temporal horizon, preventing error accumulation along the predicted trajectory. These conditions expose the structural limitations of WFR-based methods, whose growth-rate bias compounds across marginals and leads to trajectory collapse in this high-dimensional regime.
We report three metrics. The FID is computed in the ambient pixel space after decoding, comparing the full set of reference frames against the full set of reconstructed frames across the entire video. We use the standard InceptionV3 feature extractor (2048-dimensional pool layer), following the formulation in equation (84) (Appendix § 19 .3). This metric measures the ability of each method to recover the distributional support and diversity of the video content. The latent Wasserstein distances W 1 \mathcal{W}_1 W 1 and W 2 \mathcal{W}_2 W 2 are evaluated time-step by time-step in the latent space: for each m ∈ { 0 , … , M } m \in\{0, \ldots, M\} m ∈ { 0 , … , M } , the empirical distribution of predicted latent codes is compared against the reference marginal ρ m \rho^m ρ m , and the reported value is averaged over all marginals. This per-timestep criterion directly probes whether each method correctly tracks the sequence of marginal distributions along the trajectory, penalising both early divergence and late-stage drift. The mass metric was intentionally omitted from the evaluation as the transport problem does not present mass variation.
Figure 17 –Figure 18 display uniformly sampled frame sequences reconstructed from the CB latent space across each action class. Table 26 –Table 28 detail the corresponding per-class quantitative results, while aggregate metrics are summarized in Table 8 . Additionally, Table 29 presents the ablation results using the TiTok latent space, with corresponding decoded video trajectories across various initial frames visualized in Figure 20 .
Table 26. BreastStroke class, UCF101 (Soomro et al. [60 ] ), CB encoder (Chen et al. [13 ] ).
Figure 17. BreastStroke class, UCF101 (Soomro et al. [60 ] ), CB encoder (Chen et al. [13 ] ).
Figure 18. BlowingCandles class, UCF101 ([60 ] ), CB encoder ([13 ] ).
Table 28. Table 28: CuttingInKitchen class, UCF101 ([60 ] ), CB encoder ([13 ] ).
Table 29. BreastStroke class, UCF101 [60 ] , TiTok encoder (Yu et al., 2024).
Figure 20. BreastStroke class, UCF101 [60 ] , TiTok encoder (Yu et al., 2024).
CuOT consistently achieves the best scores across all metrics, classes and latent representations, by a wide margin. Given the stringent requirement of aligning many intermediate marginals, this highlights the stability and effectiveness of the proposed geodesic-based resolution algorithm in high-dimensional multi-marginal settings. WFR-based baselines are typically not demonstrated on benchmarks with dimensionalities higher than 50, and they struggle significantly on this task. In this class of methods, Zhang et al. [85 ] represents the strongest option, but still performs roughly an order of magnitude worse. This gap likely reflects the difficulty of jointly parameterizing multiple variables and the need to enforce the HJB optimality equation in the loss (notoriously unstable [11 ] ), rather than directly simulating transport (provable stable in Appendix § 18 .4). In this class we also find the method performing worst, Sun et al. (2025). Its strict enforcement of v t ( x ) = ∇ x z t ( x ) v^{t}(x) = \nabla_x z^{t}(x) v t ( x ) = ∇ x z t ( x ) yields a noisy and unstable signal in the high-dimensional latent spaces, causing collapse to near-static trajectories where samples remain close to ρ 0 \rho^{0} ρ 0 and exhibit minimal temporal evolution. Tong et al. [65 ] has been demonstrated to scale to higher-dimensional datasets like CIFAR-10, but it is fundamentally optimized for two marginals. Because it relies heavily on flow matching, adapting it to multiple marginals requires iterative reference refinement techniques to update the ground-truth matching along the learned path. This introduces significant computational overhead and drastically slows down convergence compared to our framework. While computationally efficient (similarly to Sha et al. [58 ] ), its reliance on density estimation rather than explicit OT matching does not scale: without re-anchoring to reference marginals, discretization errors accumulate over the M = 60 M = 60 M = 60 steps, leading to drift and higher variance.
CuOT consistently achieves the best performance across all metrics, action classes, and latent representations by a wide margin. Given the stringent requirement of aligning numerous intermediate marginals, these results highlight the stability and effectiveness of our proposed geodesic-based resolution algorithm in high-dimensional multi-marginal settings. Existing WFR-based uOT baselines are typically evaluated only on low-dimensional benchmarks (≤ 50 \le50 ≤ 50 dimensions) and struggle significantly on this task. Among these, DeepRUOT (Zhang et al. [85 ] ) represents the strongest option, yet it performs roughly an order of magnitude worse than CuOT. This performance gap stems from the inherent difficulty of jointly parameterizing multiple field variables and enforcing the HJB optimality loss, a process known to be notoriously unstable ([11 ] ), as opposed to directly simulating transport maps (provably stable; see Appendix § 18 .4). Within the same family, VarRUOT (Sun et al. [61 ] ) exhibits the poorest performance: its strict constraint v t ( x ) = ∇ x z t ( x ) v^{t}(x) = \nabla_x z^{t}(x) v t ( x ) = ∇ x z t ( x ) produces noisy gradient signals in high-dimensional latent spaces, causing trajectories to collapse into near-static states that remain anchored close to ρ 0 \rho^{0} ρ 0 with minimal temporal evolution. Flow-matching baselines like OTCFM (Tong et al. [65 ] ) have been shown to scale to higher-dimensional image datasets (e.g., CIFAR-10), but they are fundamentally optimized for two-marginal problems. Adapting OTCFM to multi-marginal trajectories requires iterative reference refinement to update ground-truth matchings along the learned path, introducing heavy computational overhead and substantially slowing convergence.
Table 27. Table 27: BlowingCandles class, UCF101 ([60 ] ), CB encoder ([13 ] ).
Figure 19. CuttingInKitchen class, UCF101 ([60 ] ), CB encoder ([13 ] ).
Broader Impacts
CuOT introduces contact geometry as a unifying framework for optimal transport, bridging physical transport (described by Wasserstein geometry) and the information-theoretic structure of data distributions (described by Fisher–Rao geometry). This constitutes a significant theoretical advance in the study of the geometry of generative processes, as prior Wasserstein–Fisher–Rao approaches typically interpolate between these distinct regimes, whereas our method provides a generalized lift that avoids restrictive assumptions.
Our framework is particularly suited for modeling stochastic dynamics in the natural sciences. By removing the need for expert-specified growth priors [16 , 37 , 48 , 69 , 55 ] , CuOT facilitates more accurate reconstruction of cell-fate dynamics and disease progression from sparse, static observations. This reduces reliance on costly longitudinal single-cell experiments and supports faster progress in areas such as regenerative medicine and oncology by extracting high-resolution developmental information from standard datasets. The proposed framework improves unpaired domain adaptation, particularly in translating synthetic data to real clinical imagery [74 , 8 ] . This enhances the robustness and generalizability of diagnostic models across varying acquisition conditions and clinical environments. CuOT also ensures that underrepresented data modes are preserved, potentially reducing bias in generative models used for decision-making or synthetic data augmentation. While CuOT improves reliability, deployment in medical settings requires careful validation to ensure that the decoupling of mass growth does not introduce artifacts that could affect clinical decisions.
On the implementation front, CuOT efficiency reduces the total computational budget, and the associated carbon footprint required for large-scale distribution alignment tasks compared to more resource-intensive quadratic-complexity alternatives, summarized in Table 1 .
Limitations and Future Directions
The experimental validation of CuOT has been conducted exclusively using MLP architectures for both the transport network v θ t v_\theta^t v θ t and the growth network z θ t z_\theta^t z θ t . MLPs treat input coordinates as mutually independent, and are therefore well-suited to the vector-valued data encountered in the single-cell experiments and in highly-compressed image latent spaces. However, they do not explicitly capture inter-element dependencies, such as spatial correlations in images or sequential structure in time series, that are critical in domains where the data geometry cannot be faithfully represented by a coordinate-wise factorization. Architectures such as Transformers and U-Nets represent the state of the art in structured sequence modeling. While the contact-geometric formulation of CuOT is architecture-agnostic and does not preclude the use of such backbones, their integration with the geodesic discretization scheme of Eqs. (6)–(8) has not been investigated, and the scalability and reconstruction quality of CuOT in these high-structure regimes remains to be studied.
As an Optimal Transport (OT) formulation designed for interpolating between distribution pairs and multiple marginals, CuOT is not directly comparable to specialized image-to-video models [76 ] (Ni et al. 2023). Interpolation-based approaches, which treat each video frame as a discrete sample, are inherently less efficient than architectures that represent an entire video as a single latent point. By utilizing the initial image as a conditioning factor, these specialized models optimize higher-dimensional but less constrained generative dynamics, resulting in a more scalable optimization framework.
CuOT enables the adaptation of generative sampling steps to the varying data density of the interpolated marginals, mitigating overshooting effects along the transport path. An interesting structural parallel arises with recent work investigating the geometry of diffusion-based generation [31 ] , which operates in a more restricted setting by connecting data points within a single trained model via geodesics under the Fisher–Rao metric, rather than bridging arbitrary unpaired marginals. Both frameworks share the underlying principle that step sizes should reflect the local geometry of the data distribution rather than ambient Euclidean structure. Nevertheless, an explicit characterization of the link between the contact geometry introduced here and the Fisher–Rao geometry, and more broadly, the relationship between contact dynamics on the probability manifold and information-geometric metrics on latent spaces, remains an open direction for future work.