Conformal Quantitative Predictive Monitoring of STL Requirements for Stochastic Processes

Francesca Cairoli, Nicola Paoletti, Luca Bortolussi

TL;DR

Researchers have developed Quantitative Predictive Monitoring (QPM), a new framework that predicts not just if a system will fail, but by how much it will satisfy or violate safety requirements. By combining deep learning with conformal inference, QPM provides mathematically guaranteed "safety buffers" (prediction intervals) for complex stochastic systems in real-time, allowing controllers to intervene before a disaster occurs.

What Problem Does This Paper Address?

In safety-critical systems—like automated medical devices or chemical plants—we need to know if a failure is imminent. This is called Predictive Monitoring (PM). Traditional PM usually gives a Boolean answer: "Yes, the system will satisfy the requirement" or "No, it won't."

However, real-world systems are stochastic (random). A robot’s future isn't a single path; it’s a cloud of possibilities. Predicting a simple "Yes/No" ignores the underlying probability distribution and provides no measure of risk. Furthermore, calculating these probabilities exactly using formal methods is often too slow for runtime use, while standard machine learning models lack the rigorous "correctness guarantees" required for safety.

Methods

The authors introduce Quantitative Predictive Monitoring (QPM), which shifts the focus from Boolean logic to Signal Temporal Logic (STL) robustness. Robustness is a real-valued metric: a positive value means the requirement is met (and how much "room" you have), while a negative value indicates a violation.

The core technical pipeline involves:

  1. Quantile Regression (QR): Instead of predicting a single average robustness value, a neural network is trained to predict specific quantiles (e.g., the 5th and 95th percentiles) of the robustness distribution.
  2. Conformalized Quantile Regression (CQR): This is the "secret sauce." Standard neural networks can be "overconfident" or "underconfident." CQR uses a small calibration dataset to calculate a "correction factor" ($\tau$). This ensures that the resulting prediction interval is guaranteed to contain the true robustness value with a user-defined probability (e.g., 90%).
  3. Compositionality: The authors demonstrate that you don't need to train a new model for every complex requirement. You can take monitors for simple properties (like "temperature is low" and "pressure is stable") and combine their intervals using specific arithmetic to monitor the joint requirement ("temperature is low AND pressure is stable") while maintaining safety guarantees.

Datasets

The framework was evaluated on four discrete-time stochastic benchmarks:

  • Automated Anaesthesia Delivery (AAD): A 3D model of a patient receiving drugs, where the goal is to keep blood pressure and drug concentration in a safe zone.
  • Heated Tank (HT): A system with pumps and valves where components can fail randomly, affecting liquid level and temperature.
  • Multi-Room Heating (MRH): A modular system (tested with 2, 4, and 8 rooms) where heaters switch on/off to maintain temperatures.
  • Gene Regulatory Network (GRN): A biological model (tested with 2, 4, and 6 genes) where proteins repress each other in a cyclic fashion.

Key Insights and Ideas

  • Uncertainty as Information: If a predicted interval straddles zero (e.g., [-0.5, 1.2]), the system is in a "risky" state. QPM treats this uncertainty as a first-class citizen, signaling to a controller that an intervention might be needed even if the "average" prediction looks safe.
  • Efficiency vs. Validity: Standard Quantile Regression (QR) doesn't provide formal guarantees. By adding the Conformal layer (CQR), the authors achieve validity (the intervals actually cover the truth 90% of the time) without sacrificing much efficiency (the intervals remain tight and useful).
  • Microsecond Inference: While training the models takes time (offline), using them at runtime (inference) takes only microseconds. This makes QPM viable for high-frequency control loops where traditional model checking would fail.

Key Results

  • Guaranteed Coverage: Across all tests, the CQR intervals met the required statistical confidence levels (e.g., achieving ~90% empirical coverage when 90% was requested).
  • Low Error Rates: The rate of "False Positives"—the most dangerous error where the monitor predicts safety but the system is actually failing—was extremely low, consistently under 4%.
  • Scalability: The method handled modular systems like the 8-room heating model and 6-gene networks effectively, proving it can scale to higher-dimensional state spaces that are typically "state-space explosion" nightmares for formal methods.

Limitations and Future Work

  • The Exchangeability Assumption: Conformal prediction assumes that the data seen at runtime comes from the same distribution as the training data. In systems that evolve over time (sequential data), this "exchangeability" can break down. The authors noted that while QPM performed well on sequential data, it sometimes became slightly over- or under-conservative.
  • Spatial vs. Temporal Robustness: Currently, the work focuses on how much a value is violated (spatial). Future work aims to incorporate when or for how long a violation occurs (temporal robustness).
  • Dynamics-Aware Inference: The authors suggest exploring ways to limit the monitor's focus only to the regions of the state space the system is actually likely to visit, which could further improve accuracy.

Summary updated

BibTeX
@inproceedings{cairoli2023conformal,
  author = {Francesca Cairoli and Nicola Paoletti and Luca Bortolussi},
  title = {{Conformal Quantitative Predictive Monitoring of STL Requirements for Stochastic Processes}},
  booktitle = {HSCC},
  year = {2023},
  doi = {10.1145/3575870.3587113},
}
Figure