TL;DR
This paper introduces the first statistically valid framework for Robust Predictive Runtime Verification (RPRV) of multi-agent systems facing real-world distribution shifts. By combining trajectory forecasting with robust conformal prediction over Spatio-Temporal Reach and Escape Logic (STREL), the proposed algorithms provide rigorous probabilistic safety and task-completion guarantees even when a system's real-world deployment deviates from its design-time simulation.
What Problem Does This Paper Address?
When cyber-physical systems (CPS) and multi-agent systems (MAS)—such as drone swarms or autonomous driving fleets—are moved from high-fidelity simulators to real-world environments, they inevitably encounter distribution shift. Unforeseen environmental factors, unmodeled physical dynamics, or even adversarial agents can cause the system's actual trajectory distribution to differ significantly from what was seen during training.
Traditional runtime verification (RV) monitors a system's current state to detect specification violations. Predictive RV goes a step further by using a model to forecast future states and preemptively flag failures. However, if the predictive model encounters a distribution shift, its forecasts become unreliable, invalidating any safety guarantees.
The authors tackle this gap by asking: How can we provide mathematically rigorous, probabilistic guarantees that a multi-agent system will satisfy complex spatio-temporal requirements at runtime, even when the deployment environment shifts from the simulation?
Methods
The authors present a centralized RPRV framework that unites three core components:
- Trajectory Predictors: Deep learning models (such as LSTMs, CNNs, or Transformers) are trained on simulation data to predict future agent states based on currently observed partial trajectories.
- Spatio-Temporal Reach and Escape Logic (STREL): To express complex multi-agent requirements (e.g., "maintain a stable communication link with a ground station, either directly or by multi-hop relaying through neighbors"), the authors leverage STREL. STREL allows spatial relationships to be modeled as state-dependent graph weights.
- Robust Conformal Prediction: To account for distribution shift, the authors apply robust conformal prediction. By assuming a known upper bound ($\epsilon$) on the statistical distance ($f$-divergence) between the simulation and real-world distributions, they compute a correction factor ($\tilde{C}$). This factor adjusts the predicted logic satisfaction bounds to guarantee a user-defined confidence level ($1-\delta$).
The paper introduces two main algorithmic flavors:
- Accurate Method: Computes uncertainty bounds directly on the overall STREL formula's robust semantics. This yields the tightest, least conservative bounds and executes very quickly online.
- Interpretable Method: Computes uncertainty bounds at the individual state level (Variant I) or predicate level (Variant II). If a violation is predicted, this method can isolate exactly which agent or which safety constraint is causing the failure, though it introduces more conservatism and computational overhead.
Datasets
The algorithms were evaluated using Swarmlab, a MATLAB-based drone swarm simulator.
- Training/Calibration Data: 1,000 nominal trajectories generated using the Olfati-Saber navigation algorithm, where drones navigate a cluttered environment with 14 fixed obstacles at a reference speed of 6.0.
- Test Data (Distribution Shift): 500 trajectories where the reference speed was reduced to 5.9 (altering the underlying dynamics) or where adversarial agents were introduced.
Key Insights and Ideas
- Graph Topology as a Function of State: A key mathematical unlock was treating the MAS communication network topology not as a static graph, but as a state-dependent weight function. This allows standard conformal prediction tools to seamlessly bound spatial uncertainties alongside temporal ones.
- The Interpretability Trade-Off: The authors demonstrate a clear engineering trade-off. Direct verification (Accurate Method) is computationally lightweight at runtime ($O(T_{comp,\psi})$) but acts as a black box. Bounding individual predicates (Interpretable Method) provides actionable diagnostic data but requires solving optimization problems online, increasing test-time latency.
- Predictor Quality Directly Impacts Conservatism: The framework is entirely agnostic to the underlying machine learning architecture. However, the tighter and more accurate the predictor, the smaller the conformal anomaly scores, resulting in less conservative runtime safety thresholds.
Key Results
- Guaranteed Coverage: In empirical evaluations under distribution shift, standard (non-robust) predictive runtime verification consistently failed to meet the target coverage rate ($1-\delta = 0.8$), frequently underestimating risks. The proposed robust algorithms successfully maintained empirical coverage above the 80% threshold across all trials.
- Scalability: The framework was stress-tested on swarms of $L = 5, 7,$ and $10$ drones. The offline calibration time scaled linearly to reasonably low levels (e.g., from 22.6 seconds for 5 drones to 47.0 seconds for 10 drones using the Accurate Method).
- Online Efficiency: At runtime, the Accurate Method took less than 0.1 seconds to evaluate a test trajectory across all swarm sizes, making it highly viable for real-time, onboard deployment.
Limitations and Future Work
- Known Shift Bound ($\epsilon$): The framework relies on knowing or safely over-estimating the upper bound $\epsilon$ of the distribution shift. If the real-world shift exceeds this bound, the statistical guarantees no longer hold.
- Centralization: The current MAS algorithms are centralized, requiring full state information from all agents at runtime. The authors note that extending this to decentralized or partially synchronous settings is a critical direction for future work to support massive, distributed robotic swarms.
Summary updated