Runtime Verification via Rational Monitor with Imperfect Information

Angelo Ferrando, Vadim MalvonearXiv 2024

TL;DR

This paper introduces a new framework for Runtime Verification (RV) that moves away from the "perfect information" assumption. By treating the monitor as a rational agent capable of strategically choosing which data to observe under resource constraints, the authors enable more reliable verification for autonomous systems operating with faulty sensors or incomplete information.

What Problem Does This Paper Address?

Traditional Runtime Verification (RV) is a lightweight way to check if a system is behaving according to formal specifications (usually written in Linear Temporal Logic, or LTL) while it is actually running. However, standard RV has a major blind spot: it assumes the monitor has a "god's eye view" of the system.

In the real world—especially with autonomous robots—this assumption breaks down. Sensors fail, communication is patchy, and battery life limits how many high-power sensors can run at once. Standard monitors often mistake the absence of information for the negation of a property, leading to dangerously incorrect verdicts. Furthermore, traditional monitors are "passive," simply reacting to whatever data they receive rather than actively deciding what information is most critical to uncover.

Methods

The authors propose a two-step evolution of the standard RV pipeline:

  1. Handling Imperfect Information: They introduce "indistinguishability relations" to group atomic propositions that a monitor might confuse (e.g., a robot might not be able to distinguish a "cut" on a barrel from a "rust stain"). They extend the standard monitor synthesis pipeline—which usually uses two automata (one for the property and one for its negation)—by adding a third automaton to explicitly track "undefined" states where information is missing.

    Fig. 1: Steps required to generate an FSM from an LTL formula φ. NBA is Non- deterministic Büchi Automaton, NFA is Non-deterministic Finite Automaton, and DFA is Deterministic Finite Automaton.
  2. Rational Monitoring: They introduce the concept of a monitor with a "budget."

    • Active Monitor: Given a limited resource bound, the monitor uses the Knapsack algorithm to decide which indistinguishability relations to "break" (i.e., which sensors to activate) to maximize the "payoff" of the information gained relative to its cost.
  3. Reactive Monitor: This version is even smarter; it divides the execution into time windows and dynamically reallocates its resources. If a sub-property is already satisfied, the monitor stops spending resources on it and shifts its "attention" to unresolved parts of the formula.

Datasets

The researchers evaluated their approach using two primary methods:

  • Robotic Case Study: A 3D simulation in Gazebo featuring a Jackal unmanned ground vehicle (UGV) patrolling a nuclear facility. The rover had to inspect barrels for leaks while managing radiation sensors and camera data under simulated uncertainty.

    Fig. 2: Simulation in Gazebo of the remote inspection of nuclear plant.
  • Stress Testing: To evaluate performance and the impact of different metrics, they generated 10,000 random LTL formulas and verified them against 100 random traces, totaling 1,000,000 execution runs.

Key Insights and Ideas

  • Absence $\neq$ Negation: In imperfect systems, not seeing a "danger" signal doesn't mean the system is safe; it might just mean the sensor is off. The authors' three-valued logic (True, False, Unknown) prevents the monitor from giving false "Safe" verdicts.
  • The Monitor as an Agent: By giving the monitor a payoff function and a budget, verification becomes a strategic optimization problem. The monitor "decides" what is worth knowing.
  • Dynamic Attention: The "Reactive" monitor's ability to shift resources over time is crucial. Once a robot knows it has successfully reached a waypoint, it can stop "paying" to monitor that waypoint and start paying to monitor the next one.

Key Results

  • Correctness: In the robotic case study, the rational monitor correctly identified properties as "unknown" or "potentially satisfied" where a standard monitor would have given a flat-out wrong "True" or "False" verdict.
  • Efficiency: While synthesizing these complex monitors is computationally expensive (exponential relative to formula size), the verification time remains linear relative to the trace length. This makes the approach viable for real-time, online use in robotics.
  • Metric Impact: The choice of how to calculate "payoff" (the metric function) significantly affects performance. Their experiments showed that a well-tuned metric can reduce the number of "undefined" outcomes by nearly 50% compared to a baseline approach.

Limitations and Future Work

The authors identify two main paths forward:

  1. Multi-Agent Systems: Currently, the framework assumes one monitor for one system. Extending this to teams of robots (like a swarm) where each agent has different partial views would be a significant leap.
  2. Refining Metrics: The "payoff" for information is currently calculated based on the structure of the LTL formula. The authors want to investigate more sophisticated metrics that might offer better trade-offs between cost and definitive truth outcomes.
  3. IoT Integration: The distributed nature of Internet of Things (IoT) systems, where components often lack a complete view of the network, is highlighted as a prime candidate for this "rational" monitoring approach.

Summary updated

BibTeX
@misc{ferrando2024runtime,
  author = {Angelo Ferrando and Vadim Malvone},
  title = {{Runtime Verification via Rational Monitor with Imperfect Information}},
  year = {2024},
  eprint = {2408.11627},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.11627},
}
Figure