Follow the STARs: Dynamic $ω$-Regular Shielding of Learned Policies
Ashwani Anand, Satya Prakash Nayak, Ritam Raha, Anne-Kathrin Schmuck
TL;DR
This work addresses the challenge of enforcing both safety and liveness properties for learned policies in autonomous systems by introducing Dynamic $\omega$-Regular Shielding with STARs. STARs blend a nominal policy with a parity-objective strategy template, enabling runtime enforcement of $\omega$-regular properties through controllable interference governed by a parameter $\gamma$ and a threshold $\theta$. The framework ensures correctness via winning strategy templates, proves minimal interference under suitable settings, and supports dynamic adaptations and composition of multiple specifications. Empirically, STARs improve liveness (frequency of visiting target regions) while maintaining near-optimal rewards, and scale to large, realistic benchmarks like FactoryBot, Overcooked-AI, and LunarLander, all without retraining the underlying policies.
Abstract
This paper presents a novel dynamic post-shielding framework that enforces the full class of $ω$-regular correctness properties over pre-computed probabilistic policies. This constitutes a paradigm shift from the predominant setting of safety-shielding -- i.e., ensuring that nothing bad ever happens -- to a shielding process that additionally enforces liveness -- i.e., ensures that something good eventually happens. At the core, our method uses Strategy-Template-based Adaptive Runtime Shields (STARs), which leverage permissive strategy templates to enable post-shielding with minimal interference. As its main feature, STARs introduce a mechanism to dynamically control interference, allowing a tunable enforcement parameter to balance formal obligations and task-specific behavior at runtime. This allows to trigger more aggressive enforcement when needed, while allowing for optimized policy choices otherwise. In addition, STARs support runtime adaptation to changing specifications or actuator failures, making them especially suited for cyber-physical applications. We evaluate STARs on a mobile robot benchmark to demonstrate their controllable interference when enforcing (incrementally updated) $ω$-regular correctness properties over learned probabilistic policies.
