Avoiding Catastrophe in Continuous Spaces by Asking for Help

Benjamin Plaut, Hanlin Zhu, Stuart Russell · OpenReview

Abstract

Most reinforcement learning algorithms with formal regret guarantees assume all mistakes are reversible and rely on essentially trying all possible options. This approach leads to poor outcomes when some mistakes are irreparable or even catastrophic. We propose a variant of the contextual bandit problem where the goal is to minimize the chance of catastrophe. Specifically, we assume that the payoff each round represents the chance of avoiding catastrophe that round, and try to maximize the product of payoffs (the overall chance of avoiding catastrophe). To give the agent some chance of success, we allow a limited number of queries to a mentor and assume a Lipschitz continuous payoff function. We present an algorithm whose regret and rate of querying the mentor both approach 0 as the time horizon grows, assuming a continuous 1D state space and a relatively "simple" payoff function. We also provide a matching lower bound: without the simplicity assumption: any algorithm either constantly asks for help or is nearly guaranteed to cause catastrophe. Finally, we identify the key obstacle to generalizing our algorithm to a multi-dimensional state space.

Introduction

In traditional online learning and reinforcement learning, the standard objective is to minimize "regret"—the difference between an agent's cumulative performance and that of the best possible strategy. Most existing algorithms achieve "sublinear regret," meaning that while the agent makes mistakes during exploration, the average number of mistakes per time step eventually goes to zero.

However, this framework implicitly assumes that all mistakes are recoverable. In high-stakes applications such as autonomous surgery, power grid management, or medical diagnosis, certain errors are irreparable. If an agent must "try everything" to learn what works, it will inevitably trigger a catastrophe. This paper addresses the fundamental tension between the necessity of exploration in unknown environments and the requirement to avoid failure entirely. We ask: Is it possible to learn a safe policy without ever causing a disaster?

The Proposed Model

To formalize this problem, the authors propose a new model where the payoff in each round represents the probability of avoiding a catastrophe. Unlike standard models that maximize the sum of payoffs, this model aims to maximize the product of payoffs, representing the overall probability of survival over the entire horizon.

Comparison between the standard online learning model and the proposed model for avoiding catastrophe.

As shown in the table above, the shift in objective necessitates a shift in the regret goal from sublinear to subconstant regret. This means the total probability of failure over the entire infinite horizon of the agent's life must be bounded and small, rather than just growing slower than time.

Methods: Help and Generalization

To make learning possible under such strict safety requirements, the model introduces two key components:

  1. A Mentor: The agent can choose to "ask for help" from a supervisor (e.g., a human expert). When queried, the mentor provides the correct, safe action.
  2. Local Generalization: This assumption states that if an action is safe for a specific input, it is likely safe for "similar" inputs. This allows the agent to transfer knowledge across a metric space rather than treating every new input as a total mystery.

The primary algorithm, Algorithm 1, is a modified version of the Hedge algorithm. It maintains a set of candidate policies and uses a label-efficient feedback mechanism. Crucially, it includes a safety check: if a new input is too far from any previously queried input (i.e., it is "out-of-distribution"), the agent defaults to asking the mentor for help rather than guessing.

Theoretical Results

The Impossibility of Pure Autonomy

The paper first establishes a negative result (Theorem 4.1): in a general adversarial environment, any algorithm that queries the mentor at a sublinear rate is nearly guaranteed to cause a catastrophe.

A construction of a payoff function used to prove the impossibility of avoiding catastrophe without local generalization or frequent mentor queries.

This impossibility result is supported by the construction shown in Figure 1. Without specific constraints like local generalization, an adversary can always present inputs in the "valleys" of the payoff function where the risk of catastrophe is high, forcing the agent to either query the mentor constantly or fail.

Achieving Safety and Self-Sufficiency

Under the assumption of local generalization and a learnable policy class, the authors prove a positive result (Theorem 5.2): Algorithm 1 achieves subconstant regret. Furthermore, the rate of querying the mentor approaches zero over time. This implies the agent eventually becomes "self-sufficient," performing safely on its own without needing constant human supervision.

Discussion and Future Work

While this work provides a theoretical foundation for safe learning, several challenges remain:

  • Computational Efficiency: The current algorithm requires maintaining a "cover" of the policy class, which can be exponentially large. Developing "oracle-efficient" versions is a priority.
  • Defining the Metric: The approach relies on a distance metric that satisfies local generalization. In complex domains like computer vision, defining a metric that accurately captures "safety similarity" is an open challenge.
  • Extension to MDPs: This paper focuses on "one-shot" online learning. Extending these guarantees to Markov Decision Processes (MDPs), where actions have long-term consequences, remains an important open problem.

Summary updated

BibTeX
@inproceedings{plaut2025avoiding,
  author = {Benjamin Plaut and Hanlin Zhu and Stuart Russell},
  title = {{Avoiding Catastrophe in Continuous Spaces by Asking for Help}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Lwn9T8Yoti},
}
Figure