Introduction
In safety-critical systems like autonomous vehicles or medical devices, runtime monitors act as a safety net. They observe system behavior and flag when the risk of a failure—such as a collision—exceeds a safety threshold. However, real-world monitoring faces two significant hurdles: imprecise sensors (partial observability) and complex dynamics that blend probabilistic behavior (noise, failures) with nondeterministic behavior (adversarial environments).
The Challenge of MDP Monitoring
While efficient monitoring exists for purely probabilistic systems (Markov Chains) or purely nondeterministic systems (Kripke structures), combining the two in Markov Decision Processes (MDPs) is notoriously difficult. This paper addresses the calculation of "trace risk"—the maximum possible risk given a sequence of observations—within an MDP framework.
Methods: Filtering vs. Unrolling
The authors explore two primary algorithmic directions for solving the monitoring problem:
- Forward Filtering: This approach updates a "belief" about the system state after each observation. In MDPs, a belief is not a single distribution but a set of possible probability distributions due to nondeterminism. The authors use a Convex Hull-based reduction to track only the extreme points (vertices) of this set to keep it manageable.
- Unrolling with Model Checking: This is the paper's core contribution. Instead of tracking beliefs step-by-step, the monitor "unrolls" the MDP based on the specific observation trace received. This transforms the monitoring task into a conditional reachability problem on a specialized MDP, which can be solved in polynomial time using standard model-checking techniques like linear programming or value iteration.
Key Insights
The research reveals a "Nondeterminism + Probability Tax": combining these uncertainties leads to an exponential memory blowup in traditional state estimation. Surprisingly, online model checking proves more tractable than filtering because it focuses only on the received trace, avoiding the need to represent the entire belief space. Furthermore, the authors caution against "pruning" low-probability states; in MDP monitoring, a seemingly unlikely state today could evolve into a high-risk state tomorrow under a specific adversarial scheduler.
Empirical Results
The framework was tested on several benchmarks, including AIRPORT (airplane landing with crossing vehicles), REFUEL (robot battery management), and EVADE (multi-agent collision avoidance).
- Complexity: The quantitative monitoring problem for MDPs was proven to be P-complete, establishing a formal baseline for the field.
- Performance: The Unrolling (UNR) approach demonstrated superior robustness. In the AIRPORT-B benchmark, filtering methods timed out or failed, while unrolling provided risk estimates in fractions of a second.
- Efficiency: Optimistic Value Iteration (OVI) was the fastest engine for the unrolling method, while Exact Policy Iteration (EPI) offered better stability against numerical issues posed by unlikely observation traces.
Conclusion and Future Work
While the unrolling approach is efficient, its memory usage grows linearly with trace length, posing challenges for long-running systems. Future research directions include developing approximate monitoring heuristics, optimizing convex hull computations for filtering, and extending the framework to "gray-box" models where dynamics are partially learned from data rather than fully specified upfront.
Summary updated