Neural Hamilton--Jacobi Characteristic Flows for Optimal Transport
Yesom Park, Shu Liu, Mo Zhou, Stanley Osher
TL;DR
This paper addresses the problem of learning optimal transport maps between probability distributions with general cost functions in a scalable and provably correct manner. It introduces Neural Characteristic Flow (NCF), a single implicit neural representation that exploits the Hamilton–Jacobi equation and its method of characteristics to obtain closed-form bidirectional OT maps without solving ODEs. The approach provides theoretical guarantees of consistency with OT and stability in Gaussian settings, and it extends naturally to class-conditional OT via per-class MMD alignment. Empirically, NCF achieves accurate, efficient transport across 2D toys, high-dimensional Gaussians, color transfer, and MNIST/Fashion-MNIST tasks, outperforming adversarial and dynamical baselines while handling a broad class of costs.
Abstract
We present a novel framework for solving optimal transport (OT) problems based on the Hamilton--Jacobi (HJ) equation, whose viscosity solution uniquely characterizes the OT map. By leveraging the method of characteristics, we derive closed-form, bidirectional transport maps, thereby eliminating the need for numerical integration. The proposed method adopts a pure minimization framework: a single neural network is trained with a loss function derived from the method of characteristics of the HJ equation. This design guarantees convergence to the optimal map while eliminating adversarial training stages, thereby substantially reducing computational complexity. Furthermore, the framework naturally extends to a wide class of cost functions and supports class-conditional transport. Extensive experiments on diverse datasets demonstrate the accuracy, scalability, and efficiency of the proposed method, establishing it as a principled and versatile tool for OT applications with provable optimality.
