Adaptive Deep Density Approximation for Stochastic Dynamical Systems

Junjie He, Qifeng Liao, Xiaoliang Wan

Predicting how uncertainty evolves in complex systems—from turbulent fluids to tumor growth—is a fundamental challenge in science and engineering. This paper introduces tKRnet, a deep learning framework designed to track the probability density functions (PDFs) of stochastic dynamical systems over time, even in high-dimensional spaces where traditional methods fail.

TL;DR

The authors propose tKRnet, a time-dependent normalizing flow model that solves the Liouville equation to approximate evolving probability densities. By combining physics-informed training with an iterative adaptive sampling strategy and temporal decomposition, the method bypasses the "curse of dimensionality" and maintains accuracy over long-time simulations.

What Problem Does This Paper Address?

In stochastic dynamical systems, we often want to know the probability of a system being in a certain state at a certain time. This evolution is governed by the Liouville equation (for systems with random initial states/parameters) or the Fokker-Planck equation (for systems driven by noise).

The traditional way to solve these is using grid-based numerical methods (like finite elements). However, these methods suffer from the curse of dimensionality: as the number of variables increases, the number of grid points required grows exponentially. Furthermore, these PDFs often have "moving support"—the region where the probability is non-zero shifts and deforms over time—making it difficult for static methods to keep up.

Methods

The authors build upon KRnet, a type of "normalizing flow." Normalizing flows work by learning an invertible mapping that transforms a simple, known distribution (like a Gaussian) into a complex target distribution.

Key Innovations:

  1. Temporal KRnet (tKRnet): The authors systematically extend the layers of KRnet (affine coupling, scale-bias, and nonlinear layers) to be time-dependent. This allows the model to represent a PDF that changes continuously with time.
  2. Adaptive Sampling: Choosing where to evaluate the "physics" (the PDE residual) is critical. The authors use an iterative process: they train the network, use the current network to generate new "collocation points" where the probability is high, and then re-train. This ensures the model focuses its "attention" on the most relevant parts of the state space.
  3. Temporal Decomposition: To handle long-time simulations, they break the time domain into smaller sub-intervals. They use two strategies: either introducing a cross-entropy loss to maintain consistency between intervals or using the previous interval's output as the "prior" for the next.
  4. Log-Liouville Formulation: Instead of solving the standard Liouville equation, they solve its logarithmic version. This improves numerical stability, preventing underflow issues when dealing with very small probability values in high dimensions.

Datasets

As is common in numerical analysis and physics-informed machine learning, the paper uses synthetic but challenging benchmarks rather than static datasets:

  • Double Gyre Flow: A 2D nonlinear system with complex, time-dependent folding.
  • Kraichnan-Orszag Problem: A 3D system used to test nonlinear interactions.
  • Forced Duffing Oscillator: A system involving both state variables and uncertain parameters.
  • Lorenz-96 System: A 40-variable high-dimensional system used in weather forecasting, serving as the ultimate test for the "curse of dimensionality."

Key Insights and Ideas

  • Residual-KL Link: The authors provide a theoretical proof (Theorem 4.1) showing that the Kullback-Leibler (KL) divergence—a measure of how much the approximation differs from the truth—is bounded by the residual of the log-Liouville equation. This justifies why minimizing the PDE residual actually leads to a better density estimate.
  • Self-Correcting Samples: The adaptive sampling strategy acts as a feedback loop. Because tKRnet is generative, it can easily produce new samples from its current best guess of the PDF. These samples then become the training points for the next iteration, effectively "tracking" the PDF as it moves through space.
  • Efficiency over Characteristics: In the appendix, they compare their PDE-based approach to an ODE-based approach (Method of Characteristics). They find that while both are accurate, the PDE-based approach is significantly cheaper to train in high dimensions because it avoids backpropagating through complex flow map derivatives.

Key Results

  • Beating the Curse: The model successfully approximated the PDF of the 40-dimensional Lorenz-96 system. In this high-dimensional space, the maximum error in the mean estimate was roughly $0.007$, and the variance error was $0.002$.
  • Adaptivity Matters: In the Double Gyre and Kraichnan-Orszag tests, the relative error and KL divergence dropped significantly (often by an order of magnitude) as the number of adaptive sampling iterations increased.
  • Long-term Stability: Without temporal decomposition, long-time integration (e.g., $t=20$ for the Double Gyre) failed. With decomposition, the model maintained a sharp, accurate representation of the deforming PDF.

Limitations and Future Work

  • Causality in Time: The current implementation uses uniform grids for time discretization within sub-intervals. The authors note that they haven't fully addressed "causality"—the idea that the solution at $t=1$ should strictly inform $t=1.1$.
  • Temporal Adaptivity: While the spatial sampling is adaptive, the time steps are fixed. Future work could involve introducing adaptive time-stepping to handle periods of rapid change more efficiently.
  • Sobolev Convergence: While they proved convergence in the KL sense, the authors mention that more work is needed to establish convergence in stronger mathematical norms (like Sobolev norms) specifically for PDE approximations.

Summary updated

BibTeX
@article{he2025adaptive,
  author = {Junjie He and Qifeng Liao and Xiaoliang Wan},
  title = {{Adaptive Deep Density Approximation for Stochastic Dynamical Systems}},
  journal = {J. Sci. Comput.},
  year = {2025},
  doi = {10.1007/s10915-025-02791-7},
}
Figure