Discounted Safety Bellman Equation
Context
Fisac2019 - Bridging Hamilton-Jacobi Safety Analysis and Reinforcement Learning adapts minimum-over-time Hamilton-Jacobi safety analysis to reinforcement learning. The central move is a discounted backup that is a contraction, unlike the ordinary undiscounted infinite-horizon safety backup.
Formal Statement
For a deterministic system with discrete approximation:
and a safety payoff l(x) whose nonnegative values mark safe states, the undiscounted safety backup is:
Fisac et al. define the discounted safety backup:
This operator is a contraction under the supremum norm with contraction constant gamma:
As gamma -> 1, the fixed-point solution converges to the undiscounted safety value.
Derivation / Construction
The discount has a terminal-event interpretation. In additive reward RL, 1-gamma can be read as the probability that the episode terminates before future rewards accrue. For minimum-over-time safety, if the episode terminates after the current step, the future minimum safety payoff is just the current l(x).
This gives a locally discounted minimum:
The state-action version supports Safety Q-learning:
The corresponding update is:
For finite state/action discretizations, sufficient exploration, and standard learning-rate conditions, the paper adapts Q-learning convergence arguments to show almost-sure convergence to the optimal state-action safety value.
Implications
- The construction makes safety analysis compatible with temporal-difference learning without pretending safety is an additive reward.
- Annealing
gammatoward 1 extends the effective safety horizon and recovers the undiscounted safety value in the limit. - The learned value can classify safe/unsafe states and supply a safety-preserving policy, but neural approximators do not inherit the tabular convergence guarantee.
- Model-free training may require failures, so the method is most appropriate for simulation, noncritical training environments, or post-training supervisory control.
Links
- Source: Fisac2019 - Bridging Hamilton-Jacobi Safety Analysis and Reinforcement Learning
- Concept: Hamilton-Jacobi Reachability
- Safe-RL context: Safe Reinforcement Learning