DICE: Discrete inverse continuity equation for learning population dynamics

Tobias Blickhan, Jules Berman, Andrew Stuart, Benjamin PeherstorferarXiv 2025 · DOI

Abstract

Modeling the evolution of complex stochastic processes, such as chaotic fluid flows or plasma instabilities, is a significant challenge in computational physics. While individual sample trajectories can be erratic and non-differentiable, the collective behavior of a population often follows smooth, predictable patterns. We present DICE (Discrete Inverse Continuity Equation), a generative modeling framework designed to learn these population dynamics. By deriving a loss function from the time-discrete weak form of the continuity equation, DICE achieves exceptional training stability and generates new trajectories orders of magnitude faster than standard diffusion or flow-matching models.

1. Introduction

The dynamics of systems like weather patterns or plasmas are often characterized by high-dimensional chaos. Traditional approaches that attempt to track individual particle trajectories (sample dynamics) frequently fail due to the inherent unpredictability of chaotic paths. However, the evolution of the underlying probability density (population dynamics) is governed by the continuity equation, which is often more tractable.

Current generative modeling techniques face several hurdles in this domain. Optimal Transport and JKO schemes are computationally intensive. Conditional generative models, such as diffusion or flow matching, require multi-step inference processes for every physical time step, leading to slow simulation speeds. Action Matching (AM) offers a faster alternative but is prone to training instabilities because its continuous-time loss function, when discretized, allows for spurious solutions that can drive the loss to negative infinity.

2. The DICE Framework

DICE addresses these issues by directly inverting the continuity equation to identify the vector field driving the population. The core innovation lies in the derivation of the loss function. Rather than discretizing a continuous loss, DICE is built upon the time-discrete weak form of the continuity equation.

This approach ensures that the empirical loss function is invariant to spatially constant, time-varying functions—a symmetry that is broken in discretized AM. By mathematically closing this loophole, DICE guarantees a well-posed optimization problem that is bounded from below. Furthermore, DICE restricts the learned vector field to be a gradient field, effectively minimizing the kinetic energy of the system. The training process is simulation-free, relying solely on Monte Carlo estimates from empirical data snapshots, eliminating the need for backpropagation through ODE solvers.

3. Experimental Evaluation

The authors tested DICE across a variety of mathematical and physical systems where individual trajectories are complex but population dynamics are structured:

  • Toy Processes: 1D and 2D systems used to establish benchmarks for stability and error rates.
  • Random Waves: 2D wave equations with stochastic initial conditions.
  • Vlasov-Poisson Instabilities: Plasma physics simulations including Landau damping and two-stream instabilities.
  • Rayleigh-Bénard Convection: A 9-dimensional chaotic Lorenz '96 system.

4. Key Results

4.1 Training Stability

DICE exhibited robust stability across all test cases. In contrast, Action Matching suffered from catastrophic training instabilities on complex tasks like the Vlasov-Poisson and 9D chaos simulations, where its loss function diverged.

4.2 Inference Speed

DICE offers a significant advantage in generation speed. Because it learns a vector field that evolves samples directly through physical time, it bypasses the artificial "denoising" steps required by diffusion models. In the 9D chaos experiment, DICE generated trajectories in 7 seconds, whereas Conditional Flow Matching (CFM) took 36 seconds and Noise-Conditioned Score Matching (NCSM) required 1109 seconds.

4.3 Macroscopic Accuracy

While DICE does not aim to match individual sample paths (which are chaotic), it accurately captures critical macroscopic properties. In plasma experiments, DICE successfully tracked the evolution of electric energy across four orders of magnitude, demonstrating its utility as a reduced-order modeling tool.

5. Discussion and Future Work

DICE demonstrates that focusing on population-level distributions rather than individual particles turns an unpredictable problem into a learnable one. However, the method currently requires time marginals to be sampled relatively close together to satisfy linearization assumptions. Future research will focus on establishing theoretical error bounds related to the Hessian of the learned potential and developing architectural constraints to control these derivatives during training.

Summary updated

BibTeX
@misc{blickhan2025dice,
  author = {Tobias Blickhan and Jules Berman and Andrew Stuart and Benjamin Peherstorfer},
  title = {{DICE: Discrete inverse continuity equation for learning population dynamics}},
  year = {2025},
  eprint = {2507.05107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05107},
}
Figure