Adaptive GR(1) Specification Repair for Liveness-Preserving Shielding in Reinforcement Learning
Georgescu, Tiberiu-Andrei, Goodall, Alexander W., Alrajeh, Dalal, Belardinelli, Francesco, Uchitel, Sebastian
–arXiv.org Artificial Intelligence
Shielding is widely used to enforce safety in reinforcement learning (RL), ensuring that an agent's actions remain compliant with formal specifications. Classical shielding approaches, however, are often static, in the sense that they assume fixed logical specifications and hand-crafted abstractions. While these static shields provide safety under nominal assumptions, they fail to adapt when environment assumptions are violated. In this paper, we develop the first adaptive shielding framework - to the best of our knowledge - based on Generalized Reactivity of rank 1 (GR(1)) specifications, a tractable and expressive fragment of Linear Temporal Logic (LTL) that captures both safety and liveness properties. Our method detects environment assumption violations at runtime and employs Inductive Logic Programming (ILP) to automatically repair GR(1) specifications online, in a systematic and interpretable way. This ensures that the shield evolves gracefully, ensuring liveness is achievable and weakening goals only when necessary. We consider two case studies: Minepump and Atari Seaquest; showing that (i) static symbolic controllers are often severely suboptimal when optimizing for auxiliary rewards, and (ii) RL agents equipped with our adaptive shield maintain near-optimal reward and perfect logical compliance compared with static shields.
arXiv.org Artificial Intelligence
Nov-5-2025
- Country:
- Europe
- Greece (0.04)
- Portugal > Madeira
- Funchal (0.04)
- United Kingdom > England
- Greater London > London (0.40)
- North America > United States
- New York > New York County > New York City (0.04)
- Oceania > Australia (0.04)
- South America > Argentina
- Pampas > Buenos Aires F.D. > Buenos Aires (0.04)
- Europe
- Genre:
- Research Report (1.00)
- Industry:
- Education > Educational Setting > Higher Education (0.40)
- Technology: