Continuous generative models, such as Diffusion Models and Flow Matching (FM), have achieved remarkable success by learning a vector field that transforms a simple noise distribution into a complex data distribution. Traditionally, these models are governed by Ordinary Differential Equations (ODEs). However, ODEs are mathematically "memoryless," which introduces several hard limitations when modeling complex, real-world dynamics.
This paper introduces Delay Flow Matching (DFM), a novel framework built on Delay Differential Equations (DDEs) that incorporates historical states into the generative process. By leveraging this "memory," DFM can model intersecting trajectories, capture complex delay dynamics, and handle transfers between heterogeneous distributions that typically break standard ODE-based models.
The Limitations of ODE-Based Flow Matching
Most continuous normalizing flows and flow matching models rely on ODEs, which face three major structural limitations:
- No Intersections: In an ODE, the velocity at any point is determined solely by the current state and time. Consequently, two trajectories can never cross; doing so would violate the mathematical "uniqueness of solutions." This severely limits tasks like data "swapping" or complex transport where paths naturally overlap.
- Memorylessness: Many real-world processes, particularly in biology and physics, feature inherent delays (e.g., the time required for gene transcription). ODEs cannot naturally recover these delay-driven dynamics from static snapshot data.
- Distributional Heterogeneity: When a single source cluster must split into multiple distinct target clusters (a bifurcation), ODE-based vector fields often encounter singularities (mathematical "blow-ups") or produce "rewired" paths that fail to respect the underlying data structure.
Delay Flow Matching: Adding Memory to Generative Models
To overcome these hurdles, the authors propose replacing the standard ODE with a Delay Differential Equation (DDE):
$$\dot{x}(t) = u[t, x(t), x(t-\tau)]$$
where $\tau$ represents a time delay.
Key Innovations
- The Delay Term: By making the velocity depend on a past state $x(t-\tau)$, the model gains "memory." Two paths can now pass through the exact same point $x$ at time $t$ but move in completely different directions because their historical trajectories differ.
- Initial Functions: Unlike ODEs, which only require a starting point $x_0$, DDEs require an "initial function" $\psi(h)$ that defines the state for the entire initial interval $[-\tau, 0]$. The authors leverage this requirement to design two variants:
- DFM(C): Uses a constant initial function for simpler, homogeneous tasks.
- DFM(D): Uses diverse initial functions. By assigning different "initial velocities" to different data clusters, the model can guide the flow toward specific target subsets, effectively handling heterogeneous distributions and bifurcations.
- Simulation-Free Training: The authors derive a "Delay Conditional Flow Matching" (DCFM) objective. This allows the model to be trained efficiently by regressing on a conditional vector field, completely avoiding expensive DDE integration during the training loop.
Key Insights: Straighter Paths and Faster Inference
The paper theoretically proves that DFM possesses universal approximation capabilities for continuous transport maps—a property standard ODE-FM lacks when the map requires trajectory intersections.
Because DFM can handle intersections, it doesn't have to artificially "bend" trajectories to avoid other paths. These straighter paths allow for much faster inference. In a 2D Gaussian mixture reflection task, DFM achieved high-quality generation in a single step, while standard FM required many more steps to resolve the "bent" paths near the crossing point.
Furthermore, in single-cell trajectory inference where cells often "bifurcate" into different types, DFM(D) preserves the coupling between progenitor cells and their specific fates much better than ODE models, which tend to produce paths that fall into unrealistic "no-man's-land" regions between cell types.
Empirical Results
The authors validated DFM across several domains, demonstrating significant improvements over standard baselines:
- Trajectory Inference: On real-world scRNA-seq datasets (mouse hematopoiesis and qPCR iPSC), DFM significantly outperformed existing methods like TIGON and MIOFlow, reducing the 2-Wasserstein distance ($W_2$) by up to 15-40% in predicting intermediate cell distributions.
- Image Translation: On an MNIST "negative" task—where all paths must cross at a grey midpoint to invert the colors—DFM achieved an FID of 11.7, compared to a staggering 45.0 for standard Flow Matching.
- Inference Efficiency: For the 2D Gaussian task, DFM was roughly 5x faster than CFM during inference because it could produce accurate results with far fewer Number of Function Evaluations (NFE).
- Dynamics Recovery: DFM was the only model tested capable of accurately recovering the oscillatory behavior of biological autoregulation motifs from static snapshots.
Limitations and Future Work
While powerful, DFM introduces new considerations. The model's performance depends on the choice of the delay parameter ($\tau$). In systems where the "true" delay is unknown, hyperparameter tuning or delay-identification methods are required. Additionally, the "diverse initial function" approach (DFM(D)) relies on an initial clustering of the data (e.g., via GMM or DBSCAN); poor initial clustering can reduce the effectiveness of the guidance. Finally, training DFM is slightly more computationally expensive than standard FM due to the need to sample and process the delayed state $x(t-\tau)$, though the authors note this overhead is marginal.
Summary updated