Verification and External Parameter Inference for Stochastic World Models

Radu Calinescu, Sinem Getir Yaman, Simos Gerasimou, Gricel Vázquez, Micah BassettarXiv 2025

TL;DR

The paper introduces ULTIMATE, a universal framework designed to verify complex, heterogeneous multi-model stochastic systems featuring intricate, circular interdependencies. By unifying diverse probabilistic model checking (PMC) paradigms with frequentist and Bayesian parameter inference, ULTIMATE enables system-level verification and policy synthesis for real-world software systems operating under multi-faceted uncertainty.

What Problem Does This Paper Address?

Modern software-intensive systems—such as autonomous robots, cyber-physical systems, and AI agents—must operate under deep uncertainty. This uncertainty takes many forms: the nondeterminism of user inputs, the stochasticity of action execution times, and the partial observability stemming from imperfect machine learning perception components.

While Probabilistic Model Checking (PMC) is a highly effective method for verifying individual stochastic models (like Markov chains or decision processes), real-world systems are rarely monolithic. Instead, they are composed of multiple interacting, heterogeneous components. For instance, a robot assistive dressing system requires modeling physical arm movements in continuous time, user monitoring via deep learning in discrete time, and high-level decision-making under partial observability.

Prior PMC techniques could not handle systems composed of different model types, nor could they resolve co-dependencies—circular relationships where the parameters of Model A depend on the verification results of Model B, which in turn depend on Model A.

Figure 3: RAD stochastic models and dependencies

Methods

The authors present the ULTIMATE (UniversaL stochasTIc Modelling, verificAtion and synThEsis) framework to bridge this gap. The core verification engine operates via a multi-stage algorithm:

  1. Dependency Graph & SCC Decomposition: The framework constructs a directed dependency graph of the multi-model system. It applies Tarjan's strongly connected component (SCC) algorithm to group co-dependent models and establish a topological order for verification.
  2. Resolving Circular Co-Dependencies: For models trapped in a circular dependency loop (within the same SCC), ULTIMATE employs two novel strategies:
  3. Parametric Model Checking: If the models support it, the framework generates a system of polynomial equations representing the interdependent properties and solves them numerically (e.g., via Newton-Raphson).
  4. Derivative-Free Optimization: If parametric verification is infeasible (e.g., when crossing discrete and continuous-time model boundaries), it leverages derivative-free optimization (like Powell's method) to minimize residuals and estimate parameter values.
  5. Parameter Inference Integration: ULTIMATE natively incorporates both frequentist (e.g., mean rate calculations) and Bayesian estimators (e.g., the KAMI estimator) to dynamically update external parameters using expert knowledge or runtime logs.

The framework is implemented as an open-source Java tool that orchestrates established model checkers like PRISM, Storm, and PRISM-games alongside SciPy optimization libraries.

Figure 1: ULTIMATE multi-model verification

Datasets

As a formal verification paper, it does not rely on standard machine learning training benchmarks. Instead, the framework was evaluated using real-world operational logs, simulated runtime data, and expert priors across five distinct case studies:

  • Robot Assistive Dressing (RAD): Synthesizing safety policies for a robotic arm assisting disabled or elderly users.
  • Smart Motion Detection (SMD): A cyber-physical system pairing a motion sensor with smart lighting.
  • Mobile Robot Fleet (RoboFleet): A human-supervised fleet of $N$ robots navigating grid worlds.
  • Dynamic Power Management (DPM-FX): A foreign exchange market service system interacting with hard disk power-saving modes.
  • Robot Coordination (RoCo): A two-robot collision avoidance scenario modeled as a concurrent stochastic game.

Key Insights and Ideas

  • Embracing Heterogeneity: Real-world systems cannot be forced into a single model type. Unifying discrete-time, continuous-time, fully observable, and partially observable paradigms under a single verification loop is essential for accurate system-level guarantees.
  • Verification as an Optimization Problem: The paper elegantly shows that circular dependencies between formal models do not have to result in an infinite verification loop. Instead, they can be framed and solved as systems of equations or optimization tasks.
  • Graph-Driven Decomposition: Applying SCC decomposition to the dependencies between models (rather than states within a single model) provides a clean, automated pipeline for ordering complex verification workflows.

Key Results

The empirical evaluation proved that ULTIMATE can successfully verify properties and synthesize optimal control policies across all five heterogeneous case studies.

  • Handling Complex Loops: The tool successfully resolved challenging circular dependencies, such as the DTMC-DTMC loop in the user monitoring controller and the cross-paradigm DTMC-CTMC loop in the power management case study.
  • High Efficiency: Despite the mathematical complexity of nesting model checkers and non-linear solvers, the framework proved highly performant. Thanks to the topological ordering of the SCC decomposition, all sample properties were verified within seconds on a standard laptop (e.g., 3.10 seconds for the RAD system, 1.50 seconds for DPM-FX).

Limitations and Future Work

  • Complexity Analysis Constraints: The authors note that a formal complexity analysis of the ULTIMATE algorithm is impossible because it relies on multiple black-box reasoning engines (checkers, optimizers, and solvers) whose execution times vary drastically based on configuration.
  • Future Directions: The team plans to extend ULTIMATE to handle even more intricate model interactions, incorporate broader forms of domain data, and support fully automated parameter synthesis directly from system requirements.

Summary updated

Abstract

Given its ability to analyse stochastic models ranging from discrete and continuous-time Markov chains to Markov decision processes and stochastic games, probabilistic model checking (PMC) is widely used to verify system dependability and performance properties. However, modelling the behaviour of, and verifying these properties for many software-intensive systems requires the joint analysis of multiple interdependent stochastic models of different types, which existing PMC techniques and tools cannot handle. To address this limitation, we introduce a tool-supported UniversaL stochasTIc Modelling, verificAtion and synThEsis (ULTIMATE) framework that supports the representation, verification and synthesis of heterogeneous multi-model stochastic systems with complex model interdependencies. Through its unique integration of multiple PMC paradigms, and underpinned by a novel verification method for handling model interdependencies, ULTIMATE unifies-for the first time-the modelling of probabilistic and nondeterministic uncertainty, discrete and continuous time, partial observability, and the use of both Bayesian and frequentist inference to exploit domain knowledge and data about the modelled system and its context. A comprehensive suite of case studies and experiments confirm the generality and effectiveness of our novel verification framework.
BibTeX
@misc{calinescu2025verification,
  author = {Radu Calinescu and Sinem Getir Yaman and Simos Gerasimou and Gricel Vázquez and Micah Bassett},
  title = {{Verification and External Parameter Inference for Stochastic World Models}},
  year = {2025},
  eprint = {2503.16034},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.16034},
}
Figure