Safe Score Matching: Diffusion Policies with Hamilton-Jacobi Reachability for Online Safe Reinforcement Learning
Boyang Li, Matthew Kim, Sylvia Herbert
NeurIPS page · Open on the map
Category: Reinforcement Learning & Games › Safe Reinforcement Learning · Type: new method · Keywords: safe reinforcement learning, diffusion policies, Hamilton-Jacobi reachability, online RL, multimodal action distributions, off-policy actor-critic
Areas: Safety & Security › Real-World Safety › Safe Reinforcement Learning
Summary
Safe Score Matching (SSM) introduces an off-policy actor-critic method that uses diffusion policies and Hamilton-Jacobi reachability to enforce hard safety constraints while maximizing reward in online safe reinforcement learning.
Explained to a 5-year-old
We want robots to fly safely while doing their job. The robots need to stay safe even when they make mistakes. The new idea uses a special kind of learning that can choose many different actions, like a game where you can pick many moves. It also uses a math rule that tells the robot how to go back to safe places if it goes too far. This helps the robot fly well and stay safe all the time.
Explained to a 5-year-old, longer
In robot flight, we want the robot to do its job well, like following a path. At the same time, we need to make sure it never crashes or hurts anything. Old ways of making robots safe only check safety on average, which can miss dangerous moments. Other methods try to be safe by forcing the robot to stay in safe zones, but they often make the robot move too slowly. The new idea notices that sometimes the robot needs to go fast when it's safe, and sometimes it needs to quickly go back to safety when it makes a mistake. To handle both, the robot needs to be able to pick from many possible actions, not just one. The researchers use a kind of learning that can imagine many possible actions, like drawing many pictures of what could happen. They also use a special math rule that tells the robot which actions are safer and which are riskier. Inside safe zones, the robot learns to pick actions that get the job done quickly. Outside safe zones, the robot learns to pick actions that steer it back toward safety. This way the robot can fly fast when it can, but also quickly recover if it goes too far. The result is a robot that flies well and never gets too close to danger.
For a technical reader
Safe Score Matching (SSM) is an off-policy actor-critic algorithm that combines diffusion policies with Hamilton-Jacobi reachability to enforce hard safety constraints in online reinforcement learning. It trains the diffusion model using a two-branch score target: one branch encourages reward-maximizing actions in safe states, while the other biases denoising toward safer actions when the agent is in unsafe regions. By gating these branches with the HJ safety value, SSM can represent multimodal action distributions needed for both high performance and safe recovery. The method is evaluated on quadrotor and fixed-wing flight benchmarks, where it matches or exceeds baseline performance while maintaining safety. This approach makes it feasible to deploy RL agents in safety-critical applications.
Problem
Online safe reinforcement learning must find policies that maximize reward while satisfying hard, state-wise safety constraints. Existing approaches either relax safety to soft constraints or rely on Gaussian or deterministic actors that cannot capture the multimodal action distributions needed for both reward maximization in feasible regions and safe recovery in infeasible regions.
Method
The approach uses diffusion policies trained via Q-score matching, gating a two-branch score target with Hamilton-Jacobi reachability: inside feasible states, the denoising reduces to Q-score matching for reward maximization; outside, a recovery branch biases denoising toward lower violation using the negative gradient of the HJ safety value.
Results
The approach matches or exceeds baseline performance while maintaining safety, whereas primal-dual and reachability-based baselines sacrifice performance for safety, resulting in overly conservative policies.
Contributions
It introduces a framework for hard-constrained safe RL that leverages diffusion policies and Hamilton-Jacobi reachability to model multimodal action distributions, enabling both reward maximization and safe recovery without compromising safety.
Practical relevance
This method enables safer autonomous flight and control in high-dimensional continuous spaces, allowing real-world deployment of RL agents that must respect hard safety constraints.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction