TL;DR
Standard Flow Matching is great at generating images by drawing straight lines from noise to data, but straight lines are terrible at capturing the curving, oscillating reality of physical and biological systems over time. SplineFlow upgrades Flow Matching by replacing those rigid linear paths with smooth, flexible B-splines. The result is a simulation-free model that faithfully captures complex, nonlinear dynamics—running over 100x faster than classic Neural ODEs while significantly improving accuracy on irregular and curved trajectories.
What Problem Does This Paper Address?
Imagine watching fireflies blink in the dark and trying to trace their flight paths. If you want to model how a system evolves—whether it’s a swinging pendulum, predator-prey populations, or cells maturing into brain tissue—you need to figure out the underlying rules of motion (the velocity field) between your snapshots in time.
Historically, tools like Neural ODEs did this by running expensive forward simulations during every step of training, which is painfully slow. Recently, Flow Matching emerged as a fast, simulation-free alternative. It works by constructing simple "conditional paths" between data points and training a neural network to match the velocities along those paths.
Here is the catch: standard Flow Matching uses straight lines (linear interpolants) to connect the dots. That is fine if you only care about jumping from pure noise to a final image at $t=1$. Move to dynamical systems, however, and you care deeply about the journey across multiple time points. Linear paths cut corners, miss curvature, and introduce heavy bias when the true system is nonlinear or oscillatory. Yet, if you try to connect multiple points with a single high-degree polynomial, you hit Runge’s phenomenon—wild, unstable oscillations between observations.
The authors ask: How can we build smooth, curved, multi-point supervision signals for Flow Matching without sacrificing stability or speed?
Methods
Enter SplineFlow. Instead of piecewise straight lines, the authors construct conditional probability paths using B-splines—smooth curves built by recursively combining piecewise polynomial basis functions (via the classic Cox–de Boor formula).
Here is what separates the standard machinery from what is new:
- Standard: Using a neural network to regress onto conditional velocity fields (for deterministic ODEs) or combining drift and score networks in Simulation-Free Schrödinger Bridges (SF2M) to model noisy, stochastic systems (SDEs).
- New (Deterministic SplineFlow): Fitting a B-spline of degree $m$ across all observed timestamps in a trajectory to define the mean path, and deriving an exact analytical form for its derivative (the target velocity field). The authors prove that B-splines of degree $m$ shrink velocity approximation errors at a rate of $\mathcal{O}(n^{-m+1})$ compared to linear interpolation's sluggish $\mathcal{O}(n^{-1})$.
- New (Stochastic SplineFlow): Extending this setup to SDEs via "Spline-Bridges." Alongside the B-spline mean, the authors introduce a piecewise quadratic variance schedule (noise that swells between observations and pinches to zero at observed data points), which proves especially effective for modeling noisy biological trajectories.
Datasets
No new datasets are introduced, instead evaluating SplineFlow across synthetic physics/math benchmarks and real-world biological data:
- Synthetic ODEs & SDEs: Exponential Decay, Harmonic Oscillator, Damped Harmonic Oscillator, Lotka–Volterra (nonlinear predator-prey), and the chaotic Lorenz System (tested with varying fractions $p$ of randomly masked/missing data).
- Physics Simulation: HopperPhysics from the MuJoCo engine.
- Single-Cell Transcriptomics: Unpaired longitudinal datasets where cells are destroyed upon measurement—specifically, human Embryoid Body development and salamander post-traumatic brain regeneration (Stereo-seq spatial data), embedded via PCA and PHATE.
Key Insights and Ideas
- Straight lines are just a special case: A degree-1 B-spline is a linear interpolant. Unlike methods hardcoded to cubic splines, SplineFlow lets you tune the polynomial degree $m$. On roughly linear physics (like HopperPhysics), setting $m=1$ avoids overfitting; on curvy systems, cranking up $m$ captures the true geometry.
- Sparsity demands higher degrees: As observations become sparser and more irregular ($p$ increases), straight-line approximations degrade rapidly. Higher-degree B-splines shine brightest when data points are missing, bridging wide temporal gaps with smooth, physically plausible curves.
- Hands-off tuning works: You don't need to guess the spline degree $m$. Simple cross-validation on the trajectories correlates strongly (Spearman $\rho = 0.85$) with the true optimal degree for downstream flow matching.
Key Results
SplineFlow delivers massive speedups over simulation-based baselines while beating simulation-free rivals in accuracy:
- Speed & ODE Accuracy: Compared to adjoint-based LatentODE, SplineFlow achieves 147x to 597x faster training (e.g., ~200 seconds vs. ~33 hours on HopperPhysics) while matching or beating its MSE. On the Damped Harmonic Oscillator ($p=0.25$), SplineFlow hits an MSE of $3.00\text{e-}5$, crushing linear Trajectory Flow Matching ($1.50\text{e-}2$) by orders of magnitude.
- Chaotic Systems: On the chaotic Lorenz attractor, SplineFlow ($m=4$) drops SDE trajectory MSE from SF2M's $2.159$ down to $1.227$, and slashes Wasserstein distance ($\mathcal{W}_2$) from $0.632$ to $0.180$, visually preserving the famous two-wing butterfly structure where baselines blur it.
- Cellular Trajectories: When interpolating held-out developmental stages in salamander brain regeneration (PHATE), stochastic SplineFlow cuts Maximum Mean Discrepancy (MMD) to $0.285$, comfortably outperforming SF2M ($0.457$) and Minibatch-OT Flow Matching ($0.503$).
Limitations and Future Work
- Sensitivity in Chaotic Regimes: Because chaotic systems like Lorenz suffer from the "Butterfly Effect," masking critical timestamps hides which attractor basin a trajectory will flip into. Consequently, the authors had to restrict Lorenz evaluations to regular, unmasked sampling ($p=0$).
- Constant Noise Assumption: The stochastic extension currently assumes additive, state-independent diffusion ($\sigma$). Extending SplineFlow to handle state-dependent noise—where volatility depends on where the system currently is—is left for future work.
- Fixed Knots: Currently, spline knots are placed based on observed timestamps; learning optimal knot placement dynamically during training is a promising next step.
Summary updated