potentialpaper

Sampling-Based Safe Reinforcement Learning

Luca Vignola, Bruce D Lee, Manish Prajapat, Manuel Wendl, Melanie N. Zeilinger, Andreas Krause, Yarden As

DEMO @ ICML 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose a safe and scalable reinforcement learning algorithm that leverages dynamics samples to guarantee safety and optimality

Abstract. Safe exploration remains a fundamental challenge in reinforcement learning (RL), limiting the deployment of RL agents in the real world. We propose Sampling-Based Safe Reinforcement Learning (SBSRL), a model-based RL algorithm that maintains safety throughout the learning process by enforcing constraints jointly across a finite set of dynamics samples. This formulation approximates an intractable worst-case optimization over uncertain dynamics and enables practical safety guarantees in continuous domains. We further introduce an exploration strategy based on constraining epistemic uncertainty, eliminating the need for explicit exploration bonuses. Under regularity conditions, we derive high-probability guarantees of safety throughout learning and a finite-time sample complexity bound for recovering a near-optimal policy. Empirically, SBSRL achieves safe and efficient exploration both in simulation and in real-world experiments, and readily extends to practical deep-ensemble implementations that scale to high-dimensional continuous control problems.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
8 May 2026DEMO @ ICML 2026submittedDEMO @ ICML 2026Accepted · Poster—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes Sampling-Based Safe Reinforcement Learning (SBSRL), which approximates robust planning under uncertain dynamics by enforcing tightened constraints over finitely many sampled models. The paper also proposes exploration through constraints on epistemic uncertainty and derives high-probability safety and finite-time near-optimality results under GP/RKHS assumptions. The reviewers recognize the importance of safe exploration, the appealing sampling-based formulation, and the technical ambition of combining theoretical guarantees with simulation and robotic experiments.

The central concern, raised especially by Reviewers DfcF and 656L, is that the relationship among the theoretically analyzed algorithm, the practical implementations, and the claimed empirical safety is currently unclear. The theory appears to assume fixed prior dynamics samples, confidence-set truncation, and exact constrained optimization. The experiments instead use posterior resampling, penalty-based approximate optimization, heuristic uncertainty thresholds, and, in some settings, deep ensembles. These variants may be practically reasonable, but it is not clear that they inherit the stated guarantees. Reviewers DfcF and 656L also question the novelty relative to prior sampling-based safe RL, scenario optimization, and scenario MPC.

The author response should prioritize the following:

  1. Reviewers DfcF and 656L ask for a precise account of the technical and algorithmic contributions beyond prior sampling-based safe RL and scenario-optimization/MPC methods, including the closely related works identified in their reviews. Please distinguish genuinely new results from adaptations of established scenario-optimization arguments.

  2. Reviewer DfcF raises a specific concern about which algorithm is covered by the safety and sample-complexity theorems. Please justify the claimed extension to posterior resampling, including why the current Lemma 2 and union-bound argument are sufficient, or revise the claim if additional analysis is required. Please also distinguish the formal GP guarantee from the heuristic deep-ensemble implementation, as emphasized by Reviewers DfcF and zbr7.

  3. Please explain how the experimental algorithm differs from the theoretically analyzed one and how these differences affect the interpretation of the reported safety results. This should address posterior versus prior sampling, truncation, penalty-based approximate optimization, heuristic uncertainty thresholds, and the restrictive assumptions identified by Reviewers DfcF and 656L.

  4. Reviewers DfcF and 656L also ask that the meaning of “safety throughout learning” be stated precisely. Please clarify whether the guarantee concerns expected accumulated cost, high-probability per-episode safety, per-trajectory constraint satisfaction, or state-wise safety, and ensure that the empirical claims use the same notion.

The real-robot experiments and the practical deep-ensemble variant are valuable, as noted by Reviewer zbr7, but they should not be presented as direct demonstrations of the formal safety theorem unless that connection can be established. A convincing response that establishes the novelty, precisely delimits the theoretical guarantee, and reconciles the analyzed and implemented algorithms would be an important consideration in the final discussion.

Final justification

I have considered the rebuttal and reviewer discussion. The authors substantially addressed the main concerns regarding novelty, posterior resampling, the theory–implementation gap, and the interpretation of safety. They also added closer-to-theory experiments and clarified the limitations of the practical implementations.

A remaining limitation is that the experimental planner does not exactly solve the theoretically assumed constrained optimization problem. However, this is now clearly acknowledged and does not undermine the main theoretical contribution.

Overall, the rebuttal sufficiently resolves the key concerns, and I recommend acceptance.

Area Chair p99C · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper proposes Sampling-Based Safe Reinforcement Learning (SBSRL), which approximates robust planning under uncertain dynamics by enforcing tightened constraints over finitely many sampled models. The paper also proposes exploration through constraints on epistemic uncertainty and derives high-probability safety and finite-time near-optimality results under GP/RKHS assumptions. The reviewers recognize the importance of safe exploration, the appealing sampling-based formulation, and the technical ambition of combining theoretical guarantees with simulation and robotic experiments.

The central concern, raised especially by Reviewers DfcF and 656L, is that the relationship among the theoretically analyzed algorithm, the practical implementations, and the claimed empirical safety is currently unclear. The theory appears to assume fixed prior dynamics samples, confidence-set truncation, and exact constrained optimization. The experiments instead use posterior resampling, penalty-based approximate optimization, heuristic uncertainty thresholds, and, in some settings, deep ensembles. These variants may be practically reasonable, but it is not clear that they inherit the stated guarantees. Reviewers DfcF and 656L also question the novelty relative to prior sampling-based safe RL, scenario optimization, and scenario MPC.

