acceptodds
Published as a conference paper at NeurIPS 2026

Safe Score Matching: Diffusion Policies with Hamilton-Jacobi Reachability for Online Safe Reinforcement Learning

Boyang Li, Matthew Kim, Sylvia Herbert

Abstract

Online safe reinforcement learning (RL) seeks policies that maximize reward while satisfying safety constraints. A popular line of research in safe RL relaxes safety to a soft expected-cost constraint and solves the resulting Constrained Markov Decision Process (CMDP) via primal-dual Lagrangian updates that only enforce safety on average. To address this limitation, hard, state-wise constraints are introduced and often imposed through Hamilton-Jacobi (HJ) reachability. Yet such constraints require solving different objectives in the feasible and infeasible regions of the state space: reward maximization in the former, recovery toward the feasible regions in the latter. The resulting target action distributions are inherently multimodal, and this structure poses a fundamental challenge for the Gaussian or deterministic actors used in existing HJ-based safe RL, which often collapse onto suboptimal modes. Diffusion policies provide the expressiveness needed to represent such distributions, and recent work on Q-score matching offers a route to training them for online RL by score regression—but has been applied only to reward maximization. Building on this framework, we propose Safe Score Matching (SSM), an off-policy actor-critic method that adapts Q-score matching to hard-constrained safe RL by gating a two-branch score target with HJ reachability: inside the feasible set, the denoising process degenerates to Q-score matching on actions classified as viable by the HJ critic, encouraging reward maximization; outside, a recovery branch biases denoising toward regions with lower worst-case violation, guided by the negative action gradient of the HJ safety value. Across high-dimensional quadrotor and fixed-wing trajectory-tracking and stabilize-and-avoid benchmarks, SSM achieves competitive performance without sacrificing safety, in contrast to primal-dual and reachability-based baselines, which tend to trade off performance for safety and are thus overly conservative.

Keywords:
Atlanta

Reviews

Among:
Shape:
123456this paper, Top 24%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.67 over 3 reviews, above 76% of the others.
Reviewer_yB27OpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This study tackles a key problem in online safe reinforcement learning: how to get both "high-performance control" and "strict, state-level safety guarantees" at the same time. Existing primal-dual and Lagrangian safe RL methods usually loosen the safety constraints into limits on the expected total cost. Because of this, they can only guarantee safety on average, and they can't make sure that every single trajectory or state stays within the constraints. This paper proposes an online off-policy actor-critic method called Safety Score Matching (SSM). The main idea is to use a diffusion policy to represent complex, multimodal action distributions, and to gate the score-matching objective with an HJ reachability critic. In feasible states (states where the HJ critic judges an action to be feasible), the denoising objective simplifies to Q-score matching based on a reward critic, which drives the policy to maximize reward. In infeasible states, the recovery branch uses the negative action gradient of the HJ safety value to steer the action toward minimizing the worst-case violation. The authors ran experiments on three safety-control benchmark tasks: Quad2D trajectory tracking, Quad3D regulation, and F16 stabilization and avoidance.

Strengths and weaknesses

Strengths:

  1. In online safe reinforcement learning, the gap between an average-cost constraint and true state-level hard safety is a core issue. Combining the hard safety idea from HJ reachability with expressive diffusion policies is a direction with real practical value.

  2. The theory is well-organized. Starting from a state-level problem with hard constraints, the paper brings in the HJ safety value, the feasible region, and the action set, then builds a local policy improvement method based on HJ gating and entropy regularization, deriving both the Boltzmann objective and the score objective.

  3. Extending SSM to Q-score matching adds some novelty. Most existing methods focus on maximizing reward, while this paper extends it to a dual reward/recovery objective based on the HJ feasibility threshold, which makes it suitable for hard-constrained safe RL.

Weaknesses:

  1. The theory mainly covers local policy improvement with a fixed critic, not full online actor-critic convergence or trajectory-level safety. In the actual SSM algorithm, the reward critic, the safety critic, and the diffusion actor all learn at the same time. Critic error, distribution drift, and gating misclassification can all hurt safety, but the paper doesn't give a thorough theoretical account of these errors.

  2. The experiments are still fairly narrow. Although the study covers Quad2D, Quad3D, and F16, these are all simulated control tasks, and the assumed system dynamics are highly deterministic. The paper hasn't yet shown whether SSM carries over to stochastic dynamics, contact-rich environments, real robot systems, or higher-dimensional visual control tasks.

