WFR Flow Matching (WFR-FM)
- WFR-FM is a simulation-free algorithm that unifies flow matching with dynamic unbalanced optimal transport under the WFR metric to model evolving state and mass.
- It jointly regresses a displacement vector field and a scalar mass change function, ensuring exact geodesic recovery and principled dynamic modeling.
- Empirical results demonstrate state-of-the-art performance in single-cell biology and high-dimensional synthetic benchmarks with near-optimal interpolation metrics.
WFR Flow Matching (WFR-FM) is a simulation-free training algorithm unifying flow matching and dynamic unbalanced optimal transport (OT) under the Wasserstein–Fisher–Rao (WFR) metric. It allows simultaneous regression of a displacement vector field and a scalar mass change function (birth–death dynamics) to model systems where both state and mass evolve over time. WFR-FM provides theoretical guarantees for exact geodesic recovery under the WFR geometry and demonstrates state-of-the-art empirical performance, particularly in single-cell biology, where imbalanced snapshots with proliferating and apoptotic dynamics are prevalent (Peng et al., 11 Jan 2026).
1. Theoretical Foundation: The WFR Metric
The WFR metric extends the Benamou–Brenier dynamic formulation of OT to accommodate unbalanced measures, where total mass can change via birth–death processes. Given two nonnegative measures on , the dynamic WFR formulation seeks trajectories solving
with , . The objective is to minimize the action functional:
where controls the transport versus mass-change penalty. Setting recovers classical balanced OT. The mass growth term captures local proliferation and apoptosis, enabling a principled metric for unbalanced data (Peng et al., 11 Jan 2026).
2. WFR-FM Objective and Regression Loss
WFR-FM parameterizes a vector velocity field and a scalar mass growth rate using neural networks. Training is conducted using a weighted mean-square regression loss against closed-form targets derived from an analytic “conditional path”: a traveling Gaussian whose mean and mass interpolate along the two-Dirac WFR geodesic. The loss is:
where denotes the induced marginal at time , and (typically set to ) regulates the growth regression term. This framework generalizes classical flow matching, which regresses only , by explicitly learning both transport and local mass change (Peng et al., 11 Jan 2026).
3. Recovery of WFR Geodesics
The theoretical underpinning of WFR-FM is conditional flow matching (CFM), which guarantees that regression against the analytic targets yields a learned flow matching the true WFR geodesic. Specifically:
- The analytic traveling Gaussian path has marginals that converge to at endpoints.
- Its mean and mass exactly follow the two-Dirac WFR geodesic.
- The induced satisfy the dynamic continuity equation, and the path realizes a constant-speed geodesic with action equalling .
As established by Theorem 4.2 in (Peng et al., 11 Jan 2026), minimizing the WFR-FM loss recovers the unique WFR geodesic, due to identical gradients between the regression loss and the intractable true flow loss. Regressing to ensures exact dynamic OT (Peng et al., 11 Jan 2026).
4. Algorithm Structure and Simulation-Free Training
The WFR-FM algorithm proceeds as follows:
- For each snapshot pair , solve a local mini-batch WFR OET (static entropy–regularized OT) to obtain a semi-coupling .
- Build the traveling Gaussian conditional path with mean and mass given by the closed-form two-Dirac WFR formulas.
- Iteratively sample pairs , time , and points . Compute targets and .
- Evaluate the regression loss weighted by and update neural network parameters.
- Repeat until convergence.
No ODE simulations are required during training. Only Gaussian sampling and analytic target computation are used, ensuring scalability for high-dimensional and large-scale data (Peng et al., 11 Jan 2026).
5. Empirical Performance and Benchmarking
WFR-FM demonstrates competitive or superior empirical results on both synthetic and biological datasets:
- On synthetic benchmarks (2D Gene, 5D Dyngen, 1000D Gaussian), WFR-FM achieves the lowest (1–Wasserstein error) and near-zero Relative Mass Error (RME), outperforming balanced FM and ODE-based unbalanced OT baselines.
- The learned trajectories display path actions within 1–2% of static WFR references, confirming geodesic optimality.
- For four real single-cell RNA-seq datasets (EMT, EB, CITE, Mouse), WFR-FM attains the best hold-out interpolation metrics (unseen-timepoint and RME).
- Scalability is established by linear scaling of per-epoch runtime with the number of samples (up to 16,000 cells in 100D), outperforming both FM-only and ODE-based alternatives.
- On a synthetic gene proliferation model, recovers the ground-truth proliferation rate with Pearson correlation (Peng et al., 11 Jan 2026).
6. Hyperparameters, Implementation, and Computational Complexity
WFR-FM utilizes 5-layer MLPs (256 hidden units, LeakyReLU activations) for and . Growth penalty and regression weight are typically set in ; empirical ablations indicate robustness in . The conditional Gaussian bandwidth matches the end-time spread of samples following balanced FM conventions. Typical batch sizes are to $2048$ (FM) and to $2048$ (OET). Per-gradient-step computational complexity is (sampling) plus (local OET), with practical scalability for mini-batch OT. Implementation leverages PyTorch and the POT library for Sinkhorn, and does not require ODE backpropagation (Peng et al., 11 Jan 2026).
7. Summary and Significance
WFR Flow Matching (WFR-FM) establishes a unified and efficient paradigm for modeling dynamical systems from unbalanced snapshot data. By leveraging the WFR metric and simulation-free analytic regression, it provides (i) principled dynamic unbalanced OT under WFR, (ii) closed-form, highly scalable training routines, (iii) theoretical guarantees for exact geodesic recovery, and (iv) state-of-the-art accuracy and stability in single-cell trajectory inference and generative modeling with evolving mass (Peng et al., 11 Jan 2026).