The author response should prioritize the following:

  1. Reviewers DfcF and 656L ask for a precise account of the technical and algorithmic contributions beyond prior sampling-based safe RL and scenario-optimization/MPC methods, including the closely related works identified in their reviews. Please distinguish genuinely new results from adaptations of established scenario-optimization arguments.

  2. Reviewer DfcF raises a specific concern about which algorithm is covered by the safety and sample-complexity theorems. Please justify the claimed extension to posterior resampling, including why the current Lemma 2 and union-bound argument are sufficient, or revise the claim if additional analysis is required. Please also distinguish the formal GP guarantee from the heuristic deep-ensemble implementation, as emphasized by Reviewers DfcF and zbr7.

  3. Please explain how the experimental algorithm differs from the theoretically analyzed one and how these differences affect the interpretation of the reported safety results. This should address posterior versus prior sampling, truncation, penalty-based approximate optimization, heuristic uncertainty thresholds, and the restrictive assumptions identified by Reviewers DfcF and 656L.

  4. Reviewers DfcF and 656L also ask that the meaning of “safety throughout learning” be stated precisely. Please clarify whether the guarantee concerns expected accumulated cost, high-probability per-episode safety, per-trajectory constraint satisfaction, or state-wise safety, and ensure that the empirical claims use the same notion.

The real-robot experiments and the practical deep-ensemble variant are valuable, as noted by Reviewer zbr7, but they should not be presented as direct demonstrations of the formal safety theorem unless that connection can be established. A convincing response that establishes the novelty, precisely delimits the theoretical guarantee, and reconciles the analyzed and implemented algorithms would be an important consideration in the final discussion.

Final justification

I have considered the rebuttal and reviewer discussion. The authors substantially addressed the main concerns regarding novelty, posterior resampling, the theory–implementation gap, and the interpretation of safety. They also added closer-to-theory experiments and clarified the limitations of the practical implementations.

A remaining limitation is that the experimental planner does not exactly solve the theoretically assumed constrained optimization problem. However, this is now clearly acknowledged and does not undermine the main theoretical contribution.

Overall, the rebuttal sufficiently resolves the key concerns, and I recommend acceptance.

Reviewer 656LOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper presents an algorithm for solving constrained MDPs in continuous state/action spaces. The main idea is to maintain a GP dynamics model and enforce constraints on a finite number of samples from this model at each learning iteration. Theoretical results guarantee that each time a policy is evaluated on the real system, the expected cost of the trajectory will be bounded with high probability; further, the method is guaranteed to converge in finite iterations. Experimental results provide additional validation.

Strengths and weaknesses

Strengths

  • The problem of ensuring safety during learning, but without access to a “safety filter,” is quite challenging and worthy of study.
  • I quite like the scenario optimization style of approach this paper takes.

Weaknesses

  • Missing what seems like a very relevant reference: Suttle et al, “Sampling-based Safe Reinforcement Learning for Nonlinear Dynamical Systems,” AISTATS 2024.
  • Other missing references in the constrained RL section of the literature review:
    • Li et al, “Augmented Lagrangian method for instantaneously constrained reinforcement learning problems,” CDC 2021
    • Berkenkamp et al, “Safe model-based reinforcement learning with stability guarantees,” NeurIPS 2017
    • … and many, many others that are not limited to the “constraint in expectation” formulation of CMDPs and are not structured as MPC.
  • The distinction from scenario optimization and MPC is not clearly or credibly articulated: the related work section claims that these methods have not been applied in continuous CMDP settings, but (unless I am wrong) that setting falls within the standard case studied in scenario MPC (cf. standard references from Campi and Calafiore). The approach described below (6) in Section 5 is (apart from the restriction to GPs) quite similar in spirit to that in the standard Campi and Calafiore approach from scenario MPC. See also follow on work from the same authors that handles nonlinear dynamics.
  • The noise sequence should be more explicitly described as a random process in Section 3.1 (ie., as opposed to an adversarially chosen sequence). This is necessary if we are to truly understand the expectation in (2).
  • Above (4), I am confused: it seems that each episode consists of a single trajectory; yet, we are asked in (4) to ensure that the expectation of a function (over a distribution of trajectories) is bounded. What is the virtue in enforcing the constraint in expectation if we are drawing only a single sample from the distribution? Shouldn’t we be trying for a chance constraint, like “ensure cost on the sampled trajectory is bounded, with high probability?” Upon reading further, it seems like this is exactly what is being done; if so, please adjust the language around (4) to foreshadow this directly.
  • It seems that Assumption 3 could be quite restrictive for any practical bound B from Assumption 2. At least, I expect that there are instances where Assumption 3 is not satisfied; for example, consider the well-known counterexample from Doyle in the paper “Guaranteed Margins for LQG Regulators” illustrating a linear-quadratic-Gaussian problem where the optimal feedback policy is not robustly stabilizing.
  • Is the superscript 3 in Assumption 5 intended? If so, it deserves some explanation.
  • In (5), is it not possible to model covariance between state coordinates in the GP dynamics model? Surely that can only help.
  • JsnJ_{s_n} is not clearly defined in Section 5.
  • How is problem (8) solved on line 7 of Algorithm 1? Nothing has been said about the policy class or the reward/cost/infogain functions, so presumably this is a nonconvex program that we cannot be expected to solve in general. How does sub optimality affect the theoretical results?
  • Theorem 1 should ideally be extended to cope with decaying error probability tolerances so that the overall probability of constraint violation throughout all episodes of training is bounded. It is unclear if this is already handled by the finite termination guarantee of Theorem 2; commentary would be appreciated.
  • Results should use more than 5 seeds; error bars are completely overlapping in all cases in Figure 4, and I do not know what 95th percentile means in Figure 5 when it is only 5 seeds (i.e., shouldn’t it be increments of 20 percentile?)
  • Why was ActSafe chosen as a baseline, but not any of the other references in safe RL (including ones that demonstrate in real hardware - there is plenty to choose from). Ultimately, for any set of baselines, it is also essential to provide a clear enough description of the baseline for readers to understand what they are doing and how it differs from the proposed approach.
  • The deep ensembles described in the hardware paragraph must be explained more clearly in the main text and juxtaposed with the GP models used in the rest of the paper.
  • The results in Figure 6 are extremely noisy and it is difficulty to detect a strong pattern that I am confident would reproduce between trials. (Three seeds is simply not enough to make any statistical assessment of reliability, either.)
  • More generally, the experiments should be structured so as to more clearly show that the constraints hold (in expectation over infinitely many trajectory samples) at every iteration. Right now, Figure 4 tries to show something like this, but it is in terms of J^\hat J which I do not see defined, but I suspect is just the cost evaluated at the specific trajectory drawn at the n-th iteration.
  • The dependence on GPs makes it unclear how scalable the method is (ie., in high dimensions and with lots of data).
