NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-Aware Temporal Logic for Probabilistic Systems

Mahmoud Elfar, Yu Wang, Miroslav Pajic

Abstract

Designing resilient Cyber-Physical Systems (CPS) requires the ability to handle shifting priorities based on environmental conditions. Traditional formal methods like Probabilistic Computation Tree Logic (PCTL) often struggle to represent complex, conditional requirements—such as switching to a secondary goal when the primary goal's success probability drops. This paper introduces Context-Aware Probabilistic Temporal Logic (CAPTL), a framework that formalizes these "Plan B" scenarios. By treating probabilistic contexts as first-class citizens, CAPTL enables the automatic synthesis of control strategies that adapt to changing likelihoods of success. We present an optimized synthesis algorithm for persistence objectives and demonstrate its efficacy through robotic navigation and biochip scheduling case studies.

Introduction

In the design of autonomous vehicles, medical devices, and other Cyber-Physical Systems (CPS), engineers must balance multiple, often conflicting, objectives. While standard tools like Probabilistic Computation Tree Logic (PCTL) are effective for verifying single-goal properties (e.g., "the probability of reaching the target is at least 0.95"), they lack the expressive power to handle hierarchical, conditional logic.

Real-world requirements are frequently prioritized: a robot should prioritize its primary task unless the probability of success falls below a threshold, at which point it should pivot to a safety or recovery protocol. Manually encoding these transitions in standard PCTL is error-prone and computationally expensive. This research addresses this gap by proposing CAPTL, a logic designed to natively handle context-driven objective switching.

The CAPTL Framework

Syntax and Semantics

The core innovation of CAPTL is the formalization of "contexts"—probabilistic conditions that trigger a shift in the system's active objective. A CAPTL requirement consists of a set of objectives and a transition relation. Each transition is labeled with a context, allowing the system to monitor its own performance and transition between objectives dynamically.

Synthesis Algorithms

The authors provide two primary algorithms for generating control strategies from CAPTL specifications:

  1. General Synthesis (Algorithm 1): This baseline approach reduces a CAPTL requirement into a sequence of PCTL synthesis sub-problems. While functional, it serves primarily as a foundation for more specialized optimizations.
  2. Optimized Persistence Synthesis (Algorithm 2): Designed for "Persistence CAPTL"—where objectives involve reaching and remaining in specific states—this algorithm utilizes Local Strategy Dominance. Instead of recalculating strategies at every state, the algorithm partitions the state space into regions where specific objectives are active. This significantly reduces the computational overhead by ensuring local strategies are calculated only once per region.

The framework is implemented as an extension to the PRISM-games model checker, utilizing MATLAB for high-level synthesis logic.

Experimental Evaluation

The framework was evaluated using two distinct case studies:

  • Robotic Task Planner: A robot navigates a grid-world with probabilistic obstacles (e.g., doors that may be locked). The robot must manage its battery while attempting to reach a goal, switching to a charging station or a safe zone if the primary path becomes too risky.
  • MEDA-Biochip Scheduler: This study models a micro-electrode-dot-array biochip. As actuators degrade over time, the scheduler must adapt the path of fluid droplets. If a primary mixing operation becomes unlikely to succeed, the system "salvages" the operation by moving droplets to alternative segments or aborting to prevent contamination.

Key Results

The evaluation demonstrated significant improvements in both performance and model efficiency:

  • Computational Efficiency: In the $9 \times 9$ robotic grid-world, Algorithm 2 completed synthesis in approximately 22 seconds. This represents a substantial improvement over naive state-by-state synthesis methods.
  • Model Compression: Synthesized CAPTL models ($M^\sigma_A$) were found to be significantly more compact than the original system models. For instance, in a $14 \times 8$ biochip model, the original system's 200,000+ transitions were reduced to approximately 1,300 in the synthesized version, simplifying the resulting control logic.
  • Operational Resilience: The biochip case study confirmed that the system could autonomously transition from "mixing" to "salvaging" and eventually "aborting" as hardware failure rates increased, maintaining safety and resource efficiency.

Conclusion and Future Directions

CAPTL provides a robust mathematical foundation for designing systems with complex, conditional requirements. By making contexts a first-class citizen in the logic, the framework simplifies the formalization of "Plan B" strategies.

Future research will focus on expanding CAPTL to stochastic multi-player games, allowing for synthesis in adversarial environments. Additionally, the authors plan to extend the optimized algorithms to support safety properties, bounded reachability, and reward-based objectives. Finally, integrating the MATLAB-based synthesis logic directly into a standalone model-checking tool will enhance the framework's accessibility for the broader engineering community.

Summary updated

BibTeX
@inproceedings{elfar2020context,
  author = {Mahmoud Elfar and Yu Wang and Miroslav Pajic},
  title = {{Context-Aware Temporal Logic for Probabilistic Systems}},
  booktitle = {ATVA},
  year = {2020},
  doi = {10.1007/978-3-030-59152-6\_12},
}
Figure