Abstract
We derive local sensitivities of statistical quantities of interest with respect to model parameters in dynamical systems. Our main contribution is the extension of adjoint-based a posteriori analysis for differential operators of generic dynamical systems acting on states to the Liouville operator acting on probability densities of the states. This results in theoretically rigorous estimates of sensitivity and error for a broad class of computed quantities of interest while propagating uncertainty through dynamical systems. We also derive Monte-Carlo type estimators to make these estimates computationally tractable using spatio-temporal normalizing flows and exploiting the hyperbolic nature of the Liouville equation. Three examples demonstrate our method: a 2D linear system, a double attractor system with bimodal distributions, and Neural Ordinary Differential Equations for classification.
Introduction
In complex dynamical systems—ranging from climate models to power grids—predicting future states is complicated by uncertainties in initial conditions and model parameters. Standard point predictions are often insufficient; instead, we require the probability of specific outcomes, known as Quantities of Interest (QoIs). Crucially, we need to understand sensitivity: how a small change in a model parameter (e.g., friction or network topology) affects the probability of a specific event.
Calculating these sensitivities is traditionally computationally expensive, often requiring repeated simulations for each parameter variation. This work introduces a "one-shot" framework using an adjoint-based approach to compute gradients efficiently by propagating information backwards through the system.
Methods
The framework integrates classical physics with modern deep learning through two primary innovations:
- Adjoint Liouville Analysis: The Liouville equation governs the evolution of a probability density function (PDF) under deterministic dynamics. By applying adjoint-based techniques to this operator, we derive an evolution equation for sensitivity. This allows for the computation of gradients for expected values with respect to multiple parameters using a single adjoint solution.
- Liouville Normalizing Flow ($\ell$NF): To implement this analysis, a continuous estimate of the PDF across space and time is required. The authors developed the $\ell$NF, a spatio-temporal density estimator. It utilizes Normalizing Flows—a class of generative models—augmented with a physics-informed loss term. This ensures the learned distribution adheres to the Liouville equation, grounding the neural network in the underlying physics.
Experimental Evaluation
The framework was evaluated on three distinct systems:
- 2D Linear System: Used as a verification step where analytical ground truths are available.
- Double Attractor System: A non-linear system exhibiting bimodal behavior, testing the framework's ability to handle complex, non-Gaussian distributions.
- Two Moons (Neural ODE): A machine learning benchmark where the method analyzed the sensitivity of classification probabilities to the weights of a Neural Ordinary Differential Equation.
Key Results
The $\ell$NF-based sensitivity estimates demonstrated high accuracy. In the linear system verification, the estimated sensitivities closely matched analytical values, as shown in the table below.
Furthermore, the framework successfully captured the evolution of a Gaussian distribution into a complex bimodal density in the double attractor system. In the Neural ODE context, the method scaled to 64 parameters and revealed that sensitivity changes significantly when encountering Out-of-Distribution (OOD) data, suggesting potential applications in auditing AI robustness.
Discussion and Conclusion
A key advantage of this approach is the exploitation of the hyperbolic nature of the Liouville operator, which ensures that sensitivity information travels along the same trajectories as the system states, simplifying the adjoint solutions.
However, challenges remain. The "curse of dimensionality" makes density estimation in high-dimensional spaces difficult; future work may explore applying these methods within low-dimensional latent spaces. Additionally, the requirement for differentiable system dynamics can be a barrier for legacy scientific codes. Future extensions aim to incorporate Stochastic Differential Equations (SDEs) to account for inherent system randomness.
Summary updated