Questions
  1. How does SSM behave when the learned safety critic wrongly labels a state as feasible or infeasible? Is there a mechanism that stops "false safety gates" from letting the policy maximize reward on actions that are actually unsafe?

  2. Can SSM handle stochastic dynamics? The current HJ formula and Bellman objective are mostly based on deterministic dynamics F(s,a). If the state transitions in the environment are stochastic, how should the method be adapted?

Limitations
  1. SSM cannot strictly guarantee true safety. It relies on a learned HJ critic, minimization over a finite set of candidates, and an approximate denoising objective, so it can only roughly satisfy the HJ support set constraints.

  2. The theory mainly focuses on the local objectives of a fixed critic, not the full online learning process. Critic approximation error, actor distribution shift, and replay buffer bias may all undermine the ideal properties shown in the derivation.

Paper formatting concerns

The derivations of Theorem 1 and Theorem 2 are quite brief in the main text. We recommend adding an intuitive explanation.

Reviewer_BpxBOpenReview ↗
Rating
5
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper extends Q-score matching to consider state-wise safety constraints by modifying the target to optimize for the reward QrQ_r only when the current state action pair is feasible under the value function learned from HJ reachability. Simulation experiments on three domains demonstrate the proposed method improves on the task performance metric while maintaining high safety rates.

Strengths and weaknesses

Strengths

  • The work addresses a significant problem of state-wise safety constraints for diffusion policies in online RL
  • To the best of my knowledge, this is the first work that integrates HJ reachability with diffusion policies in the online RL setting
  • The method is well motivated by the structure of the problem
  • The empirical results are promising

Weaknesses

  • The proposed method introduces hyperparameters αr\alpha_r, β\beta and MqM_q, but it is not clear how sensitive the proposed method is to these hyperparameters.
  • The clarity of the paper could be improved.
    • For example, what do the purple trajectories and the triangle, cross and star mean in Figure 1?
    • Some of the experimental details in the main text are lacking and could lead to confusion. For example, L235: “terminal L1” is used, but this term is not defined until Appendix F.4
    • It is also confusing why there’s a “terminal L1” and “terminal tracking error” that are both used, as well as why the L1 is used instead of MSE, especially as the reward is based on the squared error.
    • There is some collision in notation. e.g., β\beta refers to the coefficient on QhQ_h for infeasible states, but βt\beta_t is also the noise schedule in the diffusion model.
  • The paper does not compare against baseline methods that use diffusion / flow based policies.
    • Without such a comparison, it is hard to detangle the improvements due to using a more expressive policy from the improvements from using the proposed method for safety
    • Interestingly, the authors do cite (Cheng et al., 2026) in the extended related work and note that “this line is complementary to SSM’s hard state-wise reachability formulation” (L515), but do not compare against this work. While this uses an expected cumulative-cost constraint and not a state-wise reachability formulation, the former can be converted into the latter by considering zero constraint threshold and ensuring the cost is non-negative.
Questions
  • How sensitive is SSM to the guidance-related hyperparameters αr\alpha_r, β\beta, and MqM_q? Sensitivity plots would be helpful for the readers to understand the role of these parameters.
  • To better understand whether the performance gains come from the use of a more expressive policy class, or if it is from the proposed method, could the authors compare against methods that use a diffusion / flow policy? e.g., how does the proposed approach compare against the method in (Cheng et al., 2026) when adapted to the zero constraint violation setting?
  • How does the primal-dual Lagrangian methods perform when using a diffusion policy (using QSM) vs a Gaussian policy?
  • More details on the baselines would be appreciated. e.g., Is SSM the only method in the baselines that use a diffusion policy?
Limitations

yes

Paper formatting concerns

None

Final justification

All issues are resolved.

