Criticality and Safety Margins for Reinforcement Learning
Alexander Grushin, Walt Woods, Alvaro Velasquez, Simon Khan
TL;DR
The paper defines true criticality as the expected drop in discounted reward when an RL agent's policy is perturbed by random actions for $n$ steps, and introduces proxy criticality as a fast, correlate-to-true-metric suitable for real-time use. A data-driven safety-margin pipeline maps proxy values to probabilistic bounds on true criticality, enabling actionable oversight by identifying how many consecutive mistakes can be tolerated before performance degrades beyond a tolerance $\zeta$. The framework is validated on Pong and Beamrider with APE-X and A3C, showing that proxy-to-safety-margin relationships are strong enough to guide supervision, and that a small fraction of the most critical moments often accounts for a large share of losses. The approach offers practical benefits for debugging and monitoring autonomous agents in safety-critical settings, while highlighting the need for diverse proxy metrics and robustness to policy imperfections. Overall, the paper provides a principled, interpretable mechanism to quantify and bound the risk of bad decisions in reinforcement learning systems.
Abstract
State of the art reinforcement learning methods sometimes encounter unsafe situations. Identifying when these situations occur is of interest both for post-hoc analysis and during deployment, where it might be advantageous to call out to a human overseer for help. Efforts to gauge the criticality of different points in time have been developed, but their accuracy is not well established due to a lack of ground truth, and they are not designed to be easily interpretable by end users. Therefore, we seek to define a criticality framework with both a quantifiable ground truth and a clear significance to users. We introduce true criticality as the expected drop in reward when an agent deviates from its policy for n consecutive random actions. We also introduce the concept of proxy criticality, a low-overhead metric that has a statistically monotonic relationship to true criticality. Safety margins make these interpretable, when defined as the number of random actions for which performance loss will not exceed some tolerance with high confidence. We demonstrate this approach in several environment-agent combinations; for an A3C agent in an Atari Beamrider environment, the lowest 5% of safety margins contain 47% of agent losses; i.e., supervising only 5% of decisions could potentially prevent roughly half of an agent's errors. This criticality framework measures the potential impacts of bad decisions, even before those decisions are made, allowing for more effective debugging and oversight of autonomous agents.