Questions
  1. What is truly new about the proposed method, compared with existing literature in safe RL (cf. Berkenkamp’s 2017 NeurIPS paper for example) and scenario optimization and planning (which I believe establishes similar results to Theorem 1, i.e. for a given GP model classical results should be able to bound the number of samples you need to take in order to satisfy a chance constraint)?
  2. How restrictive are the assumptions? Are there nontrivial counterexamples where they do not hold?
  3. How is Problem (8) solved in practice? Relatedly, what is the JsnJ_{s_n} function exactly, and what is the exact policy class?
  4. Do the experimental results hold up when there are >20 seeds?
Limitations

The authors could have been more clear in discussing limitations of the proposed approach (e.g., wrt scaling issues for GPs, number of dynamics samples that must be drawn to attain certificates, difficulty of solving problem (8), etc.).

Final justification

Thanks to the authors for their thoughtful response to my review, and for answering most of my questions. I have marginally raised my score to reflect several of my concerns being mostly allayed, however I have slightly decreased my confidence score to reflect uncertainty in precisely how the concerns in my own and other reviews will be reflected in the final manuscript.

I have no further substantial questions at this time. Thanks again to the authors for engaging in this process.

Formatting concerns

n/a

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the opportunity to clarify our contributions. Please find below our response to your questions.

1-2. related works

Despite its title, Suttle et al. [1] differs in: (1) methodology: they use policy gradients and control barrier functions and sample actions within rollouts; SBSRL is agnostic to those choices and samples dynamics during online planning; and (2) theory: SBSRL gives finite-time optimality and safety-during-learning guarantees, whereas [1] gives asymptotic convergence, and we found no safety-during-learning claim. Berkenkamp et al. [3] study safety as described through Lyapunov stability, representable in our more general CMDP formulation and assume an arbitrary reset oracle allowing "teleportation" to arbitrary states without needing to follow the dynamics; and discretize state-action spaces. SBSRL makes neither of these assumptions. Li et al. [2] reformulate CMDPs into instantaneous safety (see also [9]); instead, we require CMDP constraints during online learning, not only at convergence. We already cite [3] in Appendix F.2.

We will add this discussion to the main text.

3, Scenario optimization

Thank you for pointing this out. The statement in our Related Work that we apply sampled dynamics constraints “for the first time” to continuous-domain CMDPs was intended to distinguish our episodic CMDP learning formulation and guarantees, not to suggest that continuous or nonlinear control problems fall outside the scope of scenario optimization. We agree that the current wording is too broad and will fix that in the next revision. Scenario methods cover finite-horizon robust/stochastic control, including nonlinear and nonconvex MPC.

The distinction relevant to our analysis concerns the probabilistic guarantee. In the classical scenario approach, scenarios δ1,…,δM\delta^1,\ldots,\delta^M are sampled from a distribution PP. With high confidence over the sampled scenarios, the returned decision has small violation probability. This controls the probability mass of unseen uncertainty realizations that violate the decision. It does not by itself certify constraint satisfaction for arbitrary fixed dynamics f⋆f^\star that are not assumed to be drawn from PP.

SBSRL instead treats f⋆f^\star as fixed and assumes f⋆−μf^\star-\mu belongs to a bounded RKHS ball. The result of Prajapat et al. ensures that, with high probability, the finite GP sample set contains at least one member uniformly within ζ\zeta of this fixed f⋆f^\star, even though f⋆f^\star need not be a GP draw. Our truncation procedure preserves such a close sample throughout learning. Because the tightened expected-cost constraint is enforced on every sampled model, it holds in particular for the close sample, and the ζ\zeta-dependent tightening transfers feasibility to the true dynamics:

Jc(πn,f⋆)≤dJ_c(\pi_n,f^\star)\leq d

simultaneously for every training episode and for the returned policy.

We do not claim novelty for scenario constraints, GP sampling, or the close-sample argument of Prajapat et al. Relative to this literature, our contribution is to incorporate this safety certificate into an episodic finite-horizon CMDP algorithm with an epistemic-exploration constraint, and to prove the combined result of expected-cost safety throughout training, finite-time termination, and ϵ\epsilon-near-optimality over the reachable component of the tightened true-safe policy set. We will revise the paper to make clear that the novelty lies in this end-to-end safe-learning result, rather than in sampled constraint enforcement itself.

4. Noise sequence

Assumption 1 defines the noise as i.i.d. Gaussian; we will also state this in Section 3.1.

5. Constraint (4)

Constraint (4) uses the standard CMDP expected accumulated-cost constraint [6]. Chance constraints are relevant and already identified as promising future work (lines 384–387), but are not studied here. In Theorem 1, "high probability" refers to randomness in the learning process and model-sampling: then, every selected policy satisfies the CMDP expectation constraint. We will clarify this.

6. Assumption 3

We agree that Assumption 3 can fail when BB is too large. However, Doyle's example does not establish such a failure: it shows that a nominally optimal output-feedback LQG controller can have arbitrarily small robustness margins. Assumption 3 instead requires the existence of some policy, which is potentially conservative and suboptimal, that is safe for every model in F0B\mathcal F_0^B. Moreover, our setting is fully observed and finite-horizon; classical full-state LQR does possess guaranteed robustness margins. Assumption 3 is a substantive initial-feasibility condition: before any data are collected, an algorithm promising uniform safety must have some policy that is safe for every initially admissible model. It is nevertheless non-vacuous and directly checkable. If πˉ\bar\pi has nominal slack s:=d−Jc(πˉ,μ)>0s:=d-J_c(\bar\pi,\mu)>0, Lemma 3 gives

