Closing the Approximation Gap in Simulation-free Latent SDEs

Henry Smith, Brian L. Trippe, Scott LindermanNeurIPS 2026

TL;DR

Learning hidden continuous-time dynamics from noisy, patchy data usually forces a painful choice: run slow step-by-step numerical simulations, or use fast "simulation-free" shortcuts that secretly blind your model to rotational and cyclic dynamics. This paper exposes why existing simulation-free methods fail under high uncertainty—they arbitrarily lock in a single trajectory law from infinitely many possibilities—and introduces Helmholtz-SDE, an algorithm that restores the missing dynamics. You get the accuracy of heavy-duty simulation-based inference at a tiny fraction of the compute time.

What Problem Does This Paper Address?

Across neuroscience, ecology, and fluid physics, we often observe noisy snapshots of a system and want to uncover the hidden differential equations driving it. Latent Stochastic Differential Equations (SDEs) are a great tool for this, typically trained via Variational Inference (VI).

Traditionally, VI requires simulating trajectories step-by-step across a fine time grid at every single gradient update—a massive computational bottleneck. Recently, simulation-free VI methods (like SDE Matching and SVISE) found a clever workaround: instead of defining a process by its step-by-step velocity (the drift), they directly parameterize the state distribution at any instant $t$ (the one-time marginals, e.g., a Gaussian bell curve at time $t$). This lets you jump straight to any random point in time without simulating the past.

Here’s the catch: knowing the snapshot distributions at every individual moment does not tell you how individual particles travel between them. Imagine looking at a whirlpool from above. At 12:00 and 12:01, the overall shape of the water looks identical. Existing simulation-free methods pick one arbitrary mathematical rule (a "reference drift") to connect those snapshots, ignoring the swirl. When data is sparse or noisy, this hidden restriction severely warps both the inferred trajectories and the learned physical laws.

Figure 1: Overview of Helmholtz-SDE. A: Existing simulation-free VI algorithms commit to a single drift (red) for each set of one-time marginals (black). This choice induces transition distributions that can differ from those of the true posterior (purple), even when the one-time marginals agree. B: Helmholtz-SDE takes a drift consistent with a set of one-time marginals, then corrects it by a vector field that preserves the marginals. C: The resulting approximation (blue) better matches the posterior.

Methods

To close this expressivity gap without giving up simulation-free speed, the authors turn to the Fokker–Planck equation (which governs how probability densities evolve). They prove that two SDEs share the exact same instantaneous marginals if and only if their drifts differ by a divergence-free vector field—essentially, probability-preserving "swirls" that circulate mass within the distribution without changing its overall shape.

