Flow matching (FM) samples by integrating a learned velocity field over many steps, and a continuous one-step map cannot separate disconnected modes. We introduce morphological flow matching (MorphoFM), which defines the velocity field by the morphological erosion of a learned scalar potential, given by the Hopf--Lax formula in Euclidean spaces and on Riemannian manifolds. At the optimal potential, trajectories are constant-speed geodesics, so one step is exact. Since the conditional flow matching loss cannot learn such a potential in general, we derive a loss from an optimality gap of the erosion: its terminal term is, up to sign, the semi-dual Kantorovich objective, and its minimizer cancels the flow matching residual on the optimal coupling without computing that coupling. ReLU potentials, whose gradients can jump, separate disconnected modes in one step, and batch candidates with memorized extremal points keep the inner problem tractable. On synthetic and spherical Earth data, MorphoFM matches the data reference in one step; on CIFAR-10, the same algorithm scales to images, with a one-step FID of 31.3 versus 231.5 for OT-CFM and 350.6 for FM.
翻译:暂无翻译