sup⁡f∈F0BJc(πˉ,f)≤Jc(πˉ,μ)+κB,κ:=T2Cmax⁡dxσmax⁡σw.\sup_{f\in\mathcal F_0^B}J_c(\bar\pi,f) \leq J_c(\bar\pi,\mu)+\kappa B, \qquad \kappa:=\frac{T^2C_{\max}\sqrt{d_x\sigma_{\max}}}{\sigma_w}.

Thus, Assumption 3 holds for every B<s/κB<s/\kappa, with Δ=s−κB>0\Delta=s-\kappa B>0. We will add this sufficient condition and clarify that the assumption excludes priors too broad to certify any safe fallback.

Q2. restrictive assumptions

Appendix A provides further details about the scope of our assumptions. While not a rigorous statement, we highlight that empirically, our work shows that safe initialization can be obtained in practice. Our experiments maintain safety from the "zeroth" iteration, which in our setting requires Assumption 3.

7. Assumption 5

The superscript 3 is intended and ensures existence of a finite nˉ\bar n satisfying Theorem 2's sample-complexity bound. Appendix A.1 shows when the assumption holds.

9-10. Problem (8)

Eq. 2 defines JgJ_g for any scalar function gg on X×A\mathcal X\times\mathcal A; here it is applied to sns_n (line 197). The difficulty of solving problem (8) is a common challenge in RL, so our theory assumes an exact oracle over deterministic policies. In practice this can only be approximated because costs and rewards are only assumed bounded, and how to do so is not an intended contribution of our paper. Our GP experiments use iCEM [7] for planning receding-horizon actions, while the deep implementation uses gradient descent with actor-critic MBPO [8] and an Augmented Lagrangian penalizer.

11. Theorem 1

The 1−2δ1-2\delta probability already covers all training episodes. GP samples remain fixed throughout learning, so Lemma 2 contributes one 1−δ1-\delta event, while Lemma 1 holds simultaneously for all nn and contributes another. No episode-wise confidence decay is needed; the appendix provides further details.

12, 15

Appendix F reports 25 seeds for deep experiments, while hardware seeds were limited by physical access. GP experiments originally used five seeds, as common in safe RL, but we additionally ran SBSRL with 25 independent seeds:

Pendulum

Method Seeds Reward Max violation
SBSRL 25 −195.88±20.38-195.88\pm20.38 0±00\pm0
SBSRL (Fig. 4) 5 −185.46±2.56-185.46\pm2.56 0±00\pm0
ActSafe (Fig. 4) 5 −193.02±6.05-193.02\pm6.05 0.0229±0.05120.0229\pm0.0512

CartPole

Method Seeds Reward Max violation
SBSRL 25 −274.96±2.74-274.96\pm2.74 0±00\pm0
SBSRL (Fig. 4) 5 −274.80±1.21-274.80\pm1.21 0±00\pm0
ActSafe (Fig. 4) 5 −274.25±1.74-274.25\pm1.74 0.3029±0.67730.3029\pm0.6773

As shown, SBSRL maintains safety and optimality while using 20 seeds. We will add these results to the paper based on your suggestion.

13. Baselines

ActSafe is the closest theory-backed algorithm using the same tasks and GP planning implementation, as it samples to approximate plausible dynamics; notably, we prove guarantees directly for a sampling-based formulation. Our exploration constraint also differs from its explore-then-commit approach. For the deep variant, we compare with SOOPER [5], a state-of-the-art safety-filter method for Safe RL. The three-run hardware study shows every available hardware run, and we will label it a resource-limited case study, not state-of-the-art performance.

14. Deep ensembles

We will move relevant discussion from Appendix F.2 to the main text.

16. J^\hat J

Expected cost needs averaging infinitely many trajectories, so it can only be estimated in practice. We average costs over separate evaluation episodes run in parallel at each episode's beginning. We apologize that J^\widehat J was undefined.

17. GP scalability

The GP theory is limited to low-dimensional systems and moderate datasets because exact inference is cubic in the observations. The neural version scales to Humanoid and Quadruped (88- and 89-dimensional state-action spaces) and the race car's 45-dimensional observation, but is of course only an empirical heuristic without the GP guarantees.

We would like to thank you again for your careful review of our paper. We hope that the discussion above helped clarifying your questions and would appreciate it if you'd consider increasing your score.


[1] Suttle et al. "Sampling-based Safe Reinforcement Learning for Nonlinear Dynamical Systems", AISTATS 2024
[2] Li et al. "Augmented Lagrangian Method for Instantaneously Constrained Reinforcement Learning Problems", CDC 2021
[3] Berkenkamp et al. "Safe Model-based Reinforcement Learning with Stability Guarantees". NeurIPS 2017
[4] Calafiore et al. "The Scenario Approach to Robust Control Design". IEEE Transactions on Automatic Control 2006
[5] Wendl et al. "Safe Exploration via Policy Priors". ICLR 2026
[6] Altman. "Constrained Markov Decision Processes". 1999
[7] Pinneri et al. "Sample-efficient Cross-Entropy Method for Real-time Planning", CoRL 2020.
[8] Janner et al. "When to trust your model: model-based policy optimization", NeurIPS 2019.
[9] Curi et al. "Safe reinforcement learning via confidence-based filters." CDC 2022.

Authors · CommentOpenReview ↗

Follow up

Dear Reviewer,

We wanted to follow up before the discussion period ends on August 3.

We would be very happy to clarify any remaining questions. If you don’t have any additional concerns, we would like to kindly ask you to reconsider increasing the score.

Thank you again for taking the time to carefully review our paper!

Area Chair p99C · CommentOpenReview ↗

Reminder: Author Rebuttal and Discussion

