Shielding

Definition

Shielding is a safety mechanism that monitors proposed actions from a learner and blocks or replaces actions that would violate a formal safety specification.

Why It Matters

Shielding is a direct bridge between reinforcement learning and formal safety guarantees. It is especially relevant when the learner is flexible but the environment imposes hard constraints.

Formalism / Key Objects

  • A safety property is often represented as a set of safe states phi subseteq S; a run is safe when every visited state remains in phi.
  • A shield nabla[phi] is a nondeterministic strategy that allows only actions whose outcomes stay safe from winning states.
  • In reactive Shield Synthesis, a shield observes a design’s input/output stream and corrects unsafe outputs while minimizing deviation from the original design.
  • A shielded MDP filters transitions or actions disallowed by the shield, so any policy operating inside the shielded MDP inherits the safety guarantee.
  • In centralized MARL shielding, a shield observes the joint state/action abstraction and forwards a joint action only when the product safety game remains in its winning region.
  • In factored MARL shielding, several shields monitor state-space factors and a coordination phase accepts boundary-crossing join/leave moves only when the adjacent shields agree.
  • In multi-agent settings, Distributed Shield Synthesis extends local shields from agent projections back to the global action space and composes them with an assume-guarantee proof rule.
  • In PCIS-based shielding, the shield maintains a probabilistic safe set and executes a learner’s proposed action only when it belongs to a data-certified safe action map.
  • In probabilistic risk-budget shielding, the shield augments the learner’s state with a remaining probability or expected-cost budget and permits action distributions only when their expected next risk remains within that budget.
  • In Explainable Shielding, probabilistic model-checking risk values can classify states as safe, critical, dangerous, or unsafe and support decision-tree explanations of shield decisions.
  • In Duration Calculus Pacemaker Shields, bounded real-time pacemaker requirements compile into stopwatch automata and a safety-game shield around an adaptive RL controller.
  • HJ-style safety values can be used as a continuous-control shield or supervisory policy: if a performance controller approaches the unsafe boundary, a safety-preserving control policy overrides it.
  • Minimal interference or most-permissive shielding tries to forbid as few learner actions as possible while preserving the safety property.

Connections

Common Confusions

  • Shielding is not the same thing as reward shaping.
  • A shield can preserve safety while still allowing poor non-safety behavior.
  • Minimal interference is a design target, not a guarantee that learning remains unaffected.

Key Sources