Simulation-Free Differential Dynamics through Neural Conservation Laws

Mengjian Hua, Eric Vanden-Eijnden, Ricky T. Q. Chen

TL;DR

This paper introduces a novel, simulation-free framework for training continuous-time diffusion processes under highly general objective functions. By jointly parameterizing the probability density path and the velocity field while enforcing the Fokker-Planck equation as a hard architectural constraint, the method completely bypasses the need for expensive numerical simulations during training.

What Problem Does This Paper Address?

Diffusion models are incredibly successful for generative modeling, but their standard training recipes are highly restrictive. When researchers try to apply diffusion processes to more complex problems—such as dynamical optimal transport, Schrödinger bridges, or stochastic optimal control—they typically run into a computational wall.

Existing methods generally require either prescribing a fixed, simple path (which doesn't work for complex objectives) or running expensive numerical simulations of the stochastic differential equations (SDEs) during training to estimate time-dependent densities. These simulations are slow, memory-intensive, and scale poorly. This paper tackles the challenge of training these complex differential dynamics completely simulation-free, even when dealing with complex, mean-field cost functions.

Methods

The authors build upon and simplify the concept of Neural Conservation Laws (NCL). Instead of just parameterizing a velocity field $u_t$ and simulating it to find the density $\rho_t$, they parameterize both explicitly in a coupled framework that guarantees they satisfy the Fokker-Planck equation by construction.

Key components of their approach include:

  1. Hard-Coded Conservation: They define the density and flux using vector fields ($a_t^\theta$ and $b_t^\theta$) such that the continuity equation automatically holds.
  2. Autoregressive Density Modeling: To ensure the density $\rho_t$ is properly normalized and valid, they design $a_t^\theta$ using time-dependent autoregressive likelihood-based models (like mixture of logistics).
  3. Resolving the Spurious Flux Phenomenon: The authors discovered that a naive NCL construction causes the flux to remain non-zero at infinity, making the velocity field explode ($u_t = j_t/\rho_t$). They fix this by introducing a recursive, divergence-free correction term ($b_t^\theta$) that cancels out this unphysical behavior.
  4. Independent Divergence-Free Components: To allow the model to optimize for velocity-based objectives (like minimizing kinetic energy) without changing the density path, they add a flexible, learnable divergence-free vector field ($v_t^\theta$).
Illustration of the spurious flux phenomenon and its removal with a divergence-free vector field

Datasets

The framework was evaluated across three distinct application domains:

  • Spatio-Temporal Event Datasets: Pinwheel, Earthquakes JP, COVID-19 NJ, and CitiBike (spatial components sampled continuously in time).
  • Biological Population Dynamics: Single-cell RNA sequencing data of embryoid bodies, compressed into a 5-dimensional PCA space.
  • Motion Planning: Synthetic 2D navigation environments featuring randomly initialized circular obstacles.

Key Insights and Ideas

  • Physics as an Architecture, Not a Loss: Instead of adding a penalty term to the loss function to enforce the Fokker-Planck equation (which can be unstable and hard to balance), the authors bake the equation directly into the network's structural definition.
  • The Spurious Flux Trap: A key "aha moment" was realizing that standard autoregressive models don't naturally yield zero flux at infinity when plugged into conservation laws. Because the cumulative distribution function (CDF) changes over time, it creates a "phantom flow" outside the data support.
  • Exploiting Gauge Freedom: By adding divergence-free terms to the flux, the velocity field gains the freedom to change its trajectories (e.g., to curve around obstacles or find shorter paths) while leaving the underlying probability density completely unchanged.

Key Results

  • Generative Modeling: On spatio-temporal datasets, the proposed method (NCL++) achieved significantly better negative log-likelihood scores than competitive baselines like Neural Flows and Continuous Normalizing Flows (CNFs).
  • Optimal Transport: For single-cell RNA data, the model successfully recovered kinetically optimal transport paths, outperforming state-of-the-art methods like OT-Flow, Entropic Action Matching, and Neural SDEs in matching the true marginal distributions (measured via Wasserstein-2 distance).
  • Stochastic Optimal Control: The method successfully solved mean-field stochastic optimal control problems (motion planning with obstacle avoidance and entropy regularization) entirely simulation-free.
Figure 2: Transport paths of a trained factorized model on the motion planning task of different environments with randomly initialized circular obstacles. We train the model with a diffusion coefficient gt = 0.0 and we sample the model via solving eq. (4) with gt = 0.0 (first row) and gt = 0.5 (second row). Note that in the case of gt = 0.0, eq. (4) reduces to a deterministic ODE.

Limitations and Future Work

The primary limitation of this work stems from its reliance on autoregressive likelihood-based models. While highly effective for low-to-moderate dimensions, autoregressive architectures are notoriously difficult to scale to very high-dimensional spaces, such as high-resolution images or complex video data. The authors note that scaling this simulation-free framework to higher dimensions remains an open and important direction for future research.

Summary updated

BibTeX
@inproceedings{hua2025simulation,
  author = {Mengjian Hua and Eric Vanden-Eijnden and Ricky T. Q. Chen},
  title = {{Simulation-Free Differential Dynamics through Neural Conservation Laws}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=kxEnGW42TX},
}
Figure