SA

Steven Adams

info

Please Note

6 records found

From Provable Error Bounds to Prior Selection

Journal article (2026) - Steven Adams, Andrea Patanè, Morteza Lahijanian, Luca Laurenti
Infinitely wide or deep neural networks (NNs) with independent and identically distributed (i.i.d.) parameters have been shown to be equivalent to Gaussian processes. Because of the favorable properties of Gaussian processes, this equivalence is commonly employed to analyze neural networks and has led to various breakthroughs over the years. However, neural networks and Gaussian processes are equivalent only in the limit; in the finite case there are currently no methods available to approximate a trained neural network with a Gaussian model with bounds on the approximation error. In this work, we present an algorithmic framework to approximate a neural network of finite width and depth, and with not necessarily i.i.d. parameters, with a mixture of Gaussian processes with bounds on the approximation error. In particular, we consider the Wasserstein distance to quantify the closeness between probabilistic models and, by relying on tools from optimal transport and Gaussian processes, we iteratively approximate the output distribution of each layer of the neural network as a mixture of Gaussian processes. Crucially, for any NN and ∊ > 0 our approach is able to return a mixture of Gaussian processes that is ∊-close to the NN at a finite set of input points. Furthermore, we rely on the differentiability of the resulting error bound to show how our approach can be employed to tune the parameters of a NN to mimic the functional behavior of a given Gaussian process, e.g., for prior selection in the context of Bayesian inference. We empirically investigate the effectiveness of our results on both regression and classification problems with various neural network architectures. Our experiments highlight how our results can represent an important step towards understanding neural network predictions and formally quantifying their uncertainty. ...
Doctoral thesis (2026) - S.J.L. Adams, M. Mazo Espinosa, L. Laurenti
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. ...
In this paper, we consider discrete-time nonlinear stochastic dynamical systems with additive process noise in which both the initial state and noise distributions are uncertain. Our goal is to quantify how the uncertainty in these distributions is propagated by the system dynamics for possibly infinite time steps. In particular, we model the uncertainty over input and noise as ambiguity sets of probability distributions close in the ρ-Wasserstein distance and aim to quantify how these sets evolve over time. Our approach relies on results from quantization theory, optimal transport, and stochastic optimization to construct ambiguity sets of distributions centered at mixture of Gaussian distributions that are guaranteed to contain the true sets for both finite and infinite prediction time horizons. We empirically evaluate the effectiveness of our framework in various benchmarks from the control and machine learning literature, showing how our approach can efficiently and formally quantify the uncertainty in linear and non-linear stochastic dynamical systems. ...
Conference paper (2023) - Steven Adams, Andrea Patanè, Morteza Lahijanian, Luca Laurenti
In this paper, we introduce BNN-DP, an efficient algorithmic framework for analysis of adversarial robustness of Bayesian Neural Networks (BNNs). Given a compact set of input points T ⊂ Rn, BNN-DP computes lower and upper bounds on the BNN's predictions for all the points in T. The framework is based on an interpretation of BNNs as stochastic dynamical systems, which enables the use of Dynamic Programming (DP) algorithms to bound the prediction range along the layers of the network. Specifically, the method uses bound propagation techniques and convex relaxations to derive a backward recursion procedure to over-approximate the prediction range of the BNN with piecewise affine functions. The algorithm is general and can handle both regression and classification tasks. On a set of experiments on various regression and classification tasks and BNN architectures, we show that BNN-DP outperforms state-of-the-art methods by up to four orders of magnitude in both tightness of the bounds and computational efficiency. ...
Journal article (2023) - Steven Adams, D. Jarne Ornia, Manuel Mazo
We present a biologically inspired design for swarm foraging based on ant’s pheromone deployment, where the swarm is assumed to have very restricted capabilities. The robots do not require global or relative position measurements and the swarm is fully decentralized and needs no infrastructure in place. Additionally, the system only requires one-hop communication over the robot network, we do not make any assumptions about the connectivity of the communication graph and the transmission of information and computation is scalable versus the number of agents. This is done by letting the agents in the swarm act as foragers or as guiding agents (beacons). We present experimental results computed for a swarm of Elisa-3 robots on a simulator, and show how the swarm self-organizes to solve a foraging problem over an unknown environment, converging to trajectories around the shortest path, and test the approach on a real swarm of Elisa-3 robots. At last, we discuss the limitations of such a system and propose how the foraging efficiency can be increased. ...
Journal article (2022) - S.J.L. Adams, Morteza Lahijanian, L. Laurenti
Neural networks (NNs) are emerging as powerful tools to represent the dynamics of control systems with complicated physics or black-box components. Due to complexity of NNs, however, existing methods are unable to synthesize complex behaviors with guarantees for NN dynamic models (NNDMs). This letter introduces a control synthesis framework for stochastic NNDMs with performance guarantees. The focus is on specifications expressed in linear temporal logic interpreted over finite traces (LTLf), and the approach is based on finite abstraction. Specifically, we leverage recent techniques for convex relaxation of NNs to formally abstract a NNDM into an interval Markov decision process (IMDP). Then, a strategy that maximizes the probability of satisfying a given specification is synthesized over the IMDP and mapped back to the underlying NNDM. We show that the process of abstracting NNDMs to IMDPs reduces to a set of convex optimization problems, hence guaranteeing efficiency. We also present an adaptive refinement procedure that makes the framework scalable. On several case studies, we illustrate that our framework is able to provide non-trivial guarantees of correctness for NNDMs with architectures of up to 5 hidden layers and hundreds of neurons per layer. ...