[Paper Review] Shield Synthesis: Runtime Enforcement for Reactive Systems
This paper proposes shield synthesis as a scalable alternative to model checking and reactive synthesis for enforcing critical safety properties in complex reactive hardware systems. By synthesizing a runtime enforcement component that minimally corrects outputs only when necessary, the method ensures correctness while preserving non-critical behaviors, with experimental results showing efficient synthesis on hardware benchmarks and LTL patterns using a k-stabilization mechanism.
Scalability issues may prevent users from verifying critical properties of a complex hardware design. In this situation, we propose to synthesize a "safety shield" that is attached to the design to enforce the properties at run time. Shield synthesis can succeed where model checking and reactive synthesis fail, because it only considers a small set of critical properties, as opposed to the complex design, or the complete specification in the case of reactive synthesis. The shield continuously monitors the input/output of the design and corrects its erroneous output only if necessary, and as little as possible, so other non-critical properties are likely to be retained. Although runtime enforcement has been studied in other domains such as action systems, reactive systems pose unique challenges where the shield must act without delay. We thus present the first shield synthesis solution for reactive hardware systems and report our experimental results. This is an extended version of [5], featuring an additional appendix.
Motivation & Objective
- To address scalability limitations in formal verification of complex hardware designs where model checking or reactive synthesis fails due to complexity.
- To provide a practical solution for enforcing critical safety properties in designs with unverified or third-party components, such as IP cores.
- To minimize interference with non-critical behaviors by ensuring the shield only modifies outputs when necessary and within bounded recovery phases.
- To develop a synthesis method that is both scalable and usable, focusing on a small set of critical properties rather than full system specifications.
- To enable certification of safety-critical systems by verifying only the shield rather than the entire complex design.
Proposed method
- The method introduces a k-stabilization mechanism, allowing the shield to deviate from the design's output for up to k consecutive steps when a property violation is unavoidable.
- The shield synthesis problem is reduced to solving safety games, enabling the use of existing game-theoretic synthesis algorithms to compute correct and minimal shields.
- The shield monitors the design's inputs and outputs in real time and intervenes only when a violation of the safety properties is imminent or occurring.
- The approach ensures correctness by guaranteeing that all specified safety properties are satisfied in the combined system (shield ∘ design), even if the design violates them.
- The synthesis procedure is implemented as a proof-of-concept tool that takes LTL safety properties and generates a shield in the form of a finite-state machine with latches and AIG gates.
- The method supports bounded-liveness properties by imposing a reaction time bound, transforming them into safety properties for synthesis.
Experimental results
Research questions
- RQ1Can a runtime enforcement component be automatically synthesized to enforce critical safety properties in reactive hardware systems where formal verification is infeasible?
- RQ2How can the shield minimize interference with non-critical behaviors while ensuring correctness under all possible input sequences?
- RQ3What formal mechanism allows the shield to handle unavoidable violations with bounded recovery time, ensuring both correctness and practicality?
- RQ4Can the shield synthesis problem be reduced to a known game-theoretic problem, enabling efficient and correct synthesis?
- RQ5How does the synthesis performance and shield size scale with increasing complexity of the safety properties and system state space?
Key findings
- The shield synthesis method successfully generated correct and minimal shields for the ARM AMBA bus arbiter benchmark, with synthesis times under 10 seconds for most property sets.
- For LTL specification patterns, the method achieved synthesis times under 1 second for most properties, with shield sizes (latches and AIG gates) remaining small and manageable.
- For Property 10, which involved complex liveness-to-safety transformation, synthesis time increased significantly (up to 377 seconds) with larger bounds, indicating scalability challenges for complex patterns.
- Timeouts occurred only when the number of states and input/output signals grew large, suggesting that the method remains practical for systems with small sets of critical properties.
- The shield size and synthesis time remained low for bounded-liveness properties (e.g., Property 6 and 8) even with large reaction time bounds, showing robustness for common patterns.
- The experimental results confirm that shield synthesis is a viable alternative to model checking and reactive synthesis, especially when full specification or verification is infeasible.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.