Bayesian Formal Synthesis of Unknown Systems via Robust Simulation Relations

Oliver Schön, Birgit van Huijgevoort, Sofie Haesaert, Sadegh Soudjani

TL;DR

This paper presents a novel framework for designing "correct-by-design" controllers for complex, uncertain systems using data. It combines Bayesian learning to estimate system parameters with formal methods (simulation relations) to guarantee that the controller will satisfy safety specifications, even when the exact system model is unknown. This approach is crucial for building reliable autonomous systems in safety-critical applications.

What Problem Does This Paper Address?

Designing controllers for safety-critical systems, like autonomous vehicles or smart grids, is challenging because these systems are often complex, operate in uncertain environments, and their exact mathematical models are difficult or impossible to obtain. Traditional formal methods require precise models, which are unavailable in real-world scenarios. While data-driven methods can learn system behavior, they often lack formal guarantees of safety. This paper tackles the problem of synthesizing controllers that are guaranteed to satisfy complex temporal logic specifications (e.g., "system must always stay within these bounds") for stochastic systems with both unknown parameters (epistemic uncertainty) and inherent randomness (stochastic uncertainty), using only limited data.

Methods

The paper proposes a two-stage approach:

  1. Learning Stage (Parameter Estimation): They leverage Bayesian linear regression to learn a "credible set" of possible parameters for the system model. This set, derived from collected data, is guaranteed to contain the true system parameters with a specified confidence level. This addresses the epistemic uncertainty.
  2. Synthesis Stage (Robust Formal Control):
    • Sub-Probability Couplings: A novel concept of "sub-probability couplings" is introduced. This technique quantifies the similarity between different system models (including the set of possible models derived from the learning stage) and an abstract, simplified model. It's a more relaxed version of existing "simulation relations."
    • Simulation Relations: These couplings are used to define "sub-simulation relations" (SSR). SSRs allow relating a set of parameterized models to a single abstract model. This is key because it enables designing a single controller for the abstract model, which can then be "refined" to work for all models within the credible set of the true system.
  3. Control Refinement: The SSRs provide a theoretical foundation for control refinement. This means a controller designed for the abstract model can be guaranteed to satisfy the specifications for the actual, unknown system, accounting for both parametric and stochastic uncertainties. The approach is compatible with model-order reduction techniques, making it scalable to higher-dimensional systems.

Datasets

The paper does not introduce new datasets. Instead, it uses synthetic data generated from known (but treated as unknown) system models for its case studies. The data is collected by simulating system trajectories and recording state-input-next state transitions.

Key Insights and Ideas

  • Bridging Data and Guarantees: The core innovation is a principled way to combine data-driven learning with formal verification. This allows for robust safety guarantees even when the system model is not perfectly known.
  • Credible Sets for Uncertainty: Using Bayesian credible sets provides a statistically sound way to represent the uncertainty in system parameters learned from data.
  • Sub-Simulation Relations for Robustness: The novel sub-simulation relations are crucial for relating a set of uncertain models to a single abstract model, enabling a single controller design that works across all possibilities. This is a significant step beyond methods that require a single nominal model.
  • Scalability via Abstraction: The compatibility with model-order reduction is a critical insight, allowing the application of these formal methods to systems that would otherwise be computationally intractable.

Key Results

The paper demonstrates the effectiveness of its approach on three case studies:

  • Linear System: A 2D linear system with complex temporal logic specifications (package delivery) was successfully controlled, showing improved robust satisfaction probability with increased data.
  • High-Dimensional System: A 7D building automation system was handled by combining the proposed method with model-order reduction, achieving results in under 100 seconds.
  • Nonlinear System: The Van der Pol oscillator was controlled, showcasing the method's applicability to nonlinear dynamics.

In all cases, the robust satisfaction probability (the guaranteed minimum probability of satisfying the specification) increased with more data, and the approach provided a less conservative result than existing methods in certain scenarios.

Limitations and Future Work

  • Linearity in Parameters: The current system identification framework (Bayesian linear regression) is limited to systems that are linear in their unknown parameters. The authors acknowledge this can be relaxed by using other parameter identification methods that provide credible sets.
  • Gaussian Noise: The approach currently assumes Gaussian noise. The authors mention that extensions to other distributions are possible.
  • Observability: The current approach assumes access to full state information for data collection. Relaxing this to only noisy output measurements would be a valuable extension.
  • Finite-Horizon vs. Infinite-Horizon: While the paper focuses on infinite-horizon specifications, it notes that finite-horizon specifications can be handled by adapting the framework.
  • Generalization to LTLf: The authors suggest that their SSR framework can be extended to linear temporal logic over finite traces (LTLf) by translating LTLf formulas to DFAs.

Summary updated

Abstract

This article addresses the problem of data-driven computation of controllers that are correct by design for safety-critical systems and can provably satisfy (complex) functional requirements. With a focus on continuous-space stochastic systems with parametric uncertainty, we propose a two-stage approach that decomposes the problem into a learning stage and a robust formal controller synthesis stage. The first stage utilizes available Bayesian regression results to compute robust credible sets for the true parameters of the system. For the second stage, we introduce methods for systems subject to both stochastic and parametric uncertainties. We provide simulation relations for enabling correct-by-design control refinement that are founded on coupling uncertainties of stochastic systems via subprobability measures. The presented relations are essential for constructing abstract models that are related to not only one model but to a set of parameterized models. The results are demonstrated on three case studies, including a nonlinear and a high-dimensional system.
BibTeX
@article{schon2024bayesian,
  author = {Oliver Schön and Birgit van Huijgevoort and Sofie Haesaert and Sadegh Soudjani},
  title = {{Bayesian Formal Synthesis of Unknown Systems via Robust Simulation Relations}},
  journal = {IEEE Transactions on Automatic Control},
  year = {2024},
  doi = {10.1109/tac.2024.3459308},
}
Figure