NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Recursive Safety Value Functions for Hard Constraints

This direction is merged into another direction: safe exploration. Its last version stays readable and citable here.

Version 1 of 117 papers24 conceptsfrozen 2026-10-04

In traditional safe reinforcement learning, "safety" is often treated as a budget. An agent is allowed to fail occasionally, provided its average cost stays below a threshold. However, for autonomous vehicles or power grids, an "average" failure rate is unacceptable. These systems require hard constraints: the agent must never violate safety boundaries, even during exploration.

The core challenge is that safety is not just about the current state; it is about the future. A state might look safe now, but if every possible action from that state leads to an inevitable collision three seconds later, that state is a "dead end." To solve this, a growing body of research treats safety as a recursive property that can be propagated backward through time, much like rewards in a standard Bellman equation.

The Intuition: Safety is Reachability

The fundamental insight shared by these researchers is that a state is only safe if there exists at least one sequence of future actions that keeps the agent safe indefinitely. This is known as forward invariance.

As Bence Cserna and colleagues argue in SafeRTS, standard search algorithms are "myopic." They might move toward a goal without realizing they are entering a region with high momentum where they can no longer stop or turn away from a hazard. To prevent this, they propose interleaving goal-directed search with safety "proving"—explicitly checking if a path back to a known safe state exists.

This framing transforms safety from a binary label into a reachability problem. If you cannot reach a safe state from your current position, you are already in a dead end, even if you haven't crashed yet.

The Safety Bellman Equation

To scale this intuition to complex environments, researchers have adapted the mathematical machinery of reinforcement learning. In standard RL, the Bellman equation calculates the "Value" of a state as the immediate reward plus the discounted future rewards.

In this new paradigm, we calculate a Safety Value. Dongjie Yu and the team behind Reachability Constrained Reinforcement Learning (RCRL) define this using a recursive self-consistency condition. Instead of summing rewards, they use a max operator: the safety value of a state is the maximum of its immediate violation and the safety value of the best possible next state.

This recursive structure allows safety information to flow backward:

  1. Terminal States: A state where a violation occurs is assigned a high "damage" or "unsafe" value.
  2. Backward Induction: Ming Shi and Ness Shroff show in LSVI-NEW that we can use backward induction to identify all state-action pairs that inevitably lead to these terminal violations.
  3. Propagation: As Agustin Castellano describes in Assured RL, this "damage" signal propagates through the state-action space, flagging dead ends several steps before the agent actually hits a constraint.

Pruning the Search Space

Once an agent can estimate the safety value of a state, it can use that information to "prune" its repertoire of actions. This creates a Safety Filter.

In the V-OCBF framework, Manan Tayal and colleagues use offline data to learn these safety boundaries. The resulting filter acts as a wrapper: if the agent's primary policy suggests an action that leads to an "unsafe" recursive value, the filter overrides it with a safe alternative.

Similarly, Shentao Qin and Yujie Yang introduce Feasible Reachable Policy Iteration (FRPI), which prunes the entire search space to a "Feasible Reachable" region. By ignoring any state that is either unsafe or from which the goal is unreachable, the agent converges much faster because it is no longer wasting time exploring "doomed" trajectories.

Learning Safety Without Crashing

A major hurdle for this approach is how to learn the safety value function without actually violating constraints during the learning process.

Abhijit Mazumdar and Rafal Wisniewski address this by using proxy sets and off-policy learning. By defining a safety buffer zone (a proxy set) and using importance sampling, they can estimate the safety of a policy without ever entering the forbidden set.

Furthermore, Nuoya Xiong and Longbo Huang demonstrate in Provably Safe Reinforcement Learning that even when the agent starts with no knowledge of which actions are safe, it can use a look-ahead strategy to flag and avoid states where every available action leads to a known danger.

Summary

By treating safety as a recursive value function rather than a simple cost, these researchers have moved safe RL from "minimizing accidents" to "guaranteeing survival." Whether through the safety-proving of SafeRTS or the recursive consistency of RCRL, the goal is the same: to identify and avoid the path to danger long before the danger itself is reached.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_recursive_safety_value_functions_for_har_0c67e211,
  title = {Recursive Safety Value Functions for Hard Constraints},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/recursive-safety-value-functions-for-hard-constraints/rdr_0c67e211d95e4bee900ec7824d690459},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_recursive_safety_value_functions_for_har_0c67e211_v1,
  title = {Recursive Safety Value Functions for Hard Constraints},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/recursive-safety-value-functions-for-hard-constraints/rdr_0c67e211d95e4bee900ec7824d690459/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}