Approximate Distributed Monitoring under Partial Synchrony: Balancing Speed and Accuracy
Borzoo Bonakdarpour, Anik Momtaz, Dejan Ničković, N. Ege Saraç
TL;DR
The paper tackles the high computational cost of exact distributed runtime verification for Signal Temporal Logic under partial synchrony. It introduces Adm, an approximate STL$^+$ monitoring framework that overapproximates interleavings by canonical segmentation and value expressions, and complements it with exact monitoring to recover precision when needed. The approach supports variants (Adm-F, Adm-C, Adm-Fr, Adm-Cr) and a mixed Adm+Edm strategy to balance efficiency and accuracy, with formal guarantees that $[(S,\rightsquigarrow) \models \varphi]_+ \in \{\top,\bot,?\}$ implies the true verdict can be recovered or refined. Empirical results demonstrate speedups from three to five orders of magnitude across synthetic traces and real-world scenarios (e.g., water distribution and drone swarms), while maintaining acceptable accuracy and enabling improved efficiency through combining approximate and exact monitors.
Abstract
In distributed systems with processes that do not share a global clock, \emph{partial synchrony} is achieved by clock synchronization that guarantees bounded clock skew among all applications. Existing solutions for distributed runtime verification under partial synchrony against temporal logic specifications are exact but suffer from significant computational overhead. In this paper, we propose an \emph{approximate} distributed monitoring algorithm for Signal Temporal Logic (STL) that mitigates this issue by abstracting away potential interleaving behaviors. This conservative abstraction enables a significant speedup of the distributed monitors, albeit with a tradeoff in accuracy. We address this tradeoff with a methodology that combines our approximate monitor with its exact counterpart, resulting in enhanced efficiency without sacrificing precision. We evaluate our approach with multiple experiments, showcasing its efficacy in both real-world applications and synthetic examples.
