Runtime Monitoring of Supermartingale Certificates
Organizations: University of Birmingham · Institute of Science and Technology Austria · University of Oxford · Leiden University ·
Abstract
Supermartingale certificates formally guarantee temporal properties of discrete and continuous-time stochastic dynamical systems. However, these guarantees rely on a mathematical model of the world, leaving a sim-to-real gap that can invalidate them for the deployed system. We formulate the runtime monitoring problem for supermartingale certificates, in which a monitor observes a single system trajectory and raises an alarm when there is sufficient statistical evidence that the supermartingale certificate has been violated during execution. We present an algorithm to automatically construct a monitor using betting-based sequential tests that bound the probability of ever raising a false alarm at a user-specified level. Within this betting framework, we formulate strategies that allow the monitor to exploit spatial regularity to improve detection power while preserving this statistical guarantee. We demonstrate the efficacy of our approach on supermartingale certificate benchmarks from the literature.
Figures & tables
| Detections (median delay) | |||||
| Benchmark & Setting | Magnitude | Exposure (%) | U-L | T-L | S-L |
| Building: heating loss | 0.0151 | 24.9 | 0 (NR) | 0 (NR) | 50 (3043) |
| Building: heating loss | 0.0309 | 37.6 | 0 (NR) | 0 (NR) | 50 (732) |
| Tanks: burst probability | 0.00561 | 5.5 | 0 (NR) | 0 (NR) | 0 (NR) |
| Tanks: burst probability | 0.00615 | 11.0 | 0 (NR) | 0 (NR) | 34 (28507) |
| LQR: feedback loss | 0.00955 | 100.0 | 19 (NR) | 12 (NR) | 16 (NR) |
| Temporal prediction | Spatial prediction | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Scale | Pers. | Del. | Temp. | Rec. | Ring | Hill | Scale | Pers. | Del. | Temp. | Rec. | Ring | Hill |
| Uniform | 2126 | 3204 | NR | NR | 2360 | 588 | Uniform | 2126 | 3204 | NR | NR | 2360 | 588 |
| Equal | 2183 | 668 | 914 | 1102 | 664 | 492 | Equal | 3351 | 2141 | NR | 571 | 654 | 482 |
| XS | NR | 1565 | NR | 570 | 168 | 568 | XS | NR | 3979 | NR | NR | NR | 670 |
| S | 6719 | 756 | NR | 2110 | 1127 | 441 | S | NR | 2977 | NR | NR | 655 | 594 |
| M | 2442 | 575 | 766 | NR | 1713 | 476 | M | 21051 | 3437 | NR | 1578 | 640 | 552 |
| Benchmark set | No. Settings | U-L(%) | T-L(%) | S-L(%) |
|---|---|---|---|---|
| Synthetic | 18 | 62.2 | 77.0 | 79.6 |
| Control | 18 | 29.7 | 28.2 | 83.8 |
| Neural, | 48 | 10.7 | 10.8 | 43.1 |
| Neural, | 48 | 71.9 | 71.7 | 77.8 |
| Neural, | 48 | 76.1 | 76.3 | 81.0 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Runtime Verification
Runtime verification checks executing systems against formal properties to detect, predict, or prevent violations.
See all 62 papers