Dear Reviewer,

Thank you again for your work on this submission. As we are approaching the end of the Author–Reviewer–AC discussion period on August 3 (AoE), please take some time to read the authors’ rebuttal and participate in the discussion.

In particular, please briefly indicate whether the authors’ response has addressed your main concerns. If your assessment has changed, please update your review, score, and confidence accordingly and explain the reason for the change. If your assessment remains unchanged, please also acknowledge that you have read and considered the rebuttal and briefly clarify which concerns remain unresolved.

Your timely response will be important for reaching a well-informed and balanced decision. Thank you for your help.

Authors · CommentOpenReview ↗

Dear reviewer,

Thank you again for carefully reviewing our paper and for helping us improve it. We noted that you've increased your evaluation of our work based on the rebuttal. Thank you for re-evaluating our work more positively!

Reviewer zbr7OpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies safe exploration in reinforcement learning (RL). This paper proposes Sampling-Based Safe Reinforcement Learning (SBSRL). SBSRL is a model-based RL algorithm that guarantees safety throughout the learning process by enforcing constraints jointly across a finite set of dynamics samples, which is based on a new exploration strategy based on constraining epistemic uncertainty. The authors provide high-probability guarantees of safety throughout learning and a finite-time sample complexity bound for recovering a near-optimal policy. Empirically, SBSRL achieves safe and efficient exploration both in simulation and in real-world experiments, and readily extends to practical deep-ensemble implementations that scale to high-dimensional continuous control problems.

Strengths and weaknesses

Strengths

S1: presentation

  • Overall, this paper is well-written and easy to follow. The key ideas or proposed method are clearly presented without any fatal issues.

S2: Theoretical analysis

  • The problem formulation is easy to understand. The assumptions and theoretical results are clearly stated with rigor mathematics. I think the main claims are well-supported by the theoretical analyses.

S3: Experiment

  • Empirical experiments in this paper cover both simulation and real robotic hardware. The performance of the proposed approach seems to be better than the baseline methods. The setup of the real robotic hardware experiment is particularly interesting. Such experiment will become more important in the next few years.

Weaknesses

