TL;DR
HOTA (Hamiltonian Optimal Transport Advection) is a novel framework that solves the continuous-time dynamical Optimal Transport problem by elegantly linking Kantorovich potentials with a Hamilton-Jacobi-Bellman (HJB) value function. By avoiding explicit intermediate density modeling, HOTA achieves unprecedented stability, handles non-smooth cost functions (like sharp obstacles), and delivers state-of-the-art performance in exact distribution matching and trajectory optimality.
What Problem Does This Paper Address?
Optimal Transport (OT) is a powerful mathematical framework for moving one probability distribution to another while minimizing a defined cost. While classical "static" OT finds the optimal pairing between start and end points, it typically results in straight-line trajectories. This is a major limitation when dealing with complex data manifolds, obstacles, or physical constraints where straight paths are impossible or highly suboptimal.
To fix this, researchers use dynamical OT (or the Generalized Schrödinger Bridge problem), which optimizes the entire continuous-time path using a state cost function $U(x)$ to penalize trajectories passing through undesirable regions. However, existing methods based on the Hamilton-Jacobi-Bellman (HJB) equation suffer from severe training instabilities, high-variance gradients in high dimensions, and a failure to precisely match the target terminal distribution. Furthermore, state-of-the-art baselines require these state costs to be perfectly smooth and differentiable, rendering them useless when navigating around hard, non-differentiable obstacles.
Methods
HOTA tackles the dual formulation of the dynamical OT problem explicitly. Instead of trying to model the complex, shifting intermediate densities of the probability flow, HOTA parameterizes the HJB value function $s_\theta(t, x)$ directly using a neural network. The optimal velocity field (or drift) is then cleanly derived as the gradient of this value function: $v_t = -\nabla_x s(t, x_t)$.
The framework optimizes this value function using a composite objective consisting of two main losses:
- Potential Matching Loss ($L_{pot}$): Acts like a discriminator at the final time step ($t=1$), ensuring that the transported source distribution exactly matches the target distribution.
- HJB Residual Loss ($L_{hjb}$): Enforces the underlying physics of the HJB partial differential equation along the generated trajectories, ensuring path optimality.
To make this work stably in practice, the authors introduce two key engineering mechanisms:
- Adaptive Gradient Balancing: An exponential moving average (EMA) approach that dynamically scales the gradients of the HJB loss relative to the potential matching loss, preventing either constraint from dominating and destabilizing training.
- Replay Buffer: Stores trajectory history to stabilize HJB optimization in high-dimensional spaces, preventing the model from forgetting previously learned paths.
Datasets
The authors evaluated HOTA across a diverse suite of synthetic and physically-inspired benchmarks:
- Smooth 2D Manifolds: Stunnel (rapidly changing drift fields), Vneck (compressing/expanding distributions), and GMM (separating closely situated points into distinct trajectories).
- Non-Smooth 2D Obstacles: BabyMaze, Slit, and Box—datasets featuring non-differentiable state costs representing hard physical barriers.
- High-Dimensional Sphere: An $N$-dimensional unit sphere acting as a potential barrier, tested up to hundreds of dimensions to evaluate scalability.
- Opinion Depolarization: A complex, 1000-dimensional synthetic dataset modeling political party dynamics and agent viewpoint alignment.
Key Insights and Ideas
- Density-Free is Hassle-Free: By bypassing the need to estimate intermediate probability densities $\rho_t(x_t)$, HOTA eliminates a massive source of approximation error and variance that plagues competing matching algorithms.
- Bridging Static and Dynamic OT: The core "aha moment" is proving that the terminal boundary condition of the dynamic HJB equation can be directly substituted by the dual Kantorovich potentials of static OT. This mathematically guarantees exact distribution matching while optimizing continuous paths.
- Robustness to Sharp Geometry: Because the potential term is integrated directly into the HJB residual objective rather than relying purely on trajectory-based cost gradients, HOTA seamlessly glides around non-differentiable, sharp obstacles where previous methods diverge.
Key Results
HOTA consistently outperformed state-of-the-art baselines like GSBM and NLSB across both evaluation metrics: feasibility (how well the target distribution is matched via $W_2$ distance) and optimality (the total integral cost along the path).
- Superior Trajectory Separation: On the challenging GMM dataset, HOTA achieved an optimality cost of 80.44, drastically outperforming GSBM (229.12) and NLSB (4202.71), proving its superior ability to disambiguate and separate paths.
- Mastering Obstacles: On non-smooth datasets like Slit, HOTA achieved a feasibility score of 0.0004, compared to GSBM's 0.01, demonstrating near-perfect distribution matching even when squeezing through tight, non-differentiable gaps.
- High-Dimensional Scalability: As shown in the Sphere and Opinion Depolarization experiments, HOTA maintains stable performance and tight distribution matching even as the dimensionality scales up to 1000.
Limitations and Future Work
Despite its robust performance, the authors note that HOTA is sensitive to specific network design choices, particularly the Fourier feature encoding used for the time component. If the frequencies are too high, it can introduce numerical instability into the HJB gradient calculations.
Additionally, because the neural network must simultaneously act as an optimal control policy and a Kantorovich potential, a simple MLP architecture might not be expressive enough to capture highly intricate spatio-temporal dynamics. The authors suggest that incorporating stronger inductive biases or specialized architectures (like attention mechanisms or physics-informed neural networks) represents a promising direction for future research.
Summary updated