Geraud Nangue Tasse, Tamlin Love, Mark Nemecek, Steven James, Benjamin Rosman · ICLR 2025
An important problem in reinforcement learning is designing agents that learn to solve tasks safely in an environment. A common solution is to define either a penalty in the reward function or a cost to be minimised when reaching unsafe states. However, designing reward or cost functions is non-trivial and can increase with the complexity of the problem. To address this, we investigate the concept of a Minmax penalty, the smallest penalty for unsafe states that leads to safe optimal policies, regardless of task rewards. We derive an upper and lower bound on this penalty by considering both environment diameter and solvability. Additionally, we propose a simple algorithm for agents to estimate this penalty while learning task policies. Our experiments demonstrate the effectiveness of this approach in enabling agents to learn safe policies in high-dimensional continuous control environments.
Summary:
The paper tackles the problem of solving tasks safely using reinforcement learning. The main idea of the paper is to introduce a term to appropriately penalise unsafe behaviour, the analysis of the paper seeks to bound the magnitude of this term to minimise the probability of arriving at an unsafe goal state while achieving the task. To develop this term, the authors establish several objects required to quantify the complexity and "size" of the problem. These two measures are then used to construct the additional reward term to adhere to the safety criterion. It is then shown theoretically that adding a reward term that adheres to certain inequality constraints ensures a high degree of safe behavior.
Soundness:
2
Presentation:
4
Contribution:
2
Strengths:
The paper addresses an important challenge with an intriguing idea. Beyond supplying solely theoretical results, the paper provides a practical method suggested by the theoretical analysis. The results suggest that the method leads to a notable reduction in safety costs which is one of the main stated goals of the paper.
The intuition of the paper is largely clear and most of the non-technical parts are nicely written and overall the concepts well-explained. The authors have included a practical example midway through the paper which is useful for discussing the ideas in a concrete setting and explaining some of the concepts.
Weaknesses:
===Analysis===
A1. Some parts of the paper aren't written with a high level of rigour, for example, the experiments of Section 5 are divided into parts depending on whether the "theoretical assumptions are satisfied" but there is no clear statement as to what exact assumptions this refers to. Additionally, there are a few typos in the mathematical expressions e.g., the argument of the min and max operator should be $s_T$ not $s$. There are other examples and some more technical concerns I have such as the existence of $D$ - I have given more details of this concern below. Other more minor points are as follows:
**In Definition 2 the case of equality is not covered.
**Theorem 1 is a bit pointless - perhaps the authors could consider writing it as a note within the text.
A2. I am finding it difficult to understand how the object in Definition 3 could be computed. Although the restriction to proper policies ensures the goal state is reached in a finite number of time-steps, in a given environment, for any deterministic policy I may be able to increase the number of time steps it takes to reach the goal by for example asking the agent to go back on itself before going forward again. In this case, it is unclear whether such a maximum exists (although the function T may be upper bounded on the set of proper policies, its image is not a closed set).
A3. I found it slightly troubling that many of the key results and characterisations are derived using the solvability parameter $C$ an then because calculating this is impractical as the authors acknowledge, the algorithm put forward uses a replacement for $C$ without rigorous explanation as to whether the resulting calculations are good proxies. Indeed, although some intuition is provided as to why all is not lost by omitting $C$ in the calculation, the effect of this omission on the computations and overall behaviour is not properly studied.
===Experiments===
B1. A possible concern is that although from the empirical evaluation the method does reduce the total costs by an appreciable amount, this seems to come at a heavy price in the returns. Is there a configurable parameter that can control this trade-off. I would also like to see a comparison to the baselines that allow this trade-off to be configured, specifically considering a range of values for the parameter that controls this trade-off.
B2. Overall, I did not find the experimental results to be extremely compelling, firstly the results themselves suggest that the method reduces costs at a significant price to the rewards but also, the environments are quite simple and the method has not been tested on a range of complex environments e.g. safety gym.
Questions:
On lines 267-268, is the method considering proper policies, if so why do the expressions have $R_{\rm MAX}$ and $R_{\rm MIN}$ and not $DR_{\rm MAX}$ and $DR_{\rm MIN}$ respectively?
How can we be sure that introducing the minmax penalty preserves the original solution of the MDP (and hence, we are still solving the original problem)?
Rating:
5
Confidence:
4
↩ Replying to Official Review by Reviewer LXYE
We really appreciate the reviewer's time and effort spent reviewing our paper. We hope the reviewer’s concerns have been addressed below.
===Experiments===
We believe the reviewer’s concerns here is the most important, since they highlight that we weren’t sufficiently clear on our problem statement and hence the purpose of these experiments. We have moved the safety definition to the background section to make our problem statement clearer (the ROSARL paragraph). We have also added additional safety-gym experiments in the appendix, in addition to the ones that were already there. Please see the general comment for a more detailed explanation.
===Analysis===
A1: The experiments of Section 5 are divided into parts depending on whether the "theoretical assumptions are satisfied" but there is no clear statement as to what exact assumptions this refers to.
A1: Additionally, there are a few typos in the mathematical expressions e.g., the argument of the min and max operator should be $s_T$ not $s$.
A1: In Definition 2 the case of equality is not covered.
A2: I am finding it difficult to understand how the object in Definition 3 could be computed. For any deterministic policy I may be able to increase the number of time steps it takes to reach the goal by for example asking the agent to go back on itself before going forward again.
↩ Replying to Rebuttal by Authors
A3: Indeed, although some intuition is provided as to why all is not lost by omitting $C$ in the calculation, the effect of this omission on the computations and overall behaviour is not properly studied.
Questions
1: On lines 267-268, is the method considering proper policies, if so why do the expressions have $R_{MAX}$ and $R_{MIN}$ and not $DR_{MAX}$ and $DR_{MIN}$ respectively?
2: How can we be sure that introducing the minmax penalty preserves the original solution of the MDP (and hence, we are still solving the original problem)?
References:
↩ Replying to Official Review by Reviewer LXYE
Re::
Thanks for your responses and for clarifying some points. Some other questions of mine remain unresolved.
For completion I think the equality case should be covered since to me the definition looks incomplete without it.
My issue with Definition 3 is that although each policy in the set of proper policies will arrive at the absorbing state in finite time, the set of proper policies is not guaranteed to be a finite set. Therefore, for any proper policy that requires $T<\infty$ time steps to arrive at the absorbing state, I can always construct another proper policy that requires $T'$ timesteps where $\infty>T'>T$. I think this may be resolved by imposing compactness on the policy space $\Pi$.
My concern about the omission of $C$ within the protocol remains. While I understand the difficulties of computing $C$ in practice, it seems that the theoretical guarantees established in the paper cannot be assured by the algorithm nor do we have any assurance of near guarantees when using the protocol of the algorithm. This means there is a significant disconnect between the theory and the method.
↩ Replying to Comment by Reviewer LXYE
Thank you to the reviewer for taking the time to read our rebuttal and for their fast response. Regarding the outstanding concerns:
We are happy to add the equality case following the earlier explanation we gave.
Please remember that $\Pi$ is the set of deterministic proper policies with a finite set of states and actions. Hence $\Pi$ is finite and compact. Compactness is a useful (and usual) assumption in continuous MDPs, but we are assuming finite MDPs for our theory.
Please note that we make no theoretical claims about our practical algorithm (now labeled Algorithm 1 in the updated paper), only empirical ones. We agree that theoretical guarantees for that algorithm will be useful, but we hope the reviewer understands that it is beyond the scope of this work. We used our theoretical results to motivate the design of Algorithm 1. We used experiments to validate it, demonstrating and analysing its behaviour and performance compared to state-of-the-art baselines. Hence we hope the reviewer will evaluate Algorithm 1 on the merit of our strong empirical results.
We are happy to provide any further clarifications, and any additional experiment that the reviewer requests time permitting.
↩ Replying to Official Review by Reviewer LXYE
Re::
Thanks for the clarifying comments, they have helped me understand the contribution better.
As a side-remark, I do believe however for Point 2, there is some confusion about the compactness of the space of functions (policies) versus the compactness of the spaces on which they operate. Specifically, I don't think the reasoning about the compactness of the policy space is correct. Consider for example, the family of functions $F=\{f_n(x)=1/x^n | x\in [1,2] ,n=0,1,\ldots, +\infty\}$. For any value $n$, the image space of $f$ is contained within $[0,2]$ which is a compact set (this follows simply because we have continuous functions acting on a compact set, $[1,2]$) but clearly, the function space $F$ is an infinite set. I think the issue here nevertheless is a side-note since it seems to me that the underlying issue can be resolved by assuming the compactness of $\Pi$.
↩ Replying to Official Review by Reviewer LXYE
We appreciate the reviewer's score increase and are glad most of the reviewer's concerns have been addressed.
Regarding the remark on the size and compactness of $\Pi$, the given example helped us understand the source of the misunderstanding. To clarify this:
Please let us know if this clarification helped and if the reviewer has further concerns.
Summary:
The paper discusses a reward-only safe RL as an alternative to reward-shaping RL, and constraint-based RL for safe RL. The main idea is to compute the minmax penalty, which will be used to re-cast the problem so that a safe policy can be computed using standard RL methods. The method is evaluated on classical methods such as TRPO Lagrangian, CPO and a newer method called Saute RL with TRPO backbone. The environment is quite challenging and coming from the safety gym.
Soundness:
2
Presentation:
2
Contribution:
2
Strengths:
Weaknesses:
Questions:
Rating:
5
Confidence:
4
↩ Replying to Official Review by Reviewer SFyW
We really appreciate the reviewer's time and effort spent reviewing our paper. We hope the reviewer’s concerns have been addressed below.
The algorithm is not well-described. It’s hard to understand the mathematical formulation of the problem and the solution. Presentation of the paper focuses on the theoretical results, which are hard to judge without an explicit mathematical problem formulation.
Experimental results are limited in scope and some of the conclusions are slightly misleading. a. For example, Saute RL solves a problem with probability one constraints and cannot be directly compared to TRPO Lagrangian which solves the problem with constraints on average. Especially, when the environment is highly stochastic.
There are other baselines that the authors could compare to, to make their case. I recommend looking into implementations in https://github.com/PKU-Alignment/safety-gymnasium c. There’s no ablation study
The experimental part is hard to evaluate due to the lack of details, for example the algorithm is not even in the main paper (it’s in appendix).
References:
↩ Replying to Rebuttal by Authors
The authors look for a minimax penalty. Could the authors comment on the similarities and the differences with Lagrangian methods, where the algorithm performs an automatic search for a Lagrangian coefficient that weighs the constraint violation values.
↩ Replying to Rebuttal by Authors
Thank you for the detailed response, update manuscript and additional experiments
My remaining concerns are
Baselines.
Sauté RL: Almost Surely Safe Reinforcement Learning Using State Augmentation, and therefore they do have a different formulation to a CMDP as highlighted by the title and the theoretical results. This setting would be equivalent to your formulation with the definition of safe policy that reaches the unsafe absorbing state with probability equal to 0. There's no surprise that Saute RL would be more conservative, although considering that Omnisafe works much better there may be different explanations. Nevertheless, you could strengthen the claim by correctly saying that Saute RL is intrinsically more conservative than ROSARL and demonstrate that this indeed happens on the pillar environment. Furthermore, the large reward penalties could potentially lead to poor training performance.There's no ablation on the way r_min is set. You could try a similar strategy to Sootla et al 2022 and set a fixed negative value, for example.
Regarding "terrible performance" in comparison to Omnisafe implementation, I would caution of using such language in a scientific context without explaining the reason for this behavior. Saute RL is effectively a wrapper on an already existing implementation of an RL algorithm (in this case safety baselines) with a few new hyperparameters.
I would recommend to make the algorithm the center of the presentation and explain why it works later. This simple modification seems to be working well and you have presented a motivation for using it. It would work with discounted cost setting as well if state augmentation by Sootla et al is used to define the absorbing state.
Also there was a similar work published recently that could be of interest to the authors:
Solving Richly Constrained Reinforcement Learning through State Augmentation and Reward Penalties https://arxiv.org/pdf/2301.11592
I will keep my score, but it is an interesting idea that results in a simple and effective algorithm.
↩ Replying to Comment by Reviewer SFyW
Thank you to the reviewer for taking the time to read our rebuttal and for their fast response. Regarding the outstanding concerns:
1- Baselines.
Which additional OMNIsafe baseline would the reviewer like to see (and in which environment)? We are happy to report on it, time permitting given that it is computationally expensive (we will need to run 10 million steps for 10 random seeds to be consistent).
We used TRPO to be consistent with prior works (since it is the baseline RL algorithm used in most prior works), and also because the benchmark results provided by OMNIsafe shows that it is in general competitive or better than the other baselines (Policy Gradient, Natural PG, and PPO). For example, looking at SafetyPointGoal1-v0 in Table 2 of https://github.com/PKU-Alignment/omnisafe/tree/main/benchmarks/on-policy , we see that the TRPO baseline has the highest rewards and lowest costs.
2- Please note that for our approach, r_min is learned. Assuming the reviewer means the unsafe rewards for Saute RL, we used the default fixed negative value of -0.2 from OMNIsafe since it is what they used for all their Saute RL benchmark results https://github.com/PKU-Alignment/omnisafe/tree/main/benchmarks/on-policy. For the base environment (i.e not Sauté'ed), we used a fixed negative value -1 (i.e. this is the reward TRPO gets for unsafe transitions).
Indeed, using our approach to learn a sufficient unsafe reward for Sauté'ed environments is an interesting direction for future works.
We thank the reviewer for the suggested paper (https://arxiv.org/pdf/2301.11592) which we will add to our related works.
↩ Replying to Rebuttal by Authors
Re Saute RL:
Again, thank you to the reviewer for taking the time to engage with us in this discussion phase.
After thoroughly reading Sootla el al 2022 again, we would like to address the "Re Saute RL" concern in detail here.
Sootla el al 2022 is called Sauté RL: Almost Surely Safe Reinforcement Learning Using State Augmentation, and therefore they do have a different formulation to a CMDP as highlighted by the title and the theoretical results.
To the best of our understanding, this is not correct
For reference, here is the CMDP definition of Sootla el al 2022 (Page 3):
Definition 2 The constrained MDP (c-MDP) is a tuple $\mathcal{M}_c=\left\langle\mathcal{S}, \mathcal{A}, \mathcal{P}, c, \gamma_c, l, \gamma_l\right\rangle$ where additional terms are the safety cost $l: \mathcal{S} \times \mathcal{A} \rightarrow[0,+\infty)$ and the safety discount factor $\gamma_l \in(0,1)$. The associated optimization problem is:
$\min_\pi \mathbb{E}_s^\pi J_{task}$
s. t.: $\mathbb{E}_s^\pi J_{safety} \geq 0,$
$J_{\text {safety }} \triangleq d-\sum_{t=0}^{\infty} \gamma_l^t l\left(s_t, \boldsymbol{a}_t\right)$
Sootla el al. 2022 then define their Sauté RL problem setting (Definition 3 page 4) by defining how they convert a regular CMDP into a Sauté MDP. Finally, they provide Theorem 3 (their final theorem, page 5) which says that if there exists an optimal policy for a Sauté MDP, then the policy is almost surely safe.
This setting would be equivalent to your formulation with the definition of safe policy that reaches the unsafe absorbing state with probability equal to 0
To the best of our understanding, this is not correct
There's no surprise that Saute RL would be more conservative, although considering that Omnisafe works much better there may be different explanations.
$~$
References:
Eitan Altman. Constrained Markov decision processes: stochastic modeling. Routledge, 1999.
Jiaming Ji, Jiayi Zhou, Borong Zhang, Juntao Dai, Xuehai Pan, Ruiyang Sun, Weidong Huang,
Yiran Geng, Mickel Liu, and Yaodong Yang. Omnisafe: An infrastructure for accelerating safe
reinforcement learning research. Journal of Machine Learning Research, 25(285):1–6, 2024. URL
http://jmlr.org/papers/v25/23-0681.html.
↩ Replying to Official Review by Reviewer SFyW
Sootla el al. 2022 then define their Sauté RL problem setting (Definition 3 page 4) by defining how they convert a regular CMDP into a Sauté MDP.
That's incorrect. They first perform a conversion in the deterministic case in Section 3.1 and then say in Section 3.2: let's formulate the same thing in a stochastic environment. They get a standard MDP that they can solve easily and then they ask in Section 3.3: what are we actually solving? Turns out that the problem they're solving is an MDP with constraints almost surely if n goes to minus infinity.
Finally, they provide Theorem 3 (their final theorem, page 5) which says that if there exists an optimal policy for a Sauté MDP, then the policy is almost surely safe
Yes, which means that the constraints has to be fulfilled with probability 1! In the standard CMDP formulation, we take the average over the accumulated cost. Sootla et al 2020 enforce the constraint with probability 1. This is what is meant by almost surely. The introduction is diving into why the constraints on average may not be preferable in some applications. Refer to Definition 4 please for the problem formulation (page 5 on arxiv). They use $z_t$ to denote the accumulated discounted cost at time t. I appreciate that their presentation may be lacking clarity since their building the problem bottoms up. Please refer to their follow-up paper https://arxiv.org/pdf/2206.02675, where they discuss the formulations in Section 2.1
Hence, we hope the reviewer agrees that at the very least, our additional Omnisafe experiments (Appendix F pages 26-34) are as fair as one can reasonably expect.
For clarity, I don't think your experiments were flawed. I don't doubt that Saute RL doesn't perform as good as your approach. I think your conclusions are slightly inaccurate.
This setting would be equivalent to your formulation with the definition of safe policy that reaches the unsafe absorbing state with probability equal to 0
To the best of our understanding, this is not correct
- Such a definition would mean there exist no safe policies in many stochastic environments, making the problem of finding an optimal safe policy in such environments ill-defined.
- For example, in the Lava gridworld (with slip probability $>0$) and Safety-Gym Pillar environment (with noise $>0$), there exists no policy that reaches the unsafe absorbing state with probability equal to 0.
That's exactly my point. In the formulation by Sootla et al 2022, they consider the setting where the constraints have to be fulfilled with probability 1. Therefore, in highly stochastic environments their algorithm will struggle. By modifying the reward one can get sensible looking policies, but this is not the theory behind it.
Again this concern is solved easily by pointing out the conservatism of their formulation, problems with connecting theory and practice (choosing the minimal reward), and the fixed nature of the minimal reward (which you learn).
Unfortunately, we are unsure what the reviewer means by conservative here, which also makes it difficult to understand the follow-up statement.
Apologies for the lack of clarity. I mean that the set of policy satisfying the constraints (the set of safe policies) in Sootla et al 2022 will be smaller than in your case. To be more specific, there will be safe policies (in some problems) in your definition, which do not satisfy the constraints by Sootla 2022.
This is not the reason for my score though.
I am in between 5 and 6, but due to the overall presentation points I lean closer to 5, however. I must admit though the sheer number of new experiments is hard to ignore.
In terms of additional baselines, I think the issue is that it's hard to know which experiments you need without experimenting. What do you want to show? What do you want to study? Without going far, Sootla et al 2022 showed that their algo:
This concern is hard to solve during the rebuttal and it's not fair to expect it.
↩ Replying to Official Review by Reviewer SFyW
Thank you to the reviewer for the clarifications. We are glad that the reviewer is happy with the Saute RL experiments, and we are happy to update our conclusions regarding its performance.
Regarding the main aims of our experiments, they naturally follow from our theory and proposed practical algorithm.
We used our theoretical results to motivate the design of Algorithm 1, but gave no theoretical guarantees around it. Hence, we used experiments to validate it, demonstrating and analysing its behaviour and performance compared to state-of-the-art baselines.
For example,
Similarly to the examples the reviewer gave for SauteRL, we demonstrated the following for our algorithm:
We hope this helps to resolve the reviewers outstanding concerns.
Summary:
This paper introduces Reward-Only Safe RL (ROSARL), a novel safe RL agent that focuses on learning appropriate penalties for unsafe states rather than using explicitly constructed constraints or human-designed penalties. The key technical contribution is the concept of a "Minmax penalty" - the smallest penalty for unsafe states that guarantees safe optimal policies regardless of task rewards. The authors derive theoretical upper and lower bounds on this penalty based on environment diameter and solvability. A practical algorithm is designed for estimating the minimax penalties during under model-free RL setting. The authors empirically demonstrate that the resulting algorithm yields stronger and safer performance on grid world and PILLAR environments, compared to selected baseline methods like CPO and TRPO-Lagrangian.
Soundness:
2
Presentation:
3
Contribution:
2
Strengths:
Weaknesses:
Questions:
Rating:
5
Confidence:
3
↩ Replying to Official Review by Reviewer PeFw
We really appreciate the reviewer's time and effort spent reviewing our paper. We hope the reviewer’s concerns have been addressed below.
Why does the practical algorithm work despite ignoring solvability? What are the theoretical guarantees?
What happens when the environment has delayed consequences for unsafe actions rather than immediate terminal states?
Only two environments are used for empirical evaluation of the proposed algorithm, whilst one of them is grid world. Secondly, there are limited analysis of failure cases.
Summary:
This paper addresses the difficulty of reward/cost engineering in Safe RL by proposing a minimax penalty. Particularly, it uses notions of environment diameter and solvability to bound on both sides and estimate the minimum penalty for unsafe states that leads to optimally safe policies independent of task rewards.
Soundness:
4
Presentation:
3
Contribution:
4
Strengths:
Weaknesses:
Minor errors:
-Definition 1 typo “sThen”
Questions:
Rating:
6
Confidence:
3
↩ Replying to Official Review by Reviewer nDzJ
We really appreciate the reviewers' positive outlook on our paper, and their time and effort spent in reviewing it.
Consider adding up/down arrows to indicate if higher/lower values are good in the graphs (Average Returns(↑) and Failure Rate(↓))
Consider citing some works on feasibility/reachability in RL
What are the limitations of this approach?
References:
Updated Paper With Clarifications And Additional Experiments (Part 1):
We would like to thank all the reviewers for their time and effort spent reviewing our paper and providing useful feedback. A number of reviewers have expressed concerns about:
We believe these are extremely important points that are at the source of their other concerns, and hence merit a general response.
We hope the following clarifications and additional experiments convincingly clarifies all these concerns. We have also marked in red all the main changes in the main paper, and moved the related works section to the appendix for additional space (we also include a brief version in the main paper).
Our precise mathematical problem definition
The lack of complex environments and lack of ablation experiments
↩ Replying to Rebuttal by Authors
Updated Paper With Clarifications And Additional Experiments (Part 2):
The use of only 2 environments in the experiments in the main paper
All these additional experiments show that our approach consistently prioritises minimising cost, consistently achieving the lowest cost while only sacrificing rewards when the environment is too complex or noisy.
Meta-Review:
The paper proposes a safe RL algorithm, Reward-Only Safe RL (ROSARL), that learns penalties for unsafe states (behaviors) rather than using predefined penalties. The main technicality is the concept of minmax penalty, i.e., the smallest penalty for unsafe states that guarantees safe optimal policies (independent of task rewards). The authors derive theoretical bounds on this penalty based on environment diameter and solvability.They propose a method for estimating the minimax penalties in a model-free RL setting. Finally, they empirically evaluate their algorithm and compare it with CPO and TRPO-Lagrangian.
(+) The paper addresses an important challenge with a novel idea.
(+) The motivation behind the work is well-explained. The paper is well-written, although reviewers think the algorithm could be explained better and parts of the paper, especially in the experimental section are not written rigorously.
(+) The paper has a good balance of theory and algorithmic implementation.
(-) The reviewers found the scope of the experiments limited and some conclusions from them slightly misleading. They also feel comparison to newer baselines would be necessary. Overall, They did not find the experimental results compelling.
(-) The practical algorithm is obtained using a rough estimate from the theoretical results. There is not much in the paper to identify the gap between the theoretically constructed objectives and the one used by the practical algorithm.
(-) The reviewers are not satisfied with the way that the algorithm is explained. Moreover, they found parts of the paper, especially in the experimental section not written rigorously enough.
I see this as a borderline paper. Thus, I strongly recommend that the authors revise their work using the reviewers' comments and prepare it for an upcoming venue.
Additional Comments On Reviewer Discussion:
Although the authors answered some of the reviewers' questions and clarified some issues, it seems they still have concerns that remained unaddressed. Some of these issues were listed in the meta-review.
No comments from the floor yet — it's open.
This paper is held in the 44B Library.
This panel sticks with you. Pick anything below and it opens right beside it, so you can dig through 60,000-plus records without ever losing your spot here.
Travel 44B
LibraryPapers, policy, standards, statuteLabsEvery organization building AIModelsIntelligence, price, and speedBenchmarksThe evaluation catalogSearchOne field across everythingDashboardThe state of AI in NY44B RegistryThe Art. 44-B compliance portal