Abstract
This paper 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 sub-probability 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.
Introduction: The Challenge of Epistemic Uncertainty
In the realm of formal methods, designing controllers typically relies on the assumption of a perfect mathematical model. However, real-world applications—ranging from autonomous drones to smart grids—rarely offer such certainty. Instead, we face "epistemic uncertainty": while the general form of the system's equations might be known, the specific parameters must be estimated from noisy, finite data.
Traditional data-driven approaches, such as Reinforcement Learning, often struggle to provide the rigorous safety guarantees required for medical or aerospace applications. Conversely, standard formal synthesis methods are often computationally prohibitive or require a level of model precision that is unattainable. This research addresses a critical question: How can we design a controller using only finite, noisy data that is provably safe, even when our model estimate is imperfect?
Methodology: A Two-Stage Framework
The proposed framework bridges the gap between statistical learning and formal verification through a two-stage pipeline.
Stage 1: The Learning Stage
The first stage employs Bayesian Linear Regression to quantify model uncertainty. By processing a dataset of state-input transitions, the algorithm computes a "credible set" ($\Theta$). Rather than relying on a single point estimate, this set encompasses all parameter values that are statistically plausible given the data, at a user-defined confidence level (e.g., 99%).
Stage 2: The Synthesis Stage
The core theoretical contribution lies in the development of a novel $(\epsilon, \delta)$-sub-simulation relation (SSR). This stage involves:
- Abstraction: Constructing a simplified, finite-state "abstract" model of the system.
- Sub-probability Couplings: Unlike standard relations that compare two specific models, SSRs use sub-probability measures to quantify the distance between the abstract model and the entire set of possible real models within $\Theta$.
- Parameter-Independent Refinement: This allows for the design of a controller on the abstract model that can be "lifted" to the physical system without requiring knowledge of the exact true parameters.
The requirements are specified using syntactically co-safe Linear Temporal Logic (scLTL), enabling the definition of complex behaviors such as "Visit region A, then B, while avoiding C, and eventually reach the goal."
Experimental Evaluation
The framework was validated across three distinct simulated benchmarks:
- 2D Linear Agent: A package delivery task requiring navigation through a grid while avoiding obstacles, testing complex logic with loops.
- 7D Building Automation System: A high-dimensional thermal control problem demonstrating compatibility with model-order reduction (simplifying 7D to 2D for synthesis).
- Nonlinear Van der Pol Oscillator: Demonstrating that the method handles non-linear dynamics, provided the unknown parameters enter the equations linearly.
Key Insights and Results
- Robust "One Controller" Design: The framework synthesizes a single controller that is guaranteed to work for the worst-case scenario within the Bayesian credible set, avoiding the need for model-specific controllers.
- Safety-Data Trade-off: As more data is collected, the Bayesian credible set shrinks, leading to "tighter" simulation relations and higher guaranteed probabilities of success.
- Efficiency and Performance: In the 7D building case, the entire pipeline took less than 100 seconds on a standard CPU. Furthermore, the method outperformed Gaussian Process (GP) baselines, which often produced overly conservative (zero-probability) safety guarantees in high-dimensional settings.
- Empirical Validation: In the package delivery simulation, 99 out of 100 random trajectories successfully satisfied the complex temporal logic specification, validating the theoretical lower bounds provided by the framework.
Limitations and Future Directions
While powerful, the current framework assumes that system dynamics are linear with respect to unknown parameters and that the full state is observable. Future work aims to extend these simulation relations to partially observable systems and explore non-Gaussian noise distributions, further broadening the applicability of this "correct-by-design" approach.
Summary updated