Dyna-Style Safety Augmented Reinforcement Learning: Staying Safe in the Face of Uncertainty
Artur Eisele, Bernd Frauenknecht, Friedrich Solowjow, Sebastian Trimpe
EWRL 2026 Workshop
TL;DR. Dyna-style Safety Augmented Reinforcement Learning (Dyna-SAuR) jointly learns an uncertainty-aware safety filter and a control policy, enabling safe exploration.
Abstract. Safety is a key problem in reinforcement learning, especially during exploration. While safety filters are promising to address this issue, they are ill-suited for high- dimensional systems with unknown dynamics. We propose Dyna-style Safety Augmented Reinforcement Learning (Dyna-SAuR), a novel algorithm that learns a control policy as well as a safety filter requiring minimal domain knowledge by leveraging a learned uncertainty-aware dynamics model. A novel filter learning formulation requires the filter to avoid failures and areas of high model uncertainty. As joint deployment of the control policy and filter allows to safely collect data and improve the dynamics model, certain areas grow and filter conservatism decreases over time. Dyna-SAuR reduces failures compared to established safe RL baselines by two orders of magnitude on goal-reaching CartPole and MuJoCo Walker.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
There was Limited discussion, but since all 3 reviewers agree it could be accepted, it was not strictly needed.
Remaining questions that would be great to address in the final version (if accepted)
- The authors justify their choice of two mains as one is goal-based an the other a complex multi-dimensional domain. It would help to make sure the paper doesn't over claim based on the results from just these two tasks.
- I'd like to see some more discussion of how accurate the learned transition model has to be / how accurate the uncertainty measurements need to be in order for the method to work well. Are there cases where the uncertainty measurements could be very incorrect, resulting in poor performance?
- It would help to include formal pair-wise statistical significance tests to convince readers the method does indeed outpuerform others (giving p-values) while accounting for skewed distributions.
Final justification
See above.
- Final justification
- See above.
Read meta-review
Meta-review
There was Limited discussion, but since all 3 reviewers agree it could be accepted, it was not strictly needed.
Remaining questions that would be great to address in the final version (if accepted)
- The authors justify their choice of two mains as one is goal-based an the other a complex multi-dimensional domain. It would help to make sure the paper doesn't over claim based on the results from just these two tasks.
- I'd like to see some more discussion of how accurate the learned transition model has to be / how accurate the uncertainty measurements need to be in order for the method to work well. Are there cases where the uncertainty measurements could be very incorrect, resulting in poor performance?
- It would help to include formal pair-wise statistical significance tests to convince readers the method does indeed outpuerform others (giving p-values) while accounting for skewed distributions.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This manuscript introduces Dyna-SAuR, a Dyna-style model-based RL algorithm that targets training-time safety which is minimizing failures incurred during learning rather than only for a converged policy. The main idea is that safety and model certainty can be merged: the method jointly learns a control policy and a state-dependent hyperplane-based action projection safety filter, both supported by an uncertainty-aware probabilistic-ensemble dynamics model, and trains the filter entirely inside the learned model to keep the system within a certain safe set that avoids both genuine failure states and regions where the model is uncertain. The contribution rests on three elements: 1) considering viability together with the uncertainty of the dynamics model via an RL-based approximate viability kernel; 2) a compact hyperplane action space with a bijective map to discriminating hyperplanes that intersect the bounded action space, and 3) a data-shaping scheme that oversamples informative initial states and approximates the filter MDP's stochasticity using temporally-correlated pink noise. Because the filter is conservative where the model is unreliable, deploying it lets the control policy safely collect data that expands the certain set and relaxes the filter on the next iteration. Empirical evaluations on CartPole and MuJoCo Walker, against PPO-Lagrangian, DH-RL, and Infoprop-Dyna demonstrate that Dyna-SAuR matches or exceeds the control performance of the safe-RL baselines while reducing accumulated failures during training by at least two orders of magnitude.
Strengths and weaknesses
Strengths:
-
The manuscript addresses an important and practical problem and makes a genuine conceptual advance. To my knowledge, it is the first method to train viability-based safety filters for systems without ground-truth dynamics or a pre-specified set of viable states, by coupling viability with model uncertainty. The framing is principled and directly motivates the algorithm's outer loop.
-
The manuscript provides clear theoretical analysis that underpins the design. The safety filter MDP construction is an interesting idea, while Theorem 5.1 and Lemma B.1 ground the action-space reformulation in theory rather than presenting it as an ad-hoc trick.
-
The manuscript demonstrates strong, consistent safety improvements with a methodologically solid evaluation: 10 seeds, 99% confidence intervals, an ablation removing each of the three components. The authors are also honest about negative findings, noting that certain-set expansion stagnates on the higher-dimensional Walker.
Weaknesses:
-
The safety guarantee is only as good as the epistemic-uncertainty estimate, which is the load-bearing assumption of the method and is currently under-examined. Everything hinges on a certain set defined by an entropy threshold, yet probabilistic-ensemble uncertainty is well-known to be miscalibrated; an overconfident model in an unsafe region would admit it into the safe set and the filter would permit failures. There is no calibration analysis, no sensitivity study on lambda_1, and no stress test of the "model is confident but wrong" failure mode.
-
The fairness of the safety accounting is unclear. Dyna-SAuR and Infoprop-Dyna receive an offline dataset D_0, while PPO-Lagrangian and DH-RL are warmstarted with the same amount of online interactions before counting violations. It is not stated whether failures incurred while collecting D_0 (or during warmstart) are counted for any method. If the headline claim excludes the unsafe data-collection phase that bootstraps every method, the comparison's interpretation changes materially.
-
The filter-evaluation gate is not clear. Algorithm 1 loops while filter evaluation is not successful, but the success criterion, whether the loop terminates, and whether a filter passing model-based evaluation can still be unsafe in the real environment, are not addressed in the main text.
-
Only two environments are shown, and the higher-dimensional one (Walker) is precisely where the central mechanism stagnates, so the claim of scaling beyond most viability-based filters rests on a single 17-D task.
-
The compute cost of the method is neither analyzed nor compared. By design, both the control policy and the safety filter are retrained from scratch at every Dyna iteration, and each filter-learning phase additionally reinitializes its Q-functions, policy, and replay buffer. Total training cost therefore scales with the number of Dyna iterations, yet neither this count nor the per-iteration cost is reported in the main text.
-
The related-work treatment of the safety-layer / action-correction line is incomplete. A seminal and closely related prior work, Dalal et al. (2018), "Safe Exploration in Continuous Action Spaces," is not cited, even though it shares Dyna-SAuR's central template: a safety layer inserted between policy and environment that corrects actions during learning, using a linear-in-action constraint model fit from logged data, to maintain near-zero violations while training.
Questions
-
Are failures incurred during collection of , and during the warm start given to PPO-Lagrangian and DH-RL, counted in the reported accumulated failures, and could you provide a table separating failures during bootstrap from failures during learning for all methods?
-
How sensitive is safety to lambda_1, and what happens when the ensemble is overconfident in an unsafe region? An ablation sweeping lambda_1 plus an ensemble calibration plot would directly answer whether the safety mechanism is robust or brittle.
-
The abstract and section 6 claim scaling beyond existing viability filters, yet the only high-dimensional task is where certain-set expansion stagnates; could you provide results on at least one additional/higher-dimensional safety task (e.g., another MuJoCo task or Safety-Gym), or otherwise temper the scalability language?
-
What is the success criterion for filter evaluation (Algorithm 5)? Is the inner while-loop guaranteed to terminate? Since evaluation occurs inside the learned model, what prevents a filter from passing it while being unsafe in the real environment? Surfacing these in the main text would improve soundness.
-
Could you quantify the compute overhead of the retrain-from-scratch design: the number of Dyna iterations, the per-iteration training cost, and a wall-clock (or GPU-hour) comparison of Dyna-SAuR against PPO-Lagrangian, DH-RL, and Infoprop-Dyna on both tasks?
Limitations
yes
Final justification
The rebuttal satisfactorily clarified the failure accounting, filter stopping criterion, computational cost, and relationship to prior work. The main remaining concerns are the method’s dependence on potentially miscalibrated uncertainty estimates and scalability beyond the evaluated tasks. These limitations prevent a stronger score but they do not undermine the original and well-motivated method or its substantial empirical safety improvements. I therefore maintain my score of 5 (Accept)
Formatting concerns
I did not notice any formatting issues.
3 comments
Thank you for the rebuttal, which clarified most of my concerns. My main remaining concern is the dependence of safety on uncertainty estimation; please clearly acknowledge the lack of formal guarantees and discuss possible miscalibration. I also suggest tempering the scalability claims given the limitations observed on Walker. Overall, the rebuttal strengthened the paper, and I maintain my score.
We thank the reviewer for the constructive discussion and for maintaining their positive assessment. We agree with the remaining points and will address them in the camera-ready version.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors address the problem of safety exploration during RL training. The paper proposed Dyna-Style Safety Augmented Reinforcement Learning, a model-based RL setting that learns an uncertainty-aware dynamic model, a safety filter and a task policy. The main idea is that the learned dynamic model is able to distinguish between safe/unsafe and certain/uncertain regions. Using this information, the authors learn a classifier to distinguish between viable and non-viable actions, projecting on the latter whenever a non-viable action is proposed by the model during training. The method is evaluated in MuJoCo Walker and CartPole matching performances while reducing training-time failures by two orders of magnitude.
Strengths and weaknesses
Strenghts
[s1] Clarity. The paper is clear and well presented. Motivation, hypothesis and proposed methods are described clearly. The construction from viability theory to filter MDP construction is logical and lets the reader easily understand each piece of the puzzle.
[s2] Method. The proposed solution is elegant and effective. The authors provide experimental evidence that their method can largely reduce failures during training.
[s3] Open source The author shared their code to reproduce the experiments.
Weaknesses
[w1] Soft guarantess. The authors introduced the viability theory as a method, but their proposed solution is a soft version of it since it is built through an RL pipeline where the safety is introduced by penalty and so the safety guarantee is obtained in expectation (equation 15).
[w2] Lack of Experiment validation. The authors provide experimental validation in two relatively simple examples (CartPole and MuJoCo Walker). The claim of the work is quite bold and needs to be validated through a richer set of complex experiments. Also, they stated that major limitations of previous methods are "access to a simulator and scaling of the method", but they do not explicitly show that the proposed solution mitigates those. For example, it would be interesting to find a setting where really failing during training has a catastrophic implication.
[w3] The data-shaping heuristics make sense, but weaken the generality a lot and introduce several arbitrary choices rather than systematic ones, that make the contribution of the paper less strong.
[w4] Most of the ablation is on the filter side, but there is a heavy dependence on the dynamic model and the initial buffer. It would be great to expand/comment on this matter.
Questions
[q1] The work is based on the fact that interaction data expands a certain area and this yield to less restrictive safety filters. Is convergence guaranteed? Are there cases where the filter constrains the control policy to an invariant set such that there is no expansion of data?
[q2] The comparison is with a Safe (in expectation) Model-free RL, a Safe (in filter) Model Free-RL and a Model-Based RL without a filter. Is there any Safe (in filter) Model-Based RL algorithm that you can compare with?
[q3] A big part of the method relies on how well the dynamic model is learned and can provide consistent uncertainty guarantees and updates. Did the authors run a diagnostic on this?
[q4] Are the authors able to provide more high-dimensional experiments? (navigation, for example)
[q5 related to w1] Are there any failure modes of the learned hyperplane filter pipeline? The authors rely on the viability theory, but there is no hard guarantee due to the learned hyperplane structure. The filter is learned through an RL pipeline, so in a broad sense, this can be seen as safety in expectation, right?
Limitations
yes
Final justification
The authors addressed major concerns in the rebuttal phase
Formatting concerns
none
3 comments
Rebuttal
We sincerely thank the reviewer for their valuable feedback.
W1 (Soft safety guarantees): That is correct. We state that Dyna-SAuR approximates a rigorous safety filter and does not itself yield hard guarantees. As discussed in our related work section, we aim to balance a notion of safety from viability theory that is substantially stronger than common constrained MDP (CMDP) formulations with the scalability of a data-driven approach. To the best of our knowledge, we are the first to propose such a method, which we show to be safer than CMDP approaches while scaling to similar problems.
W2 (Complexity of the Experiments):
Task Difficulty: We respectfully disagree that the evaluation tasks are simple. In the state-wise constrained variants we consider, the intrinsic instability of CartPole and Walker makes the distinction between viable and unviable states the central difficulty. The set of states from which a violation is unavoidable is substantially larger than the failure set itself. Common safe exploration benchmarks deal with stable, quasistatic dynamics, e.g., the PointGoal and CarGoal navigation tasks of Safety Gym [1], or impose constraints that are decoupled from unstable dynamics, so that the constraint boundary can largely be handled myopically. In both cases, the set of unrecoverable (unviable) states nearly coincides with the constraint-violation (failure) set, and the distinction a filter has to learn is far easier to make.
Our state-wise safety constraints are deliberately coupled to the dynamics. In our constrained goal-reaching CartPole, the agent has to reach the goal position quickly, which incentivizes operating near the admissible pole angle boundary and approaching the track bound aggressively before decelerating within a small positional safety margin. Performance and constraint satisfaction are therefore in direct tension along the entire trajectory. In our constrained Walker, the upper bound on the torso height means that once the agent is airborne, no corrective action can prevent a violation caused by a prior locomotion decision. Safe behavior thus requires anticipatory control, precisely the viability distinction the filter has to learn, and cannot be achieved by reactive constraint enforcement.
Simulator Access: The safety filter is trained exclusively on rollouts of the data-driven dynamics model (Algorithm 4). No environment interaction is spent on filter learning, and no failures can occur during it. This is the concrete difference from DH-RL [2] and other safe RL methods [3,4], which learn their filters through interaction with a simulator (the environment) and therefore implicitly assume an unlimited failure budget during filter synthesis. Dyna-SAuR requires only prior data and a specification of the failure set.
Scaling: Given our assumed prior knowledge and the requirement of training-time safety, we are not aware of any other method based on viability theory that scales to problems of the dimensionality of Walker with 17 state dimensions and 6 action dimensions (see also Table 1 in the rebuttal for reviewer tdrV). Methods that scale to such problems typically build on the weaker notion of safety provided by constrained MDP (CMDP), which we outperform substantially in the experimental section. Consequently, we consider the mentioned limitations of simulator access and scaling to be addressed by Dyna-SAuR.
Catastrophic Failure Settings: We agree that avoiding cases of catastrophic failures on hardware is the relevant motivation, and we regard constrained Walker as an informative proxy for humanoid walking. Hardware capable of bipedal locomotion can typically absorb on the order of ten falls, but it cannot absorb the several hundred falls incurred by state-of-the-art CMDP methods in our experiments. Dyna-SAuR incurs approximately four failures on average in Walker over the full training run. We do not claim that this suffices for safe learning directly on hardware; the limitations discussed in Section 8, in particular exploration efficiency in high dimensions and extensions beyond control-affine systems, would need to be addressed first, but the gap between four and several hundred failures suggests that this type of approach is a promising direction for safe RL and a useful contribution to the field.
W3 (Data Shaping): We respectfully disagree that the data-shaping heuristics weaken the generality of the method, since the underlying considerations are not tailored to a specific task but address general questions of obtaining an informative data distribution, especially in the face of the stochasticity introduced by the control policy.
In Figure 7, we present Dyna-SAuR without the data-shaping heuristic. Data shaping improves performance, but the core contribution is the efficient filter action-space reparametrization, which generality is unaffected by it.
W4/Q3 (Model Validation) [similar to reviewer 7qfY W3]:
We agree that Dyna-SAuR depends directly on the accuracy of the dynamics model and on the initial buffer, we investigated this empirically.
To generate long and accurate predictions with the learned probabilistic ensemble, we rely on Infoprop [5]. Infoprop decomposes aleatoric and epistemic uncertainty and filters out the epistemic component arising from a lack of data over the course of a rollout.
We want to be clear that Infoprop provides no formal guarantees on the uncertainty estimates themselves. However, Infoprop has been shown to produce accurate long-horizon rollouts across a diverse set of environments [5].
We verified the reliability of the rollouts empirically for our benchmark tasks by comparing filtered model rollouts against rollouts in the environment from the same initial states. The model rollouts track the ground truth closely over the horizons used during filter training. We will add a figure showing these comparisons to the Appendix.
Q1 (Expansion of the Sufficiently Certain Set): We cannot provide formal guarantees on the expansion of the certain area. However, Figure 6 shows that the sufficiently certain set grows over the Dyna-SAuR iterations, which is the mechanism by which the filter becomes less conservative. Combined with the low number of failures in Figure 5, this indicates that the uncertainty estimates are informative enough for the filter to rely on.
Q2 (Comparable Work): We understand the comparisons referred to as follows: "Safe (in expectation) model-free RL" as PPO-Lagrangian, "Safe (in filter) model-free RL" as DH-RL, and "Model-based RL without a filter" as Infoprop.
We emphasize that DH-RL, whose filter parametrization we improve upon, was given access to the simulator to learn its safety filter, and the violations incurred during that phase were not counted in the reported results. In this sense, it is already a stronger baseline than a method that learns both a model and a filter.
Beyond this, we are not aware of further algorithms designed for state-wise safety-constrained tasks with unstable dynamics that also permit safe exploration during training just from prior data. We are further not aware of viability-based methods such as control barrier functions or Hamilton-Jacobi reachability approaches that scale to the presented tasks [6]. If the reviewer has a specific algorithm in mind with publicly available code, we will, if feasible, benchmark it during the rebuttal period.
Q4 (Navigation Experiments): As already stated in W2 the difficulty of typical safe navigation benchmarks arises neither from unstable dynamics nor from dynamics-coupled constraints but from the partial observability of the environment. This difficulty is orthogonal to our approach. Also, we consider Walker (17 state dimensions, 6 action dimensions) high-dimensional compared to other viability-based work, which considers at most 9 dimensions in state space and at most 3 in action space (see our answer to tdrV W4/Q3, Table 1).
Q5 (Failure Modes): Our algorithm has two main failure modes. The first is insufficient prior data: the initial model is then too inaccurate to yield a safety filter that keeps the RL agent safe in the real environment. The second concerns non-control-affine dynamics, where success depends on whether a hyperplane can conservatively approximate the ground-truth boundary between viable and unviable actions.
Unlike CMDP-based work, we do not address safety in expectation in the sense of constraining the expected cost along trajectories to stay below a threshold. We address state-wise safety, where safety means not entering a specified failure set at any state along the trajectory. What can be seen as an expectation-based statement is the lower bound on the expected time to failure obtained from the safety filter action value.
[1] Ray et al.; Benchmarking Safe Exploration in Deep Reinforcement Learning; 2019
[2] Lavanakul et al.; Safety Filters for Black-Box Dynamical Systems by Learning Discriminating Hyperplanes; 2024
[3] Fisac et al.; Bridging Hamilton-Jacobi Safety Analysis and Reinforcement Learning; 2019
[4] Hsu et al.; ISAACS: Iterative Soft Adversarial Actor-Critic for Safety; 2024
[5] Frauenknecht et al.; On Rollouts in Model-based Reinforcement Learning; 2025
[6] Tomlin et al.; Hamilton–Jacobi Reachability: Some Recent Theoretical Advances and Applications in Unmanned Airspace Management; 2018
The authors have provided a detailed and thoughtful rebuttal. I appreciate the clarifications and the effort invested in addressing my comments. Accordingly, I have decided to raise my score.
We thank the reviewer for the positive assessment and are glad our responses addressed the concerns raised.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper addresses the problem of safe exploration in reinforcement learning. In particular, it addresses the problem of how to train an RL agent while ensuring that the agent does not enter fail states during learning. The paper proposes "Dyna-SAuR" (Dyna-style Safety-Augmented RL), an approach that uses a data-learned model to build a "safety filter" that ensures (to some extent) that the agent's behavior policies during learning do not lead the system to fail states.
The proposed approach roughly works as follows: (i) given a prior dataset, a dynamics model is learned; (ii) the learned model as well as prior-knowledge of fail states is used to identify a set of states for which a policy exists that is able to maintain the system in safe (and known) states within a horizon of T steps with high probability; (iii) A filter is learned that keeps trajectories within such set; (iv) Policy optimization is then performed under this safety filter.
The results show that the proposed approach leads to a significant decrease in training time failures.
Strengths and weaknesses
Strengths:
The problem addressed is interesting and the paper provides an interesting connection between viability theory and RL. The results showcase a significant reduction in the number of times that failure occurs during training. The paper is well-organized and clearly written.
Weaknesses:
There are a number of aspects that I would have liked to see better discussed. Some of these are briefly alluded to in the appendices, but the main body of the paper would still benefit from a deeper discussion of these aspects. In particular:
-
The paper assumes that an initial dataset is available, from which an initial model is built. In other words, the whole proposed approach bootstraps on this initial dataset which, I am assuming, will probably be a very significant (if not the most significant) part of the data used for training. However, there are no guarantees that this dataset was collected in a safe manner - which, it seems to me, sort of defeats the purpose of the paper. The appendices mention the use of stabilizing controllers for data collection, and refer that "safety without any prior knowledge is an ill-defined problem", but I think that this discussion is important enough to make its way to the main body of the paper.
-
Connected to this aspect is the fact that the proposed approach - implicitly, it seems to me - assumes that there is knowledge of safe-states and fail-states. This is, once again, tied to the issues of prior knowledge and, in settings where we do RL from scratch, it is worth discussing whether it is reasonable to assume that this knowledge was obtained, for example, from the initial data.
Overall, it seems to me that the whole approach is heavily dependent on prior knowledge (data-based or otherwise), and this should be discussed more explicitly.
- The paper makes use of the idea of sufficiently certain set, which seems to rely on the entropy of the (learned) next-state distribution. There is a reference to the disagreement of an ensemble of predictors, but I did not understand how/where that comes into play. It seems to me that only the entropy of the next-state distribution is considered in the paper, which seems to put together epistemic and aleatoric uncertainty. How does such definition work for scenarios with a high degree of stochasticity (i.e., a lot of aleatoric uncertainty)? And does it have a harmful impact in terms of exploration?
Other smaller aspects that also grant a discussion:
-
How sensitive is the method to the horizon T? How can this horizon be set in a domain for which, once again, little prior knowledge exists?
-
Hoe sensitive is the method to setting up the parameter lambda_1?
-
What is the computation/data overhead induces by the learning of the safety filter - which, if I understood correctly, is cast as an auxiliary RL problem that must also be solved?
-
The filter is represented as a half-plane constraint in the action space. How reasonable is this? If I understand correctly, the paper mentions, in the end of Section 2.2, that such half-plane constraint makes sense for control-affine dynamics, but I would like to understand (i) whether the scenarios considered in the paper exhibit, in fact, control-affine dynamics; (ii) how restrictive is this requirement, in general; and (iii) What is the impact of using the proposed approach in domains that are not control-affine.
Questions
See weaknesses above.
Limitations
The paper does not make a careful discussion of the limitations of the proposed approach. While the conclusion section makes some allusions to directions for future work, as a discussion of possible limitations of the proposed approach is very superficial. I imagine that discussing some of the issues pointed out above would already help in gaining a clear picture of some of the limitations and overall applicability of the proposed approach.
Final justification
The authors have provided adequate clarifications to the issues raised and promised to further improve some of the discussion in the paper, making it - in my opinion - suitable for acceptance.
Formatting concerns
Not applicable.
1 comment
Rebuttal
W1 (Initial Dataset):
We thank the reviewer for this point and agree that the discussion belongs in the main body rather than the Appendix.
Safe learning without prior knowledge is ill-posed [4], and we do not claim otherwise. The relevant question is what type of prior knowledge is required and how much domain knowledge it demands from the practitioner. Existing safe RL methods typically assume a warm-up phase in which violations are not counted, a nominal dynamics model, or a safe backup controller available throughout learning [4]. Instead, we require an off-policy dataset collected once, with no access to the data generating controller during training (Appendix D.1).
Having access to an initial dataset is a reasonable assumption, as stabilizing behavior is usually easier to obtain than task-solving performance. An LQR can hold the CartPole at its upper equilibrium but cannot reach the goal at the track limits, which is what makes the task hard. A standing controller for a humanoid with modest disturbance rejection is a long way from a running gait. Where no such controller exists, teleoperation or logged data from any earlier deployment serves the same purpose. In each case, the prior data comes from behavior that is easy to make safe precisely because it is not attempting the hard task. Once the dataset exists, Dyna-SAuR needs nothing more than a specification of the failure set.
Our safety claims cover the learning phase, not the collection of the initial dataset. That phase is decoupled from the algorithm and happens under conditions the practitioner controls, and whether the data contains violations does not affect the method. How much of the total data the initial dataset makes up depends on the system. For CartPole, it is 30k transitions against 400k online. For Walker, it is 4M transitions against 120k online. Walker needs that much because the filter certifies half-spaces of a 6-dimensional action space, which requires dense action coverage in a subset of the state space.
More prior data results in requiring fewer Dyna-SAuR iterations and more permissive safety filters. However, the prior data for Walker contains no walking gait. Figure 6 shows the final policy operating outside the support of the prior data.
W2 (Safe States):
Specifying the failure states, and with them their complement, the safe states, is analogous to specifying a reward function. The engineer defines undesired behavior as a function of the state space in the same way they define desired behavior as a reward. Both are design choices made before learning starts, and neither requires knowledge of the dynamics. In our experiments, the failure sets are box constraints on interpretable quantities: cart position and pole angle for CartPole, torso height and head angle for Walker (Appendix D.2).
What is actually hard, and what no box constraint describes in our environments, is the boundary inside the safe set past which failure can no longer be avoided. A robot that stumbles in a way it cannot recover from has not yet failed. It is in a safe but unviable state because it will inevitably transition into the failure states. All safe states in which the robot can recover are called viable states. We discuss this terminology using the sloped-track example in Appendix E.2 and Figure 11.
Discriminating viable states from unviable ones is the key challenge for the considered tasks with unstable dynamics, CartPole and Walker. Most viability-based approaches require the boundary between viable and unviable states as input to the algorithm either in the form of a known viability kernel, a control barrier function, or a nominal system model to compute it from. In contrast, Dyna-SAuR learns this boundary from scratch given the initial dataset discussed above and a definition of what eventual failure looks like, where a very rough definition suffices.
W3 (Distinguishing Uncertainty):
We understand how the brief explanation can be misleading. The question suggests the conditional entropy was read as capturing total predictive uncertainty (aleatoric + epistemic), which it does not. While we cannot fully describe the Infoprop mechanism in the main body due to space constraints, we will emphasize the following points in a revised version.
Probabilistic ensembles (PE) have members each predicting a normal distribution over the next state. The idea is that ensemble members converge to identical predictions within the data support, while the members' predictions disagree in out-of-distribution (OOD) settings. This disagreement increases the predictive uncertainty of the overall PE model in the form of epistemic uncertainty. Infoprop separates aleatoric uncertainty from epistemic uncertainty. A valid realization of the aleatoric noise process is drawn, and the uncertainty about that realization due to epistemic uncertainty is captured by the conditional entropy. Thus, high aleatoric uncertainty does not contribute to the conditional entropy and is not penalized in the exploration behavior of the method.
Expressing epistemic uncertainty in the form of this conditional entropy lets accumulated rollout uncertainty be written as a sum of single-step entropies with a clear information-theoretic interpretation [1]. Thus, the rollout mechanism has two (auto-tuned) thresholds, one for single-step uncertainties indicating OOD scenarios and one for accumulated uncertainty. We consider reaching an OOD state a failure, forcing the method to stay in the sufficiently certain set. When the accumulation threshold is triggered, we truncate the rollout since longer rollouts are unreliable but we do not consider this a failure.
W4 (Horizon ):
is not a hyperparameter of Dyna-SAuR but is induced by the safety filter discount factor that defines its expected value. The role of is characterized by Lemma B.3, where the safety filter action value function lower bounds the expected time to failure . This bound increases for larger values of and decreases for smaller values. We used for all experiments without further tuning.
We ran an ablation for this rebuttal that we will add to the Appendix of a revised version. We observe that lower values of tend to yield a less conservative safety filter and thus higher final control performance, while higher values introduce more conservatism. This behavior is expected, as more conservatism is required for a longer time to failure.
W5 ():
The threshold is not set as a parameter directly but is defined as a quantile of the conditional entropy within the observed data [1]. Consequently, is auto-tuned throughout training. We take the 0.99 quantile for both evaluation tasks without further tuning, and similar ablations have not shown strong sensitivity to the uncertainty cutoff [2]. If the reviewer considers an ablation necessary, we will conduct one and add it to the Appendix.
W6 (Computation Overhead) [similar to tdrV W5]:
The filter is indeed an auxiliary RL problem, solved from scratch in each Dyna-SAuR iteration. In terms of environment data, the overhead is zero. The filter is trained entirely on model rollouts (Algorithm 4), so no environment interaction is spent on it and no failures can occur while it is learned. We spend compute on background planning to avoid dangerous environment interaction.
A single filter training run takes about 40 minutes for CartPole and about 7 hours for Walker, the difference reflecting the 6-dimensional action space the hyperplane has to separate. Total training amounts to 8 GPU hours for CartPole over 10 Dyna-SAuR iterations and 24 GPU hours for Walker over 3, on a single H100 (Appendix D.4). We will add the per-component timing to Appendix D.4. We want to emphasize that the codebase is not optimized for training time.
W7 (Hyperplanes as Safety Filters):
For control-affine dynamics and a single constraint that is relevant in the current state, there always exists a state-dependent hyperplane that separates viable from unviable actions [3]. Its geometric simplicity also makes it a good first step toward learning safety filters for more complex systems.
(i) CartPole is control-affine, while Walker is not, due to its contact dynamics.
(ii) Many control systems without contacts are control-affine, i.e., . Typical RL benchmark examples would be CartPole, Pendulum, Reacher, and Swimmer.
(iii) Walker serves as an example of an application to a non-control-affine system. Dyna-SAuR learns a valid safety filter. However, the filter is more restrictive than necessary, since the hyperplane lacks sufficient representational capacity to serve as an optimal separator. Extending the method to non-control-affine systems means having a more complex separator that requires a more complex parametrization, which we leave to future work.
Limitations:
We thank the reviewer for the important pointers on how to better position our contribution. We would like to use the outcome of this discussion to further strengthen the limitations section in the camera-ready version.
[1] Frauenknecht et al.; On Rollouts in Model-based Reinforcement Learning; 2025
[2] Frauenknecht et al.; Trust the Model Where It Trusts Itself - Model-Based Actor Critic with Uncertainty-Aware Rollout Adaption; 2024
[3] Lavanakul et al.; Safety Filters for Black-Box Dynamical Systems by Learning Discriminating Hyperplanes; 2024
[4] Brunke et al.; Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning; 2022
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the careful reading and the positive review.
Contribution Type:
We would like to clarify the intended contribution type. We selected "General", which we believe is the appropriate category. The core contribution is an algorithm (Dyna-SAuR), including its design decisions (uncertainty-aware viability, compact filter action space representation, RL formulation of filter learning, data-shaping heuristics) and its empirical validation. We build on the core theoretical result of DH-RL [3], namely that state-dependent separating hyperplanes can represent a viability-based safety filter.
W1/Q2 (Sensitivity Lambda 1) [similar to reviewer 7qfY W3 and dr7G Q3]:
We agree that Dyna-SAuR depends directly on the accuracy of the dynamics model and on the initial buffer, we investigated this empirically.
To generate long and accurate predictions with the learned probabilistic ensemble, we rely on Infoprop [1]. Infoprop separates aleatoric and epistemic uncertainty and filters out the epistemic component arising from a lack of data over the course of a rollout. We want to be clear that this provides no formal guarantees on the uncertainty estimates themselves. However, Infoprop has been shown to produce accurate long-horizon rollouts across a diverse set of environments [1].
We verified the reliability of the rollouts empirically for our benchmark tasks by comparing filtered model rollouts against rollouts in the environment from the same initial states. The model rollouts track the ground truth closely over the horizons used during filter training. We will add a figure showing these comparisons to the Appendix.
The threshold λ1 is not set as a parameter directly but is defined as a quantile of the conditional entropy within the observed data [1]. Consequently, λ1 is auto-tuned throughout training. We take the 0.99 quantile for both evaluation tasks without further tuning, and similar ablations have not shown strong sensitivity to the uncertainty cutoff [2]. If the reviewer considers an ablation necessary, we will conduct one and add it to the Appendix.
W2/Q1 (Fairness of the Benchmarks):
Figure 5 does not report failures incurred during prior data collection for Dyna-SAuR or Infoprop, nor those incurred during the warm-start phase of PPO-Lagrangian and DH-RL. Counting of safety violations begins for all methods at the same point: after the warm-start phase for the model-free methods, and after prior data collection for the model-based ones. The warm-start phase comprises as many environment interactions as there are transitions in the prior dataset. Infoprop, being model-based, receives no warm-start phase and is instead given the same prior dataset as Dyna-SAuR to train its initial model.
DH-RL is in fact granted more than this. Before its warm-start phase it additionally interacts with the real environment to train its safety filter, and violations there are not counted either. Only afterwards does it receive the warm-start phase without violation counting for training its control agent under the learned filter. Dyna-SAuR, by contrast, never has access to the policy that generated the prior data and works from an off-policy dataset alone. We will put a stronger emphasis on failure counts in the main body of a revised version.
We would also like to stress that prior data collection is orthogonal to our approach. Whether or not violations occurred while the dataset was produced is irrelevant to Dyna-SAuR itself, since the prior data may equally well be logged data from any behavior policy (see our answer to reviewer 7qfY, W1). We did not log violations during warm-start or prior data collection for any method and therefore cannot report them retrospectively.
W3/Q4 (Stopping Safety Filter Training):
As this is an implementation detail, and given the space constraints of the main paper, we would like to keep the description of safety filter evaluation in Appendix A.2.2.
We use a patience-based stopping criterion for safety filter training, which makes it feasible to train a new safety filter from scratch in each iteration. We compute the average episode length across evaluation rollouts in which proposal actions are filtered by the current safety filter. Training is terminated if the average episode length does not exceed the best value observed so far by a minimum margin for a given number of timesteps, that is, we terminate filter training as soon as no further improvement is observed given the current quality of the dynamics model.
The while loop (Algorithm 1, line 3) therefore terminates eventually, as either the filter stops improving or it reaches the maximum achievable episode length, given by the environment's truncation horizon.
We cannot test the safety filter in the real environment to decide whether it is ready for deployment, since this could lead to safety violations with an untrained filter. The filter therefore has to be evaluated using the learned model. Of course, passing this evaluation in the model provides no formal guarantee of safety in the real environment, which is why we still observe some safety violations in our experiments. Nevertheless, this is the best obtainable safety filter when training relies on model interactions alone.
W4/Q3 (Scalability Language):
As discussed in the limitations (Section 8), the behavior on Walker could potentially be improved further. This is most likely due to the violation of the control-affinity assumption and to the fact that exploring the dynamics model becomes more challenging in high-dimensional spaces, a problem that could be addressed by active exploration. Nonetheless, Dyna-SAuR already scales substantially beyond any viability-based safe exploration method we are aware of. A non-exhaustive comparison is provided in Table 1. Consequently, we consider the scalability statement valid. We are willing to discuss specific formulations the reviewer considers overstated. Unfortunately, we are not able to generate additional results given the brevity of the rebuttal phase.
(Table 1)
W5/Q5 (Computational Overhead) [similar to 7qfY W6]:
We respectfully disagree that the total compute and the number of Dyna-SAuR iterations are absent from the paper. Computation time is reported in Appendix D.4, and the number of executed Dyna-SAuR iterations can be read off from Figure 5 as the number of green dots.
A single filter training run takes roughly 40 minutes for CartPole and roughly 7 hours for Walker, the difference reflecting the 6-dimensional action space over which the hyperplane has to discriminate between viable and unviable actions. In total, training amounts to 8 GPU hours for CartPole over 10 Dyna-SAuR iterations and 24 GPU hours for Walker over 3 Dyna-SAuR iterations, on a single H100 (Appendix D.4). We want to stress that the current codebase is not optimized for runtime.
Table 2 lists the wall-clock times for the benchmarked algorithms.
(Table 2)
We agree that Dyna-SAuR's per-iteration wall-clock times and the wall-clock times of the benchmarks are not yet reported, and we will add them to Appendix D.4.
W6 (Related Work):
We thank the reviewer for pointing us to [8]. We agree that this is work in the space of safe RL where a filter is learned from a data-driven model to provide training-time safety, and we will cite it in our related work section.
The differences from our work are the following. First, their approach relies on a model that is linear in the action and assumes that correcting a single action can always prevent failure in every state. The authors state explicitly that this is only plausible for systems where constraints can be met within one step, which amounts to treating safe and viable states as the same. Dyna-SAuR makes exactly this distinction, and our benchmarks are built such that it matters. Once the Walker is airborne and in an unviable state, no action can prevent the safety violation. The inertia of the CartPole plays a similar role. Second, their model carries no uncertainty estimate and is fixed after pretraining in all reported experiments, so there is no notion of where it can be trusted. Dyna-SAuR uses an uncertainty-aware model, restricts the filter to the certain set, and expands that set with data collected under the filter, which reduces conservatism over iterations.
[1] Frauenknecht et al.; On Rollouts in Model-based Reinforcement Learning; 2025
[2] Frauenknecht et al.; Trust the Model Where It Trusts Itself - Model-Based Actor Critic with Uncertainty-Aware Rollout Adaption; 2024
[3] Lavanakul et al.; Safety Filters for Black-Box Dynamical Systems by Learning Discriminating Hyperplanes; 2024
[4] Suttle et al.; Sampling-based Safe Reinforcement Learning for Nonlinear Dynamical Systems; 2024
[5] Cheng et al.; End-to-End Safe Reinforcement Learning through Barrier Functions for Safety-Critical Continuous Control Tasks; 2019
[6] Kong et al.; Differential High Order Control Barrier Function-Based Safe Reinforcement Learning; 2025
[7] Cohen et al.; Safe Exploration in Model-based Reinforcement Learning using Control Barrier Functions; 2023
[8] Dalal et al.; Safe Exploration in Continuous Action Spaces; 2018