Formal Analysis of Stochastic Neural Dynamical Models

Doctoral Thesis (2026)
Author(s)

S.J.L. Adams (TU Delft - Mechanical Engineering)

Contributor(s)

M. Mazo Espinosa – Promotor (TU Delft - Mechanical Engineering)

L. Laurenti – Copromotor (TU Delft - Mechanical Engineering)

Research Group
Team Luca Laurenti
DOI related publication
https://doi.org/10.4233/uuid:739f8497-d354-45e5-a8b7-ccab51eec069 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Defense Date
12-11-2026
Awarding Institution
Delft University of Technology
Research Group
Team Luca Laurenti
Page Views
65
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Neural networks (NNs), capable of learning complex behaviors directly from data, are powerful tools for modeling and controlling physical dynamical systems. Yet their deployment in safety-critical applications, where failures can have catastrophic consequences, requires guarantees on their behavior over time across a range of operating conditions, not merely on a finite test set. Formal analysis provides exactly such guarantees by reasoning about model behavior with mathematical rigor, but classical methods rely on properties such as convexity or known Lipschitz constants that NNs do not offer, and therefore cannot be directly applied. Moreover, real physical systems are inherently uncertain, and any model of them is an imperfect approximation; ignoring either source of uncertainty yields overconfident models that may fail when faced with unforeseen conditions. Stochastic neural networks (SNNs) address this by placing distributions over the network parameters, enabling principled uncertainty quantification, but their formal analysis is substantially harder than that of deterministic networks, as it requires reasoning about a distribution over functions rather than a single deterministic mapping. The goal of this dissertation is to develop computationally scalable methods for the formal analysis of the finite-horizon trajectory behavior of discrete-time stochastic dynamical models with, possibly stochastic, NN components.

We approach this goal by interpreting NNs as dynamical models evolving over their layers, connecting their analysis to classical tools such as finite-state abstractions and dynamic programming. In addition, we enrich the classical toolbox itself with a framework for formal uncertainty propagation in stochastic dynamical models, addressing an open problem for general nonlinear models, not only those with NN components.

We first analyze the global behavior of a model with NN dynamics and additive Gaussian noise by constructing a finite-state abstraction in the form of an interval Markov decision process (IMDP). By leveraging relaxation techniques from NN verification, we show that constructing the abstraction reduces to a set of convex optimization problems, ensuring computational tractability. The resulting IMDP enables verification and control synthesis against temporal logic specifications.

The subsequent contributions consider a given initial condition or distribution, possibly uncertain, avoiding the need for a full state-space abstraction.
We begin by developing a scalable method to bound the expected output of an SNN over a compact input set, and apply it to certify adversarial robustness in regression and classification settings. Via dynamic programming, the bounding problem decomposes into per-layer subproblems, each solved efficiently through convex relaxations derived from Gaussian process theory, yielding substantially tighter bounds than those of existing methods at lower computational cost.

Moving beyond moment-based characterizations, we develop a framework for uncertainty propagation with formal error bounds in Wasserstein distance, based on quantization: the approximation of a continuous distribution by a discrete one, which reduces propagation through nonlinear dynamics to finitely many function evaluations. We show that the quantization operator naturally defines a coupling between the original and approximate distributions, connecting quantization to the optimal transport problem underlying the Wasserstein distance and enabling computable error bounds. For Gaussian mixture distributions, both the quantization and its error bounds admit closed-form expressions, with explicit convergence rates as the support size grows. By combining results from semi-discrete optimal transport and distributionally robust optimization, we derive bounds that compose across time steps and accommodate uncertain initial state and noise distributions, modeled as Wasserstein ambiguity sets.

We then specialize the quantization-based framework to dynamics with Gaussian-distributed affine transformations, enabling more efficient Gaussian mixture characterizations of the state distribution and scaling the framework to SNNs. This specialization provides a finite-width counterpart to the classical result that infinitely wide SNNs converge to Gaussian processes. It requires neither infinite width nor independent and identically distributed parameters, and thus extends formal analysis to the trained networks used in practice. Finally, we show that the framework can also be applied in reverse, addressing an open problem in Bayesian learning by optimizing the SNN parameter distribution to encode functional prior knowledge represented as a target Gaussian process.

Together, these methods provide formal guarantees on the behavior of stochastic neural dynamical models over time and under uncertainty. A recurring theme across the contributions of this dissertation is that each exploits the compositional structure of the models it analyzes, decomposing intractable problems into sequences of tractable subproblems. This suggests that identifying and leveraging such structure is an effective route to scaling formal analysis to NN-based models in safety-critical applications.