Introduction
Formal verification of stochastic systems often relies on Markov Decision Processes (MDPs) to model nondeterminism and probability. Traditionally, verifying properties like "what is the maximum probability of reaching a failure state?" requires exhaustive exploration of the entire state space. As systems grow complex, this leads to the state explosion problem, where the model becomes too large to fit in memory or take a reasonable time to solve.
While Statistical Model Checking (SMC) uses simulation to estimate probabilities, it has historically struggled with MDPs because of nondeterminism and "unbounded" properties where a system might loop forever. This paper introduces a novel framework that applies machine learning—specifically reinforcement learning techniques like Bounded RTDP and Delayed Q-learning—to bridge this gap, providing a way to verify unbounded reachability properties on general MDPs without needing to build the full model upfront.
Methods
The authors propose a general learning framework consisting of two phases: EXPLORE (sampling trajectories to find target states) and UPDATE (refining probability estimates). They instantiate this framework with two specific algorithms:
- BRTDP (Bounded Real-Time Dynamic Programming): Used when the full model structure is known but not yet generated. It maintains both lower and upper bounds on reachability probabilities. It uses heuristics to prioritize exploring states where the gap between these bounds is largest.
- DQL (Delayed Q-learning): Used in a "limited information" setting where the system can only be sampled. It provides PAC (Probably Approximately Correct) guarantees, meaning it returns a result within a specified error margin with high probability.
On-the-fly End Component (EC) Detection
A major technical hurdle in learning for MDPs is the presence of End Components—sets of states where a strategy can keep the system trapped forever. Standard learning algorithms can get "stuck" in these loops, leading to incorrect probability estimates. The authors developed a method to detect these components during simulation and "collapse" them into single states, allowing the algorithms to handle arbitrary, complex MDP structures.
Key Insights and Ideas
- Heuristic-Driven Exploration: Instead of visiting every state, the algorithm uses the current "gap" between upper and lower bounds to decide where to look next. This naturally ignores parts of the system that don't contribute significantly to the property being verified.
- Dual Bounds for Convergence: By tracking both a lower bound (optimistic) and an upper bound (pessimistic), the framework provides a rigorous stopping criterion. When the bounds meet within a precision $\epsilon$, the verification is complete.
- Unbounded is Possible: By integrating on-the-fly EC detection, the authors proved that learning-based verification isn't just for "finite-step" problems; it can handle properties that depend on the infinite-horizon behavior of the system.
Experimental Results
The researchers evaluated their framework using several standard benchmarks from the PRISM model checker suite, including zeroconf (IPv4 configuration), wlan (IEEE 802.11), firewire_impl_dl (IEEE 1394), and mer (Mars Exploration Rover). These models represent real-world concurrent and stochastic systems with state spaces ranging from hundreds of thousands to tens of millions of states.
The experimental results demonstrate that the learning-based approach significantly outperforms standard exhaustive methods (like Value Iteration in PRISM):
- State Space Reduction: On average, the learning algorithms only needed to visit a fraction of the total states—often three orders of magnitude fewer than the full model size.
- Speedup: For the
merexample, the BRTDP-based approach was roughly 60x faster than PRISM's fastest engine. - Scalability: The framework successfully verified models with over 26 million states in just a few seconds, whereas traditional tools struggled with the memory and time requirements for such large models.
Limitations and Future Work
- Rare Events: Like all sampling-based methods, the DQL approach struggles when the "target" states are extremely unlikely to be reached by chance.
- Symbolic Integration: The current implementation is explicit (state-by-state). Combining these learning heuristics with symbolic methods (like Binary Decision Diagrams) could lead to even greater efficiency.
- Complex Objectives: While they showed an extension to LTL (Linear Temporal Logic), the primary focus was reachability. Extending the framework to handle more complex reward-based properties or multi-objective verification remains an open area.
Summary updated