Reviewer_pd4nOpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes Safe Score Matching (SSM), an online safe RL algorithm that integrates Hamilton–Jacobi (HJ) reachability with score matching. The integration appears novel and technically interesting, and the paper is well written with a clear motivation and algorithm description. However, given the focus on "hard-constrained" safe RL, it would be beneficial to provide guarantees that account for learning errors. The empirical evaluation could also be strengthened by clarifying the safety improvements (Figure 4 is somewhat inconclusive in one benchmark), comparing computational cost and sample efficiency against existing methods, and evaluating on more widely adopted Safe RL benchmarks.

Strengths and weaknesses

This paper proposes Safe Score Matching (SSM), an online safe reinforcement learning algorithm that combines Hamilton–Jacobi (HJ) reachability with diffusion-policy score matching.

I feel the key idea of integrating score matching, HJ reachability in solving hard-constrained safe RL appears to be novel and interesting.

The paper is well written, with a clear motivation and algorithmic description.

Given that the authors claim to study “hard-constrained” safe RL, it may be helpful to provide guarantees in a way that accounts for learning errors.

My interpretation of Fig 4 might be wrong, but it is slightly unclear how much safety improvement the proposed method has (in 1 out of 3, the proposed method is underperforming).

The empirical evaluation would be stronger if the proposed method were evaluated on widely adopted Safe RL benchmarks.

Questions

What is the computation requirement and sampling efficiency of the proposed method in comparison to the existing approaches?

How does the proposed method compare with some common Safe RL benchmarks?

Limitations

Yes.

Paper formatting concerns

N.A.

Final justification

I will keep my score since my score is approximately the mean of the other reviewers' scores. The authors provided additional simulation results. The proposed method still does not provide hard-constrained safe reinforcement learning (RL). The authors provided a conditional proposition showing when the learned safety critic's error is bounded by ϵQ\epsilon_Q. In my opinion, accurately learning ϵQ\epsilon_Q is more like a research challenge in online safe RL.

Comments on the paper

1 comment
Meta-review

Summary

Paper proposes “Safe Score Matching” (SSM), a safe RL method that uses a diffusion-policy with HJ reachability within the feasible set.

Main Strengths

Reviewers appreciated the following:

  • Novel the reviewers find the integration of score-matched diffusion policies with HJ reachability for (hard constrained) safe RL is novel and technically interesting
  • Relevant the reviewers agree the problem is well motivated and a worthwhile direction with ractival value, especially given the widespread uses of diffusion policies, which have not been as easily applied to safety-critical scenarios thus far
  • Clear reviewers generally agree that the submission is generally well written and easy to follow and well organized theory, with some smaller followup improvements to be made, which the authors were responsive to and consequently improved upon

Main Weaknesses

Reviewers were originally concerned with the following:

  • Guarantees on errors: Reviewer pd4n and yB27 believe the paper would be stronger if guarantees could be provided that account for learning errors. Authors responded with an additional conditional proposition regarding a safety-critic error bound to act as a buffer from entering unsafe states, which partially addresses the reviewers' concern, given accurately learning the safety critic is difficult (potentially undermining the hard-constrained safe RL claims)
  • Empirical evaluation Reviewer pd4n would like to see evaluation on more widely adopted Safe RL benchmarks, and while Reviewer BpxB found the empirical results promising they pointed out a lack of baselines that use diffusion or flow-based policies. The authors responses by including additional result on Safety-Gymnasium (specifically SafetyHalfCheetahVelocity-v1, SafetySwimmerVelocity-v1, and SafetyCarGoal1-v0). Authors also include baselines Diffusion QSM-Lag and Gaussian SAC-Lag.
  • Hyperparameters, specifically alpha_r, beta, M_q; it was not clear how sensitive the model is to such hyperparameters which might pose tuning difficulties. Authors responded with an ablation of these hyperparameters which shows SSM is not overly sensitive.

Overall

I am happy with the paper on the condition that the authors make clear that accurate learning of the safety critic remains a challenge for safe RL or more work in that direction would improve methods such as these, given how much heavy lifting the conditional proposition is doing. For instance, it could be hard to know (in general) when one could safely make such an assumption.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.