Curly Flow Matching
Abstract
Modeling the transport dynamics of natural processes from population-level observations is a ubiquitous problem in the natural sciences. Such models rely on key assumptions about the underlying process in order to enable faithful learning of governing dynamics that mimic the actual system behavior. The de facto assumption in current approaches relies on the principle of least action that results in gradient field dynamics and leads to trajectories minimizing an energy functional between two probability measures. However, many real-world systems, such as cell cycles in single-cell RNA, are known to exhibit non-gradient, periodic behavior, which fundamentally cannot be captured by current state-of-the-art methods such as flow and bridge matching. In this paper, we introduce Curly Flow Matching (Curly-FM), a novel approach that is capable of learning non-gradient field dynamics by designing and solving a Schrödinger bridge problem with a non-zero drift reference process—in stark contrast to typical zero-drift reference processes— which is constructed using inferred velocities in addition to population snapshot data. We showcase Curly-FM by solving the trajectory inference problems for single cells, computational fluid dynamics, and ocean currents with approximate velocities. We demonstrate that Curly-FM can learn trajectories that better match both the reference process and population marginals. Curly-FM expands flow matching models beyond the modeling of populations and towards the modeling of known periodic behavior in physical systems.
Introduction
Curly Flow Matching (Curly-FM) is a flow-based model that aims to learn non-gradient field dynamics in complex systems which evolve with respect to some prescribed non-zero drift reference process. In this paper we solve non-zero drift Schrödinger Bridge (SB) problem in order to learn periodic or cyclical patterns in the data.
To train a Curly Flow Matching model, we assume access to velocity information prior. For example, this can be RNA velocity in single-cell data or fluid particle velocity in turbulent flows. We model non-gradient field dynamics by decomposing this problem into a two-staged algorithm where first stage learns neural bridge matching the bridge to designed reference process and second stage where we learn couplings and transport plan between marginal data distributions.
Because of its simulation-free nature, Curly-FM surpasses other simualation-based methods in its computational speed and efficiency. Further, given Curly-FM considers non-zero reference process with real velocity priors, it offers an interpretable framework for analyzing trajectories across real-world domains.
Theory & Framework
Goal
We aim to learn transport dynamics between population marginals while leveraging a reference process over trajectories. Unlike standard gradient-field assumptions, our target systems can exhibit non-gradient and periodic behavior. We model this as a Schrödinger Bridge problem between path measures $\mathbb{P}$ for particle evolution and $\mathbb{Q}$ reference process.
Zero-drift Schrödinger Bridge
In classical Schrödinger bridge formulations, the reference process is typically a zero-drift diffusion (e.g., Brownian motion). In such cases particle evolution and reference process are modeled as stochastic process via following Itô SDEs
The optimal bridge then takes form of Brownian bridge given as
Non-zero-drift Schrödinger Bridge
In Curly-FM we consider non-zero drift reference process $\mathbb{Q}$ which unlike zero-drift SB does not have closed form solution.
To solve non-zero reference SB we construct neural bridge $\mathbb{Q}_{\nu,t}(\,\cdot \mid x_0,x_1)$ such that
where $\mu_{t,\nu}$ is a neural interpolant with neural network $\varphi_{t,\eta}(x_0,x_1)$ designed to match reference drift $$\mu_{t,\nu} = t x_1 + (1-t)x_0 + t(1-t)\varphi_{t,\eta}(x_0,x_1).$$
Results
Cell Cycles: Curly-FM learns cell sycle trajectories
Ocean Currents: Curly-FM learns periodic motion in ocean data
Mouse Erythroid: Curly-FM learns developmental pathways in mouse erythroid
Poster
BibTeX
@inproceedings{
petrovic2025curly,
title={Curly Flow Matching for Learning Non-gradient Field Dynamics},
author={Katarina Petrovi{\'c} and Lazar Atanackovic and Viggo Moro and Kacper Kapu{\'s}niak and Ismail Ilkan Ceylan and Michael M. Bronstein and Joey Bose and Alexander Tong},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://openreview.net/forum?id=7cqKVDgFZQ}
}