An STL-Based Formulation of Resilience in Cyber-Physical Systems

Hongkai Chen, Shan Lin, Scott A. Smolka, Nicola Paoletti · DOI

Abstract

Traditional safety metrics in Cyber-Physical Systems (CPS) often fail to capture the nuances of system recovery after a property violation. This paper introduces STL-based Resiliency Specification (SRS), a formal logic designed to quantify resilience through two key dimensions: recoverability and durability. By employing multi-dimensional semantics known as the Resilience Satisfaction Value (ReSV), the framework provides a Pareto-optimal set of performance pairs, enabling a more granular evaluation of system behavior under disturbances.

Introduction

In Cyber-Physical Systems (CPS) such as autonomous drones, self-driving cars, or smart grids, the traditional notion of "safety"—where a property must never be violated—is often too rigid for unpredictable real-world environments. Occasional violations, such as a drone drifting due to a gust of wind, are inevitable. Consequently, the focus shifts from absolute safety to resilience: the ability of a system to bounce back from failure.

Despite its intuitive importance, resilience has lacked a rigorous, mathematical formalization, making it difficult to verify or compare different control algorithms. This paper addresses this gap by introducing a formal framework for defining and measuring resilience using a new logic called STL-based Resiliency Specification (SRS).

Formalizing Resilience with SRS

The authors build their framework on Signal Temporal Logic (STL), a popular language for specifying requirements over real-valued signals. They extend it with the resiliency atom, denoted as $R_{\alpha,\beta}(\phi)$. This formula specifies that if a property $\phi$ is violated, the system must recover within time $\alpha$ (recoverability) and then maintain $\phi$ for at least duration $\beta$ (durability). Formally, this is expressed as: $$R_{\alpha,\beta}(\phi) \equiv \neg \phi U_{[0,\alpha]} G_{[0,\beta)} \phi$$

Illustration of signals satisfying recoverability (a) and durability (b) within the SRS framework.

This logic allows for a nuanced view of system behavior, distinguishing between a system that fails to recover and one that recovers but fails again shortly thereafter.

Multi-dimensional Semantics: ReSV

Standard STL provides a single "robustness" value, indicating how far a signal is from violating a rule. However, resilience involves an inherent trade-off between recovering quickly and staying recovered. To capture this, the authors propose the Resilience Satisfaction Value (ReSV).

Instead of a scalar, ReSV returns a set of non-dominated (Pareto-optimal) pairs of $(recoverability, durability)$:

  • Recoverability ($rec$): Measures how much faster than the deadline $\alpha$ the system recovered.
  • Durability ($dur$): Measures how much longer than the required $\beta$ the system remained safe.

By utilizing Pareto optimization, the framework avoids arbitrary weighting of speed versus stability, providing engineers with a full spectrum of performance data.

Experimental Evaluation

The framework was evaluated using two simulated case studies:

  • UAV Package Delivery: A quadrotor drone navigating disturbances (simulating heavy loads) while avoiding collisions. The SRS framework successfully identified specific time points where recovery was "too slow" compared to the $\alpha$ deadline, providing richer diagnostic data than a simple binary failure signal.
  • Multi-Agent Flocking: A 30-agent simulation based on Reynolds' flocking model, subjected to intermittent random displacements. The framework quantified how group cohesion was impacted by repeated external shocks.

Key Results and Insights

The authors mathematically prove that the quantitative ReSV metric is consistent with the Boolean truth of the logic (soundness and completeness). Furthermore, the algorithm for computing ReSV is polynomial in the length of the signal, ensuring computational feasibility for monitoring complex trajectories in real-time.

A key insight is that resilience is distinct from classical stability. While stability concerns whether a system eventually returns to equilibrium, resilience specifies how fast and how reliably it does so after a specific violation. The focus on the "first episode" of recovery provides a clear snapshot of system behavior for diagnostic purposes.

Conclusion and Future Work

This work provides a formal foundation for resilience in CPS, moving beyond binary safety checks to multi-dimensional performance metrics. Future work includes extending the framework to continuous-time signals, developing "Parametric SRS" to automatically find optimal bounds, and using ReSV as a reward signal for training more resilient controllers.

Summary updated

BibTeX
@inproceedings{chen2022stl,
  author = {Hongkai Chen and Shan Lin and Scott A. Smolka and Nicola Paoletti},
  title = {{An STL-Based Formulation of Resilience in Cyber-Physical Systems}},
  booktitle = {FORMATS},
  year = {2022},
  doi = {10.1007/978-3-031-15839-1\_7},
}
Figure