arXiv:2610.03679cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.03679

Simulation-Free Learning of Population Dynamics with Wasserstein Lagrangian Residuals

Fedor Sergeev, Markus Heinonen, Daniel Waxman, Tim Cooijmans, Ricardo Baptista, Dmitry Batenkov, Eli Bingham

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

The dynamics of cells, organisms, and fluids are often modeled as probability distributions evolving over time. Reconstructing and extrapolating this evolution from unpaired snapshots requires assumptions about the underlying process. Wasserstein gradient flows are a common choice, but they cannot describe conservative or periodic dynamics. Lagrangian mechanics in Wasserstein space covers both, but existing methods for learning it are simulation-based: they run a numerical solver at every training step, which makes training expensive. We propose Double-Stitch, a simulation-free method that learns these mechanics by penalizing the residual of the equation of motion along a learned population path. We derive this equation from a Clebsch variational principle that does not require gradient velocities, and show that the residual vanishes exactly when the equation holds. We test Double-Stitch on synthetic, single-cell and ocean vortex datasets and find that it matches or outperforms gradient-flow methods and simulation-based WLM on most tasks, while training 4–14 times faster than WLM. We provide a JAX implementation of Double-Stitch at https://github.com/BasisResearch/stitching.

1 INTRODUCTION

Learning complex dynamics of populations is a fundamental problem with applications to single-cell biology, animal behavior, and fluid mechanics (Schiebinger et al., 2019; Maury et al., 2010; Petrović et al., 2025). Individual entities are usually not tracked: the population is observed as unpaired sets of samples (snapshots) measured at several time points. Generally, modeling approaches to this problem can be grouped into three families based on the assumptions they make about the data generating process: flow-based, gradient flow, and Lagrangian flow.

Flow-based methods do not make explicit assumptions 1^{1} about the underlying dynamical process (Kapuśniak et al., 2024; Atanackovic et al., 2025). They learn a time-dependent velocity field or a stochastic bridge that transports an observed snapshot to a new time point by an optimal path (e.g., minimizing a kinetic energy). Without additional assumptions, these methods are generally not suited for extrapolation beyond the observed time interval (Guan et al., 2026a).

Gradient flow methods assume that the underlying dynamics follow the steepest descent of a free energy in Wasserstein space, or, in other words, a Wasserstein gradient flow (WGF). The resulting closed system allows learning the time-independent free energy function F\mathcal{F} and therefore provides time extrapolation capabilities. However, WGFs are purely dissipative and cannot effectively model dynamics where velocity is not deterministically defined by energy alone (e.g., as in periodic phenomena and conservative systems; see the conservative example in Figure 1).

The Lagrangian methods generalize gradient flows by assuming that the underlying dynamic process is governed by an equation on acceleration instead of velocity (i.e., Newton's second law). This approach was recently proposed for population dynamics (Guan et al., 2026a), building on Lagrangian formulations in Wasserstein space (Neklyudov et al., 2024). However, the existing algorithm (WLM)

∗^{*}Correspondence to fedor.sergeev@inf.ethz.ch

1^{1}Some methods can use a reference process, but it is designed for a specific dataset, not used as a general assumption (Petrović et al., 2025).

Ground truth

Density evolution

x¨t=−γx˙t−∇∂U∂ρt(xt)\ddot{x}_{t}=-\gamma\dot{x}_{t}-\nabla\frac{\partial U}{\partial\rho_{t}}(x_{t})

Energy evolution

Figure

Double-Stitch

Fitted density

(spatially smoothed)

Figure

Lagrangian methods

Figure

Figure

Figure

Figure

→ Simulation

→ Optimization

— Learned trajectory

— Target trajectory

• Observed snapshots

• Learned snapshots

Figure 1: Simulation-free fitting across three dynamical regimes. Left: conservative, damped and gradient-flow examples, with analytic densities, energies and Double-Stitch fits. Right: schematic training procedures for Double-Stitch and WLM. Grey curves show kinetic and total energy for the oscillators; the gradient-flow panel shows free energy. Grey contours show analytic densities.

is simulation-based and computationally expensive because it simulates the trajectory at every training step.

We propose Double-Stitch, a simulation-free approach to learning Lagrangian mechanics. Unlike flow-based methods, this method allows extrapolation; unlike WGF-based methods, it models periodic and conservative systems (see Figure 1); and it is computationally cheaper than the simulation-based WLM algorithm. Table 1 summarizes the similarities and differences between the existing methods and our approach.

Double-Stitch is based on Stitching (Heinonen et al., 2026), a simulation-free WGF-based algorithm that learns the dynamics by directly optimizing the trajectory to minimize (a) the distance between the learned and observed snapshots, and (b) the residual of the underlying dynamical law. Double in the name refers to the second-order law, compared to the first-order equation for WGF. We re-derive the Wasserstein Lagrangian law without requiring gradient velocities and show its residual vanishes if and only if the dynamics are satisfied.

References (51)