Abstract
We show that when a third party, the adversary, steps into the two-party setting (agent and operator) of safely interruptible reinforcement learning, a trade-off has to be made between the probability of following the optimal policy in the limit, and the probability of escaping a dangerous situation created by the adversary. So far, the work on safely interruptible agents has assumed a perfect perception of the agent about its environment (no adversary), and therefore implicitly set the second probability to zero, by explicitly seeking a value of one for the first probability. We show that (1) agents can be made both interruptible and adversary-resilient, and (2) the interruptibility can be made safe in the sense that the agent itself will not seek to avoid it. We also solve the problem that arises when the agent does not go completely greedy, i.e. issues with safe exploration in the limit. Resilience to perturbed perception, safe exploration in the limit, and safe interruptibility are the three pillars of what we call virtuously safe reinforcement learning.
Introduction
In the field of AI safety, safe interruptibility is a major concern: ensuring an agent does not learn to bypass its own "off-switch" because it perceives the interruption as a loss of potential reward. Previous research solved this for "two-party" systems (an agent and a human operator) but assumed the agent had perfect perception of its environment.
However, real-world AI faces a third party: the adversary. An adversary can perturb an agent's sensors (e.g., making a self-driving car "see" a clear road when there is actually an ambush). This paper introduces Virtuously Safe Reinforcement Learning, a framework that ensures agents remain safely interruptible and resilient even when perception is "infected" by malicious actors.
The Adversarial Challenge
A major vulnerability in standard RL is that "greedy in the limit" agents become predictable. If an agent eventually always picks the single best action, an adversary can easily engineer traps. For instance, in a "susceptible MDP" (Figure 1), an adversary might manipulate observations to lead the agent into dangerous states.
The authors argue that predictability is a vulnerability. By intentionally remaining slightly "sub-optimal" (non-greedy) even after learning is complete, the agent retains the stochasticity needed to escape adversarial traps. This leads to a fundamental trade-off: one cannot simultaneously maximize the probability of following the optimal policy and the probability of escaping adversarial traps to 100%.
Methods: Virtuous Safety and ψ∞-NGLIE
The authors formalize their approach through several novel theoretical constructs, defining "virtuous safety" as the intersection of three properties: (1) Resilience to perturbed perception, (2) Safe exploration in the limit, and (3) Safe interruptibility.
To achieve this, they propose ψ∞-NGLIE (Non-Greedy in the Limit with Infinite Exploration). Unlike standard requirements that force 100% greediness over time, ψ∞-NGLIE allows the agent to maintain a fixed, small probability (ψ∞) of taking non-optimal actions. To ensure safe interruptibility, the agent's perception of a state is decomposed into uninterruptible and interruptible components (Figure 2).
The paper also introduces a hybrid RRR-mellowmax strategy to combine the benefits of ranking actions and scaling them by their Q-values, proving it to be "strongly μ-resilient" against adversarial perturbations.
Key Results and Convergence
The core of the paper consists of proofs (Theorems 4.1 and 8.2) showing that an agent following an "int-ψ∞-NGLIE" policy will converge to the optimal restricted policy while satisfying safety constraints. The authors provide concrete mathematical schemes for tuning an agent's interruptibility parameter (ϑt) and exploration parameter (Tt) based on the number of times a state has been observed.
Limitations and Future Work
While providing a robust theoretical foundation, the framework currently assumes a single operator and adversary. Future work will investigate multi-party settings, finite-horizon environments, and the integration of memory (such as LSTMs) to handle history-based learning in infected environments. Finding a safe version of the Sarsa(λ) algorithm remains an open challenge.
Summary updated