W1: Simple problems

  • Given the primary contribution of this paper is theory, I feel the current experiments are sufficient. On the other hand, I have the following several questions and comments:
    1. From the current submission, reviewers and readers cannot understand what the real robotic hardware experiments look like. If possible, I would like the authors to add some images in the paper (appendix) or provide video as a supplementary material.
    2. I am wondering to what extent the proposed method can be applied to problems of varying complexity. I suspect this method only works in relatively simple environments. Discussing the limits of how complex a problem it can handle would be beneficial to readers. (I am not saying it's useless even if it cannot be applied to complex environments; I highly appreciate the theoretical contributions of this paper.)

W2: Missing citations

  • I think the following paper is also related. Thomas et al. (2021) employ an ensemble of Gaussian dynamics models to capture aleatoric and epistemic uncertainties.
    • Thomas, Garrett, Yuping Luo, and Tengyu Ma. "Safe reinforcement learning by imagining the near future." Advances in Neural Information Processing Systems 34 (2021): 13859-13869.

[Minor] W3: Typos

  • GP and \mathcal{GP} are mixed. For example, in line 9 (Algorithm1), there is a calligraphy "GP"
Questions

Q1: I am curious about how much trouble they had tuning the GP kernel. Ideally, failures during GP hyper-parameters tuning should also be considered unsafe exploration. I understand that this is not a problem unique to this paper, as many papers assume that the appropriate kernel is already known.

Q2: The deep-ensemble implementation is practically important, but it is unclear whether it can enjoy an analogous safety guarantee to the GP instantiation. My understanding is that the GP guarantee relies on calibrated confidence bounds and on the existence of a ζ-close sampled dynamics model among the finite samples. For deep ensembles, ensemble variance is used as an epistemic uncertainty proxy, but no corresponding calibration result is provided. Could the authors clarify whether the deep variant is intended only as an empirical heuristic, or whether an analogous guarantee could in principle be obtained under additional assumptions?

Limitations

Yes, the authors adequately addressed the limitations and implications of their work in Conclusion.

Final justification

From the initial review, I think this paper is good enough to be presented at NeurIPS. After the rebuttals and discussions, my opinion is unchanged. Thanks.

Formatting concerns

NA

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading, reference, and presentation suggestions. We will cite [1] in our discussion, standardize the GP notation, and add some images of the hardware setup in the camera-ready version.

I am wondering to what extent the proposed method can be applied to problems of varying complexity. I suspect this method only works in relatively simple environments. Discussing the limits of how complex a problem it can handle would be beneficial to readers. (I am not saying it's useless even if it cannot be applied to complex environments; I highly appreciate the theoretical contributions of this paper.)

The applicability of our theory-backed GP method is limited to low-dimensional systems and moderate datasets, because exact GP inference is cubic in the number of observations. The neural version scales the design to Humanoid and Quadruped (88- and 89-dimensional state-action spaces, respectively) in simulation, and to the race-car's 45-dimensional observation on hardware. However, this "deep" instantiation of SBSRL is only provided as an empirical heuristic and does not inherit the GP theorems, as remarked below.

Q1: I am curious about how much trouble they had tuning the GP kernel. Ideally, failures during GP hyper-parameters tuning should also be considered unsafe exploration. I understand that this is not a problem unique to this paper, as many papers assume that the appropriate kernel is already known.

As in related GP safe-learning work, the theory assumes that (μ,k,B)(\mu,k,B) are fixed and calibrated before online learning. Accordingly, we fit the prior-path hyperparameters automatically on the offline dataset D0\mathcal D_0 and keep those global prior paths fixed throughout learning. For posterior truncation, we automatically refit the GP hyperparameters by marginal-likelihood maximization [2] using the data already collected during learning, because the true kernel is not known in practice and this generally gives the best available posterior estimate.

Q2: The deep-ensemble implementation is practically important, but it is unclear whether it can enjoy an analogous safety guarantee to the GP instantiation. My understanding is that the GP guarantee relies on calibrated confidence bounds and on the existence of a ζ\zeta-close sampled dynamics model among the finite samples. For deep ensembles, ensemble variance is used as an epistemic uncertainty proxy, but no corresponding calibration result is provided. Could the authors clarify whether the deep variant is intended only as an empirical heuristic, or whether an analogous guarantee could in principle be obtained under additional assumptions?

The deep variant is only an empirical heuristic inspired by SBSRL. For neural-network ensembles, the variance of the ensemble predictions can be used as a proxy for epistemic uncertainty. However, as you correctly point out, Theorem 1 also relies on the existence of a ζ\zeta-close sample, which is not guaranteed for such a deep ensemble. Nevertheless, this practical implementation allows us to (empirically) scale our algorithmic principles to high-dimensional scenarios. We would be happy to adjust the language around this variant if you feel we didn't make this lack of guarantees clear enough. Moreover, we provide the following additional sweep of ensemble size in the deep CartPole experiment (d=100d=100), showing the empirical sensitivity of the deep implementation to the ensemble size MM (mean ±\pm std over 25 seeds):

Metric M=1M=1 M=5M=5 M=10M=10 M=15M=15 M=20M=20
Maximum cost 140.55±213.36140.55\pm213.36 10.90±50.5610.90\pm50.56 6.58±32.916.58\pm32.91 5.02±23.225.02\pm23.22 8.23±39.618.23\pm39.61
Maximum reward 762.01±41.62762.01\pm41.62 745.63±19.20745.63\pm19.20 705.39±23.62705.39\pm23.62 685.22±47.71685.22\pm47.71 639.53±96.20639.53\pm96.20

[1] Thomas, Garrett and Luo, Yuping and Ma, Tengyu. "Safe reinforcement learning by imagining the near future". Proceedings of the 35th International Conference on Neural Information Processing Systems, 2021
[2] Rasmussen, Carl Edward and Williams, Christopher K. I. "Gaussian Processes for Machine Learning". 2006

Authors · CommentOpenReview ↗

Follow up

Dear reviewer zbr7

We would like to ask whether our response addressed your concerns and to offer further clarification if requested. We would be very pleased for an open discussion regarding the points brought up.

Thank you again for taking the time to carefully review our paper!

Area Chair p99C · CommentOpenReview ↗

Reminder: Author Rebuttal and Discussion

Dear Reviewer,

Thank you again for your work on this submission. As we are approaching the end of the Author–Reviewer–AC discussion period on August 3 (AoE), please take some time to read the authors’ rebuttal and participate in the discussion.

In particular, please briefly indicate whether the authors’ response has addressed your main concerns. If your assessment has changed, please update your review, score, and confidence accordingly and explain the reason for the change. If your assessment remains unchanged, please also acknowledge that you have read and considered the rebuttal and briefly clarify which concerns remain unresolved.

Your timely response will be important for reaching a well-informed and balanced decision. Thank you for your help.

Reviewer DfcFOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper looks at safe exploration in finite-horizon CMDPs with continuous states and actions. In this setting, the reward and cost functions are known, but the system dynamics are not. Safety means that, at every learning episode, the expected total cost must stay below a fixed budget. At the same time, the learner should eventually find a policy that achieves high reward under the true, unknown dynamics.

To address this problem, the paper proposes Sampling-Based Safe Reinforcement Learning, or SBSRL. The algorithm learns a Gaussian process model of the dynamics, samples a finite collection of plausible dynamics functions, and then selects policies that satisfy tightened cost constraints for all of those sampled dynamics. Instead of using a standard intrinsic exploration bonus, SBSRL enforces exploration through a constraint: the chosen policy must accumulate enough epistemic uncertainty whenever the greedy policy would not provide enough information.

The main theoretical results are that, with high probability, the algorithm remains safe throughout learning and achieves finite-time near-optimality over a reachable tightened safe component, under GP/RKHS assumptions. Empirically, the paper tests a GP-based version of the method on PendulumSwingup and CartpoleSwingup, and also evaluates a deep-ensemble variant on real robotic hardware. Additional large-scale experiments are left to the appendix.

Strengths and weaknesses

This is a thoughtful and technically rich paper on an important problem. I find the basic setup compelling. In this branch literature on safe exploration it is often assumed that the cost function and the budget are known, while the harder issue is that whether a new policy actually satisfies the budget, which in turn depends on the dynamics, which are unknown. SBSRL tackles this by testing candidate policies against several sampled dynamics models, rather than only evaluating them under the posterior mean. This is an appealing way to approximate the much harder worst-case safety problem over all plausible dynamics. Figure 1 also does a good job of showing the main idea: a policy is rejected if it violates the tightened constraint under any of the plausible sampled rollouts.

The use of sampled dynamics is useful conceptually as well. Standard GP-confidence approaches to safe RL can become very conservative when they enforce pessimistic confidence bounds directly. Sampling a finite number of dynamics models can, at least in principle, give a less conservative and more parallelizable approximation to robust planning. I also like the way the paper handles exploration. Instead of adding an intrinsic exploration bonus to the reward, it imposes a constraint that the selected policy must accumulate enough epistemic uncertainty. This is a nice design choice, since reward bonuses in safe RL are often hard to tune. If the bonus is too large, the agent may explore in unsafe or irrelevant ways. If it is too small, the safe set may not expand.

The theoretical contribution is meaningful under the assumptions made in the paper. The high-level proof story is valid: the GP confidence sets contain the true dynamics with high probability; with enough prior GP samples, at least one sampled function is close to the true dynamics; truncation or clipping keeps such a close sample inside the confidence regions as data are collected; and enforcing tightened constraints for all sampled models then enforces the cost constraint for the true system. The termination and optimality result is also valuable, because it connects infeasibility of the exploration constraint to uniformly low epistemic uncertainty over the sampled safe set.

That said, I see a meaningful gap between the theory and the empirical evidence supplied by the paper. The formal safety guarantee is proved for an idealized GP algorithm. This algorithm samples dynamics from the prior, keeps those sampled functions fixed, truncates them into successive GP confidence regions, and solves the constrained optimization problem exactly. This is not the same as the GP implementation used in the experiments. In the appendix, the authors explain that the GP experiments resample dynamics directly from the posterior, do not project or truncate the samples onto the confidence bound, use a fixed exploration threshold, and fix (M=30). They also approximate Problem (8) using an unconstrained penalty objective with fixed penalty coefficients, and use TS1-style rollouts that inject independent noise at each timestep rather than maintaining pathwise GP function samples.

I view this as a substantive issue, not just a minor implementation detail. The main text says that the GP instantiation “closely aligns with our theory,” and the GP experiments are used to support the claim that dynamics sampling helps ensure safety during learning. But the reported GP experiments do not implement the algorithm covered by the theorem closely enough for the theorem to apply directly. This does not make the empirical results invalid. It does mean, however, that the empirical safety curves should be interpreted as evidence for a practical heuristic inspired by SBSRL, rather than as an experimental demonstration of the proved safety theorem.

A related concern is the claimed extension to posterior resampling. The appendix says that posterior resampling “naturally extends” the safety guarantee by applying Lemma 2 at each resampling step and then taking a union bound over episodes. I do not think this is established as written. Lemma 2 is stated for samples from the prior GP, and the proof uses it to maintain a fixed sampled function that remains close to the true dynamics across episodes after truncation. Posterior resampling breaks this coupling across episodes. A proof for this variant would need a separate posterior small-ball argument, new probability accounting, and a check that the termination bound still applies to the modified algorithm rather than only to the original truncation-based version. The appendix acknowledges that repeated resampling creates a more complex analytical structure, but then asserts the guarantee without giving the proof that would be needed.

Overall, I think the paper has a good idea and a theoretical contribution. My main concern is that the gap between the theorem and the reported experiments is too large. The theoretical face of the paper is a theory-motivated safe exploration algorithm for calibrated GP dynamics models. The practical face is an approximate posterior-sampling, penalty-based, ensemble-style method whose safety is empirical rather than guaranteed, with posterior sampling being perhaps the most substantive of the issues.

Questions
  1. Can posterior resampling be justified rigorously? The current argument that Lemma 2 plus a union bound suffices is incomplete.

  2. Can the authors evaluate the actual theoretical algorithm? An experiment using prior samples, truncation/projection into confidence sets, the prescribed sample/tightening relation, and exact or near-exact constrained optimization would clarify whether the theory-backed algorithm is practical. Alternatively, a detailed ablation separating prior sampling, posterior resampling, truncation, TS1 particles, and penalty constraints would help.

  3. How should readers interpret safety in the experiments? Please report maximum per-seed violations, violation counts, and possibly per-trajectory cost distributions, not only mean or standard deviation/percentile intervals. This is especially important because the formal constraint is on expected accumulated cost, while the motivating applications involve physical collisions and obstacles.

Limitations

Partially addressed. The authors do acknowledge the finite-horizon episodic setting and the fact that the work uses expected accumulated cost rather than state-wise high-probability safety. However, the limitations section should also explicitly discuss the strong prior-calibration requirements, the lack of guarantees for the deep-ensemble implementation, and, most importantly, the mismatch between the theory-backed algorithm and the GP implementation used in the experiments.

Final justification

In their rebuttal, the authors largely addressed most of my concerns. The final version must implement the revisions and additions discussed in the rebuttal and acknowledge the limitations and caveats too. With that I think the paper is solid and valuable to NeurIPS audience. I have increased my score to 5.

Formatting concerns

N/A

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank you for your thorough evaluation of our work. Please find below our response.

This is a thoughtful and technically rich paper on an important problem. I find the basic setup compelling. In this branch literature on safe exploration it is often assumed that the cost function and the budget are known, while the harder issue is that whether a new policy actually satisfies the budget, which in turn depends on the dynamics, which are unknown. SBSRL tackles this by testing candidate policies against several sampled dynamics models, rather than only evaluating them under the posterior mean. This is an appealing way to approximate the much harder worst-case safety problem over all plausible dynamics. Figure 1 also does a good job of showing the main idea: a policy is rejected if it violates the tightened constraint under any of the plausible sampled rollouts.

Thank you for highlighting these strengths of our work!

Can posterior resampling be justified rigorously? The current argument that Lemma 2 plus a union bound suffices is incomplete. ... Lemma 2 is stated for samples from the prior GP...

Thank you for bringing up this nuanced point.

Lemma 2 in our paper is stated for a single set of prior samples. Posterior resampling can nevertheless be handled using Theorem 1 of [1], which allows us to account for a GP conditioned on observed data.

The only technical distinction is that the lower bound on the number of samples MnM_n should be computed from the observed history before sampling at episode nn, so it is not a deterministic number known before learning. Choosing δn>0\delta_n>0 with ∑n=0nˉδn≤δ\sum_{n=0}^{\bar n}\delta_n\leq\delta, [1] gives a finite sample count MnM_n for which the posterior sample set contains a ζ\zeta-close path except with probability δn\delta_n. A union bound therefore gives a close path at every n≤nˉn\leq\bar n with probability at least 1−δ1-\delta; crucially, the proof of finite-time termination of Theorem 2 is independent of how we sample (it only depends on the exploration constraint): thus, a finite nˉ\bar n can be computed a priori (cf. Eq. 16), making δn\delta_n bounded away from 00 and MnM_n finite.

Since every posterior sample is first clipped to the initial envelope F0B\mathcal F_0^B, Assumption 3 still ensures that the sampled safety constraints remain feasible, so the algorithm cannot terminate earlier because of them (cf. Appendix A.4).

Based on your suggestion, we have added this formal argument in Appendix A. Thank you again for pointing this out!

Can the authors evaluate the actual theoretical algorithm?

Thank you for raising this point. We agree that the original practical implementation deviates in certain respects from the theoretical algorithm. In this work, we aim to use our theoretical guarantees to support and motivate practical scalable implementations drawing on the underlying algorithmic principle that enables our theory. Based on this question, we ran our GP experiments with a variant closer to the theoretical algorithm. Specifically, it draws MM approximate global GP paths from the prior using the decoupled Matheron construction of [2], fixes these paths throughout learning, and recursively clips them using the posterior GP confidence sets. We compare this with posterior path resampling with truncation and with the original TS1 marginal-particle implementation.

All variants use the same iCEM planner and fixed penalty formulation, controlling for the effects of the numerical solver and allowing us to focus on the core contribution of this work.

As shown below, the prior-path variant has zero observed violations in all logged training and evaluation trajectories and performs comparably to the posterior paths and TS1 variants.

Task Method MM Reward Average. eval. violation Max eval. violation # Violating eval. trajectories Training violation
Pendulum Prior paths + truncation 30 −190.26±1.11-190.26\pm1.11 00 00 00 00
Posterior paths + truncation 30 −195.62±7.03-195.62\pm7.03 00 00 00 00
TS1 1 −188.16±3.86-188.16\pm3.86 -- -- -- 0.0452±0.10110.0452\pm0.1011
TS1 30 −185.46±2.56-185.46\pm2.56 -- -- -- 00
ActSafe 30 −193.02±6.05-193.02\pm6.05 -- -- -- 0.0229±0.05120.0229\pm0.0512
CartPole Prior paths + truncation 30 −274.78±1.21-274.78\pm1.21 00 00 00 00
Posterior paths + truncation 30 −275.07±1.05-275.07\pm1.05 0.0057±0.01270.0057\pm0.0127 0.0254±0.05680.0254\pm0.0568 0.40±0.890.40\pm0.89 00
TS1 1 −274.07±1.99-274.07\pm1.99 -- -- -- 0.4911±1.09810.4911\pm1.0981
TS1 30 −274.80±1.21-274.80\pm1.21 -- -- -- 00
ActSafe 30 −274.25±1.74-274.25\pm1.74 -- -- -- 0.3029±0.67730.3029\pm0.6773

Based on your comment, we include this additional variant in our paper, showing that it performs comparably to the more practical implementations; we also revise the description of the original TS1 implementation accordingly.

How should readers interpret safety in the experiments?

Thank you for raising this question.

We highlight that our notion of safety follows the classical CMDP formulation [3]. While this formulation bounds the accumulated costs over trajectories in expectation (Equation 3), it is flexible (e.g. see [4]), has been extensively studied and motivated in the literature [5] and integrates well with existing deep RL machinery. Please note that developing rigorous theoretical results for the state-wise safety setting typically requires making strong assumptions on the dynamics and noise distributions. Given this interpretation, we develop an algorithm that maintains safety in every iteration (i.e. satisfies the constraint, Equation 4) with high probability. The interpretation here is that even though different agents may draw different samples, with high probability, the expected accumulated costs will be upper-bounded by the budget. Based on this question, we clarify this point in the discussion of Theorem 1. In the experiments above, we therefore report the average accumulated cost over finitely many evaluation trajectories as a Monte Carlo estimate of the expectation constraint. Based on your suggestions, we also complement this data with training costs and violation counts. All table entries report the mean ±\pm std across seeds. We will include the complete tables with per-seed violations in the camera-ready version.

We hope our responses adequately address your concerns. We would be grateful if you considered revising our score, and we remain happy to answer any open questions. We thank you again for your constructive feedback and for taking the time to help us improve our work.

[1] Prajapat, Manish and Köhler, Johannes and Lahr, Amon and Krause, Andreas and Zeilinger, Melanie N. "Finite-Sample-Based Reachability for Safe Control with Gaussian Process Dynamics". arXiv preprint 2505.07594. 2025.
[2] Wilson, James T. and Borovitskiy, Viacheslav and Terenin, Alexander and Mostowsky, Peter and Deisenroth, Marc Peter. "Efficiently sampling functions from Gaussian process posteriors". Proceedings of the 37th International Conference on Machine Learning. 2020.
[3] Altman, E. "Constrained Markov Decision Processes". 1999
[4] Curi, Sebastian, Armin Lederer, Sandra Hirche, and Andreas Krause. "Safe reinforcement learning via confidence-based filters." In 2022 IEEE 61st Conference on Decision and Control (CDC), pp. 3409-3415. IEEE, 2022.
[5] Gu, Shangding, Long Yang, Yali Du, Guang Chen, Florian Walter, Jun Wang, and Alois Knoll. "A review of safe reinforcement learning: Methods, theories, and applications." IEEE Transactions on Pattern Analysis and Machine Intelligence 46, no. 12 (2024): 11216-11235.

Authors · CommentOpenReview ↗

Follow up

Dear Reviewer,

We wanted to follow up before the discussion period ends on August 3.

We would be very happy to clarify any remaining questions. If you don’t have any additional concerns, we would like to kindly ask you to reconsider increasing the score.

Thank you again for taking the time to carefully review our paper!

Reviewer DfcF · CommentOpenReview ↗
  1. The response largely addresses my concern about posterior resampling.The remaining caveat is that the result applies to posterior function/path samples from the GP. It does not automatically justify the TS1 marginal-particle approximation used in the original GP experiments, where next states are sampled independently from N(μn,σn2)\mathcal N(\mu_n,\sigma_n^2) at each time step rather than maintaining coherent path-wise GP samples. But I'm ok with the current state of affairs.

  2. The reported comparable rewards and zero observed violations make the empirical story much stronger. I would still note that all variants use iCEM and a fixed penalty formulation rather than exact constrained optimization, so the theorem still does not literally certify the experimental runs, but the main sampling/truncation mismatch is largely addressed.

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

Missing a submission?

Loading the discussion…