While standard methods pick a single reference drift and stop there, Helmholtz-SDE optimizes over the entire family of valid path laws:

  1. Reference Drift + Residual: Start with a standard Gaussian marginal parameterization and a compatible reference drift (borrowed from prior work). Measure the residual gap between the model's prior drift and this reference drift.
  2. Weighted Helmholtz Decomposition: Mathematically split that residual field into two orthogonal parts: a gradient field (which alters the marginals, so we can't touch it) and a divergence-free field (which leaves the marginals intact, so we are free to add it!). Adding this divergence-free piece provably minimizes the variational objective (ELBO).
  3. Hermite Polynomial Approximation: Because computing the exact decomposition in high dimensions has no closed form, the authors project the residual onto a basis of multivariate Hermite polynomials (truncated to degree $\ell$, using $\ell=1$ in their experiments) estimated via quadrature or Monte Carlo. For linear and quadratic approximations, this keeps the computational complexity identical to standard fixed-drift methods.

Datasets

The authors test Helmholtz-SDE across synthetic and real-world dynamical systems:

  • 2D Ornstein–Uhlenbeck (OU) Spiral: A synthetic linear-Gaussian benchmark with tunable rotational speed, observation sparsity, and noise, where exact ground-truth posteriors can be calculated.
  • Noisy Lorenz Attractor: A modified version of the classic chaotic butterfly benchmark. Unlike standard setups with dense, clean data, the authors crank up process noise and sample sparsely ($\Delta t = 0.25$) to test high posterior uncertainty.
  • Predator–Prey Cycles: Real-world ecological time series tracking daily populations of freshwater rotifers (predators) feeding on algae (prey) over hundreds of days.
  • 2D Fluid Flow (Cylinder Wake): A computational fluid dynamics dataset modeling incompressible Navier–Stokes flow past a cylinder at Reynolds number $2000$, compressed via Proper Orthogonal Decomposition (POD) into 38 latent modes.

Key Insights and Ideas

  • Snapshots $\neq$ Movies: One-time marginal distributions leave multi-time joint statistics (like lag and autocorrelation) completely undetermined. Committing to an arbitrary drift can cause an unbounded KL divergence gap to the true posterior, even in simple linear-Gaussian systems!
  • Provable Optimality in Linear Systems: With just a degree $\ell=1$ polynomial correction, Helmholtz-SDE provably reduces the KL gap to zero in conjugate linear-Gaussian settings, matching the exact Kalman–Bucy smoother.
  • Swirls Save Dynamics Learning: When observation uncertainty is high, failing to capture posterior swirl causes baseline simulation-free models to hallucinate damped, fixed-point spirals instead of sustained oscillations.
Figure 2: Comparison of Helmholtz-SDE and the square root gauge on two OU spiral datasets: strong spiral, ω=2π (A-C), and no spiral, ω=0 (D). A: The symmetric KL distance (nats) to the posterior across observation noise and number of observations. B: The symmetric KL distance to the true prior. C: The dynamics learned by Helmholtz-SDE and the square root gauge against the true prior drift at noise σ = 0.3 and N = 10 observations. D: Same as B, but for the no spiral dataset.

Key Results

  • Noisy Lorenz Attractor: Helmholtz-SDE beats simulation-free baselines by $\sim 20$ nats in negative ELBO, accurately capturing the outward-spiraling lobe dynamics. Compared to the strongest simulation-based method (SING), Helmholtz-SDE achieves better dynamics recovery (prior symmetric KL of 0.06 vs. 0.24) while reaching $<50$ nat loss over $25\times$ faster ($123.7\text{ s}$ vs. $3695.6\text{ s}$ on an H100 GPU).
Lorenz Attractor Results
  • Predator–Prey Ecology: While SDE Matching collapses to a decaying fixed point and doubles the biological cycle estimates (13.33-day period), Helmholtz-SDE recovers a true limit cycle with a 6.92-day period and 1.66-day predator lag—nailing the empirical ground truth (6.7 days and 1.7 days).
  • High-Dimensional Fluid Wake ($K=38$): Helmholtz-SDE scales cleanly to 38 dimensions, preserving coherent vortex advection downstream and cutting forecast MSE by $\sim 10\%$ over SVISE and SDE Matching at only $\sim 3\times$ the per-iteration training cost.

Limitations and Future Work

  • Gaussian & State-Independent Assumptions: The analytical Helmholtz correction relies on Gaussian one-time marginals and a state-independent diffusion matrix $\mathbf{\Sigma}$. Relaxing these—perhaps by parameterizing and learning the divergence-free neural field directly—would open up broader SDE classes.
  • Scaling Higher-Order Polynomials: Computing polynomial corrections of degree $\ell$ scales as $O(K^{\max(\ell+1, 3)})$, which gets expensive for large $\ell$ in high dimensions $K$. While $\ell=1$ or $2$ sufficed for all experiments here, more compact parameterizations could help in highly non-Gaussian regimes.

Summary updated

Abstract

Recovering dynamical systems from noisy observations is a recurring challenge across scientific domains, including neuroscience and physics. Latent stochastic differential equations (SDEs) address this by modeling the system as an unobserved state that evolves according to a learnable SDE and generates the observations. Variational inference (VI) provides a tractable objective for fitting latent SDEs. Traditional VI algorithms evaluate this objective by numerical simulation over a time discretization, trading fidelity for computational cost. A recent class of algorithms, simulation-free VI, sidesteps this tradeoff by parameterizing the posterior through its instantaneous marginals rather than its drift. In this work, we show that the efficiency of existing simulation-free VI algorithms comes at a price: their parameterizations restrict the approximate posterior to a subset of the SDEs available to simulation-based methods, degrading posterior inference and parameter learning. We propose Helmholtz-SDE, a simulation-free VI algorithm that closes this gap by optimizing over path laws compatible with a prescribed collection of marginals. Helmholtz-SDE recovers dynamics more faithfully than prior simulation-free methods, with the largest gains under high posterior uncertainty. It further matches the performance of simulation-based VI at a fraction of the runtime. Code is available at https://github.com/lindermanlab/helmholtz-sde.
BibTeX
@inproceedings{smith2026closing,
  author = {Henry Smith and Brian L. Trippe and Scott Linderman},
  title = {{Closing the Approximation Gap in Simulation-free Latent SDEs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=inTYe61WZF},
}
Figure