Abstract
This paper introduces a highly efficient algorithm for verifying "relational reachability" in Markov Decision Processes (MDPs)—properties that compare the probabilities of reaching different target states. By reducing these complex queries to standard expected reward problems, the authors achieve massive performance gains over general-purpose solvers, enabling the verification of security and randomized algorithm properties on models with millions of states.
Introduction
Standard probabilistic model checking (PMC) typically addresses single-event queries, such as: "Is the probability of reaching an error state less than 0.01?" However, many real-world applications require comparing probabilities across different scenarios. These "relational" properties are essential for:
- Security: Verifying if an encryption algorithm leaks information through timing by checking if the probability of a specific execution time is independent of the secret key.
- Randomized Algorithms: Ensuring a simulation of a fair coin flip using a biased source results in equal probabilities for outputting '0' and '1'.
While relational properties can be expressed in general probabilistic hyperlogics, those logics are often computationally intractable. This paper identifies a specific, useful fragment of these properties that can be solved much more efficiently.
Methods
The authors propose a four-step algorithmic procedure to decide if a relational property holds:
- State-Scheduler Decomposition: The property is broken down into combinations of initial states and scheduler variables.
- Goal Unfolding: The MDP's state space is augmented to track which target sets have been reached. This "unfolding" allows the algorithm to distinguish between paths that hit different targets. The process of goal unfolding transforms reachability into a state-tracking problem by augmenting the state space to track target sets. Efficient Probabilistic Model Checking for Relational Reachability (Extended Version), page 7
- Expected Reward Reduction: The core insight is that reachability probabilities in the original MDP can be computed as expected rewards in the unfolded MDP. The algorithm uses standard, highly optimized linear programming or value iteration techniques to find the minimum and maximum possible rewards.
- Aggregation: Finally, the algorithm checks if the desired relationship (e.g., $Pr(A) \approx Pr(B)$) falls within the range of achievable values. For equality properties, they use a "convex combination" of schedulers to construct a randomized strategy that hits the exact target probability.
Complexity and Key Insights
The research provides a detailed map of the computational hardness associated with relational properties. A key finding is the significant difference in complexity between scheduler types:
- The Power of Randomization and Memory: For relational properties, "simple" schedulers (memoryless and deterministic) are often insufficient. Satisfying equality properties like $Pr(A) = Pr(B)$ may require schedulers that utilize past events and randomization.
- Complexity Landscape: While finding memoryless deterministic (MD) schedulers is NP-hard, solving the problem over general schedulers is often much easier, frequently falling into PTIME. Complexity of different relational property classes over memoryless deterministic (MD) vs. general schedulers. Efficient Probabilistic Model Checking for Relational Reachability (Extended Version), page 3
- Fixed-Parameter Tractability: The algorithm's complexity is exponential only in the number of different target sets mentioned in the query. Since most practical queries only compare a few sets, this approach remains highly efficient in practice.
Experimental Results
The researchers evaluated their tool, RelReach, using several benchmarks including Von Neumann's Trick (VN), Robot Tag (RT), and various security case studies (Timing Analysis, Password Verification, Thread Scheduling).
- Massive Speedups: RelReach outperformed state-of-the-art hyperproperty solvers (HyperProb and HyperPAYNT) by orders of magnitude. For the Von Neumann benchmark, RelReach solved instances with 160,000 states in approximately 200 seconds, while competitors timed out on much smaller versions.
- Scalability: The tool successfully handled models with over 27 million states in the Robot Tag benchmark, demonstrating its readiness for industrial-scale verification.
- Practical Utility: RelReach automatically verified that Von Neumann's trick remains effective even when input bit biases are not perfectly fixed.
Conclusion
RelReach provides a scalable and efficient solution for verifying relational reachability properties in MDPs. Future work will explore extending this approach to complex Boolean combinations of properties, more expressive temporal logics (such as $\omega$-regular properties), and the challenges of Partial Observability (POMDPs).
Summary updated