Learning When Not to Learn: Risk-Sensitive Abstention in Bandits with Unbounded Rewards

Sarah Liaw, Benjamin Plaut

TL;DR

Standard bandit algorithms explore aggressively under the assumption that all mistakes are recoverable, which can lead to catastrophic failures in safety-critical domains like autonomous driving or medical robotics. This paper introduces a mentor-free, risk-sensitive contextual bandit framework where an agent can choose to "abstain" from acting when encountering unfamiliar, out-of-distribution inputs. By defining a dynamically growing "trusted region" and applying pessimistic upper bounds, the proposed algorithm achieves sublinear regret while completely avoiding unbounded negative rewards.

What Problem Does This Paper Address?

In traditional sequential decision-making frameworks (like multi-armed bandits or reinforcement learning), algorithms rely heavily on the principle of "optimism under uncertainty." The core assumption is that early mistakes are acceptable because they provide information that leads to larger long-term gains. This assumption holds true if rewards are bounded or if the environment resets after an error.

However, in high-stakes, real-world applications—such as surgical assistance or process control—a single ill-chosen action can cause irreversible, catastrophic damage. In algorithmic terms, these catastrophes manifest as arbitrarily negative, unbounded rewards. While some safe exploration methods mitigate this by allowing the agent to ask a human mentor for help, a mentor may be costly, unavailable, or unscalable.

The authors tackle a fundamental question: How can an autonomous agent safely learn in an environment with unbounded negative rewards without relying on an external mentor?

Methods

The authors formalize this challenge as a two-action contextual bandit problem with an abstain option. At each round, the agent observes an input (context) $x \in \mathbb{R}^n$ and chooses one of two actions:

  1. Abstain ($y=0$): A safe fallback that deterministically yields a reward of 0.
  2. Commit ($y=1$): Executes a preexisting baseline task policy. Committing yields an upper-bounded reward that can be arbitrarily negative (catastrophic).

The key structural assumption is that the commit reward function is Lipschitz continuous, meaning that similar inputs yield similar rewards. The origin ($x=0$) is assumed to be a known, safe "in-distribution" point with a positive reward. The distance from the origin, $\|x\|$, serves as a metric for how out-of-distribution (OOD) an input is.

To operationalize cautious learning, the authors propose the Risk-Sensitive Abstention Algorithm (Algorithm 1):

  • Trusted Region: The algorithm defines a ball of radius $m(T) = \ln T$ around the origin. If an input falls outside this ball, it is considered too far OOD to safely test, and the agent automatically abstains.
  • Discretization: The trusted region is partitioned into small hypercubes (bins) of side length $w(T)$.
  • Pessimistic Elimination: Within each bin, the agent tracks the empirical mean reward and a confidence interval. If the pessimistic upper bound of a bin (the empirical mean + confidence radius + Lipschitz discretization error) drops below zero, the bin is certified as unsafe, and the agent permanently abstains from it. Otherwise, it commits to gather more data.
Visualizing the trusted region, safe bins, and certified negative bins.

Datasets

The paper evaluates the algorithm using synthetically generated i.i.d. inputs in $\mathbb{R}$. To test robustness against distribution tails, they use two distinct input distributions:

  1. Gaussian Distribution ($\sigma^2 = 5$): A light-tailed distribution where far-OOD inputs are rare.
  2. Cauchy Distribution ($\gamma = 1$): A heavy-tailed distribution where far-OOD inputs are common, making caution crucial.

They also evaluate two extreme reward functions: $r(x,1) = 1$ (where the policy generalizes perfectly everywhere) and $r(x,1) = 1 - |x|$ (where the policy generalizes poorly outside a small region near the origin).

Key Insights and Ideas

  • The Necessity of Caution: The authors prove that any algorithm that explores blindly without considering how OOD an input is can suffer infinite expected regret in the worst-case scenario (Theorem 4.1).
  • The Limits of Caution: If all inputs are uniformly far OOD, sublinear regret is mathematically impossible without a mentor (Theorem 4.2). An agent cannot safely map out a beneficial region if it is never given a safe starting point to explore outward from.
  • Flipping the Paradigm: High-stakes environments require replacing "optimism under uncertainty" with "pessimism under uncertainty"—when data is scarce, inaction must be preferred over risky action.
  • Regret Decomposition: The total expected regret cleanly splits into two components: a standard geometric/statistical term arising from discretization and concentration inside the trusted region, and a tail term representing the unavoidable cost of abstaining on far-OOD inputs.

Key Results

The authors establish a sublinear expected regret guarantee for any fixed input distribution:

$$\mathbb{E}[\text{Reg}(T)] \in O\left((L + \sigma^2)T^{\frac{n+1}{n+2}}(\ln T)^{n+1} + T\bar{\nu}(\ln T)\right)$$

where $\bar{\nu}$ is the radial survival function (the probability mass lying outside a given radius). As $T \to \infty$, the average regret approaches zero.

In simulations featuring heavy-tailed Cauchy inputs and a poorly generalizing reward function ($1-|x|$), standard non-cautious algorithms like Lipschitz UCB1 fail catastrophically, racking up massive regret due to reckless exploration. In contrast, the proposed Risk-Sensitive Abstention Algorithm successfully limits regret by identifying unsafe boundaries and safely choosing to abstain.

Limitations and Future Work

  • Curse of Dimensionality: The regret bound scales exponentially with the input dimension $n$ (via the exponent $\frac{n+1}{n+2}$), meaning the algorithm is primarily practical for low-dimensional settings.
  • Strict Structural Assumptions: The guarantees rely on i.i.d. inputs and prior knowledge of the Lipschitz constant $L$ and noise variance $\sigma^2$. Developing parameter-free or adaptive versions that handle distribution drift is an open challenge.
  • Isolated Bins: The algorithm currently treats bins independently. It does not share information across neighboring bins, ignoring the fact that certifying one bin as safe or unsafe could provide valuable information about its neighbors.
  • Unconditional Catastrophes: The model defines catastrophes relative to a fixed time horizon $T$. The authors note that extending this framework to Markov Decision Processes (MDPs) with unconditionally catastrophic "trap states" is a vital direction for future research.

Summary updated

BibTeX
@inproceedings{liaw2026learning,
  author = {Sarah Liaw and Benjamin Plaut},
  title = {{Learning When Not to Learn: Risk-Sensitive Abstention in Bandits with Unbounded Rewards}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=pLRYWrIpZu},
}
Figure