andyjzhao commited on
Commit
989b9f0
·
verified ·
1 Parent(s): e3b9d2d

Upload folder using huggingface_hub

Browse files
iclr26/1m0EU6QXj6/appendix_chunks.jsonl ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0126", "section": "A LLM USAGE", "page_start": 12, "page_end": 12, "type": "Text", "text": "We used LLMs to improve the writing and presentation of the work, as well as to aid in translation. We manually ensured that any alteration in wording did not change the meaning of the work.", "source": "marker_v2", "marker_block_id": "/page/11/Text/5"}
2
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0127", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Proof for Theorem 1. Constructing the Lagrangian yields", "source": "marker_v2", "marker_block_id": "/page/11/Text/7"}
3
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0128", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Equation", "text": "\\mathcal{L}(q,\\eta,\\lambda,\\nu) = \\mathbb{E}_{(a,s)\\sim q}[Q(a,s)] + \\eta(\\varepsilon - KL(q||\\pi)) + \\lambda K(q,\\pi) + \\nu \\left(1 - \\int q(a,s)dads\\right) (13)", "source": "marker_v2", "marker_block_id": "/page/11/Equation/8"}
4
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0129", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "for η, λ ≥ 0. Solving for the optimal q (after absorbing the normalisation constraint) yields", "source": "marker_v2", "marker_block_id": "/page/11/Text/9"}
5
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0130", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Equation", "text": "q^{\\star}(a,s) = \\frac{1}{Z}\\pi(a,s) \\exp\\left(\\frac{Q(a,s) + \\lambda \\frac{\\delta K(q,\\pi)}{\\delta q(a,s)}}{\\eta}\\right) (14)", "source": "marker_v2", "marker_block_id": "/page/11/Equation/10"}
6
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0131", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "with Z = R π (a, s) exp Q(a,s)+λ δK(q,π) δq(a,s) η dads and δK(q,π) δq(a,s) the functional derivative wrt q.", "source": "marker_v2", "marker_block_id": "/page/11/Text/11"}
7
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0132", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Notice that for the Karush-Kuhn-Tucker conditions to hold, we also need complementary slackness of η, λ. Specifically we know that either K(q, π) = 0 or λ = 0.", "source": "marker_v2", "marker_block_id": "/page/11/Text/12"}
8
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0133", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "In the former case, we have that the solution q is no safer than the solution π, be definition. In the latter case, the solution reduces to", "source": "marker_v2", "marker_block_id": "/page/11/Text/13"}
9
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0134", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Equation", "text": "q^{\\star}(a,s) = \\frac{1}{Z}\\pi(a,s)\\exp\\left(\\frac{Q(a,s)}{\\eta}\\right) (15)", "source": "marker_v2", "marker_block_id": "/page/11/Equation/14"}
10
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0135", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "which is the optimal solution to the unconstrained model.", "source": "marker_v2", "marker_block_id": "/page/11/Text/15"}
11
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0136", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Proof for theorem 2. If G(a, s) is not almost everywhere constant, then this means that there exists a pair of disjoint sets X 1 ×X 2 with 0 < µ(X1) = µ(X2) < ∞ such that for all ((a i , si),(a j , s j )) ∈ X 1 × X 2 we have G(a i , si) > G(a j , s j ).", "source": "marker_v2", "marker_block_id": "/page/11/Text/16"}
12
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0137", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Choose q such that q(a i , si) + ε 1 = π(a i , si) and q(a j , s j ) − ε 1 = π(a j , s j ). For any", "source": "marker_v2", "marker_block_id": "/page/11/Text/17"}
13
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0138", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Equation", "text": "0 < \\varepsilon_1 < \\min\\left(\\pi(a_i, s_i), \\frac{1}{2}\\sqrt{\\frac{\\varepsilon}{\\mu(X_1 \\cup X_2)}}\\right)", "source": "marker_v2", "marker_block_id": "/page/11/Equation/18"}
14
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0139", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Keep all other q(ak, sk) = π(ak, sk)∀k ̸= i, k ̸= j.", "source": "marker_v2", "marker_block_id": "/page/11/Text/19"}
15
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0140", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "The KL-constraint is upheld due to Pinsker's inequality, i.e for any q, π we have", "source": "marker_v2", "marker_block_id": "/page/11/Text/20"}
16
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0141", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Equation", "text": "2D_{TV}(q,\\pi)^2 \\le KL(q||\\pi) \\le \\varepsilon.", "source": "marker_v2", "marker_block_id": "/page/11/Equation/21"}
17
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0142", "section": "B PROOFS", "page_start": 12, "page_end": 12, "type": "Text", "text": "Our distributions only differ on the set X 1 ∪ X2, meaning the total variational distance is less than ε when we choose ε 1 < 1 2 q ε µ(X1∪X2) .", "source": "marker_v2", "marker_block_id": "/page/11/Text/22"}
18
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0143", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "Trivially, the equality constraint \\int q(a,s)dads = 1 is valid ( \\varepsilon_1 deviations cancel over pairs). The improvement constraint is nonzero:", "source": "marker_v2", "marker_block_id": "/page/12/Text/1"}
19
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0144", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Equation", "text": "\\begin{split} &\\int_{\\mathcal{A}\\times\\mathcal{S}}\\pi(a,s)G(a,s)dads\\\\ &=\\int_{X_1}\\pi(a,s)G(a,s)dads\\\\ &+\\int_{X_2}\\pi(a,s)G(a,s)dads+\\int_{(\\mathcal{A}\\times\\mathcal{S})\\backslash(X_1\\cup X_2)}\\pi(a,s)G(a,s)dads\\\\ &=\\int_{X_1}\\pi(a,s)G(a,s)dads\\\\ &+\\int_{X_2}\\pi(a,s)G(a,s)dads+\\int_{(\\mathcal{A}\\times\\mathcal{S})\\backslash(X_1\\cup X_2)}q(a,s)G(a,s)dads\\\\ &<\\int_{X_1}(\\pi(a,s)+\\varepsilon_1)G(a,s)dads\\\\ &+\\int_{X_2}(\\pi(a,s)-\\varepsilon_1)G(a,s)dads\\\\ &+\\int_{X_2}q(a,s)G(a,s)dads\\\\ &=\\int_{X_1}q(a,s)G(a,s)dads\\\\ &=\\int_{X_1}q(a,s)G(a,s)dads\\\\ &=\\int_{\\mathcal{A}\\times\\mathcal{S}}q(a,s)G(a,s)dads \\end{split}", "source": "marker_v2", "marker_block_id": "/page/12/Equation/2"}
20
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0145", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "where we use the fact that values G(a,s) in X_1 are strictly better than values G(a,s) in X_2 , and the fact that the sets X_1 and X_2 are not of measure zero to ensure strict inequality. Since K preserves the strict inequality, \\int_{\\mathcal{A}\\times\\mathcal{S}}\\pi(a,s)G(a,s)dads<\\int_{\\mathcal{A}\\times\\mathcal{S}}q(a,s)G(a,s)dads\\Longrightarrow K(q,\\pi)>0.", "source": "marker_v2", "marker_block_id": "/page/12/Text/3"}
21
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0146", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "Therefore there exists a q with nonzero x, which means \\log(x) is finite, which means a feasible interior point exists. The problem is also convex as both the KL constraint and the K constraint are convex (assumption). This also directly implies Slater's condition, which implies strong duality. \\square", "source": "marker_v2", "marker_block_id": "/page/12/Text/4"}
22
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0147", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "Proof for Theorem 3. Consider the Lagrangian", "source": "marker_v2", "marker_block_id": "/page/12/Text/5"}
23
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0148", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Equation", "text": "\\mathcal{L}(q, x, \\lambda, \\nu, \\mu) = \\int q(a, s)Q(a, s)dads + \\kappa \\log\\left(\\frac{x}{\\kappa}\\right) + \\lambda \\left(\\int q(a, s)G(a, s)dads - \\int \\pi(a, s)G(a, s)dads - x\\right) + \\nu \\left(\\varepsilon - \\int q(a, s)\\log(\\frac{q(a, s)}{\\pi(a, s)})dads\\right) + \\mu \\left(\\int q(a, s)dads - 1\\right)", "source": "marker_v2", "marker_block_id": "/page/12/Equation/6"}
24
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0149", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "The optimal x is given by", "source": "marker_v2", "marker_block_id": "/page/12/Text/7"}
25
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0150", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Equation", "text": "x = \\frac{\\kappa}{\\lambda} \\tag{16}", "source": "marker_v2", "marker_block_id": "/page/12/Equation/8"}
26
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0151", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "while the optimal q (after absorbing the normalization constant) is given by", "source": "marker_v2", "marker_block_id": "/page/12/Text/9"}
27
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0152", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Equation", "text": "q(a,s) = \\frac{1}{Z}\\pi(a,s)\\exp\\left(\\frac{Q(a,s) + \\lambda G(a,s)}{\\nu}\\right) (17)", "source": "marker_v2", "marker_block_id": "/page/12/Equation/10"}
28
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0153", "section": "B PROOFS", "page_start": 13, "page_end": 13, "type": "Text", "text": "If G is not constant eq. (9) has a solution, which can be found by optimizing over the dual variables \\lambda, \\nu . This follows directly from theorem 2.", "source": "marker_v2", "marker_block_id": "/page/12/Text/11"}
29
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0154", "section": "B PROOFS", "page_start": 14, "page_end": 14, "type": "Text", "text": "If G is constant, but \\lambda is bounded, the q produced by optimizing eq. (9) can have any finite \\lambda . However, since G is constant \\lambda G(a,s) can be absorbed into the normalizer", "source": "marker_v2", "marker_block_id": "/page/13/Text/1"}
30
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0155", "section": "B PROOFS", "page_start": 14, "page_end": 14, "type": "Equation", "text": "\\begin{split} q(a,s) &= \\frac{1}{Z}\\pi(a,s)\\exp\\left(\\frac{Q(a,s) + \\lambda G(a,s)}{\\nu}\\right) \\\\ &= \\frac{1}{Z}\\pi(a,s)\\exp\\left(\\frac{Q(a,s)}{\\nu}\\right)\\exp\\left(\\frac{\\lambda G(a,s)}{\\nu}\\right) \\\\ &= \\frac{1}{Z_2}\\pi(a,s)\\exp\\left(\\frac{Q(a,s)}{\\nu}\\right) \\end{split}", "source": "marker_v2", "marker_block_id": "/page/13/Equation/2"}
31
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0156", "section": "B PROOFS", "page_start": 14, "page_end": 14, "type": "Text", "text": "which is the solution to MPO", "source": "marker_v2", "marker_block_id": "/page/13/Text/3"}
32
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0157", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "Proof of theorem 4. To simplify the notation, we will define P(q) = \\mathbb{E}_{(a,s)} [Q(a,s)] .", "source": "marker_v2", "marker_block_id": "/page/13/Text/5"}
33
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0158", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "We will show that the sequence \\tilde{q} = q_0, q_1, \\ldots defined by recursively applying eq. (9) leads to a contraction towards the feasible set. First, consider the slightly simplified problem", "source": "marker_v2", "marker_block_id": "/page/13/Text/6"}
34
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0159", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "q_{i+1}^{\\star} = \\operatorname{argmax} P(q_{i+1}) + \\kappa \\log \\left( \\frac{K(q_{i+1}, q_i^{\\star})}{\\kappa} \\right) (18)", "source": "marker_v2", "marker_block_id": "/page/13/Equation/7"}
35
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0160", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "Note that this corresponds to eq. (9) without the KL-divergence constraint.", "source": "marker_v2", "marker_block_id": "/page/13/Text/8"}
36
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0161", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "Let's pick some reference point q' within the feasible set. This acts as a lower bound for the maximization in eq. (18). By definition, we have that for", "source": "marker_v2", "marker_block_id": "/page/13/Text/9"}
37
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0162", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "P(q_{i+1}^{\\star}) + \\kappa \\log \\left( \\frac{K(q_{i+1}^{\\star}, q_i^{\\star})}{\\kappa} \\right) \\ge P(q_{i+1}^{\\prime}) + \\kappa \\log \\left( \\frac{K(q_{i+1}^{\\prime}, q_i^{\\star})}{\\kappa} \\right)", "source": "marker_v2", "marker_block_id": "/page/13/Equation/10"}
38
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0163", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "rearranging yields", "source": "marker_v2", "marker_block_id": "/page/13/Text/11"}
39
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0164", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "\\kappa \\log \\left(\\frac{K(q_{i+1}^\\star, q_i^\\star)}{\\kappa}\\right) \\geq \\left[P(q_{i+1}^\\prime) - P(q_{i+1}^\\star)\\right] + \\kappa \\log \\left(\\frac{K(q_{i+1}^\\prime, q_i^\\star)}{\\kappa}\\right)", "source": "marker_v2", "marker_block_id": "/page/13/Equation/12"}
40
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0165", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "Due to boundedness of P(q_{i+1}^{\\star}) < M and finiteness of P(q_{i+1}^{\\prime}) we get", "source": "marker_v2", "marker_block_id": "/page/13/Text/13"}
41
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0166", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "P(q'_{i+1}) - P(q'_{i+1}) \\ge P(q'_{i+1}) - M =: -\\Delta_{i+1}", "source": "marker_v2", "marker_block_id": "/page/13/Equation/14"}
42
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0167", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "This give us the rate", "source": "marker_v2", "marker_block_id": "/page/13/Text/15"}
43
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0168", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "\\log\\left(\\frac{K(q_{i+1}^{\\star},q_{i}^{\\star})}{\\kappa}\\right) \\geq \\frac{-\\Delta_{i+1}}{\\kappa} + \\log\\left(\\frac{K(q_{i+1}^{\\prime},q_{i}^{\\star})}{\\kappa}\\right) = \\log\\left(\\frac{K(q_{i+1}^{\\prime},q_{i}^{\\star})}{\\kappa}\\exp\\left(\\frac{-\\Delta_{i+1}}{\\kappa}\\right)\\right)", "source": "marker_v2", "marker_block_id": "/page/13/Equation/16"}
44
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0169", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "which yields the inequality", "source": "marker_v2", "marker_block_id": "/page/13/Text/17"}
45
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0170", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge K(q_{i+1}^{\\prime}, q_i^{\\star}) \\exp\\left(\\frac{-\\Delta_{i+1}}{\\kappa}\\right)", "source": "marker_v2", "marker_block_id": "/page/13/Equation/18"}
46
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0171", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "One possible choice for q' is any feasible point within the original CMDP \\mathbb{E}_{(a,s)\\sim q'}[C(a,s)] \\leq B . Since this is feasible in every iteration, we get a fixed constant c = \\exp(-(M-P(q'))/\\kappa) \\in (0,1] such that", "source": "marker_v2", "marker_block_id": "/page/13/Text/19"}
47
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0172", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge cK(q', q_i^{\\star})", "source": "marker_v2", "marker_block_id": "/page/13/Equation/20"}
48
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0173", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "which is valid for all iterations. Therefore, we have a real decrease in K(q_{i+1}^*, q_i^*) in every iteration. By definition of Equation (18), we have a lower bound on K, which means \\tilde{q} converges.", "source": "marker_v2", "marker_block_id": "/page/13/Text/21"}
49
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0174", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "We now have to show that it converges to a safe q in the limit. For this consider", "source": "marker_v2", "marker_block_id": "/page/13/Text/22"}
50
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0175", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge cK(q', q_i^{\\star}) > 0", "source": "marker_v2", "marker_block_id": "/page/13/Equation/23"}
51
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0176", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Text", "text": "Assume that we converge to an unsafe q, we then have a fixed point where q=q_i^\\star=q_{i+1}^\\star via sequential continuity we have", "source": "marker_v2", "marker_block_id": "/page/13/Text/24"}
52
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0177", "section": "C CONVERGENCE", "page_start": 14, "page_end": 14, "type": "Equation", "text": "\\underbrace{K(q,q) = 0}_{\\text{def. K}} \\land \\underbrace{cK(q',q) > 0}_{\\text{nonzero improvement}}", "source": "marker_v2", "marker_block_id": "/page/13/Equation/25"}
53
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0178", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "FigureGroup", "text": "Figure 3: A comparison between different \\kappa values.", "source": "marker_v2", "marker_block_id": "/page/14/FigureGroup/112"}
54
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0179", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "which is a contradiction. Therefore, we converge to a safe point in the limit.", "source": "marker_v2", "marker_block_id": "/page/14/Text/3"}
55
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0180", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "Adding the KL-divergence bound complicates analysis, but the idea is the same. Picking a strictly feasible q wrt the original CMDP constraints is not enough, since that might be outside the KL-ball. The fix is simple: Let", "source": "marker_v2", "marker_block_id": "/page/14/Text/4"}
56
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0181", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "q'_{i+1} = \\operatorname{proj}_{KL(\\cdot || q_i) \\leq \\varepsilon}(q')", "source": "marker_v2", "marker_block_id": "/page/14/Equation/5"}
57
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0182", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "be the projection of the selected point onto the KL ball. Assuming \\varepsilon > 0 we can perform exactly the same proof as above, just that instead of having a fixed rate c \\in (0, 1] , we have", "source": "marker_v2", "marker_block_id": "/page/14/Text/6"}
58
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0183", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "c_i = \\exp\\left(-\\frac{M - P(q'_{i+1})}{\\kappa}\\right) \\in (0, 1]", "source": "marker_v2", "marker_block_id": "/page/14/Equation/7"}
59
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0184", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "This still gives us an (iteration dependent) lower bound", "source": "marker_v2", "marker_block_id": "/page/14/Text/8"}
60
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0185", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge cK(q', q_i^{\\star})", "source": "marker_v2", "marker_block_id": "/page/14/Equation/9"}
61
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0186", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "where we can apply the same argument for convergence.", "source": "marker_v2", "marker_block_id": "/page/14/Text/10"}
62
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0187", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "Now assume K is the LSF. Let's call c_{min} = \\inf_i \\{c_i\\} , we get geometric convergence via a standard squeeze argument:", "source": "marker_v2", "marker_block_id": "/page/14/Text/11"}
63
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0188", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge c_{min} K(q', q_i^{\\star}) > 0", "source": "marker_v2", "marker_block_id": "/page/14/Equation/12"}
64
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0189", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "Meaning we have", "source": "marker_v2", "marker_block_id": "/page/14/Text/13"}
65
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0190", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "K(q_{i+1}^{\\star}, q_i^{\\star}) \\ge c_{min} K(q', q_i^{\\star})", "source": "marker_v2", "marker_block_id": "/page/14/Equation/14"}
66
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0191", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "for every step. Since the LSF telescopes K(a,b)+K(b,c)=\\mathbb{E}_a[G]-\\mathbb{E}_b[G]+\\mathbb{E}_b[G]-\\mathbb{E}_c[G]=K(a,c) , we have", "source": "marker_v2", "marker_block_id": "/page/14/Text/15"}
67
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0192", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "K(q', q_{i+1}^{\\star}) = K(q', q_{i}^{\\star}) - K(q_{i+1}^{\\star}, q_{i}^{\\star}) \\le K(q', q_{i}^{\\star}) - c_{min}K(q', q_{i}^{\\star}) = (1 - c_{min})K(q', q_{i}^{\\star})", "source": "marker_v2", "marker_block_id": "/page/14/Equation/16"}
68
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0193", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "By induction we get", "source": "marker_v2", "marker_block_id": "/page/14/Text/17"}
69
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0194", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Equation", "text": "K(q', q_n^*) < (1 - c_{min})^n K(q', q_0^*)", "source": "marker_v2", "marker_block_id": "/page/14/Equation/18"}
70
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0195", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "which proves the geometric rate.", "source": "marker_v2", "marker_block_id": "/page/14/Text/19"}
71
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0196", "section": "C CONVERGENCE", "page_start": 15, "page_end": 15, "type": "Text", "text": "Remark 3. Note that other choices for K may equally lead to a geometric convergence rate, but for the sake of conciseness we only cover the convergence of the LSF used in our experiments.", "source": "marker_v2", "marker_block_id": "/page/14/Text/20"}
72
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0197", "section": "D ABLATION OF HYPERPARAMETERS", "page_start": 15, "page_end": 15, "type": "Text", "text": "We run an ablation on the impact of \\kappa on the overall performance. We generally observed similar performance between the different \\kappa values across the entire interval tested.", "source": "marker_v2", "marker_block_id": "/page/14/Text/22"}
73
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0198", "section": "D ABLATION OF HYPERPARAMETERS", "page_start": 15, "page_end": 15, "type": "Text", "text": "We found no statistically significant difference in changing \\varepsilon slightly (evaluated across 10 runs).", "source": "marker_v2", "marker_block_id": "/page/14/Text/23"}
74
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0199", "section": "E VALUE AND COST ESTIMATION", "page_start": 16, "page_end": 16, "type": "Text", "text": "We use the RETRACE (Munos et al., 2016) algorithm to estimate the returns of Q π and C π . RE-TRACE works by computing importance-weighted updates of the Q function(s) over a replay buffer. Specifically", "source": "marker_v2", "marker_block_id": "/page/15/Text/2"}
75
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0200", "section": "E VALUE AND COST ESTIMATION", "page_start": 16, "page_end": 16, "type": "Equation", "text": "Q_{new}(s, a) = Q(s, a) + \\mathbb{E}_{\\mu} \\left[ \\sum_{t \\ge 0} \\gamma^{t} (\\prod_{i=1}^{t} c_{i}) (r_{t} + \\gamma \\mathbb{E}_{\\pi} [Q(s_{t+1}, \\cdot)] - Q(s_{t}, a_{t}), \\right]", "source": "marker_v2", "marker_block_id": "/page/15/Equation/3"}
76
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0201", "section": "E VALUE AND COST ESTIMATION", "page_start": 16, "page_end": 16, "type": "Text", "text": "where µ is an arbitrary behaviour policy (e.g. a previous version of the policy) and π is the current policy. RETRACE can be implemented analogously for C(s, a). RETRACE sets", "source": "marker_v2", "marker_block_id": "/page/15/Text/4"}
77
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0202", "section": "E VALUE AND COST ESTIMATION", "page_start": 16, "page_end": 16, "type": "Equation", "text": "c_i = \\min(1, \\frac{\\pi(a_s|s_i)}{\\mu(a_i|s_i)})", "source": "marker_v2", "marker_block_id": "/page/15/Equation/5"}
78
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0203", "section": "E VALUE AND COST ESTIMATION", "page_start": 16, "page_end": 16, "type": "Text", "text": "RETRACE is designed to give high quality estimates of the current policy by exploiting the similarity of previous policies to get lower variance estimates.", "source": "marker_v2", "marker_block_id": "/page/15/Text/6"}
79
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0204", "section": "F HYPERPARAMETERS", "page_start": 16, "page_end": 16, "type": "Text", "text": "We use a nearly identical network layout for policy, cost, and Q-function with 3 MLP layers with leakyReLU activations, followed by either a mean and covariance prediction layer (for the policy) or a value prediction head for cost/value networks. We use a width of 256 for all latent dimensions.", "source": "marker_v2", "marker_block_id": "/page/15/Text/8"}
80
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0205", "section": "F HYPERPARAMETERS", "page_start": 16, "page_end": 16, "type": "Text", "text": "For the policy network we parameterize the mean and the cholesky factors of the covariance matrix.", "source": "marker_v2", "marker_block_id": "/page/15/Text/9"}
81
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0206", "section": "F HYPERPARAMETERS", "page_start": 16, "page_end": 16, "type": "Text", "text": "We use κ = 10 and a standard ε = 0.1", "source": "marker_v2", "marker_block_id": "/page/15/Text/10"}
82
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0207", "section": "G ENVIRONMENTS", "page_start": 16, "page_end": 16, "type": "Text", "text": "Safety Gymnasium uses a \"composable environment\" format where every environment contains an \"Agent\" (in our case \"Point\" and \"Car\") and a task (in our case \"Goal\" and \"Button\").", "source": "marker_v2", "marker_block_id": "/page/15/Text/12"}
83
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0208", "section": "G ENVIRONMENTS", "page_start": 16, "page_end": 16, "type": "Text", "text": "The \"Goal\" tasks give as an input a 48 dimensional state which corresponds to the relative distance towards obstacles and the goal. The \"Button\" task consists of a 64 dimensional state which corresponds to the distance towards the goal, the buttons, the static obstacles, and the moving obstacles.", "source": "marker_v2", "marker_block_id": "/page/15/Text/13"}
84
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0209", "section": "G ENVIRONMENTS", "page_start": 16, "page_end": 16, "type": "Text", "text": "In addition to the task-intrinsic state, every agent also adds its own state, which for point is an accelerometer, velocimeter, gyroscope, and magnetometer (12 dimensions), and for the car are Quaternions of the rear wheel which are turned into 3x3 rotation matrices, Angle velocity of the rear wheel, accelerometer, velocimeter, gyroscope, magnetometer (24 dimensions).", "source": "marker_v2", "marker_block_id": "/page/15/Text/14"}
85
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0210", "section": "G ENVIRONMENTS", "page_start": 16, "page_end": 16, "type": "Text", "text": "Both \"Car\" and \"Point\" supply a 2 dimensional action space corresponding to a differential drive platform.", "source": "marker_v2", "marker_block_id": "/page/15/Text/15"}
iclr26/1m0EU6QXj6/appendix_text_v3.txt ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 12 | section: A LLM USAGE | type: Text]
2
+ We used LLMs to improve the writing and presentation of the work, as well as to aid in translation. We manually ensured that any alteration in wording did not change the meaning of the work.
3
+
4
+ [p. 12 | section: B PROOFS | type: Text]
5
+ Proof for Theorem 1. Constructing the Lagrangian yields
6
+
7
+ [p. 12 | section: B PROOFS | type: Equation]
8
+ \mathcal{L}(q,\eta,\lambda,\nu) = \mathbb{E}_{(a,s)\sim q}[Q(a,s)] + \eta(\varepsilon - KL(q||\pi)) + \lambda K(q,\pi) + \nu \left(1 - \int q(a,s)dads\right) (13)
9
+
10
+ [p. 12 | section: B PROOFS | type: Text]
11
+ for η, λ ≥ 0. Solving for the optimal q (after absorbing the normalisation constraint) yields
12
+
13
+ [p. 12 | section: B PROOFS | type: Equation]
14
+ q^{\star}(a,s) = \frac{1}{Z}\pi(a,s) \exp\left(\frac{Q(a,s) + \lambda \frac{\delta K(q,\pi)}{\delta q(a,s)}}{\eta}\right) (14)
15
+
16
+ [p. 12 | section: B PROOFS | type: Text]
17
+ with Z = R π (a, s) exp Q(a,s)+λ δK(q,π) δq(a,s) η dads and δK(q,π) δq(a,s) the functional derivative wrt q.
18
+
19
+ [p. 12 | section: B PROOFS | type: Text]
20
+ Notice that for the Karush-Kuhn-Tucker conditions to hold, we also need complementary slackness of η, λ. Specifically we know that either K(q, π) = 0 or λ = 0.
21
+
22
+ [p. 12 | section: B PROOFS | type: Text]
23
+ In the former case, we have that the solution q is no safer than the solution π, be definition. In the latter case, the solution reduces to
24
+
25
+ [p. 12 | section: B PROOFS | type: Equation]
26
+ q^{\star}(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s)}{\eta}\right) (15)
27
+
28
+ [p. 12 | section: B PROOFS | type: Text]
29
+ which is the optimal solution to the unconstrained model.
30
+
31
+ [p. 12 | section: B PROOFS | type: Text]
32
+ Proof for theorem 2. If G(a, s) is not almost everywhere constant, then this means that there exists a pair of disjoint sets X 1 ×X 2 with 0 < µ(X1) = µ(X2) < ∞ such that for all ((a i , si),(a j , s j )) ∈ X 1 × X 2 we have G(a i , si) > G(a j , s j ).
33
+
34
+ [p. 12 | section: B PROOFS | type: Text]
35
+ Choose q such that q(a i , si) + ε 1 = π(a i , si) and q(a j , s j ) − ε 1 = π(a j , s j ). For any
36
+
37
+ [p. 12 | section: B PROOFS | type: Equation]
38
+ 0 < \varepsilon_1 < \min\left(\pi(a_i, s_i), \frac{1}{2}\sqrt{\frac{\varepsilon}{\mu(X_1 \cup X_2)}}\right)
39
+
40
+ [p. 12 | section: B PROOFS | type: Text]
41
+ Keep all other q(ak, sk) = π(ak, sk)∀k ̸= i, k ̸= j.
42
+
43
+ [p. 12 | section: B PROOFS | type: Text]
44
+ The KL-constraint is upheld due to Pinsker's inequality, i.e for any q, π we have
45
+
46
+ [p. 12 | section: B PROOFS | type: Equation]
47
+ 2D_{TV}(q,\pi)^2 \le KL(q||\pi) \le \varepsilon.
48
+
49
+ [p. 12 | section: B PROOFS | type: Text]
50
+ Our distributions only differ on the set X 1 ∪ X2, meaning the total variational distance is less than ε when we choose ε 1 < 1 2 q ε µ(X1∪X2) .
51
+
52
+ [p. 13 | section: B PROOFS | type: Text]
53
+ Trivially, the equality constraint \int q(a,s)dads = 1 is valid ( \varepsilon_1 deviations cancel over pairs). The improvement constraint is nonzero:
54
+
55
+ [p. 13 | section: B PROOFS | type: Equation]
56
+ \begin{split} &\int_{\mathcal{A}\times\mathcal{S}}\pi(a,s)G(a,s)dads\\ &=\int_{X_1}\pi(a,s)G(a,s)dads\\ &+\int_{X_2}\pi(a,s)G(a,s)dads+\int_{(\mathcal{A}\times\mathcal{S})\backslash(X_1\cup X_2)}\pi(a,s)G(a,s)dads\\ &=\int_{X_1}\pi(a,s)G(a,s)dads\\ &+\int_{X_2}\pi(a,s)G(a,s)dads+\int_{(\mathcal{A}\times\mathcal{S})\backslash(X_1\cup X_2)}q(a,s)G(a,s)dads\\ &<\int_{X_1}(\pi(a,s)+\varepsilon_1)G(a,s)dads\\ &+\int_{X_2}(\pi(a,s)-\varepsilon_1)G(a,s)dads\\ &+\int_{X_2}q(a,s)G(a,s)dads\\ &=\int_{X_1}q(a,s)G(a,s)dads\\ &=\int_{X_1}q(a,s)G(a,s)dads\\ &=\int_{\mathcal{A}\times\mathcal{S}}q(a,s)G(a,s)dads \end{split}
57
+
58
+ [p. 13 | section: B PROOFS | type: Text]
59
+ where we use the fact that values G(a,s) in X_1 are strictly better than values G(a,s) in X_2 , and the fact that the sets X_1 and X_2 are not of measure zero to ensure strict inequality. Since K preserves the strict inequality, \int_{\mathcal{A}\times\mathcal{S}}\pi(a,s)G(a,s)dads<\int_{\mathcal{A}\times\mathcal{S}}q(a,s)G(a,s)dads\Longrightarrow K(q,\pi)>0.
60
+
61
+ [p. 13 | section: B PROOFS | type: Text]
62
+ Therefore there exists a q with nonzero x, which means \log(x) is finite, which means a feasible interior point exists. The problem is also convex as both the KL constraint and the K constraint are convex (assumption). This also directly implies Slater's condition, which implies strong duality. \square
63
+
64
+ [p. 13 | section: B PROOFS | type: Text]
65
+ Proof for Theorem 3. Consider the Lagrangian
66
+
67
+ [p. 13 | section: B PROOFS | type: Equation]
68
+ \mathcal{L}(q, x, \lambda, \nu, \mu) = \int q(a, s)Q(a, s)dads + \kappa \log\left(\frac{x}{\kappa}\right) + \lambda \left(\int q(a, s)G(a, s)dads - \int \pi(a, s)G(a, s)dads - x\right) + \nu \left(\varepsilon - \int q(a, s)\log(\frac{q(a, s)}{\pi(a, s)})dads\right) + \mu \left(\int q(a, s)dads - 1\right)
69
+
70
+ [p. 13 | section: B PROOFS | type: Text]
71
+ The optimal x is given by
72
+
73
+ [p. 13 | section: B PROOFS | type: Equation]
74
+ x = \frac{\kappa}{\lambda} \tag{16}
75
+
76
+ [p. 13 | section: B PROOFS | type: Text]
77
+ while the optimal q (after absorbing the normalization constant) is given by
78
+
79
+ [p. 13 | section: B PROOFS | type: Equation]
80
+ q(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right) (17)
81
+
82
+ [p. 13 | section: B PROOFS | type: Text]
83
+ If G is not constant eq. (9) has a solution, which can be found by optimizing over the dual variables \lambda, \nu . This follows directly from theorem 2.
84
+
85
+ [p. 14 | section: B PROOFS | type: Text]
86
+ If G is constant, but \lambda is bounded, the q produced by optimizing eq. (9) can have any finite \lambda . However, since G is constant \lambda G(a,s) can be absorbed into the normalizer
87
+
88
+ [p. 14 | section: B PROOFS | type: Equation]
89
+ \begin{split} q(a,s) &= \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right) \\ &= \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s)}{\nu}\right)\exp\left(\frac{\lambda G(a,s)}{\nu}\right) \\ &= \frac{1}{Z_2}\pi(a,s)\exp\left(\frac{Q(a,s)}{\nu}\right) \end{split}
90
+
91
+ [p. 14 | section: B PROOFS | type: Text]
92
+ which is the solution to MPO
93
+
94
+ [p. 14 | section: C CONVERGENCE | type: Text]
95
+ Proof of theorem 4. To simplify the notation, we will define P(q) = \mathbb{E}_{(a,s)} [Q(a,s)] .
96
+
97
+ [p. 14 | section: C CONVERGENCE | type: Text]
98
+ We will show that the sequence \tilde{q} = q_0, q_1, \ldots defined by recursively applying eq. (9) leads to a contraction towards the feasible set. First, consider the slightly simplified problem
99
+
100
+ [p. 14 | section: C CONVERGENCE | type: Equation]
101
+ q_{i+1}^{\star} = \operatorname{argmax} P(q_{i+1}) + \kappa \log \left( \frac{K(q_{i+1}, q_i^{\star})}{\kappa} \right) (18)
102
+
103
+ [p. 14 | section: C CONVERGENCE | type: Text]
104
+ Note that this corresponds to eq. (9) without the KL-divergence constraint.
105
+
106
+ [p. 14 | section: C CONVERGENCE | type: Text]
107
+ Let's pick some reference point q' within the feasible set. This acts as a lower bound for the maximization in eq. (18). By definition, we have that for
108
+
109
+ [p. 14 | section: C CONVERGENCE | type: Equation]
110
+ P(q_{i+1}^{\star}) + \kappa \log \left( \frac{K(q_{i+1}^{\star}, q_i^{\star})}{\kappa} \right) \ge P(q_{i+1}^{\prime}) + \kappa \log \left( \frac{K(q_{i+1}^{\prime}, q_i^{\star})}{\kappa} \right)
111
+
112
+ [p. 14 | section: C CONVERGENCE | type: Text]
113
+ rearranging yields
114
+
115
+ [p. 14 | section: C CONVERGENCE | type: Equation]
116
+ \kappa \log \left(\frac{K(q_{i+1}^\star, q_i^\star)}{\kappa}\right) \geq \left[P(q_{i+1}^\prime) - P(q_{i+1}^\star)\right] + \kappa \log \left(\frac{K(q_{i+1}^\prime, q_i^\star)}{\kappa}\right)
117
+
118
+ [p. 14 | section: C CONVERGENCE | type: Text]
119
+ Due to boundedness of P(q_{i+1}^{\star}) < M and finiteness of P(q_{i+1}^{\prime}) we get
120
+
121
+ [p. 14 | section: C CONVERGENCE | type: Equation]
122
+ P(q'_{i+1}) - P(q'_{i+1}) \ge P(q'_{i+1}) - M =: -\Delta_{i+1}
123
+
124
+ [p. 14 | section: C CONVERGENCE | type: Text]
125
+ This give us the rate
126
+
127
+ [p. 14 | section: C CONVERGENCE | type: Equation]
128
+ \log\left(\frac{K(q_{i+1}^{\star},q_{i}^{\star})}{\kappa}\right) \geq \frac{-\Delta_{i+1}}{\kappa} + \log\left(\frac{K(q_{i+1}^{\prime},q_{i}^{\star})}{\kappa}\right) = \log\left(\frac{K(q_{i+1}^{\prime},q_{i}^{\star})}{\kappa}\exp\left(\frac{-\Delta_{i+1}}{\kappa}\right)\right)
129
+
130
+ [p. 14 | section: C CONVERGENCE | type: Text]
131
+ which yields the inequality
132
+
133
+ [p. 14 | section: C CONVERGENCE | type: Equation]
134
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge K(q_{i+1}^{\prime}, q_i^{\star}) \exp\left(\frac{-\Delta_{i+1}}{\kappa}\right)
135
+
136
+ [p. 14 | section: C CONVERGENCE | type: Text]
137
+ One possible choice for q' is any feasible point within the original CMDP \mathbb{E}_{(a,s)\sim q'}[C(a,s)] \leq B . Since this is feasible in every iteration, we get a fixed constant c = \exp(-(M-P(q'))/\kappa) \in (0,1] such that
138
+
139
+ [p. 14 | section: C CONVERGENCE | type: Equation]
140
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star})
141
+
142
+ [p. 14 | section: C CONVERGENCE | type: Text]
143
+ which is valid for all iterations. Therefore, we have a real decrease in K(q_{i+1}^*, q_i^*) in every iteration. By definition of Equation (18), we have a lower bound on K, which means \tilde{q} converges.
144
+
145
+ [p. 14 | section: C CONVERGENCE | type: Text]
146
+ We now have to show that it converges to a safe q in the limit. For this consider
147
+
148
+ [p. 14 | section: C CONVERGENCE | type: Equation]
149
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star}) > 0
150
+
151
+ [p. 14 | section: C CONVERGENCE | type: Text]
152
+ Assume that we converge to an unsafe q, we then have a fixed point where q=q_i^\star=q_{i+1}^\star via sequential continuity we have
153
+
154
+ [p. 14 | section: C CONVERGENCE | type: Equation]
155
+ \underbrace{K(q,q) = 0}_{\text{def. K}} \land \underbrace{cK(q',q) > 0}_{\text{nonzero improvement}}
156
+
157
+ [p. 15 | section: C CONVERGENCE | type: FigureGroup]
158
+ Figure 3: A comparison between different \kappa values.
159
+
160
+ [p. 15 | section: C CONVERGENCE | type: Text]
161
+ which is a contradiction. Therefore, we converge to a safe point in the limit.
162
+
163
+ [p. 15 | section: C CONVERGENCE | type: Text]
164
+ Adding the KL-divergence bound complicates analysis, but the idea is the same. Picking a strictly feasible q wrt the original CMDP constraints is not enough, since that might be outside the KL-ball. The fix is simple: Let
165
+
166
+ [p. 15 | section: C CONVERGENCE | type: Equation]
167
+ q'_{i+1} = \operatorname{proj}_{KL(\cdot || q_i) \leq \varepsilon}(q')
168
+
169
+ [p. 15 | section: C CONVERGENCE | type: Text]
170
+ be the projection of the selected point onto the KL ball. Assuming \varepsilon > 0 we can perform exactly the same proof as above, just that instead of having a fixed rate c \in (0, 1] , we have
171
+
172
+ [p. 15 | section: C CONVERGENCE | type: Equation]
173
+ c_i = \exp\left(-\frac{M - P(q'_{i+1})}{\kappa}\right) \in (0, 1]
174
+
175
+ [p. 15 | section: C CONVERGENCE | type: Text]
176
+ This still gives us an (iteration dependent) lower bound
177
+
178
+ [p. 15 | section: C CONVERGENCE | type: Equation]
179
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star})
180
+
181
+ [p. 15 | section: C CONVERGENCE | type: Text]
182
+ where we can apply the same argument for convergence.
183
+
184
+ [p. 15 | section: C CONVERGENCE | type: Text]
185
+ Now assume K is the LSF. Let's call c_{min} = \inf_i \{c_i\} , we get geometric convergence via a standard squeeze argument:
186
+
187
+ [p. 15 | section: C CONVERGENCE | type: Equation]
188
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge c_{min} K(q', q_i^{\star}) > 0
189
+
190
+ [p. 15 | section: C CONVERGENCE | type: Text]
191
+ Meaning we have
192
+
193
+ [p. 15 | section: C CONVERGENCE | type: Equation]
194
+ K(q_{i+1}^{\star}, q_i^{\star}) \ge c_{min} K(q', q_i^{\star})
195
+
196
+ [p. 15 | section: C CONVERGENCE | type: Text]
197
+ for every step. Since the LSF telescopes K(a,b)+K(b,c)=\mathbb{E}_a[G]-\mathbb{E}_b[G]+\mathbb{E}_b[G]-\mathbb{E}_c[G]=K(a,c) , we have
198
+
199
+ [p. 15 | section: C CONVERGENCE | type: Equation]
200
+ K(q', q_{i+1}^{\star}) = K(q', q_{i}^{\star}) - K(q_{i+1}^{\star}, q_{i}^{\star}) \le K(q', q_{i}^{\star}) - c_{min}K(q', q_{i}^{\star}) = (1 - c_{min})K(q', q_{i}^{\star})
201
+
202
+ [p. 15 | section: C CONVERGENCE | type: Text]
203
+ By induction we get
204
+
205
+ [p. 15 | section: C CONVERGENCE | type: Equation]
206
+ K(q', q_n^*) < (1 - c_{min})^n K(q', q_0^*)
207
+
208
+ [p. 15 | section: C CONVERGENCE | type: Text]
209
+ which proves the geometric rate.
210
+
211
+ [p. 15 | section: C CONVERGENCE | type: Text]
212
+ Remark 3. Note that other choices for K may equally lead to a geometric convergence rate, but for the sake of conciseness we only cover the convergence of the LSF used in our experiments.
213
+
214
+ [p. 15 | section: D ABLATION OF HYPERPARAMETERS | type: Text]
215
+ We run an ablation on the impact of \kappa on the overall performance. We generally observed similar performance between the different \kappa values across the entire interval tested.
216
+
217
+ [p. 15 | section: D ABLATION OF HYPERPARAMETERS | type: Text]
218
+ We found no statistically significant difference in changing \varepsilon slightly (evaluated across 10 runs).
219
+
220
+ [p. 16 | section: E VALUE AND COST ESTIMATION | type: Text]
221
+ We use the RETRACE (Munos et al., 2016) algorithm to estimate the returns of Q π and C π . RE-TRACE works by computing importance-weighted updates of the Q function(s) over a replay buffer. Specifically
222
+
223
+ [p. 16 | section: E VALUE AND COST ESTIMATION | type: Equation]
224
+ Q_{new}(s, a) = Q(s, a) + \mathbb{E}_{\mu} \left[ \sum_{t \ge 0} \gamma^{t} (\prod_{i=1}^{t} c_{i}) (r_{t} + \gamma \mathbb{E}_{\pi} [Q(s_{t+1}, \cdot)] - Q(s_{t}, a_{t}), \right]
225
+
226
+ [p. 16 | section: E VALUE AND COST ESTIMATION | type: Text]
227
+ where µ is an arbitrary behaviour policy (e.g. a previous version of the policy) and π is the current policy. RETRACE can be implemented analogously for C(s, a). RETRACE sets
228
+
229
+ [p. 16 | section: E VALUE AND COST ESTIMATION | type: Equation]
230
+ c_i = \min(1, \frac{\pi(a_s|s_i)}{\mu(a_i|s_i)})
231
+
232
+ [p. 16 | section: E VALUE AND COST ESTIMATION | type: Text]
233
+ RETRACE is designed to give high quality estimates of the current policy by exploiting the similarity of previous policies to get lower variance estimates.
234
+
235
+ [p. 16 | section: F HYPERPARAMETERS | type: Text]
236
+ We use a nearly identical network layout for policy, cost, and Q-function with 3 MLP layers with leakyReLU activations, followed by either a mean and covariance prediction layer (for the policy) or a value prediction head for cost/value networks. We use a width of 256 for all latent dimensions.
237
+
238
+ [p. 16 | section: F HYPERPARAMETERS | type: Text]
239
+ For the policy network we parameterize the mean and the cholesky factors of the covariance matrix.
240
+
241
+ [p. 16 | section: F HYPERPARAMETERS | type: Text]
242
+ We use κ = 10 and a standard ε = 0.1
243
+
244
+ [p. 16 | section: G ENVIRONMENTS | type: Text]
245
+ Safety Gymnasium uses a "composable environment" format where every environment contains an "Agent" (in our case "Point" and "Car") and a task (in our case "Goal" and "Button").
246
+
247
+ [p. 16 | section: G ENVIRONMENTS | type: Text]
248
+ The "Goal" tasks give as an input a 48 dimensional state which corresponds to the relative distance towards obstacles and the goal. The "Button" task consists of a 64 dimensional state which corresponds to the distance towards the goal, the buttons, the static obstacles, and the moving obstacles.
249
+
250
+ [p. 16 | section: G ENVIRONMENTS | type: Text]
251
+ In addition to the task-intrinsic state, every agent also adds its own state, which for point is an accelerometer, velocimeter, gyroscope, and magnetometer (12 dimensions), and for the car are Quaternions of the rear wheel which are turned into 3x3 rotation matrices, Angle velocity of the rear wheel, accelerometer, velocimeter, gyroscope, magnetometer (24 dimensions).
252
+
253
+ [p. 16 | section: G ENVIRONMENTS | type: Text]
254
+ Both "Car" and "Point" supply a 2 dimensional action space corresponding to a differential drive platform.
iclr26/1m0EU6QXj6/assets.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "filename": "_page_14_Figure_1.jpeg",
4
+ "path": "/network/scratch/j/jianan.zhao/ReviewAgent/data/processed_papers/iclr26_20260429_1952_all/marker_raw/1m0EU6QXj6/marker_markdown/1m0EU6QXj6/_page_14_Figure_1.jpeg",
5
+ "bytes": 38557,
6
+ "width": 1005,
7
+ "height": 306,
8
+ "aspect_ratio": 3.284313725490196,
9
+ "keep": true,
10
+ "reject_reason": null,
11
+ "model_path": "assets/_page_14_Figure_1.jpeg"
12
+ },
13
+ {
14
+ "filename": "_page_1_Figure_4.jpeg",
15
+ "path": "/network/scratch/j/jianan.zhao/ReviewAgent/data/processed_papers/iclr26_20260429_1952_all/marker_raw/1m0EU6QXj6/marker_markdown/1m0EU6QXj6/_page_1_Figure_4.jpeg",
16
+ "bytes": 15831,
17
+ "width": 448,
18
+ "height": 281,
19
+ "aspect_ratio": 1.594306049822064,
20
+ "keep": true,
21
+ "reject_reason": null,
22
+ "model_path": "assets/_page_1_Figure_4.jpeg"
23
+ }
24
+ ]
iclr26/1m0EU6QXj6/assets/_page_14_Figure_1.jpeg ADDED

Git LFS Details

  • SHA256: f0f9250597184e77d04bfe53a079d3ca3a07f1aa89327541d51586d5c616573b
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB
iclr26/1m0EU6QXj6/assets/_page_1_Figure_4.jpeg ADDED

Git LFS Details

  • SHA256: a90debc3b8b285bb407b89f1f44f68de17008c2193d1a7cf4702295aac5577ae
  • Pointer size: 130 Bytes
  • Size of remote file: 15.8 kB
iclr26/1m0EU6QXj6/chunks_v3_anonymized.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
iclr26/1m0EU6QXj6/dataset_meta.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "1m0EU6QXj6",
3
+ "pipeline": "Paper2Markdown-V3",
4
+ "ok": true,
5
+ "page_count": 16,
6
+ "chunk_count": 211,
7
+ "main_body_chunk_count": 118,
8
+ "appendix_chunk_count": 85,
9
+ "reference_chunk_count": 8,
10
+ "model_text_chars": 52940,
11
+ "raw_markdown_chars": 192332,
12
+ "sanitized_chars": 71911,
13
+ "page_provenance": {
14
+ "min_page": 1,
15
+ "max_page": 16,
16
+ "invalid_count": 0
17
+ },
18
+ "marker_block_type_counts": {
19
+ "Code": 1,
20
+ "Equation": 58,
21
+ "FigureGroup": 2,
22
+ "Footnote": 6,
23
+ "ListGroup": 2,
24
+ "PageFooter": 16,
25
+ "PageHeader": 16,
26
+ "SectionHeader": 22,
27
+ "TableGroup": 1,
28
+ "Text": 144
29
+ },
30
+ "asset_count_raw": 2,
31
+ "asset_count_model_kept": 2,
32
+ "asset_count_rejected": 0,
33
+ "asset_reject_reasons": {
34
+ "kept": 2
35
+ },
36
+ "artifact_leak_audit": {
37
+ "ok": true,
38
+ "hits": {
39
+ "Anonymous Authors": [],
40
+ "ACKNOWLEDGMENT": [],
41
+ "OpenReview": [],
42
+ "\"accept_label\"": [],
43
+ "\"decision\"": [],
44
+ "\"decision_tier\"": [],
45
+ "\"source_status\"": [],
46
+ "Meta-review": [],
47
+ "Official Review": [],
48
+ "official_reviews": [],
49
+ "meta_reviews": [],
50
+ "suggested_verdict_score": []
51
+ },
52
+ "artifact_count": 2
53
+ },
54
+ "default_model_input": "model_text_v3.txt",
55
+ "appendix_input": "appendix_text_v3.txt",
56
+ "reference_input": "reference_text_v3.txt",
57
+ "source": "iclr2026_train",
58
+ "run_name": "iclr26_20260429_1952_all",
59
+ "partial_snapshot": true,
60
+ "snapshot_created_at": "2026-04-30T02:34:47.606558+00:00"
61
+ }
iclr26/1m0EU6QXj6/main_body_chunks.jsonl ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0000", "section": "ABSTRACT", "page_start": 1, "page_end": 1, "type": "Text", "text": "Reinforcement Learning (RL) has demonstrated significant success in optimizing complex control and planning problems. However, scaling RL to real-world applications with multiple, potentially conflicting requirements requires an effective handling of constraints. We propose a novel approach to constraint satisfaction in RL algorithms, focusing on incrementally improving policy safety rather than directly projecting the policy onto a feasible region. We accomplish this by first solving a nonparametric surrogate problem which is guaranteed to contract towards the feasible set, and then cloning that solution into a neural network policy. As a result, our approach improves stability, particularly during early training stages, when the policy lacks knowledge of constraint boundaries. We provide general theoretical results guaranteeing convergence to the safe set for this class of incremental systems. Notably, even the simplest algorithm produced by our theory produces comparable or superior performance when compared to highly tuned constrained RL baselines in challenging constrained environments.", "source": "marker_v2", "marker_block_id": "/page/0/Text/7"}
2
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0001", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "Reinforcement Learning (RL) offers significant potential for improving performance in a wide range of control and planning problems by directly optimizing the behavior policy through interactions with a black-box environment (Sutton & Barto, 2018). However, RL can pose safety challenges due to an untrained policy that accidentally damages equipment or even harms users during the learning process. Further, even if a policy has been safely trained to completion (e.g. in a simulator), one can generally not be sure whether the policy can be considered safe during deployment in the real world.", "source": "marker_v2", "marker_block_id": "/page/0/Text/9"}
3
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0002", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "To address these issues, there is a growing trend towards Safe Reinforcement Learning (SRL) which explicitly introduces safety considerations into the training process. One of the most popular formulations for SRL is the Constrained Markov Decision Process (CMDP), which extends the traditional Markov Decision Process (MDP) by incorporating constraints C(a,s) on the policy's behavior:", "source": "marker_v2", "marker_block_id": "/page/0/Text/10"}
4
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0003", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Equation", "text": "\\max_{\\pi} R(\\pi) \\qquad \\text{s.t.} \\quad C_i(\\pi) \\le B_i \\quad \\forall i = 0, \\dots, N, \\tag{1}", "source": "marker_v2", "marker_block_id": "/page/0/Equation/11"}
5
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0004", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "where R(\\pi) = \\mathbb{E}_{\\tau \\sim \\pi}[\\sum_{t=0}^{\\infty} \\gamma_r^t r_t] represents the expected discounted future rewards, and C_i(\\pi) = \\mathbb{E}_{\\tau \\sim \\pi}[\\sum_{t=0}^{\\infty} \\gamma_c^t c_{t,i}] the expected discounted future costs for the i-th cost function. For the sake of this work, we define C(s,a) as the cost associated with executing action a in state s and following the policy after (analogous to the Q-function). Constrained Reinforcement Learning (CRL) refers to the process of finding a policy that is optimal and is within the feasible set defined by Eq. 1.", "source": "marker_v2", "marker_block_id": "/page/0/Text/12"}
6
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0005", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "It is worth noting that CRL is of wider interest than just safety. Constraints can be used to encode a wide range of different requirements, such as ensuring an autonomous quadcopter has enough battery to return to its charging station, or preventing policies from abusing known inaccuracies in a simulation of the real-world environment. Indeed, many reward shaping problems can be efficiently reformulated as constraint satisfaction tasks.", "source": "marker_v2", "marker_block_id": "/page/0/Text/13"}
7
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0006", "section": "1 Introduction", "page_start": 1, "page_end": 1, "type": "Text", "text": "Methods that optimize directly for safety can struggle when the set of feasible policies is difficult to find or when the closest feasible policy is very suboptimal. Fig. 1 shows a robot that attempts", "source": "marker_v2", "marker_block_id": "/page/0/Text/14"}
8
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0007", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "to throw a ball onto one of three platforms, each of them separated by chasms. The initial (unsafe) policy throws the ball onto the middle platform (R:0, C:0) and potentially into the holes to the left (R:1, C:1) and right (R:0, C:1). Since the initial policy has never reached the left platform, a greedy projection of the policy onto the feasible set would mean the policy only hits the central column, terminating with a reward of 0 and a cost of 0. Policy optimization methods that rely on greedy recovery (Achiam et al., 2017; Xu et al., 2020) or projection (Narasimhan, 2020; Yang et al., 2022) will naturally find themselves in a local optimum that is safe, but do not obtain reward (or, more generally, an arbitrarily bad reward), due to a lack of exploration.", "source": "marker_v2", "marker_block_id": "/page/1/Text/1"}
9
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0008", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "Such situations are common in practice as they may also arise from inherent randomness in sampling from stochastic environments with stochastic policies. A sufficiently small probability of reaching high-reward, safe areas can effectively eliminate potentially feasible policies from consideration. Ensuring a sufficiently close policy πk+1 using KL-ball constraints KL(πk+1∥πk) < ε, introduces a new challenge, as the intersection of feasible policies and policies within the ε-ball might be empty.", "source": "marker_v2", "marker_block_id": "/page/1/Text/2"}
10
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0009", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "This is a known problem: Constrained Variational Policy Optimization (CVPO) (Liu et al., 2022) aims to directly solve a nonparametric surrogate problem. However, there is no guarantee that a safe policy within a KL-ball exists as the initial policy can be arbitrarily far away from the feasible set. As a result, Liu et al. (2022) decay their cost upper bound B from some large value Bmax → B over", "source": "marker_v2", "marker_block_id": "/page/1/Text/3"}
11
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0010", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "FigureGroup", "text": "Figure 1: A robot throws a ball to a different platform. The initial policy (gray) either hits the central platform (R:0) or one of the two chasms (C:1). The optimal policy throws the ball directly to the platform on the left (R:1, C:0).", "source": "marker_v2", "marker_block_id": "/page/1/FigureGroup/356"}
12
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0011", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "the course of training. The limitation of this is obvious: Too fast decay may lead to unsatisfiable problems, while too slow decay requires a large number of iterations exceeding B. This means that the decay speed is a crucial hyperparameter that is also difficult to tune in practice, since it largely depends on the exploration performance and the specifics of the constraints and the environment.", "source": "marker_v2", "marker_block_id": "/page/1/Text/6"}
13
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0012", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "One might challenge this notion with the proof provided by Paternain et al. (2019) who show that constrained RL has zero duality gap. 1 Indeed, this is theoretically true: Assuming the occupation measure has a nonzero probability to reach every state, one could discover every possible policy. However, this relies on the assumption that the occupation measure has a nonzero probability of reaching every state, which is unrealistic in practical algorithms with finite evaluations. Lowprobability states effectively disappear from the sampled distribution and are never optimized. Since RL over occupation measures is linear (see (Paternain et al., 2019) , program P I′′), the distribution will never get optimized increased occupation in those states.", "source": "marker_v2", "marker_block_id": "/page/1/Text/7"}
14
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0013", "section": "1 Introduction", "page_start": 2, "page_end": 2, "type": "Text", "text": "We propose an alternative approach: instead of greedily projecting onto the safe set, we aim to solely ensure that policy πk+1 is safer than the previous policy πk. We formulate this as a constrained Bayesian optimization problem, seeking a monotonically increasing likelihood of a trajectory being safe p(S = 1). Being a Bayesian approach this is typically more robust to approximation errors and local optima. This way we can design algorithms that achieve high safety, while being more robust against approximation errors and local optima.", "source": "marker_v2", "marker_block_id": "/page/1/Text/8"}
15
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0014", "section": "2 RELATED WORK", "page_start": 2, "page_end": 2, "type": "Text", "text": "Contemporary methods for achieving constraint satisfaction on CMDPs often rely on identifying and maintaining safety once a safe policy has been found. For instance, Constrained Policy Optimization (CPO) (Achiam et al., 2017) bounds the increase in costs ensuring that given a safe policy π the updated policy π ′ will remain safe. During training, whenever a policy is considered unsafe, cost-minimizing recovery steps are performed. Constrained Update Projection (CUP) (Yang et al., 2022) utilizes a similar bound to project the updated policy back onto the feasible set defined by a generalization of the inequality used in (Achiam et al., 2017) . Constraint-Rectified Policy", "source": "marker_v2", "marker_block_id": "/page/1/Text/10"}
16
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0015", "section": "2 RELATED WORK", "page_start": 2, "page_end": 2, "type": "Footnote", "text": "1 Indeed the proof by Paternain et al. (Paternain et al., 2019) rediscovered a more general notion: every optimization problem max x L(x) can be turned into a linear program over measures: max ρ R L(x)ρ(x)dx, with the minimum being obtained by e.g. the Dirac impulse at the optimal x ⋆ (see e.g., (Lasserre, 2009) ).", "source": "marker_v2", "marker_block_id": "/page/1/Footnote/11"}
17
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0016", "section": "2 RELATED WORK", "page_start": 3, "page_end": 3, "type": "Text", "text": "Optimization (CRPO) (Xu et al., 2020) updates the policy towards the optimum as long as the policy is safe, reverting to cost minimization to regain safety otherwise. Reward Constrained Policy Optimization (RCPO) (Tessler et al., 2018) combines the reward and cost signal into a single value function V (st, λ) parameterized by the dual λ allowing for more principled updates than a traditional Lagrangian approach. This method is limited by how quickly λ can be updated under exploration noise. Projection-Based Constrained Policy Optimization (PCPO) (Narasimhan, 2020) directly projects the policy onto the feasible set in every iteration, but requires Hessian calculations to perform accurate projections. Furthermore, projections may lead to large jumps in policies especially during early training as the estimate of the feasible set may be very noisy and the policy may be far from feasible. Stooke et al. (2020) adopt a PID perspective for tuning the Lagrangian λ which gives rise to a host of different traditional methods combined with a penalty function. Constraint recovery steps (either via hard projection as in CUP or descent-based as in CPO) easily lead to the scenario from Fig. 1. This is because the projection onto the space of safe distributions may not be exact (e.g., due to sampling errors) which prematurely reduces exploration for states that may be safe in practice. Our method solves this by not overcommitting to any individual cost estimate.", "source": "marker_v2", "marker_block_id": "/page/2/Text/1"}
18
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0017", "section": "2 RELATED WORK", "page_start": 3, "page_end": 3, "type": "Text", "text": "Outside of CRL, one notable earlier work is Maximum a Posteriori Optimization (MPO) (Abdol maleki et al., 2018) . MPO first optimizes a surrogate objective using a nonparametric approximation q of the policy-improvement objective. The result of the surrogate is then cloned to the policy neural network by minimizing KL(π∥q). This explicit surrogate means that, from the point of view of neural network optimization, reinforcement learning becomes a supervised problem of matching to a known target distribution.", "source": "marker_v2", "marker_block_id": "/page/2/Text/2"}
19
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0018", "section": "2 RELATED WORK", "page_start": 3, "page_end": 3, "type": "Text", "text": "RL has long relied on incremental objectives, such as advantage functions, to reduce variance and improve convergence. It stands to reason that a similar treatment would benefit constrained RL methods. Indeed, most convergence proofs used in reinforcement learning rely on some notion of relative improvement compared to the previous policy (e.g. (Sutton & Barto, 2018; Xiao, 2022) ). We would argue that such guaranteed improvement constraints are more natural in the iterative \"explore then optimize\" framework commonly used in RL.", "source": "marker_v2", "marker_block_id": "/page/2/Text/3"}
20
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0019", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Text", "text": "We build upon Maximum a Posteriori Optimization (MPO) (Abdolmaleki et al., 2018) , extending their EM-style RL update to CMDPs. MPO sees policy updates as inference problems with the assumption that the probability of a trajectory being optimal p(O = 1) follows a Boltzman distribution p(O = 1|τ ) ∝ exp(P t rt/α). This leads to the following ELBO", "source": "marker_v2", "marker_block_id": "/page/2/Text/5"}
21
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0020", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Equation", "text": "\\log P_{\\pi}(O=1) = \\log \\int p_{\\pi}(\\tau) p(O=1|\\tau) d\\tau \\ge \\int q(\\tau) \\left[ \\log p(O=1|\\tau) + \\log \\frac{p_{\\pi}(\\tau)}{q(\\tau)} \\right] d\\tau = \\mathbb{E}_{q} \\left[ \\sum_{t} r_{t} / \\alpha \\right] - KL(q(\\tau) || p_{\\pi}(\\tau)), (2)", "source": "marker_v2", "marker_block_id": "/page/2/Equation/6"}
22
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0021", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Text", "text": "which is then solved in two phases. This is a traditional Bayesian inference problem which can be solved using the Expectation-Maximization (EM) algorithm. The EM algorithm (Neal & Hinton, 1998) solves Equation 2 by iteratively maximizing q or π while keeping the other fixed. In the case of MPO, we first solve a nonparametric approximation derived directly from a batch of samples from the replay buffer to obtain q:", "source": "marker_v2", "marker_block_id": "/page/2/Text/7"}
23
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0022", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Equation", "text": "\\max_{q} \\mathbb{E}_{(a,s)\\sim q}[Q(a,s)] \\tag{3a}", "source": "marker_v2", "marker_block_id": "/page/2/Equation/8"}
24
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0023", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Equation", "text": "s.t. KL(q||\\pi) \\le \\varepsilon (3b)", "source": "marker_v2", "marker_block_id": "/page/2/Equation/9"}
25
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0024", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Equation", "text": "\\int q(a,s)dadas = 1 \\tag{3c}", "source": "marker_v2", "marker_block_id": "/page/2/Equation/10"}
26
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0025", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Text", "text": "where the KL-constraint is introduced to automatically construct a suitable temperature α. In a second step, one matches the policy neural network π to the nonparametrically optimal q", "source": "marker_v2", "marker_block_id": "/page/2/Text/11"}
27
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0026", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Equation", "text": "\\min_{\\pi} \\{ KL(q \\| \\pi) : KL(\\pi_{\\text{old}} \\| \\pi) < \\varepsilon \\}. \\tag{4}", "source": "marker_v2", "marker_block_id": "/page/2/Equation/12"}
28
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0027", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 3, "page_end": 3, "type": "Text", "text": "This step is not dependent on any potentially nonstationary objective, but only has to clone the information of the optimal distribution found in eq. (3) .", "source": "marker_v2", "marker_block_id": "/page/2/Text/13"}
29
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0028", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 4, "page_end": 4, "type": "Text", "text": "MPO now proceeds to alternatingly solve Equation (3) and Equation (4) : In every iteration, the current policy π is approximated empirically by drawing states from the replay buffer and predicting π(a|s). The samples are used to solve Equation (3) for the optimal q 2 , which is then cloned into the policy network using Equation (4) .", "source": "marker_v2", "marker_block_id": "/page/3/Text/1"}
30
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0029", "section": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)", "page_start": 4, "page_end": 4, "type": "Text", "text": "We believe this to be an appealing structure for CRL as the nonparametric model eq. (3) can easily accomodate additional constraints, which can then be handled by efficient optimizers (in our case Sequential Least Squares Programming).", "source": "marker_v2", "marker_block_id": "/page/3/Text/2"}
31
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0030", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "We generalize this to CMDPs by introducing a second \"policy is safe\" event S and then optimizing the resulting joint distribution:", "source": "marker_v2", "marker_block_id": "/page/3/Text/4"}
32
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0031", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Equation", "text": "\\log P_{\\pi}(O=1, S=1) = \\log \\int p_{\\pi}(\\tau) p(O=1|\\tau) p(S=1|\\tau) d\\tau (5a)", "source": "marker_v2", "marker_block_id": "/page/3/Equation/5"}
33
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0032", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Equation", "text": "\\geq \\int q(\\tau) \\left[ \\log p(O=1|\\tau) + \\log p(S=1|\\tau) + \\log \\frac{p_{\\pi}(\\tau)}{q(\\tau)} \\right] d\\tau \\tag{5b}", "source": "marker_v2", "marker_block_id": "/page/3/Equation/6"}
34
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0033", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Equation", "text": "= \\mathbb{E}_q \\left[ \\sum_t r_t / \\alpha \\right] + \\log p(S = 1 | \\tau) - KL(q(\\tau) || p_{\\pi}(\\tau)) (5c)", "source": "marker_v2", "marker_block_id": "/page/3/Equation/7"}
35
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0034", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "Following Abdolmaleki et al. (2018) , we define the probability of safety as an exponential law, but with the notable change that we truncate the law while the policy is safe", "source": "marker_v2", "marker_block_id": "/page/3/Text/8"}
36
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0035", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Equation", "text": "p(S=1|\\tau) \\propto \\begin{cases} \\exp\\left(\\frac{-(C(a,s)-B)}{\\beta}\\right) & C(a,s) \\ge B\\\\ 1 & \\text{otherwise} \\end{cases} (6)", "source": "marker_v2", "marker_block_id": "/page/3/Equation/9"}
37
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0036", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "Notice that this truncation automatically makes sure that all feasible policies have an equal likelihood to be safe, which is exactly the behavior we want in CRL. We also define the cost-log-likelihood function:", "source": "marker_v2", "marker_block_id": "/page/3/Text/10"}
38
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0037", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Equation", "text": "G(a,s) = \\log p(S=1|\\tau) = -\\max\\left(\\frac{C(a,s) - B}{\\beta}, 0\\right). \\tag{7}", "source": "marker_v2", "marker_block_id": "/page/3/Equation/11"}
39
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0038", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "This is the canonical choice for mapping the costs to a distribution, just as exp(R(τ )) is the canonical choice for returns (Abdolmaleki et al., 2018) . Specifically, the Gibbs distribution is the unique distribution that weights higher R higher while keeping maximal entropy (Jaynes, 1957) . Our truncation adds the third property that values above B are considered equal, which is the core difference between an optimization objective, and a constraint.", "source": "marker_v2", "marker_block_id": "/page/3/Text/12"}
40
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0039", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "Notice that Eq. 5 allows for a wide variety of optima: Any weighting for safety against optimality is possible. As we are interested in CRL (instead of multi-objective RL), we try to select an optimum such that the new policy q is at least as safe as the old policy π. Like Abdolmaleki et al. (2018) , we replace the temperature β with a constraint, just that we want to use an improvement bound safety(π) ≤ safety(q).", "source": "marker_v2", "marker_block_id": "/page/3/Text/13"}
41
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0040", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "Remark 1. Note that our proofs would work, even if we choose a different distribution/likelihood function G since our proofs only rely on a safer policy having a higher likelihood. Therefore, any function that is monotonically decreasing for values Ci(π) ≤ B i will provide a feasible safety likelihood. We choose G as a truncated exponential, due to its connection with the reward function used in (Abdolmaleki et al., 2018; Haarnoja et al., 2017) . However, this choice has disadvantages, which we will discuss in Section 4.", "source": "marker_v2", "marker_block_id": "/page/3/Text/14"}
42
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0041", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Text", "text": "In the following, we will show that with very limited assumptions, a simple improvement constraint safety(π) ≤ safety(q) is insufficient to guarantee improvement, and how one can create a consistently improving policy by explicitly forcing improvements in every iteration. First, to formalize the notion of safety(π) ≤ safety(q), we introduce the notion of a safety order preservation function:", "source": "marker_v2", "marker_block_id": "/page/3/Text/15"}
43
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0042", "section": "3.1 SAFEMPO", "page_start": 4, "page_end": 4, "type": "Footnote", "text": "In practice, one solves the dual problem which is equivalent due to Equation (3) being a convex problem with nonempty interior", "source": "marker_v2", "marker_block_id": "/page/3/Footnote/16"}
44
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0043", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Definition 1 (Safety Order Preserving Functions). A function K(p, q) is called safety order preserv ing if, for all distributions q, π and all functions G(a, s) we have", "source": "marker_v2", "marker_block_id": "/page/4/Text/1"}
45
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0044", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "1. \\mathbb{E}_{(a,s)\\sim q}[G(a,s)] > \\mathbb{E}_{(a,s)\\sim \\pi}[G(a,s)] \\implies K(q,\\pi) > 0 ,", "source": "marker_v2", "marker_block_id": "/page/4/Equation/2"}
46
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0045", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "2. \\mathbb{E}_{(a,s)\\sim q}[G(a,s)] < \\mathbb{E}_{(a,s)\\sim \\pi}[G(a,s)] \\implies K(q,\\pi) < 0", "source": "marker_v2", "marker_block_id": "/page/4/Equation/3"}
47
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0046", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "3. \\mathbb{E}_{(a,s)\\sim q}[G(a,s)] = \\mathbb{E}_{(a,s)\\sim \\pi}[G(a,s)] \\implies K(q,\\pi) = 0", "source": "marker_v2", "marker_block_id": "/page/4/Equation/4"}
48
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0047", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Informally, a Safety Order Preserving function is one that defines a \"direction\" towards the feasible set. This definition will allow us later to make general monotonic improvement guarantees by defining \"improvement\" in terms of a general K(·, ·) function, which may allow individual states to increase cost, while decreasing the cost over all, facilitating greater freedom of exploration. We will now give examples for Safety Order Preserving Functions, starting with the naive choice of a linear improvement in expectation:", "source": "marker_v2", "marker_block_id": "/page/4/Text/5"}
49
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0048", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Example 3.1 (Linear Safety Function (LSF)).", "source": "marker_v2", "marker_block_id": "/page/4/Text/6"}
50
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0049", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "K(q,\\pi) = \\int q(a,s)G(a,s)dads - \\int \\pi(a,s)G(a,s)dads", "source": "marker_v2", "marker_block_id": "/page/4/Equation/7"}
51
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0050", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "is safety order preserving.", "source": "marker_v2", "marker_block_id": "/page/4/Text/8"}
52
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0051", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Example 3.2. Priors conditional on safety", "source": "marker_v2", "marker_block_id": "/page/4/Text/9"}
53
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0052", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "K(q,\\pi) = \\begin{cases} f(q) & \\int q(a,s)G(a,s)dads > 0 \\\\ 0 & \\int q(a,s)G(a,s)dads = 0 \\\\ g(q) & \\textit{otherwise} \\end{cases}", "source": "marker_v2", "marker_block_id": "/page/4/Equation/10"}
54
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0053", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "for f is a positive, g is a negative function, are safety order preserving.", "source": "marker_v2", "marker_block_id": "/page/4/Text/11"}
55
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0054", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Flexibility in the safety order preserving function allows us to e.g. favor safe policies with lower variance, or to favor policies deeper in the interior of the feasible set by choosing a suitable f. It also allows a \"hard\" improvement boundary which simply counts the number of safe trajectories by setting f = 1 and g = −1. We will keep a more thorough analysis of good choices for K for future work. For now, the framework of safety order preserving functions allows us to make very general statements about how incremental improvement constraints can be used in CRL.", "source": "marker_v2", "marker_block_id": "/page/4/Text/12"}
56
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0055", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Theorem 1. Let Q(a, s) be a Q-function, G(a, s) the cost-likelihood function, π the current policy, and K(p, q) safety order preserving function. Then the optimal nonparametric policy q solving the improvement equation", "source": "marker_v2", "marker_block_id": "/page/4/Text/13"}
57
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0056", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "\\max_{q} \\mathbb{E}_{(a,s)\\sim q}[Q(a,s)] \\tag{8a}", "source": "marker_v2", "marker_block_id": "/page/4/Equation/14"}
58
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0057", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "s.t. KL(q||\\pi) \\le \\varepsilon (8b)", "source": "marker_v2", "marker_block_id": "/page/4/Equation/15"}
59
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0058", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "K(q,\\pi) \\ge 0 \\tag{8c}", "source": "marker_v2", "marker_block_id": "/page/4/Equation/16"}
60
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0059", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "\\int q(a,s)dads = 1 \\tag{8d}", "source": "marker_v2", "marker_block_id": "/page/4/Equation/17"}
61
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0060", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "either has the same safety as the original π , or ignores K and solves the unconstrained MPO problem (Eq. 3) .", "source": "marker_v2", "marker_block_id": "/page/4/Text/18"}
62
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0061", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Proofs can be found in Appendix B. This theorem immediately gives rise to two corollaries:", "source": "marker_v2", "marker_block_id": "/page/4/Text/19"}
63
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0062", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Corollary 1. Whether a policy ends up being safe under the incremental model completely depends on whether Q(a, s) is higher in safe regions than in unsafe ones.", "source": "marker_v2", "marker_block_id": "/page/4/Text/20"}
64
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0063", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "Corollary 2. Choosing the naive improvement constraint", "source": "marker_v2", "marker_block_id": "/page/4/Text/21"}
65
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0064", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Equation", "text": "\\mathbb{E}_{(a,s)\\sim q}[G(a,s)] \\ge \\mathbb{E}_{(a,s)\\sim \\pi}[G(a,s)]", "source": "marker_v2", "marker_block_id": "/page/4/Equation/22"}
66
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0065", "section": "3.1 SAFEMPO", "page_start": 5, "page_end": 5, "type": "Text", "text": "for Equation (8) is not a contraction over the safety likelihood G .", "source": "marker_v2", "marker_block_id": "/page/4/Text/23"}
67
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0066", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "The core issue behind the method outlined in Theorem 1 is that they do not force the model to pick a point in the interior of the feasible set of Eq. 8. This means we cannot guarantee a nonzero improvement in safety. To solve this issue, we borrow techniques from interior point methods, namely logarithmic barrier functions.", "source": "marker_v2", "marker_block_id": "/page/5/Text/2"}
68
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0067", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "In interior point methods, the log-barrier function is used to maintain constraints g(x) ≤ 0 by converting them to a barrier of the form µ log(−g(x)). This ensures that once a point is feasible, it will always stay feasible due to the singularity at log(0). The downside for classical optimization is that points close to the barrier g(x) = 0 are hard to reach, which is why barrier methods slowly reduce the barrier weight µ → 0 during optimization to approximate the true feasible region. This way interior point methods slowly walk closer towards the barrier, but can never jump over g(x) = 0 due to the singularity of the logarithm.", "source": "marker_v2", "marker_block_id": "/page/5/Text/3"}
69
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0068", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "Luckily, as we expressly want points in the interior, we can pick any arbitrary µ and a logarithmic barrier to ensure a nonzero improvement in our safety constraints. Specifically, with K being a safety-order preserving function, we can formulate our incremental approach as", "source": "marker_v2", "marker_block_id": "/page/5/Text/4"}
70
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0069", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "\\max_{q} \\mathbb{E}_{(a,s)\\sim q}[Q(a,s)] + \\kappa \\log\\left(\\frac{x}{\\kappa}\\right) (9a)", "source": "marker_v2", "marker_block_id": "/page/5/Equation/5"}
71
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0070", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "s.t. KL(q||\\pi) \\le \\varepsilon (9b)", "source": "marker_v2", "marker_block_id": "/page/5/Equation/6"}
72
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0071", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "K\\left(q,\\pi\\right) \\ge x \\tag{9c}", "source": "marker_v2", "marker_block_id": "/page/5/Equation/7"}
73
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0072", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "\\int q(a,s)dads = 1 \\tag{9d}", "source": "marker_v2", "marker_block_id": "/page/5/Equation/8"}
74
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0073", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "Assuming E[Q(a, s)] is bounded, this method is guaranteed to improve the safety margin in every iteration by construction and provides a geometric convergence towards the feasible set (see theorem 4) . For any κ > 0, every q with a strictly positive improvement x > 0 will be favored over all other q since for x ≤ 0 we have log(x) = −∞. 3 Importantly, neither the improvement nor the final optimum when this is iterated depends on the choice of κ, only the local per-iteration tradeoff between reward maximization and constraint improvement changes as κ changes!", "source": "marker_v2", "marker_block_id": "/page/5/Text/9"}
75
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0074", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "For example, when choosing K as the LSF in Example 3.1, κ → ∞ produces a hard projection onto {q|KL(q∥π) ≤ ε, Ci(q) ≤ Bi}, and for κ → 0 one obtains the MPO update (see also Theorem 3) . We simply pick κ = 10 for all of our experiments. This value is not tuned for our experiments, which corresponds to the real-world usecase where the optimal (or even a good) κ may not be known.", "source": "marker_v2", "marker_block_id": "/page/5/Text/10"}
76
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0075", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "One can easily solve Eq. 9 by optimizing over the dual variables λ, ν in", "source": "marker_v2", "marker_block_id": "/page/5/Text/11"}
77
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0076", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "\\mathcal{L}(\\lambda, \\nu) = \\int q^{\\star}(a, s)Q(a, s)dads - \\kappa \\log \\lambda (10a)", "source": "marker_v2", "marker_block_id": "/page/5/Equation/12"}
78
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0077", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "+\\lambda \\left(\\int q^{\\star}(a,s)G(a,s)dads - \\int \\pi(a,s)G(a,s)dads\\right) (10b)", "source": "marker_v2", "marker_block_id": "/page/5/Equation/13"}
79
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0078", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "+ \\nu \\left( \\varepsilon - \\int q^{\\star}(a, s) \\log \\left( \\frac{q^{\\star}(a, s)}{\\pi(a, s)} \\right) dads \\right), (10c)", "source": "marker_v2", "marker_block_id": "/page/5/Equation/14"}
80
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0079", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "where the optimal q ⋆ can be computed in closed form as", "source": "marker_v2", "marker_block_id": "/page/5/Text/15"}
81
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0080", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Equation", "text": "q^{\\star}(a,s) = \\frac{1}{Z}\\pi(a,s)\\exp\\left(\\frac{Q(a,s) + \\lambda G(a,s)}{\\nu}\\right). \\tag{11}", "source": "marker_v2", "marker_block_id": "/page/5/Equation/16"}
82
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0081", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Text", "text": "Note that the optimization problem (Eq. 10) is convex and only has 2 variables. 4 To guarantee a solution to Eq. 10 corresponds to solutions of Eq. 9, one needs a constraint qualification and strong duality. In general, solving the dual problem can be seen as favorable for constrained RL, as the dual problem's complexity scales with the number of constraints, rather than the number of state-action pairs in the batch. The latter might be very large as one may need a lot of samples to accurately track the expected values in Eq. 9. Convex optimization commonly uses Slater's condition:", "source": "marker_v2", "marker_block_id": "/page/5/Text/17"}
83
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0082", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Footnote", "text": "3 We make the usual assumption in convex optimization that undefined values receive a −∞ penalty Boyd, Stephen & Vandenberghe, Lieven (2004) .", "source": "marker_v2", "marker_block_id": "/page/5/Footnote/18"}
84
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0083", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 6, "page_end": 6, "type": "Footnote", "text": "4 More generally, for a problem with N constraints, we have 1 + N variables.", "source": "marker_v2", "marker_block_id": "/page/5/Footnote/19"}
85
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0084", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Proposition 1 (Slater's condition). If a convex program with constraints f_0, \\ldots, f_n \\leq 0 has a point in the relative interior f_0, \\ldots, f_n < 0 , strong duality holds", "source": "marker_v2", "marker_block_id": "/page/6/Text/1"}
86
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0085", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Slater's condition acts as both a strong duality certificate, and a constraint qualification. Verifying Slater's condition can be somewhat tricky for very general constraint sets such as the ones used for Eq. 10. Fortunately, for Eq. 9 we can give an easier way to check condition for strong duality", "source": "marker_v2", "marker_block_id": "/page/6/Text/2"}
87
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0086", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Theorem 2. Let (A \\times S, \\Sigma, \\mu) be a measure space. If G(a, s) : A \\times S \\to \\mathcal{R} is not almost everywhere constant, \\pi is fully supported and \\varepsilon > 0 , and K is concave, then Eq. 9 has a solution and strong duality holds.", "source": "marker_v2", "marker_block_id": "/page/6/Text/3"}
88
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0087", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "The proof can be found in Appendix B. Using this theorem we can conclude the following:", "source": "marker_v2", "marker_block_id": "/page/6/Text/4"}
89
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0088", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Corollary 3. Let O: \\pi \\to q be an improvement operator induced by Equation (9). Then O is a contraction wrt the pseudo-metric K(\\cdot,\\cdot) .", "source": "marker_v2", "marker_block_id": "/page/6/Text/5"}
90
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0089", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Remark 2. Theorem 2 still holds for multiple constraints G_1, \\ldots, G_N if one replaces the condition \"G(a, s) is not almost everywhere constant\" with \"there exists a subset A' \\times S' \\subseteq A \\times S with \\mu(A' \\times S') > 0 where none of the G_i are constant.\"", "source": "marker_v2", "marker_block_id": "/page/6/Text/6"}
91
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0090", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "This means that, in practice, one only has to ensure that G(a,s) is not constant, and that \\pi has nonzero probability for all outputs (which is a standard assumption in both inference and RL), and that whatever K is chosen has to be concave and safety order preserving. For simplicity, we will choose K as the LSF (Example 3.1), since, without further assumptions, this can be seen as the canonical choice for K. Choosing a different K might further improve performance by e.g. favoring high-entropy solutions within the safer set. Choosing K choice has an interesting consequence: even if G(a,s) is constant, we can define a reasonable notion of the optimal solution in Eq. 9.", "source": "marker_v2", "marker_block_id": "/page/6/Text/7"}
92
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0091", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Theorem 3. Assume a sufficiently large upper bound M > 0 on the dual variable associated with the improvement constraint. If K is the LSF (see Example 3.1), then solving Eq. 9 with a constrained dual produces a solution to Eq. 9 if G is not constant, and a solution of Eq. 3 if G is constant.", "source": "marker_v2", "marker_block_id": "/page/6/Text/8"}
93
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0092", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "The result in Theorem 3 provides a very natural way of implementing the nonparametric surrogate: We optimize the dual variables under some sufficiently large constraints (we choose \\lambda \\in [-10^6, 10^6] ). If the batch we are optimizing over is constant (e.g., all (a,s) are already safe, random sampling), we automatically make an MPO step, while in all other cases we perform a safe improvement step. We present the complete method in Algorithm 1.", "source": "marker_v2", "marker_block_id": "/page/6/Text/9"}
94
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0093", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Combining all previous theorems, we obtain a very general convergence guarantee", "source": "marker_v2", "marker_block_id": "/page/6/Text/10"}
95
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0094", "section": "3.2 GUARANTEED IMPROVEMENT E-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Theorem 4. Assuming \\mathbb{E}_{(a,s)\\sim q}[Q(a,s)] is bounded in [-M,M], and the feasible set is not empty, eq. (9) converges towards the feasible set, and K is sequentially continuous on the nonnegative component (cases 1., 3. for definition 1) and not constant. If we additionally choose K as the LSF (example 3.1), then we obtain geometric convergence speed.", "source": "marker_v2", "marker_block_id": "/page/6/Text/11"}
96
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0095", "section": "3.3 M-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "After the optimal nonparametric q^* is computed, the resulting distribution has to be \"cloned\" into the policy neural network. Just like MPO (Abdolmaleki et al., 2018), we factor \\pi(a,s)=\\pi(a|s)\\mu(s) and q(a,s)=q(a|s)\\mu(s) where \\mu(s) is the stationary distribution estimated using the replay buffer. As in MPO, we use a split KL-difference constraint as the prior in our M-step. Therefore our M-step is", "source": "marker_v2", "marker_block_id": "/page/6/Text/13"}
97
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0096", "section": "3.3 M-STEP", "page_start": 7, "page_end": 7, "type": "Equation", "text": "\\mathcal{L}(q, \\alpha_1, \\alpha_2) = \\mathbb{E}_{\\mu(s)} \\left[ \\mathbb{E}_{q^*} \\left[ \\log \\pi(a|s) \\right] \\right] + \\alpha_1(\\varepsilon_\\mu - C\\mu) + \\alpha_2(\\varepsilon_\\Sigma - C_\\Sigma), \\tag{12}", "source": "marker_v2", "marker_block_id": "/page/6/Equation/14"}
98
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0097", "section": "3.3 M-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "where C_{\\Sigma} = \\mathbb{E}_{\\mu(s)}[\\frac{1}{2}(\\Sigma^{-1}\\Sigma_{old}) - n + \\log\\left(\\frac{|\\Sigma|}{|\\Sigma_{old}|}\\right)] and C_{\\mu} = \\mathbb{E}_{\\mu(s)}[\\frac{1}{2}(\\mu - \\mu_{old})^T\\Sigma^{-1}(\\mu - \\mu_{old})] is the split KL-constraint. We update both Q(a,s) and C(a,s) using RETRACE (Munos et al., 2016) which has empirically good performance and is guaranteed to converge under small assumptions.", "source": "marker_v2", "marker_block_id": "/page/6/Text/15"}
99
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0098", "section": "3.3 M-STEP", "page_start": 7, "page_end": 7, "type": "Text", "text": "Generally speaking, our E-step is written to allow for different factorizations, such as the one used in V-MPO (Song et al., 2019), which has higher per-update efficiency but comes at the cost of not being able to use off-policy data. For the sake of this work, we utilize the traditional MPO estimator, but V-MPO style updates should be a plug-in replacement.", "source": "marker_v2", "marker_block_id": "/page/6/Text/16"}
100
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0099", "section": "Algorithm 1 SafeMPO update step", "page_start": 8, "page_end": 8, "type": "Code", "text": "Require: Policy π, safety function K, replay buffer D, dual multipliers α1, α2, maximal dual Mλ Ensure: π > 0 sample Batch B ∼ D Update Q(a, s) using RETRACE on B Update C(a, s) using RETRACE on B solve Equation (10) for λ ∈ [0, Mλ), ν ∈ [0, ∞) on B Compute q ⋆ (a|s) using Equation (11) for 0 ≤ i < N do π ← using Equation (12) descend on π α1 ← using Equation (12) ascend on α1 α2 ← using Equation (12) ascend on α2 end for", "source": "marker_v2", "marker_block_id": "/page/7/Code/2"}
101
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0100", "section": "3.4 IMPLEMENTATION", "page_start": 8, "page_end": 8, "type": "Text", "text": "Algorithm 1 shows the prototypical implementation of a single-batch update to our policy. We first fit both the Q and C function to the sampled trajectories using the RETRACE (Munos et al., 2016) estimator. We can then solve the dual problem Equation (10) and compute the nonparametric reference q ⋆ (a|s), which we use as the target for our neural network. For the experiments in Section 4, we sample 20 batches of size 1024 and set N = 8.", "source": "marker_v2", "marker_block_id": "/page/7/Text/4"}
102
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0101", "section": "4 EXPERIMENTS", "page_start": 8, "page_end": 8, "type": "Text", "text": "We compare against state-of-the-art algorithms implemented in Omnisafe Ji et al. (2024) . For all experiments, we choose κ = 10 and a budget of B = 25. Our benchmarks are performed on three tasks from the safety-gymnasium (Ji et al., 2023) benchmark set: SafetyCarGoal aims to drive a car in a randomly generated 3d environment towards a \"goal\" position while avoiding stationary hazards. Once a goal has been reached, a new goal is sampled. The reward is defined as the distance reduction towards the goal. The cost is +1 when an obstacle is hit, 0 otherwise. SafetyPointGoal is the same task as the previous, but instead of navigating a differential drive car, the point agent directly decomposes rotation and movement direction, making control much easier. The agent is also physically smaller, further improving the navigation performance. SafetyCarButton is the most challenging environment: Instead of driving the car towards the goal and having to avoid stationary obstacles, the car has to avoid both stationary and moving obstacles, while navigating towards the correct goal button. Rewards and costs are defined the same as in the Goal environments.", "source": "marker_v2", "marker_block_id": "/page/7/Text/6"}
103
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0102", "section": "4 EXPERIMENTS", "page_start": 8, "page_end": 8, "type": "Text", "text": "Since CRL has two, often diametrically opposed objectives (constraint satisfaction and reward maximization), it is often difficult to compare whether one algorithm outperforms another. Further, one considerable issue when comparing different algorithms are the hypeparameters: This is of course a limitation for all ML algorithms, but in CRL we have the additional problem that the optimal solution to the CRL problem provably relies only on the Lagrangian parameter (Paternain et al., 2019) . Therefore even a naive algorithm with fixed dual parameter could reach state-of-the-art when that parameter is known. This complicates benchmarking since over known benchmark environments practitioners know appropriate values for the dual, in contrast to real world problems where such ranges are unknown. This holds even for some dynamic methods, such as CPPOPID 5 (Stooke et al., 2020) which implicitly has environment information inside their PID-values.", "source": "marker_v2", "marker_block_id": "/page/7/Text/7"}
104
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0103", "section": "4 EXPERIMENTS", "page_start": 8, "page_end": 8, "type": "Text", "text": "To give existing methods the best possible opportunities, we utilize the highly optimized hyperparameters provided by Omnisafe (Ji et al., 2024) . We would, however, argue that the fact that we only have a single hyperparameter which does not change the asymptotic behavior is significant advantage of our method that is hard to show in benchmarks.", "source": "marker_v2", "marker_block_id": "/page/7/Text/8"}
105
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0104", "section": "4 EXPERIMENTS", "page_start": 8, "page_end": 8, "type": "Text", "text": "When analyzing the results in Table 1, we observe that our method is competitive reaching stateof-the-art results in both the \"SafetyCarGoal\" and \"SafetyCarButton\" environments. Specifically,", "source": "marker_v2", "marker_block_id": "/page/7/Text/9"}
106
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0105", "section": "4 EXPERIMENTS", "page_start": 8, "page_end": 8, "type": "Footnote", "text": "5 Note: we follow the nomenclature adopted by Omnisafe Ji et al. (2024) and call the combination of PPO (Schulman et al., 2017) and PID presented in (Stooke et al., 2020) \"CPPOPID\".", "source": "marker_v2", "marker_block_id": "/page/7/Footnote/10"}
107
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0106", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "TableGroup", "text": "Table 1: Safety Car Goal. All methods are evaluated after 10 Mio steps. Following (Ji et al., 2024), we set the cost budget B=25 for all algorithms unless otherwise mentioned. Method SafetyCarGoal SafetyCarButton SafetyPointGoal Method Reward Cost Reward Cost Reward Cost RCPO Tessler et al. (2018) 18.71 \\pm 2.72 23.10\\pm12.57 -2.04 \\pm 2.98 43.48 \\pm 31.52 15.27 \\pm 4.05 30.56 \\pm 19.15 21.56 \\pm 2.87 38.42 \\pm 8.36 0.36 \\pm 0.85 40.52 \\pm 21.25 18.57 \\pm 1.71 22.98 \\pm 6.56 15.23 \\pm 10.76 31.66 \\pm 93.51 0.21 \\pm 2.27 31.78 \\pm 47.03 17.97 \\pm 9.01 33.72 \\pm 42.24 25.52 \\pm 2.65 43.32 \\pm 14.35 0.82 \\pm 1.60 37.86 \\pm 27.41 20.46 \\pm 1.38 28.84 \\pm 7.76 10.60 \\pm 2.51 30.66 \\pm 7.53 -1.36 \\pm 0.68 14.62 \\pm 9.40 8.43 \\pm 3.43 25.74 \\pm 7.83 CUP Yang et al. (2022) 6.14 \\pm 6.97 36.12 \\pm 89.56 1.49 \\pm 2.84 103.24 \\pm 123.12 14.42 \\pm 6.74 19.02 \\pm 20.08 21.43 \\pm 5.10 32.23 \\pm 7.43 0.67 \\pm 0.61 30.87 \\pm 4.47 13.09 \\pm 2.79 32.92 \\pm 3.43 SafeMPO @B = 20 \\text{ (ours)} 20.24 \\pm 2.24 25.68 \\pm 2.97 0.94 \\pm 0.12 33.37 \\pm 2.46 18.36 \\pm 3.41 23.00 \\pm 1.56 400 125 | .00 4.4.4 adapatan Herri dikka 1.0 SafeMPO — TRPOLag — TRPO — RCPO PCPO — CPO 100 300 A ALL AND AND AND AND AND AND AND AND AND AND graffen formalder for franchisch 150 Titl OLag 1010 010 | A | 300 NAME OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERS MM ts 75- 200 √ I 100 S 50- Unally 200 AM. 100 1 // 50 ayahahayayayayayaya Mary Mary Mary Mary Mary Mary Mary Mary 25- THE PARTY IN White discussion وملطنا ويتأجل بالأشابات \"milythining Wilder John Comb salblardishlananaharrat 0 0 0. Mark Mark I Mary Land Andrews 30- a a disa madi di يتقمل وللقل ورفوان فرواديان dun | 11111 Consult Milderer College 301 20 The state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the s the formal and the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of t 20 My manage of the Market £ 20 · Mayorway Mail and he are set offer Marry Mary WALL WALL TO THE THE THE THE THE THE THE THE THE THE 20- te 10 Academic his 1 / l A munico ₫ 10. 10 1 A 10 Maria Char 1 100 0 0 Part of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last o 0. 7\" 0.0 0.2 0.4 0.6 ( step 0.8 1.0 0.0 0.2 0 1.0 0.0 0.6 0.8 1.0 step step *** step 101 Figure 2: Results throughout training. We adopt the same evaluation procedures as described in (Ji et al., 2024). The shaded area corresponds to 1\\sigma deviations across independent runs. To maintain readability, we only plot a subset of the algorithms we compare against in Table 1.", "source": "marker_v2", "marker_block_id": "/page/8/TableGroup/80"}
108
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0107", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "Text", "text": "(b) SafetyCarButton", "source": "marker_v2", "marker_block_id": "/page/8/Text/11"}
109
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0108", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "Text", "text": "(c) SafetyPointGoal", "source": "marker_v2", "marker_block_id": "/page/8/Text/12"}
110
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0109", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "Text", "text": "our agent manages to reach a higher reward than CUP (Yang et al., 2022) and CPPOPID (Paternain et al., 2019), while producing substantially lower cost. The only method that produces a policy below the cost threshhold of 25 is RCPO (Tessler et al., 2018), which also substantially drops in observed reward compared to SafeMPO. The major downside of RCPO compared to our method becomes apparent in the more challenging SafetyCarButton environment. SafeMPO produces a slightly lower constraint violation than FOCOPS (Zhang et al., 2020) while providing almost 3\\times more reward. The only method to stay fully within the constraint set (CPPOPID) does so at the loss of performance, producing a highly negative reward. RCPO - the best model from SafetyCarGoal produces the worst results on SafetyCarButton: RCPO has the lowest reward and the second highest cost across all methods.", "source": "marker_v2", "marker_block_id": "/page/8/Text/4"}
111
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0110", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "Text", "text": "The pattern of inconsistent performance continues to SafetyPoinGoal - the easiest of the environments - here we find the best performing model to be CPO (Achiam et al., 2017) or PCPO (Narasimhan, 2020), depending on how one values a \\pm 3 cost overrun/undershoot against a reward gain of \\approx 6 points. This is the worst performing benchmark for SafeMPO, but we remain close to SOTA. Generally, our method has the advantage of behaving consistently, providing low run-to-run variance across independent runs.", "source": "marker_v2", "marker_block_id": "/page/8/Text/5"}
112
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0111", "section": "4 EXPERIMENTS", "page_start": 9, "page_end": 9, "type": "Text", "text": "Another interesting observation is the robustness provided by our method regarding costs: Our method consistently has the lowest run-to-run variance among all other approaches, which we hypothesize is due to the lack of \"edge cases\" introduced by other methods.", "source": "marker_v2", "marker_block_id": "/page/8/Text/6"}
113
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0112", "section": "5 DISCUSSION", "page_start": 9, "page_end": 9, "type": "Text", "text": "(a) SafetyCarGoal", "source": "marker_v2", "marker_block_id": "/page/8/Text/10"}
114
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0113", "section": "5 DISCUSSION", "page_start": 9, "page_end": 9, "type": "Text", "text": "One interesting point to mention is that all our methods have a cost of roughly 30 compared to the cost limit of 25. This suggests that this is a limitation of how our likelihood function for safety is defined: since we only penalize policies outside the feasible set, the solution to Eq. 9 might end", "source": "marker_v2", "marker_block_id": "/page/8/Text/8"}
115
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0114", "section": "5 DISCUSSION", "page_start": 10, "page_end": 10, "type": "Text", "text": "up simply \"eating\" the cost for states that are almost safe already, leading to an effective shift in boundary due to sampling variance inside the approximations of the expectation. To validate our hypothesis, we re-run the SafetyCarGoal experiments with an artifically lowered cost threshhold of B = 20. The results can be found in table 1. As one can see, both SafetyPointGoal and SafetyCarGoal return feasible policies at SOTA reward levels (for feasible policies). Nevertheless, our method fails to find a feasible policy for SafetyCarButton, which is not unexpected considering that no method aside from CPPOPID can produce a feasible policy 6 . Of course, tuning the boundary B is not a feasible solution but a smaller barrier leading to superior results suggests that our method is able to theoretically hit better threshholds, but is unable to reach the points due to the log-likelihood G we chose. Our method can technically handle arbitrary notions of safety, including e.g. Conditional Value at Risk (CVaR). Since this problem goes deeper than SafeMPO and touches the question of \"What definition of safety is appropriate for Reinforcement Learning\", we leave the analysis of alternative safety likelihood functions for future work.", "source": "marker_v2", "marker_block_id": "/page/9/Text/1"}
116
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0115", "section": "5 DISCUSSION", "page_start": 10, "page_end": 10, "type": "Text", "text": "One important aspect to note is the general behavior of Reinforcement Learning in Constrained scenarios and the \"RL as inference\" notion employed in this paper. It is generally impossible for RL agents - regardless of Value, policy, or model based - to be 100% safe in unknown environments. This is due to the inherent uncertainty when estimating the constraints: To choose an extreme example, one cannot know the safety of states that are never sampled. This means any well designed CRL method should have the property that action probabilities are nonzero (but perhaps very low) during finite exploration, and only converge to zero in the limit of infinite data. Otherwise, one cannot guarantee that an action is \"banned\" just due to poor initialization of the cost function or missing data. Indeed, this is the behavior we observe in our proof of Theorem 4: High cost states decrease in likelihood but only hit zero in the limit of infinite steps where one has certainty on the cost function.", "source": "marker_v2", "marker_block_id": "/page/9/Text/2"}
117
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0116", "section": "6 CONCLUSIONS AND FUTURE WORK", "page_start": 10, "page_end": 10, "type": "Text", "text": "We propose a novel framework for Constrained Reinforcement Learning that relies on relative improvements in the likelihood of a policy being safe, rather than primal-dual or projection based updates. We first analyze these types of relative improvement algorithms theoretically, proving that naive improvement bounds may not lead to a contraction towards a feasible set. However, we prove that with small changes inspired by interior point barriers, we can make broad statements of the convergence properties under relative improvement constraints. Finally, we demonstrate our method's high performance by comparing against highly tuned state-of-the-art algorithms.", "source": "marker_v2", "marker_block_id": "/page/9/Text/4"}
118
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0117", "section": "6 CONCLUSIONS AND FUTURE WORK", "page_start": 10, "page_end": 10, "type": "Text", "text": "Our method leaves wide room for future work both on novel Safety Order Preserving Functions, and algorithmic improvements. For instance, we currently only consider the off-policy MPO algorithm (Abdolmaleki et al., 2018) , but our framework is also compatible with other updates, such as (Song et al., 2019) . As already mentioned in Section 4, we also noticed opportunities to improve our method further, by choosing a better likelihood function. Another interesting possibility is framing ordinary MDP RL problems as CMDPs where the objective is given as an improvement constraint. This way one could design RL methods that by construction guarantee improvement.", "source": "marker_v2", "marker_block_id": "/page/9/Text/5"}
iclr26/1m0EU6QXj6/marker_meta.json ADDED
@@ -0,0 +1,1281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "table_of_contents": [
3
+ {
4
+ "title": "SAFEMPO: CONSTRAINED REINFORCEMENT LEARNING WITH PROBABILISTIC INCREMENTAL IMPROVEMENT",
5
+ "heading_level": null,
6
+ "page_id": 0,
7
+ "polygon": [
8
+ [
9
+ 106.5,
10
+ 80.05078125
11
+ ],
12
+ [
13
+ 506.25,
14
+ 80.05078125
15
+ ],
16
+ [
17
+ 506.25,
18
+ 113.25
19
+ ],
20
+ [
21
+ 106.5,
22
+ 113.25
23
+ ]
24
+ ]
25
+ },
26
+ {
27
+ "title": "Alexander Mattick<sup>1</sup>, Dominik Seu\u00df<sup>2,1</sup>, Christopher Mutschler<sup>3,1</sup>",
28
+ "heading_level": null,
29
+ "page_id": 0,
30
+ "polygon": [
31
+ [
32
+ 111.76171875,
33
+ 134.96484375
34
+ ],
35
+ [
36
+ 390.0,
37
+ 134.96484375
38
+ ],
39
+ [
40
+ 390.0,
41
+ 146.25
42
+ ],
43
+ [
44
+ 111.76171875,
45
+ 146.25
46
+ ]
47
+ ]
48
+ },
49
+ {
50
+ "title": "ABSTRACT",
51
+ "heading_level": null,
52
+ "page_id": 0,
53
+ "polygon": [
54
+ [
55
+ 276.416015625,
56
+ 222.0
57
+ ],
58
+ [
59
+ 334.5,
60
+ 222.0
61
+ ],
62
+ [
63
+ 334.5,
64
+ 231.2578125
65
+ ],
66
+ [
67
+ 276.416015625,
68
+ 231.2578125
69
+ ]
70
+ ]
71
+ },
72
+ {
73
+ "title": "1 Introduction",
74
+ "heading_level": null,
75
+ "page_id": 0,
76
+ "polygon": [
77
+ [
78
+ 108.17578125,
79
+ 419.58984375
80
+ ],
81
+ [
82
+ 206.25,
83
+ 419.58984375
84
+ ],
85
+ [
86
+ 206.25,
87
+ 430.5
88
+ ],
89
+ [
90
+ 108.17578125,
91
+ 430.5
92
+ ]
93
+ ]
94
+ },
95
+ {
96
+ "title": "2 RELATED WORK",
97
+ "heading_level": null,
98
+ "page_id": 1,
99
+ "polygon": [
100
+ [
101
+ 107.279296875,
102
+ 586.65234375
103
+ ],
104
+ [
105
+ 211.19573974609375,
106
+ 586.65234375
107
+ ],
108
+ [
109
+ 211.19573974609375,
110
+ 599.0711059570312
111
+ ],
112
+ [
113
+ 107.279296875,
114
+ 599.0711059570312
115
+ ]
116
+ ]
117
+ },
118
+ {
119
+ "title": "3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)",
120
+ "heading_level": null,
121
+ "page_id": 2,
122
+ "polygon": [
123
+ [
124
+ 108.29898834228516,
125
+ 407.21484375
126
+ ],
127
+ [
128
+ 434.15728759765625,
129
+ 407.21484375
130
+ ],
131
+ [
132
+ 434.15728759765625,
133
+ 420.0572204589844
134
+ ],
135
+ [
136
+ 108.29898834228516,
137
+ 420.0572204589844
138
+ ]
139
+ ]
140
+ },
141
+ {
142
+ "title": "3.1 SAFEMPO",
143
+ "heading_level": null,
144
+ "page_id": 3,
145
+ "polygon": [
146
+ [
147
+ 106.083984375,
148
+ 179.05078125
149
+ ],
150
+ [
151
+ 177.3092041015625,
152
+ 179.05078125
153
+ ],
154
+ [
155
+ 177.3092041015625,
156
+ 190.998046875
157
+ ],
158
+ [
159
+ 106.083984375,
160
+ 190.998046875
161
+ ]
162
+ ]
163
+ },
164
+ {
165
+ "title": "3.2 GUARANTEED IMPROVEMENT E-STEP",
166
+ "heading_level": null,
167
+ "page_id": 5,
168
+ "polygon": [
169
+ [
170
+ 106.98046875,
171
+ 82.7578125
172
+ ],
173
+ [
174
+ 292.3651428222656,
175
+ 82.7578125
176
+ ],
177
+ [
178
+ 292.3651428222656,
179
+ 94.2310791015625
180
+ ],
181
+ [
182
+ 106.98046875,
183
+ 94.2310791015625
184
+ ]
185
+ ]
186
+ },
187
+ {
188
+ "title": "3.3 M-STEP",
189
+ "heading_level": null,
190
+ "page_id": 6,
191
+ "polygon": [
192
+ [
193
+ 106.5,
194
+ 545.25
195
+ ],
196
+ [
197
+ 167.25,
198
+ 545.25
199
+ ],
200
+ [
201
+ 167.25,
202
+ 554.94140625
203
+ ],
204
+ [
205
+ 106.5,
206
+ 554.94140625
207
+ ]
208
+ ]
209
+ },
210
+ {
211
+ "title": "Algorithm 1 SafeMPO update step",
212
+ "heading_level": null,
213
+ "page_id": 7,
214
+ "polygon": [
215
+ [
216
+ 106.3828125,
217
+ 83.86944580078125
218
+ ],
219
+ [
220
+ 249.11981201171875,
221
+ 83.86944580078125
222
+ ],
223
+ [
224
+ 249.11981201171875,
225
+ 93.9229736328125
226
+ ],
227
+ [
228
+ 106.3828125,
229
+ 93.9229736328125
230
+ ]
231
+ ]
232
+ },
233
+ {
234
+ "title": "3.4 IMPLEMENTATION",
235
+ "heading_level": null,
236
+ "page_id": 7,
237
+ "polygon": [
238
+ [
239
+ 107.578125,
240
+ 254.84765625
241
+ ],
242
+ [
243
+ 208.8775177001953,
244
+ 254.84765625
245
+ ],
246
+ [
247
+ 208.8775177001953,
248
+ 265.8560791015625
249
+ ],
250
+ [
251
+ 107.578125,
252
+ 265.8560791015625
253
+ ]
254
+ ]
255
+ },
256
+ {
257
+ "title": "4 EXPERIMENTS",
258
+ "heading_level": null,
259
+ "page_id": 7,
260
+ "polygon": [
261
+ [
262
+ 106.3828125,
263
+ 350.1183166503906
264
+ ],
265
+ [
266
+ 200.08346557617188,
267
+ 350.1183166503906
268
+ ],
269
+ [
270
+ 200.08346557617188,
271
+ 362.0735168457031
272
+ ],
273
+ [
274
+ 106.3828125,
275
+ 362.0735168457031
276
+ ]
277
+ ]
278
+ },
279
+ {
280
+ "title": "5 DISCUSSION",
281
+ "heading_level": null,
282
+ "page_id": 8,
283
+ "polygon": [
284
+ [
285
+ 107.578125,
286
+ 673.27734375
287
+ ],
288
+ [
289
+ 191.25,
290
+ 673.27734375
291
+ ],
292
+ [
293
+ 191.25,
294
+ 682.5
295
+ ],
296
+ [
297
+ 107.578125,
298
+ 682.5
299
+ ]
300
+ ]
301
+ },
302
+ {
303
+ "title": "6 CONCLUSIONS AND FUTURE WORK",
304
+ "heading_level": null,
305
+ "page_id": 9,
306
+ "polygon": [
307
+ [
308
+ 107.578125,
309
+ 357.71484375
310
+ ],
311
+ [
312
+ 306.2884521484375,
313
+ 357.71484375
314
+ ],
315
+ [
316
+ 306.2884521484375,
317
+ 370.248291015625
318
+ ],
319
+ [
320
+ 107.578125,
321
+ 370.248291015625
322
+ ]
323
+ ]
324
+ },
325
+ {
326
+ "title": "REFERENCES",
327
+ "heading_level": null,
328
+ "page_id": 9,
329
+ "polygon": [
330
+ [
331
+ 106.98046875,
332
+ 561.90234375
333
+ ],
334
+ [
335
+ 175.2598114013672,
336
+ 561.90234375
337
+ ],
338
+ [
339
+ 175.2598114013672,
340
+ 575.4091949462891
341
+ ],
342
+ [
343
+ 106.98046875,
344
+ 575.4091949462891
345
+ ]
346
+ ]
347
+ },
348
+ {
349
+ "title": "A LLM USAGE",
350
+ "heading_level": null,
351
+ "page_id": 11,
352
+ "polygon": [
353
+ [
354
+ 106.98046875,
355
+ 229.32421875
356
+ ],
357
+ [
358
+ 193.35986328125,
359
+ 229.32421875
360
+ ],
361
+ [
362
+ 193.35986328125,
363
+ 242.17938232421875
364
+ ],
365
+ [
366
+ 106.98046875,
367
+ 242.17938232421875
368
+ ]
369
+ ]
370
+ },
371
+ {
372
+ "title": "B PROOFS",
373
+ "heading_level": null,
374
+ "page_id": 11,
375
+ "polygon": [
376
+ [
377
+ 106.083984375,
378
+ 293.1328125
379
+ ],
380
+ [
381
+ 168.87583923339844,
382
+ 293.1328125
383
+ ],
384
+ [
385
+ 168.87583923339844,
386
+ 305.4534606933594
387
+ ],
388
+ [
389
+ 106.083984375,
390
+ 305.4534606933594
391
+ ]
392
+ ]
393
+ },
394
+ {
395
+ "title": "C CONVERGENCE",
396
+ "heading_level": null,
397
+ "page_id": 13,
398
+ "polygon": [
399
+ [
400
+ 106.98046875,
401
+ 224.25
402
+ ],
403
+ [
404
+ 208.5,
405
+ 224.25
406
+ ],
407
+ [
408
+ 208.5,
409
+ 234.73828125
410
+ ],
411
+ [
412
+ 106.98046875,
413
+ 234.73828125
414
+ ]
415
+ ]
416
+ },
417
+ {
418
+ "title": "D ABLATION OF HYPERPARAMETERS",
419
+ "heading_level": null,
420
+ "page_id": 14,
421
+ "polygon": [
422
+ [
423
+ 106.5,
424
+ 667.08984375
425
+ ],
426
+ [
427
+ 305.25,
428
+ 667.08984375
429
+ ],
430
+ [
431
+ 305.25,
432
+ 676.5
433
+ ],
434
+ [
435
+ 106.5,
436
+ 676.5
437
+ ]
438
+ ]
439
+ },
440
+ {
441
+ "title": "E VALUE AND COST ESTIMATION",
442
+ "heading_level": null,
443
+ "page_id": 15,
444
+ "polygon": [
445
+ [
446
+ 106.3828125,
447
+ 82.37109375
448
+ ],
449
+ [
450
+ 286.3436279296875,
451
+ 82.37109375
452
+ ],
453
+ [
454
+ 286.3436279296875,
455
+ 94.7125244140625
456
+ ],
457
+ [
458
+ 106.3828125,
459
+ 94.7125244140625
460
+ ]
461
+ ]
462
+ },
463
+ {
464
+ "title": "F HYPERPARAMETERS",
465
+ "heading_level": null,
466
+ "page_id": 15,
467
+ "polygon": [
468
+ [
469
+ 107.578125,
470
+ 284.748291015625
471
+ ],
472
+ [
473
+ 231.2021942138672,
474
+ 284.748291015625
475
+ ],
476
+ [
477
+ 231.2021942138672,
478
+ 296.7034912109375
479
+ ],
480
+ [
481
+ 107.578125,
482
+ 296.7034912109375
483
+ ]
484
+ ]
485
+ },
486
+ {
487
+ "title": "G ENVIRONMENTS",
488
+ "heading_level": null,
489
+ "page_id": 15,
490
+ "polygon": [
491
+ [
492
+ 107.279296875,
493
+ 391.74609375
494
+ ],
495
+ [
496
+ 212.51199340820312,
497
+ 391.74609375
498
+ ],
499
+ [
500
+ 212.51199340820312,
501
+ 405.0475158691406
502
+ ],
503
+ [
504
+ 107.279296875,
505
+ 405.0475158691406
506
+ ]
507
+ ]
508
+ }
509
+ ],
510
+ "page_stats": [
511
+ {
512
+ "page_id": 0,
513
+ "text_extraction_method": "surya",
514
+ "block_counts": [
515
+ [
516
+ "Line",
517
+ 61
518
+ ],
519
+ [
520
+ "Span",
521
+ 31
522
+ ],
523
+ [
524
+ "Text",
525
+ 6
526
+ ],
527
+ [
528
+ "SectionHeader",
529
+ 4
530
+ ],
531
+ [
532
+ "ListItem",
533
+ 3
534
+ ],
535
+ [
536
+ "PageHeader",
537
+ 1
538
+ ],
539
+ [
540
+ "Equation",
541
+ 1
542
+ ],
543
+ [
544
+ "PageFooter",
545
+ 1
546
+ ],
547
+ [
548
+ "ListGroup",
549
+ 1
550
+ ],
551
+ [
552
+ "Reference",
553
+ 1
554
+ ]
555
+ ],
556
+ "block_metadata": {
557
+ "llm_request_count": 0,
558
+ "llm_error_count": 0,
559
+ "llm_tokens_used": 0,
560
+ "previous_text": "",
561
+ "previous_type": "",
562
+ "previous_order": 0
563
+ }
564
+ },
565
+ {
566
+ "page_id": 1,
567
+ "text_extraction_method": "pdftext",
568
+ "block_counts": [
569
+ [
570
+ "Span",
571
+ 267
572
+ ],
573
+ [
574
+ "Line",
575
+ 76
576
+ ],
577
+ [
578
+ "Text",
579
+ 7
580
+ ],
581
+ [
582
+ "Reference",
583
+ 2
584
+ ],
585
+ [
586
+ "PageHeader",
587
+ 1
588
+ ],
589
+ [
590
+ "Figure",
591
+ 1
592
+ ],
593
+ [
594
+ "Caption",
595
+ 1
596
+ ],
597
+ [
598
+ "SectionHeader",
599
+ 1
600
+ ],
601
+ [
602
+ "Footnote",
603
+ 1
604
+ ],
605
+ [
606
+ "PageFooter",
607
+ 1
608
+ ],
609
+ [
610
+ "FigureGroup",
611
+ 1
612
+ ]
613
+ ],
614
+ "block_metadata": {
615
+ "llm_request_count": 0,
616
+ "llm_error_count": 0,
617
+ "llm_tokens_used": 0,
618
+ "previous_text": "",
619
+ "previous_type": "",
620
+ "previous_order": 0
621
+ }
622
+ },
623
+ {
624
+ "page_id": 2,
625
+ "text_extraction_method": "pdftext",
626
+ "block_counts": [
627
+ [
628
+ "Span",
629
+ 372
630
+ ],
631
+ [
632
+ "Line",
633
+ 69
634
+ ],
635
+ [
636
+ "Text",
637
+ 7
638
+ ],
639
+ [
640
+ "Equation",
641
+ 5
642
+ ],
643
+ [
644
+ "Reference",
645
+ 3
646
+ ],
647
+ [
648
+ "PageHeader",
649
+ 1
650
+ ],
651
+ [
652
+ "SectionHeader",
653
+ 1
654
+ ],
655
+ [
656
+ "PageFooter",
657
+ 1
658
+ ]
659
+ ],
660
+ "block_metadata": {
661
+ "llm_request_count": 0,
662
+ "llm_error_count": 0,
663
+ "llm_tokens_used": 0,
664
+ "previous_text": "",
665
+ "previous_type": "",
666
+ "previous_order": 0
667
+ }
668
+ },
669
+ {
670
+ "page_id": 3,
671
+ "text_extraction_method": "pdftext",
672
+ "block_counts": [
673
+ [
674
+ "Span",
675
+ 444
676
+ ],
677
+ [
678
+ "Line",
679
+ 71
680
+ ],
681
+ [
682
+ "Text",
683
+ 9
684
+ ],
685
+ [
686
+ "Equation",
687
+ 5
688
+ ],
689
+ [
690
+ "Reference",
691
+ 3
692
+ ],
693
+ [
694
+ "PageHeader",
695
+ 1
696
+ ],
697
+ [
698
+ "SectionHeader",
699
+ 1
700
+ ],
701
+ [
702
+ "Footnote",
703
+ 1
704
+ ],
705
+ [
706
+ "PageFooter",
707
+ 1
708
+ ]
709
+ ],
710
+ "block_metadata": {
711
+ "llm_request_count": 0,
712
+ "llm_error_count": 0,
713
+ "llm_tokens_used": 0,
714
+ "previous_text": "",
715
+ "previous_type": "",
716
+ "previous_order": 0
717
+ }
718
+ },
719
+ {
720
+ "page_id": 4,
721
+ "text_extraction_method": "pdftext",
722
+ "block_counts": [
723
+ [
724
+ "Span",
725
+ 462
726
+ ],
727
+ [
728
+ "Line",
729
+ 56
730
+ ],
731
+ [
732
+ "Text",
733
+ 13
734
+ ],
735
+ [
736
+ "Equation",
737
+ 10
738
+ ],
739
+ [
740
+ "Reference",
741
+ 3
742
+ ],
743
+ [
744
+ "PageHeader",
745
+ 1
746
+ ],
747
+ [
748
+ "PageFooter",
749
+ 1
750
+ ]
751
+ ],
752
+ "block_metadata": {
753
+ "llm_request_count": 0,
754
+ "llm_error_count": 0,
755
+ "llm_tokens_used": 0,
756
+ "previous_text": "",
757
+ "previous_type": "",
758
+ "previous_order": 0
759
+ }
760
+ },
761
+ {
762
+ "page_id": 5,
763
+ "text_extraction_method": "pdftext",
764
+ "block_counts": [
765
+ [
766
+ "Span",
767
+ 502
768
+ ],
769
+ [
770
+ "Line",
771
+ 87
772
+ ],
773
+ [
774
+ "Text",
775
+ 8
776
+ ],
777
+ [
778
+ "Equation",
779
+ 8
780
+ ],
781
+ [
782
+ "Reference",
783
+ 5
784
+ ],
785
+ [
786
+ "Footnote",
787
+ 2
788
+ ],
789
+ [
790
+ "PageHeader",
791
+ 1
792
+ ],
793
+ [
794
+ "SectionHeader",
795
+ 1
796
+ ],
797
+ [
798
+ "PageFooter",
799
+ 1
800
+ ]
801
+ ],
802
+ "block_metadata": {
803
+ "llm_request_count": 0,
804
+ "llm_error_count": 0,
805
+ "llm_tokens_used": 0,
806
+ "previous_text": "",
807
+ "previous_type": "",
808
+ "previous_order": 0
809
+ }
810
+ },
811
+ {
812
+ "page_id": 6,
813
+ "text_extraction_method": "surya",
814
+ "block_counts": [
815
+ [
816
+ "Span",
817
+ 105
818
+ ],
819
+ [
820
+ "Line",
821
+ 65
822
+ ],
823
+ [
824
+ "Text",
825
+ 14
826
+ ],
827
+ [
828
+ "Reference",
829
+ 4
830
+ ],
831
+ [
832
+ "PageHeader",
833
+ 1
834
+ ],
835
+ [
836
+ "SectionHeader",
837
+ 1
838
+ ],
839
+ [
840
+ "Equation",
841
+ 1
842
+ ],
843
+ [
844
+ "PageFooter",
845
+ 1
846
+ ]
847
+ ],
848
+ "block_metadata": {
849
+ "llm_request_count": 0,
850
+ "llm_error_count": 0,
851
+ "llm_tokens_used": 0,
852
+ "previous_text": "",
853
+ "previous_type": "",
854
+ "previous_order": 0
855
+ }
856
+ },
857
+ {
858
+ "page_id": 7,
859
+ "text_extraction_method": "pdftext",
860
+ "block_counts": [
861
+ [
862
+ "Span",
863
+ 309
864
+ ],
865
+ [
866
+ "Line",
867
+ 57
868
+ ],
869
+ [
870
+ "Text",
871
+ 5
872
+ ],
873
+ [
874
+ "SectionHeader",
875
+ 3
876
+ ],
877
+ [
878
+ "Reference",
879
+ 3
880
+ ],
881
+ [
882
+ "PageHeader",
883
+ 1
884
+ ],
885
+ [
886
+ "Code",
887
+ 1
888
+ ],
889
+ [
890
+ "Footnote",
891
+ 1
892
+ ],
893
+ [
894
+ "PageFooter",
895
+ 1
896
+ ]
897
+ ],
898
+ "block_metadata": {
899
+ "llm_request_count": 0,
900
+ "llm_error_count": 0,
901
+ "llm_tokens_used": 0,
902
+ "previous_text": "",
903
+ "previous_type": "",
904
+ "previous_order": 0
905
+ }
906
+ },
907
+ {
908
+ "page_id": 8,
909
+ "text_extraction_method": "surya",
910
+ "block_counts": [
911
+ [
912
+ "TableCell",
913
+ 207
914
+ ],
915
+ [
916
+ "Line",
917
+ 43
918
+ ],
919
+ [
920
+ "Span",
921
+ 24
922
+ ],
923
+ [
924
+ "Text",
925
+ 7
926
+ ],
927
+ [
928
+ "Caption",
929
+ 2
930
+ ],
931
+ [
932
+ "PageHeader",
933
+ 1
934
+ ],
935
+ [
936
+ "Table",
937
+ 1
938
+ ],
939
+ [
940
+ "SectionHeader",
941
+ 1
942
+ ],
943
+ [
944
+ "PageFooter",
945
+ 1
946
+ ],
947
+ [
948
+ "TableGroup",
949
+ 1
950
+ ],
951
+ [
952
+ "Reference",
953
+ 1
954
+ ]
955
+ ],
956
+ "block_metadata": {
957
+ "llm_request_count": 0,
958
+ "llm_error_count": 0,
959
+ "llm_tokens_used": 0,
960
+ "previous_text": "",
961
+ "previous_type": "",
962
+ "previous_order": 0
963
+ }
964
+ },
965
+ {
966
+ "page_id": 9,
967
+ "text_extraction_method": "pdftext",
968
+ "block_counts": [
969
+ [
970
+ "Span",
971
+ 142
972
+ ],
973
+ [
974
+ "Line",
975
+ 55
976
+ ],
977
+ [
978
+ "Text",
979
+ 7
980
+ ],
981
+ [
982
+ "Reference",
983
+ 4
984
+ ],
985
+ [
986
+ "SectionHeader",
987
+ 2
988
+ ],
989
+ [
990
+ "PageHeader",
991
+ 1
992
+ ],
993
+ [
994
+ "Footnote",
995
+ 1
996
+ ],
997
+ [
998
+ "PageFooter",
999
+ 1
1000
+ ]
1001
+ ],
1002
+ "block_metadata": {
1003
+ "llm_request_count": 0,
1004
+ "llm_error_count": 0,
1005
+ "llm_tokens_used": 0,
1006
+ "previous_text": "",
1007
+ "previous_type": "",
1008
+ "previous_order": 0
1009
+ }
1010
+ },
1011
+ {
1012
+ "page_id": 10,
1013
+ "text_extraction_method": "pdftext",
1014
+ "block_counts": [
1015
+ [
1016
+ "Span",
1017
+ 187
1018
+ ],
1019
+ [
1020
+ "Line",
1021
+ 51
1022
+ ],
1023
+ [
1024
+ "ListItem",
1025
+ 16
1026
+ ],
1027
+ [
1028
+ "Reference",
1029
+ 16
1030
+ ],
1031
+ [
1032
+ "PageHeader",
1033
+ 1
1034
+ ],
1035
+ [
1036
+ "PageFooter",
1037
+ 1
1038
+ ],
1039
+ [
1040
+ "ListGroup",
1041
+ 1
1042
+ ]
1043
+ ],
1044
+ "block_metadata": {
1045
+ "llm_request_count": 0,
1046
+ "llm_error_count": 0,
1047
+ "llm_tokens_used": 0,
1048
+ "previous_text": "",
1049
+ "previous_type": "",
1050
+ "previous_order": 0
1051
+ }
1052
+ },
1053
+ {
1054
+ "page_id": 11,
1055
+ "text_extraction_method": "pdftext",
1056
+ "block_counts": [
1057
+ [
1058
+ "Span",
1059
+ 564
1060
+ ],
1061
+ [
1062
+ "Line",
1063
+ 88
1064
+ ],
1065
+ [
1066
+ "Text",
1067
+ 15
1068
+ ],
1069
+ [
1070
+ "Equation",
1071
+ 5
1072
+ ],
1073
+ [
1074
+ "Reference",
1075
+ 4
1076
+ ],
1077
+ [
1078
+ "SectionHeader",
1079
+ 2
1080
+ ],
1081
+ [
1082
+ "PageHeader",
1083
+ 1
1084
+ ],
1085
+ [
1086
+ "PageFooter",
1087
+ 1
1088
+ ]
1089
+ ],
1090
+ "block_metadata": {
1091
+ "llm_request_count": 0,
1092
+ "llm_error_count": 0,
1093
+ "llm_tokens_used": 0,
1094
+ "previous_text": "",
1095
+ "previous_type": "",
1096
+ "previous_order": 0
1097
+ }
1098
+ },
1099
+ {
1100
+ "page_id": 12,
1101
+ "text_extraction_method": "surya",
1102
+ "block_counts": [
1103
+ [
1104
+ "Span",
1105
+ 42
1106
+ ],
1107
+ [
1108
+ "Line",
1109
+ 38
1110
+ ],
1111
+ [
1112
+ "Text",
1113
+ 7
1114
+ ],
1115
+ [
1116
+ "Equation",
1117
+ 4
1118
+ ],
1119
+ [
1120
+ "PageHeader",
1121
+ 1
1122
+ ],
1123
+ [
1124
+ "PageFooter",
1125
+ 1
1126
+ ]
1127
+ ],
1128
+ "block_metadata": {
1129
+ "llm_request_count": 0,
1130
+ "llm_error_count": 0,
1131
+ "llm_tokens_used": 0,
1132
+ "previous_text": "",
1133
+ "previous_type": "",
1134
+ "previous_order": 0
1135
+ }
1136
+ },
1137
+ {
1138
+ "page_id": 13,
1139
+ "text_extraction_method": "surya",
1140
+ "block_counts": [
1141
+ [
1142
+ "Span",
1143
+ 58
1144
+ ],
1145
+ [
1146
+ "Line",
1147
+ 53
1148
+ ],
1149
+ [
1150
+ "Text",
1151
+ 15
1152
+ ],
1153
+ [
1154
+ "Equation",
1155
+ 10
1156
+ ],
1157
+ [
1158
+ "PageHeader",
1159
+ 1
1160
+ ],
1161
+ [
1162
+ "SectionHeader",
1163
+ 1
1164
+ ],
1165
+ [
1166
+ "PageFooter",
1167
+ 1
1168
+ ],
1169
+ [
1170
+ "Reference",
1171
+ 1
1172
+ ]
1173
+ ],
1174
+ "block_metadata": {
1175
+ "llm_request_count": 0,
1176
+ "llm_error_count": 0,
1177
+ "llm_tokens_used": 0,
1178
+ "previous_text": "",
1179
+ "previous_type": "",
1180
+ "previous_order": 0
1181
+ }
1182
+ },
1183
+ {
1184
+ "page_id": 14,
1185
+ "text_extraction_method": "surya",
1186
+ "block_counts": [
1187
+ [
1188
+ "Line",
1189
+ 48
1190
+ ],
1191
+ [
1192
+ "Span",
1193
+ 38
1194
+ ],
1195
+ [
1196
+ "Text",
1197
+ 14
1198
+ ],
1199
+ [
1200
+ "Equation",
1201
+ 7
1202
+ ],
1203
+ [
1204
+ "PageHeader",
1205
+ 1
1206
+ ],
1207
+ [
1208
+ "Figure",
1209
+ 1
1210
+ ],
1211
+ [
1212
+ "Caption",
1213
+ 1
1214
+ ],
1215
+ [
1216
+ "SectionHeader",
1217
+ 1
1218
+ ],
1219
+ [
1220
+ "PageFooter",
1221
+ 1
1222
+ ],
1223
+ [
1224
+ "FigureGroup",
1225
+ 1
1226
+ ]
1227
+ ],
1228
+ "block_metadata": {
1229
+ "llm_request_count": 0,
1230
+ "llm_error_count": 0,
1231
+ "llm_tokens_used": 0,
1232
+ "previous_text": "",
1233
+ "previous_type": "",
1234
+ "previous_order": 0
1235
+ }
1236
+ },
1237
+ {
1238
+ "page_id": 15,
1239
+ "text_extraction_method": "pdftext",
1240
+ "block_counts": [
1241
+ [
1242
+ "Span",
1243
+ 192
1244
+ ],
1245
+ [
1246
+ "Line",
1247
+ 45
1248
+ ],
1249
+ [
1250
+ "Text",
1251
+ 10
1252
+ ],
1253
+ [
1254
+ "SectionHeader",
1255
+ 3
1256
+ ],
1257
+ [
1258
+ "Equation",
1259
+ 2
1260
+ ],
1261
+ [
1262
+ "PageHeader",
1263
+ 1
1264
+ ],
1265
+ [
1266
+ "PageFooter",
1267
+ 1
1268
+ ]
1269
+ ],
1270
+ "block_metadata": {
1271
+ "llm_request_count": 0,
1272
+ "llm_error_count": 0,
1273
+ "llm_tokens_used": 0,
1274
+ "previous_text": "",
1275
+ "previous_type": "",
1276
+ "previous_order": 0
1277
+ }
1278
+ }
1279
+ ],
1280
+ "debug_data_path": "debug_data/1m0EU6QXj6"
1281
+ }
iclr26/1m0EU6QXj6/model_text_v3.txt ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 1 | section: ABSTRACT | type: Text]
2
+ Reinforcement Learning (RL) has demonstrated significant success in optimizing complex control and planning problems. However, scaling RL to real-world applications with multiple, potentially conflicting requirements requires an effective handling of constraints. We propose a novel approach to constraint satisfaction in RL algorithms, focusing on incrementally improving policy safety rather than directly projecting the policy onto a feasible region. We accomplish this by first solving a nonparametric surrogate problem which is guaranteed to contract towards the feasible set, and then cloning that solution into a neural network policy. As a result, our approach improves stability, particularly during early training stages, when the policy lacks knowledge of constraint boundaries. We provide general theoretical results guaranteeing convergence to the safe set for this class of incremental systems. Notably, even the simplest algorithm produced by our theory produces comparable or superior performance when compared to highly tuned constrained RL baselines in challenging constrained environments.
3
+
4
+ [p. 1 | section: 1 Introduction | type: Text]
5
+ Reinforcement Learning (RL) offers significant potential for improving performance in a wide range of control and planning problems by directly optimizing the behavior policy through interactions with a black-box environment (Sutton & Barto, 2018). However, RL can pose safety challenges due to an untrained policy that accidentally damages equipment or even harms users during the learning process. Further, even if a policy has been safely trained to completion (e.g. in a simulator), one can generally not be sure whether the policy can be considered safe during deployment in the real world.
6
+
7
+ [p. 1 | section: 1 Introduction | type: Text]
8
+ To address these issues, there is a growing trend towards Safe Reinforcement Learning (SRL) which explicitly introduces safety considerations into the training process. One of the most popular formulations for SRL is the Constrained Markov Decision Process (CMDP), which extends the traditional Markov Decision Process (MDP) by incorporating constraints C(a,s) on the policy's behavior:
9
+
10
+ [p. 1 | section: 1 Introduction | type: Equation]
11
+ \max_{\pi} R(\pi) \qquad \text{s.t.} \quad C_i(\pi) \le B_i \quad \forall i = 0, \dots, N, \tag{1}
12
+
13
+ [p. 1 | section: 1 Introduction | type: Text]
14
+ where R(\pi) = \mathbb{E}_{\tau \sim \pi}[\sum_{t=0}^{\infty} \gamma_r^t r_t] represents the expected discounted future rewards, and C_i(\pi) = \mathbb{E}_{\tau \sim \pi}[\sum_{t=0}^{\infty} \gamma_c^t c_{t,i}] the expected discounted future costs for the i-th cost function. For the sake of this work, we define C(s,a) as the cost associated with executing action a in state s and following the policy after (analogous to the Q-function). Constrained Reinforcement Learning (CRL) refers to the process of finding a policy that is optimal and is within the feasible set defined by Eq. 1.
15
+
16
+ [p. 1 | section: 1 Introduction | type: Text]
17
+ It is worth noting that CRL is of wider interest than just safety. Constraints can be used to encode a wide range of different requirements, such as ensuring an autonomous quadcopter has enough battery to return to its charging station, or preventing policies from abusing known inaccuracies in a simulation of the real-world environment. Indeed, many reward shaping problems can be efficiently reformulated as constraint satisfaction tasks.
18
+
19
+ [p. 1 | section: 1 Introduction | type: Text]
20
+ Methods that optimize directly for safety can struggle when the set of feasible policies is difficult to find or when the closest feasible policy is very suboptimal. Fig. 1 shows a robot that attempts
21
+
22
+ [p. 2 | section: 1 Introduction | type: Text]
23
+ to throw a ball onto one of three platforms, each of them separated by chasms. The initial (unsafe) policy throws the ball onto the middle platform (R:0, C:0) and potentially into the holes to the left (R:1, C:1) and right (R:0, C:1). Since the initial policy has never reached the left platform, a greedy projection of the policy onto the feasible set would mean the policy only hits the central column, terminating with a reward of 0 and a cost of 0. Policy optimization methods that rely on greedy recovery (Achiam et al., 2017; Xu et al., 2020) or projection (Narasimhan, 2020; Yang et al., 2022) will naturally find themselves in a local optimum that is safe, but do not obtain reward (or, more generally, an arbitrarily bad reward), due to a lack of exploration.
24
+
25
+ [p. 2 | section: 1 Introduction | type: Text]
26
+ Such situations are common in practice as they may also arise from inherent randomness in sampling from stochastic environments with stochastic policies. A sufficiently small probability of reaching high-reward, safe areas can effectively eliminate potentially feasible policies from consideration. Ensuring a sufficiently close policy πk+1 using KL-ball constraints KL(πk+1∥πk) < ε, introduces a new challenge, as the intersection of feasible policies and policies within the ε-ball might be empty.
27
+
28
+ [p. 2 | section: 1 Introduction | type: Text]
29
+ This is a known problem: Constrained Variational Policy Optimization (CVPO) (Liu et al., 2022) aims to directly solve a nonparametric surrogate problem. However, there is no guarantee that a safe policy within a KL-ball exists as the initial policy can be arbitrarily far away from the feasible set. As a result, Liu et al. (2022) decay their cost upper bound B from some large value Bmax → B over
30
+
31
+ [p. 2 | section: 1 Introduction | type: FigureGroup]
32
+ Figure 1: A robot throws a ball to a different platform. The initial policy (gray) either hits the central platform (R:0) or one of the two chasms (C:1). The optimal policy throws the ball directly to the platform on the left (R:1, C:0).
33
+
34
+ [p. 2 | section: 1 Introduction | type: Text]
35
+ the course of training. The limitation of this is obvious: Too fast decay may lead to unsatisfiable problems, while too slow decay requires a large number of iterations exceeding B. This means that the decay speed is a crucial hyperparameter that is also difficult to tune in practice, since it largely depends on the exploration performance and the specifics of the constraints and the environment.
36
+
37
+ [p. 2 | section: 1 Introduction | type: Text]
38
+ One might challenge this notion with the proof provided by Paternain et al. (2019) who show that constrained RL has zero duality gap. 1 Indeed, this is theoretically true: Assuming the occupation measure has a nonzero probability to reach every state, one could discover every possible policy. However, this relies on the assumption that the occupation measure has a nonzero probability of reaching every state, which is unrealistic in practical algorithms with finite evaluations. Lowprobability states effectively disappear from the sampled distribution and are never optimized. Since RL over occupation measures is linear (see (Paternain et al., 2019) , program P I′′), the distribution will never get optimized increased occupation in those states.
39
+
40
+ [p. 2 | section: 1 Introduction | type: Text]
41
+ We propose an alternative approach: instead of greedily projecting onto the safe set, we aim to solely ensure that policy πk+1 is safer than the previous policy πk. We formulate this as a constrained Bayesian optimization problem, seeking a monotonically increasing likelihood of a trajectory being safe p(S = 1). Being a Bayesian approach this is typically more robust to approximation errors and local optima. This way we can design algorithms that achieve high safety, while being more robust against approximation errors and local optima.
42
+
43
+ [p. 2 | section: 2 RELATED WORK | type: Text]
44
+ Contemporary methods for achieving constraint satisfaction on CMDPs often rely on identifying and maintaining safety once a safe policy has been found. For instance, Constrained Policy Optimization (CPO) (Achiam et al., 2017) bounds the increase in costs ensuring that given a safe policy π the updated policy π ′ will remain safe. During training, whenever a policy is considered unsafe, cost-minimizing recovery steps are performed. Constrained Update Projection (CUP) (Yang et al., 2022) utilizes a similar bound to project the updated policy back onto the feasible set defined by a generalization of the inequality used in (Achiam et al., 2017) . Constraint-Rectified Policy
45
+
46
+ [p. 2 | section: 2 RELATED WORK | type: Footnote]
47
+ 1 Indeed the proof by Paternain et al. (Paternain et al., 2019) rediscovered a more general notion: every optimization problem max x L(x) can be turned into a linear program over measures: max ρ R L(x)ρ(x)dx, with the minimum being obtained by e.g. the Dirac impulse at the optimal x ⋆ (see e.g., (Lasserre, 2009) ).
48
+
49
+ [p. 3 | section: 2 RELATED WORK | type: Text]
50
+ Optimization (CRPO) (Xu et al., 2020) updates the policy towards the optimum as long as the policy is safe, reverting to cost minimization to regain safety otherwise. Reward Constrained Policy Optimization (RCPO) (Tessler et al., 2018) combines the reward and cost signal into a single value function V (st, λ) parameterized by the dual λ allowing for more principled updates than a traditional Lagrangian approach. This method is limited by how quickly λ can be updated under exploration noise. Projection-Based Constrained Policy Optimization (PCPO) (Narasimhan, 2020) directly projects the policy onto the feasible set in every iteration, but requires Hessian calculations to perform accurate projections. Furthermore, projections may lead to large jumps in policies especially during early training as the estimate of the feasible set may be very noisy and the policy may be far from feasible. Stooke et al. (2020) adopt a PID perspective for tuning the Lagrangian λ which gives rise to a host of different traditional methods combined with a penalty function. Constraint recovery steps (either via hard projection as in CUP or descent-based as in CPO) easily lead to the scenario from Fig. 1. This is because the projection onto the space of safe distributions may not be exact (e.g., due to sampling errors) which prematurely reduces exploration for states that may be safe in practice. Our method solves this by not overcommitting to any individual cost estimate.
51
+
52
+ [p. 3 | section: 2 RELATED WORK | type: Text]
53
+ Outside of CRL, one notable earlier work is Maximum a Posteriori Optimization (MPO) (Abdol maleki et al., 2018) . MPO first optimizes a surrogate objective using a nonparametric approximation q of the policy-improvement objective. The result of the surrogate is then cloned to the policy neural network by minimizing KL(π∥q). This explicit surrogate means that, from the point of view of neural network optimization, reinforcement learning becomes a supervised problem of matching to a known target distribution.
54
+
55
+ [p. 3 | section: 2 RELATED WORK | type: Text]
56
+ RL has long relied on incremental objectives, such as advantage functions, to reduce variance and improve convergence. It stands to reason that a similar treatment would benefit constrained RL methods. Indeed, most convergence proofs used in reinforcement learning rely on some notion of relative improvement compared to the previous policy (e.g. (Sutton & Barto, 2018; Xiao, 2022) ). We would argue that such guaranteed improvement constraints are more natural in the iterative "explore then optimize" framework commonly used in RL.
57
+
58
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
59
+ We build upon Maximum a Posteriori Optimization (MPO) (Abdolmaleki et al., 2018) , extending their EM-style RL update to CMDPs. MPO sees policy updates as inference problems with the assumption that the probability of a trajectory being optimal p(O = 1) follows a Boltzman distribution p(O = 1|τ ) ∝ exp(P t rt/α). This leads to the following ELBO
60
+
61
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Equation]
62
+ \log P_{\pi}(O=1) = \log \int p_{\pi}(\tau) p(O=1|\tau) d\tau \ge \int q(\tau) \left[ \log p(O=1|\tau) + \log \frac{p_{\pi}(\tau)}{q(\tau)} \right] d\tau = \mathbb{E}_{q} \left[ \sum_{t} r_{t} / \alpha \right] - KL(q(\tau) || p_{\pi}(\tau)), (2)
63
+
64
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
65
+ which is then solved in two phases. This is a traditional Bayesian inference problem which can be solved using the Expectation-Maximization (EM) algorithm. The EM algorithm (Neal & Hinton, 1998) solves Equation 2 by iteratively maximizing q or π while keeping the other fixed. In the case of MPO, we first solve a nonparametric approximation derived directly from a batch of samples from the replay buffer to obtain q:
66
+
67
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Equation]
68
+ \max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] \tag{3a}
69
+
70
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Equation]
71
+ s.t. KL(q||\pi) \le \varepsilon (3b)
72
+
73
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Equation]
74
+ \int q(a,s)dadas = 1 \tag{3c}
75
+
76
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
77
+ where the KL-constraint is introduced to automatically construct a suitable temperature α. In a second step, one matches the policy neural network π to the nonparametrically optimal q
78
+
79
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Equation]
80
+ \min_{\pi} \{ KL(q \| \pi) : KL(\pi_{\text{old}} \| \pi) < \varepsilon \}. \tag{4}
81
+
82
+ [p. 3 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
83
+ This step is not dependent on any potentially nonstationary objective, but only has to clone the information of the optimal distribution found in eq. (3) .
84
+
85
+ [p. 4 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
86
+ MPO now proceeds to alternatingly solve Equation (3) and Equation (4) : In every iteration, the current policy π is approximated empirically by drawing states from the replay buffer and predicting π(a|s). The samples are used to solve Equation (3) for the optimal q 2 , which is then cloned into the policy network using Equation (4) .
87
+
88
+ [p. 4 | section: 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO) | type: Text]
89
+ We believe this to be an appealing structure for CRL as the nonparametric model eq. (3) can easily accomodate additional constraints, which can then be handled by efficient optimizers (in our case Sequential Least Squares Programming).
90
+
91
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
92
+ We generalize this to CMDPs by introducing a second "policy is safe" event S and then optimizing the resulting joint distribution:
93
+
94
+ [p. 4 | section: 3.1 SAFEMPO | type: Equation]
95
+ \log P_{\pi}(O=1, S=1) = \log \int p_{\pi}(\tau) p(O=1|\tau) p(S=1|\tau) d\tau (5a)
96
+
97
+ [p. 4 | section: 3.1 SAFEMPO | type: Equation]
98
+ \geq \int q(\tau) \left[ \log p(O=1|\tau) + \log p(S=1|\tau) + \log \frac{p_{\pi}(\tau)}{q(\tau)} \right] d\tau \tag{5b}
99
+
100
+ [p. 4 | section: 3.1 SAFEMPO | type: Equation]
101
+ = \mathbb{E}_q \left[ \sum_t r_t / \alpha \right] + \log p(S = 1 | \tau) - KL(q(\tau) || p_{\pi}(\tau)) (5c)
102
+
103
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
104
+ Following Abdolmaleki et al. (2018) , we define the probability of safety as an exponential law, but with the notable change that we truncate the law while the policy is safe
105
+
106
+ [p. 4 | section: 3.1 SAFEMPO | type: Equation]
107
+ p(S=1|\tau) \propto \begin{cases} \exp\left(\frac{-(C(a,s)-B)}{\beta}\right) & C(a,s) \ge B\\ 1 & \text{otherwise} \end{cases} (6)
108
+
109
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
110
+ Notice that this truncation automatically makes sure that all feasible policies have an equal likelihood to be safe, which is exactly the behavior we want in CRL. We also define the cost-log-likelihood function:
111
+
112
+ [p. 4 | section: 3.1 SAFEMPO | type: Equation]
113
+ G(a,s) = \log p(S=1|\tau) = -\max\left(\frac{C(a,s) - B}{\beta}, 0\right). \tag{7}
114
+
115
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
116
+ This is the canonical choice for mapping the costs to a distribution, just as exp(R(τ )) is the canonical choice for returns (Abdolmaleki et al., 2018) . Specifically, the Gibbs distribution is the unique distribution that weights higher R higher while keeping maximal entropy (Jaynes, 1957) . Our truncation adds the third property that values above B are considered equal, which is the core difference between an optimization objective, and a constraint.
117
+
118
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
119
+ Notice that Eq. 5 allows for a wide variety of optima: Any weighting for safety against optimality is possible. As we are interested in CRL (instead of multi-objective RL), we try to select an optimum such that the new policy q is at least as safe as the old policy π. Like Abdolmaleki et al. (2018) , we replace the temperature β with a constraint, just that we want to use an improvement bound safety(π) ≤ safety(q).
120
+
121
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
122
+ Remark 1. Note that our proofs would work, even if we choose a different distribution/likelihood function G since our proofs only rely on a safer policy having a higher likelihood. Therefore, any function that is monotonically decreasing for values Ci(π) ≤ B i will provide a feasible safety likelihood. We choose G as a truncated exponential, due to its connection with the reward function used in (Abdolmaleki et al., 2018; Haarnoja et al., 2017) . However, this choice has disadvantages, which we will discuss in Section 4.
123
+
124
+ [p. 4 | section: 3.1 SAFEMPO | type: Text]
125
+ In the following, we will show that with very limited assumptions, a simple improvement constraint safety(π) ≤ safety(q) is insufficient to guarantee improvement, and how one can create a consistently improving policy by explicitly forcing improvements in every iteration. First, to formalize the notion of safety(π) ≤ safety(q), we introduce the notion of a safety order preservation function:
126
+
127
+ [p. 4 | section: 3.1 SAFEMPO | type: Footnote]
128
+ In practice, one solves the dual problem which is equivalent due to Equation (3) being a convex problem with nonempty interior
129
+
130
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
131
+ Definition 1 (Safety Order Preserving Functions). A function K(p, q) is called safety order preserv ing if, for all distributions q, π and all functions G(a, s) we have
132
+
133
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
134
+ 1. \mathbb{E}_{(a,s)\sim q}[G(a,s)] > \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) > 0 ,
135
+
136
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
137
+ 2. \mathbb{E}_{(a,s)\sim q}[G(a,s)] < \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) < 0
138
+
139
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
140
+ 3. \mathbb{E}_{(a,s)\sim q}[G(a,s)] = \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) = 0
141
+
142
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
143
+ Informally, a Safety Order Preserving function is one that defines a "direction" towards the feasible set. This definition will allow us later to make general monotonic improvement guarantees by defining "improvement" in terms of a general K(·, ·) function, which may allow individual states to increase cost, while decreasing the cost over all, facilitating greater freedom of exploration. We will now give examples for Safety Order Preserving Functions, starting with the naive choice of a linear improvement in expectation:
144
+
145
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
146
+ Example 3.1 (Linear Safety Function (LSF)).
147
+
148
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
149
+ K(q,\pi) = \int q(a,s)G(a,s)dads - \int \pi(a,s)G(a,s)dads
150
+
151
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
152
+ is safety order preserving.
153
+
154
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
155
+ Example 3.2. Priors conditional on safety
156
+
157
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
158
+ K(q,\pi) = \begin{cases} f(q) & \int q(a,s)G(a,s)dads > 0 \\ 0 & \int q(a,s)G(a,s)dads = 0 \\ g(q) & \textit{otherwise} \end{cases}
159
+
160
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
161
+ for f is a positive, g is a negative function, are safety order preserving.
162
+
163
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
164
+ Flexibility in the safety order preserving function allows us to e.g. favor safe policies with lower variance, or to favor policies deeper in the interior of the feasible set by choosing a suitable f. It also allows a "hard" improvement boundary which simply counts the number of safe trajectories by setting f = 1 and g = −1. We will keep a more thorough analysis of good choices for K for future work. For now, the framework of safety order preserving functions allows us to make very general statements about how incremental improvement constraints can be used in CRL.
165
+
166
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
167
+ Theorem 1. Let Q(a, s) be a Q-function, G(a, s) the cost-likelihood function, π the current policy, and K(p, q) safety order preserving function. Then the optimal nonparametric policy q solving the improvement equation
168
+
169
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
170
+ \max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] \tag{8a}
171
+
172
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
173
+ s.t. KL(q||\pi) \le \varepsilon (8b)
174
+
175
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
176
+ K(q,\pi) \ge 0 \tag{8c}
177
+
178
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
179
+ \int q(a,s)dads = 1 \tag{8d}
180
+
181
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
182
+ either has the same safety as the original π , or ignores K and solves the unconstrained MPO problem (Eq. 3) .
183
+
184
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
185
+ Proofs can be found in Appendix B. This theorem immediately gives rise to two corollaries:
186
+
187
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
188
+ Corollary 1. Whether a policy ends up being safe under the incremental model completely depends on whether Q(a, s) is higher in safe regions than in unsafe ones.
189
+
190
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
191
+ Corollary 2. Choosing the naive improvement constraint
192
+
193
+ [p. 5 | section: 3.1 SAFEMPO | type: Equation]
194
+ \mathbb{E}_{(a,s)\sim q}[G(a,s)] \ge \mathbb{E}_{(a,s)\sim \pi}[G(a,s)]
195
+
196
+ [p. 5 | section: 3.1 SAFEMPO | type: Text]
197
+ for Equation (8) is not a contraction over the safety likelihood G .
198
+
199
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
200
+ The core issue behind the method outlined in Theorem 1 is that they do not force the model to pick a point in the interior of the feasible set of Eq. 8. This means we cannot guarantee a nonzero improvement in safety. To solve this issue, we borrow techniques from interior point methods, namely logarithmic barrier functions.
201
+
202
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
203
+ In interior point methods, the log-barrier function is used to maintain constraints g(x) ≤ 0 by converting them to a barrier of the form µ log(−g(x)). This ensures that once a point is feasible, it will always stay feasible due to the singularity at log(0). The downside for classical optimization is that points close to the barrier g(x) = 0 are hard to reach, which is why barrier methods slowly reduce the barrier weight µ → 0 during optimization to approximate the true feasible region. This way interior point methods slowly walk closer towards the barrier, but can never jump over g(x) = 0 due to the singularity of the logarithm.
204
+
205
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
206
+ Luckily, as we expressly want points in the interior, we can pick any arbitrary µ and a logarithmic barrier to ensure a nonzero improvement in our safety constraints. Specifically, with K being a safety-order preserving function, we can formulate our incremental approach as
207
+
208
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
209
+ \max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] + \kappa \log\left(\frac{x}{\kappa}\right) (9a)
210
+
211
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
212
+ s.t. KL(q||\pi) \le \varepsilon (9b)
213
+
214
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
215
+ K\left(q,\pi\right) \ge x \tag{9c}
216
+
217
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
218
+ \int q(a,s)dads = 1 \tag{9d}
219
+
220
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
221
+ Assuming E[Q(a, s)] is bounded, this method is guaranteed to improve the safety margin in every iteration by construction and provides a geometric convergence towards the feasible set (see theorem 4) . For any κ > 0, every q with a strictly positive improvement x > 0 will be favored over all other q since for x ≤ 0 we have log(x) = −∞. 3 Importantly, neither the improvement nor the final optimum when this is iterated depends on the choice of κ, only the local per-iteration tradeoff between reward maximization and constraint improvement changes as κ changes!
222
+
223
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
224
+ For example, when choosing K as the LSF in Example 3.1, κ → ∞ produces a hard projection onto {q|KL(q∥π) ≤ ε, Ci(q) ≤ Bi}, and for κ → 0 one obtains the MPO update (see also Theorem 3) . We simply pick κ = 10 for all of our experiments. This value is not tuned for our experiments, which corresponds to the real-world usecase where the optimal (or even a good) κ may not be known.
225
+
226
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
227
+ One can easily solve Eq. 9 by optimizing over the dual variables λ, ν in
228
+
229
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
230
+ \mathcal{L}(\lambda, \nu) = \int q^{\star}(a, s)Q(a, s)dads - \kappa \log \lambda (10a)
231
+
232
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
233
+ +\lambda \left(\int q^{\star}(a,s)G(a,s)dads - \int \pi(a,s)G(a,s)dads\right) (10b)
234
+
235
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
236
+ + \nu \left( \varepsilon - \int q^{\star}(a, s) \log \left( \frac{q^{\star}(a, s)}{\pi(a, s)} \right) dads \right), (10c)
237
+
238
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
239
+ where the optimal q ⋆ can be computed in closed form as
240
+
241
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Equation]
242
+ q^{\star}(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right). \tag{11}
243
+
244
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
245
+ Note that the optimization problem (Eq. 10) is convex and only has 2 variables. 4 To guarantee a solution to Eq. 10 corresponds to solutions of Eq. 9, one needs a constraint qualification and strong duality. In general, solving the dual problem can be seen as favorable for constrained RL, as the dual problem's complexity scales with the number of constraints, rather than the number of state-action pairs in the batch. The latter might be very large as one may need a lot of samples to accurately track the expected values in Eq. 9. Convex optimization commonly uses Slater's condition:
246
+
247
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Footnote]
248
+ 3 We make the usual assumption in convex optimization that undefined values receive a −∞ penalty Boyd, Stephen & Vandenberghe, Lieven (2004) .
249
+
250
+ [p. 6 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Footnote]
251
+ 4 More generally, for a problem with N constraints, we have 1 + N variables.
252
+
253
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
254
+ Proposition 1 (Slater's condition). If a convex program with constraints f_0, \ldots, f_n \leq 0 has a point in the relative interior f_0, \ldots, f_n < 0 , strong duality holds
255
+
256
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
257
+ Slater's condition acts as both a strong duality certificate, and a constraint qualification. Verifying Slater's condition can be somewhat tricky for very general constraint sets such as the ones used for Eq. 10. Fortunately, for Eq. 9 we can give an easier way to check condition for strong duality
258
+
259
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
260
+ Theorem 2. Let (A \times S, \Sigma, \mu) be a measure space. If G(a, s) : A \times S \to \mathcal{R} is not almost everywhere constant, \pi is fully supported and \varepsilon > 0 , and K is concave, then Eq. 9 has a solution and strong duality holds.
261
+
262
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
263
+ The proof can be found in Appendix B. Using this theorem we can conclude the following:
264
+
265
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
266
+ Corollary 3. Let O: \pi \to q be an improvement operator induced by Equation (9). Then O is a contraction wrt the pseudo-metric K(\cdot,\cdot) .
267
+
268
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
269
+ Remark 2. Theorem 2 still holds for multiple constraints G_1, \ldots, G_N if one replaces the condition "G(a, s) is not almost everywhere constant" with "there exists a subset A' \times S' \subseteq A \times S with \mu(A' \times S') > 0 where none of the G_i are constant."
270
+
271
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
272
+ This means that, in practice, one only has to ensure that G(a,s) is not constant, and that \pi has nonzero probability for all outputs (which is a standard assumption in both inference and RL), and that whatever K is chosen has to be concave and safety order preserving. For simplicity, we will choose K as the LSF (Example 3.1), since, without further assumptions, this can be seen as the canonical choice for K. Choosing a different K might further improve performance by e.g. favoring high-entropy solutions within the safer set. Choosing K choice has an interesting consequence: even if G(a,s) is constant, we can define a reasonable notion of the optimal solution in Eq. 9.
273
+
274
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
275
+ Theorem 3. Assume a sufficiently large upper bound M > 0 on the dual variable associated with the improvement constraint. If K is the LSF (see Example 3.1), then solving Eq. 9 with a constrained dual produces a solution to Eq. 9 if G is not constant, and a solution of Eq. 3 if G is constant.
276
+
277
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
278
+ The result in Theorem 3 provides a very natural way of implementing the nonparametric surrogate: We optimize the dual variables under some sufficiently large constraints (we choose \lambda \in [-10^6, 10^6] ). If the batch we are optimizing over is constant (e.g., all (a,s) are already safe, random sampling), we automatically make an MPO step, while in all other cases we perform a safe improvement step. We present the complete method in Algorithm 1.
279
+
280
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
281
+ Combining all previous theorems, we obtain a very general convergence guarantee
282
+
283
+ [p. 7 | section: 3.2 GUARANTEED IMPROVEMENT E-STEP | type: Text]
284
+ Theorem 4. Assuming \mathbb{E}_{(a,s)\sim q}[Q(a,s)] is bounded in [-M,M], and the feasible set is not empty, eq. (9) converges towards the feasible set, and K is sequentially continuous on the nonnegative component (cases 1., 3. for definition 1) and not constant. If we additionally choose K as the LSF (example 3.1), then we obtain geometric convergence speed.
285
+
286
+ [p. 7 | section: 3.3 M-STEP | type: Text]
287
+ After the optimal nonparametric q^* is computed, the resulting distribution has to be "cloned" into the policy neural network. Just like MPO (Abdolmaleki et al., 2018), we factor \pi(a,s)=\pi(a|s)\mu(s) and q(a,s)=q(a|s)\mu(s) where \mu(s) is the stationary distribution estimated using the replay buffer. As in MPO, we use a split KL-difference constraint as the prior in our M-step. Therefore our M-step is
288
+
289
+ [p. 7 | section: 3.3 M-STEP | type: Equation]
290
+ \mathcal{L}(q, \alpha_1, \alpha_2) = \mathbb{E}_{\mu(s)} \left[ \mathbb{E}_{q^*} \left[ \log \pi(a|s) \right] \right] + \alpha_1(\varepsilon_\mu - C\mu) + \alpha_2(\varepsilon_\Sigma - C_\Sigma), \tag{12}
291
+
292
+ [p. 7 | section: 3.3 M-STEP | type: Text]
293
+ where C_{\Sigma} = \mathbb{E}_{\mu(s)}[\frac{1}{2}(\Sigma^{-1}\Sigma_{old}) - n + \log\left(\frac{|\Sigma|}{|\Sigma_{old}|}\right)] and C_{\mu} = \mathbb{E}_{\mu(s)}[\frac{1}{2}(\mu - \mu_{old})^T\Sigma^{-1}(\mu - \mu_{old})] is the split KL-constraint. We update both Q(a,s) and C(a,s) using RETRACE (Munos et al., 2016) which has empirically good performance and is guaranteed to converge under small assumptions.
294
+
295
+ [p. 7 | section: 3.3 M-STEP | type: Text]
296
+ Generally speaking, our E-step is written to allow for different factorizations, such as the one used in V-MPO (Song et al., 2019), which has higher per-update efficiency but comes at the cost of not being able to use off-policy data. For the sake of this work, we utilize the traditional MPO estimator, but V-MPO style updates should be a plug-in replacement.
297
+
298
+ [p. 8 | section: Algorithm 1 SafeMPO update step | type: Code]
299
+ Require: Policy π, safety function K, replay buffer D, dual multipliers α1, α2, maximal dual Mλ Ensure: π > 0 sample Batch B ∼ D Update Q(a, s) using RETRACE on B Update C(a, s) using RETRACE on B solve Equation (10) for λ ∈ [0, Mλ), ν ∈ [0, ∞) on B Compute q ⋆ (a|s) using Equation (11) for 0 ≤ i < N do π ← using Equation (12) descend on π α1 ← using Equation (12) ascend on α1 α2 ← using Equation (12) ascend on α2 end for
300
+
301
+ [p. 8 | section: 3.4 IMPLEMENTATION | type: Text]
302
+ Algorithm 1 shows the prototypical implementation of a single-batch update to our policy. We first fit both the Q and C function to the sampled trajectories using the RETRACE (Munos et al., 2016) estimator. We can then solve the dual problem Equation (10) and compute the nonparametric reference q ⋆ (a|s), which we use as the target for our neural network. For the experiments in Section 4, we sample 20 batches of size 1024 and set N = 8.
303
+
304
+ [p. 8 | section: 4 EXPERIMENTS | type: Text]
305
+ We compare against state-of-the-art algorithms implemented in Omnisafe Ji et al. (2024) . For all experiments, we choose κ = 10 and a budget of B = 25. Our benchmarks are performed on three tasks from the safety-gymnasium (Ji et al., 2023) benchmark set: SafetyCarGoal aims to drive a car in a randomly generated 3d environment towards a "goal" position while avoiding stationary hazards. Once a goal has been reached, a new goal is sampled. The reward is defined as the distance reduction towards the goal. The cost is +1 when an obstacle is hit, 0 otherwise. SafetyPointGoal is the same task as the previous, but instead of navigating a differential drive car, the point agent directly decomposes rotation and movement direction, making control much easier. The agent is also physically smaller, further improving the navigation performance. SafetyCarButton is the most challenging environment: Instead of driving the car towards the goal and having to avoid stationary obstacles, the car has to avoid both stationary and moving obstacles, while navigating towards the correct goal button. Rewards and costs are defined the same as in the Goal environments.
306
+
307
+ [p. 8 | section: 4 EXPERIMENTS | type: Text]
308
+ Since CRL has two, often diametrically opposed objectives (constraint satisfaction and reward maximization), it is often difficult to compare whether one algorithm outperforms another. Further, one considerable issue when comparing different algorithms are the hypeparameters: This is of course a limitation for all ML algorithms, but in CRL we have the additional problem that the optimal solution to the CRL problem provably relies only on the Lagrangian parameter (Paternain et al., 2019) . Therefore even a naive algorithm with fixed dual parameter could reach state-of-the-art when that parameter is known. This complicates benchmarking since over known benchmark environments practitioners know appropriate values for the dual, in contrast to real world problems where such ranges are unknown. This holds even for some dynamic methods, such as CPPOPID 5 (Stooke et al., 2020) which implicitly has environment information inside their PID-values.
309
+
310
+ [p. 8 | section: 4 EXPERIMENTS | type: Text]
311
+ To give existing methods the best possible opportunities, we utilize the highly optimized hyperparameters provided by Omnisafe (Ji et al., 2024) . We would, however, argue that the fact that we only have a single hyperparameter which does not change the asymptotic behavior is significant advantage of our method that is hard to show in benchmarks.
312
+
313
+ [p. 8 | section: 4 EXPERIMENTS | type: Text]
314
+ When analyzing the results in Table 1, we observe that our method is competitive reaching stateof-the-art results in both the "SafetyCarGoal" and "SafetyCarButton" environments. Specifically,
315
+
316
+ [p. 8 | section: 4 EXPERIMENTS | type: Footnote]
317
+ 5 Note: we follow the nomenclature adopted by Omnisafe Ji et al. (2024) and call the combination of PPO (Schulman et al., 2017) and PID presented in (Stooke et al., 2020) "CPPOPID".
318
+
319
+ [p. 9 | section: 4 EXPERIMENTS | type: TableGroup]
320
+ Table 1: Safety Car Goal. All methods are evaluated after 10 Mio steps. Following (Ji et al., 2024), we set the cost budget B=25 for all algorithms unless otherwise mentioned. Method SafetyCarGoal SafetyCarButton SafetyPointGoal Method Reward Cost Reward Cost Reward Cost RCPO Tessler et al. (2018) 18.71 \pm 2.72 23.10\pm12.57 -2.04 \pm 2.98 43.48 \pm 31.52 15.27 \pm 4.05 30.56 \pm 19.15 21.56 \pm 2.87 38.42 \pm 8.36 0.36 \pm 0.85 40.52 \pm 21.25 18.57 \pm 1.71 22.98 \pm 6.56 15.23 \pm 10.76 31.66 \pm 93.51 0.21 \pm 2.27 31.78 \pm 47.03 17.97 \pm 9.01 33.72 \pm 42.24 25.52 \pm 2.65 43.32 \pm 14.35 0.82 \pm 1.60 37.86 \pm 27.41 20.46 \pm 1.38 28.84 \pm 7.76 10.60 \pm 2.51 30.66 \pm 7.53 -1.36 \pm 0.68 14.62 \pm 9.40 8.43 \pm 3.43 25.74 \pm 7.83 CUP Yang et al. (2022) 6.14 \pm 6.97 36.12 \pm 89.56 1.49 \pm 2.84 103.24 \pm 123.12 14.42 \pm 6.74 19.02 \pm 20.08 21.43 \pm 5.10 32.23 \pm 7.43 0.67 \pm 0.61 30.87 \pm 4.47 13.09 \pm 2.79 32.92 \pm 3.43 SafeMPO @B = 20 \text{ (ours)} 20.24 \pm 2.24 25.68 \pm 2.97 0.94 \pm 0.12 33.37 \pm 2.46 18.36 \pm 3.41 23.00 \pm 1.56 400 125 | .00 4.4.4 adapatan Herri dikka 1.0 SafeMPO — TRPOLag — TRPO — RCPO PCPO — CPO 100 300 A ALL AND AND AND AND AND AND AND AND AND AND graffen formalder for franchisch 150 Titl OLag 1010 010 | A | 300 NAME OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERS MM ts 75- 200 √ I 100 S 50- Unally 200 AM. 100 1 // 50 ayahahayayayayayaya Mary Mary Mary Mary Mary Mary Mary Mary 25- THE PARTY IN White discussion وملطنا ويتأجل بالأشابات "milythining Wilder John Comb salblardishlananaharrat 0 0 0. Mark Mark I Mary Land Andrews 30- a a disa madi di يتقمل وللقل ورفوان فرواديان dun | 11111 Consult Milderer College 301 20 The state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the s the formal and the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of t 20 My manage of the Market £ 20 · Mayorway Mail and he are set offer Marry Mary WALL WALL TO THE THE THE THE THE THE THE THE THE THE 20- te 10 Academic his 1 / l A munico ₫ 10. 10 1 A 10 Maria Char 1 100 0 0 Part of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last o 0. 7" 0.0 0.2 0.4 0.6 ( step 0.8 1.0 0.0 0.2 0 1.0 0.0 0.6 0.8 1.0 step step *** step 101 Figure 2: Results throughout training. We adopt the same evaluation procedures as described in (Ji et al., 2024). The shaded area corresponds to 1\sigma deviations across independent runs. To maintain readability, we only plot a subset of the algorithms we compare against in Table 1.
321
+
322
+ [p. 9 | section: 4 EXPERIMENTS | type: Text]
323
+ (b) SafetyCarButton
324
+
325
+ [p. 9 | section: 4 EXPERIMENTS | type: Text]
326
+ (c) SafetyPointGoal
327
+
328
+ [p. 9 | section: 4 EXPERIMENTS | type: Text]
329
+ our agent manages to reach a higher reward than CUP (Yang et al., 2022) and CPPOPID (Paternain et al., 2019), while producing substantially lower cost. The only method that produces a policy below the cost threshhold of 25 is RCPO (Tessler et al., 2018), which also substantially drops in observed reward compared to SafeMPO. The major downside of RCPO compared to our method becomes apparent in the more challenging SafetyCarButton environment. SafeMPO produces a slightly lower constraint violation than FOCOPS (Zhang et al., 2020) while providing almost 3\times more reward. The only method to stay fully within the constraint set (CPPOPID) does so at the loss of performance, producing a highly negative reward. RCPO - the best model from SafetyCarGoal produces the worst results on SafetyCarButton: RCPO has the lowest reward and the second highest cost across all methods.
330
+
331
+ [p. 9 | section: 4 EXPERIMENTS | type: Text]
332
+ The pattern of inconsistent performance continues to SafetyPoinGoal - the easiest of the environments - here we find the best performing model to be CPO (Achiam et al., 2017) or PCPO (Narasimhan, 2020), depending on how one values a \pm 3 cost overrun/undershoot against a reward gain of \approx 6 points. This is the worst performing benchmark for SafeMPO, but we remain close to SOTA. Generally, our method has the advantage of behaving consistently, providing low run-to-run variance across independent runs.
333
+
334
+ [p. 9 | section: 4 EXPERIMENTS | type: Text]
335
+ Another interesting observation is the robustness provided by our method regarding costs: Our method consistently has the lowest run-to-run variance among all other approaches, which we hypothesize is due to the lack of "edge cases" introduced by other methods.
336
+
337
+ [p. 9 | section: 5 DISCUSSION | type: Text]
338
+ (a) SafetyCarGoal
339
+
340
+ [p. 9 | section: 5 DISCUSSION | type: Text]
341
+ One interesting point to mention is that all our methods have a cost of roughly 30 compared to the cost limit of 25. This suggests that this is a limitation of how our likelihood function for safety is defined: since we only penalize policies outside the feasible set, the solution to Eq. 9 might end
342
+
343
+ [p. 10 | section: 5 DISCUSSION | type: Text]
344
+ up simply "eating" the cost for states that are almost safe already, leading to an effective shift in boundary due to sampling variance inside the approximations of the expectation. To validate our hypothesis, we re-run the SafetyCarGoal experiments with an artifically lowered cost threshhold of B = 20. The results can be found in table 1. As one can see, both SafetyPointGoal and SafetyCarGoal return feasible policies at SOTA reward levels (for feasible policies). Nevertheless, our method fails to find a feasible policy for SafetyCarButton, which is not unexpected considering that no method aside from CPPOPID can produce a feasible policy 6 . Of course, tuning the boundary B is not a feasible solution but a smaller barrier leading to superior results suggests that our method is able to theoretically hit better threshholds, but is unable to reach the points due to the log-likelihood G we chose. Our method can technically handle arbitrary notions of safety, including e.g. Conditional Value at Risk (CVaR). Since this problem goes deeper than SafeMPO and touches the question of "What definition of safety is appropriate for Reinforcement Learning", we leave the analysis of alternative safety likelihood functions for future work.
345
+
346
+ [p. 10 | section: 5 DISCUSSION | type: Text]
347
+ One important aspect to note is the general behavior of Reinforcement Learning in Constrained scenarios and the "RL as inference" notion employed in this paper. It is generally impossible for RL agents - regardless of Value, policy, or model based - to be 100% safe in unknown environments. This is due to the inherent uncertainty when estimating the constraints: To choose an extreme example, one cannot know the safety of states that are never sampled. This means any well designed CRL method should have the property that action probabilities are nonzero (but perhaps very low) during finite exploration, and only converge to zero in the limit of infinite data. Otherwise, one cannot guarantee that an action is "banned" just due to poor initialization of the cost function or missing data. Indeed, this is the behavior we observe in our proof of Theorem 4: High cost states decrease in likelihood but only hit zero in the limit of infinite steps where one has certainty on the cost function.
348
+
349
+ [p. 10 | section: 6 CONCLUSIONS AND FUTURE WORK | type: Text]
350
+ We propose a novel framework for Constrained Reinforcement Learning that relies on relative improvements in the likelihood of a policy being safe, rather than primal-dual or projection based updates. We first analyze these types of relative improvement algorithms theoretically, proving that naive improvement bounds may not lead to a contraction towards a feasible set. However, we prove that with small changes inspired by interior point barriers, we can make broad statements of the convergence properties under relative improvement constraints. Finally, we demonstrate our method's high performance by comparing against highly tuned state-of-the-art algorithms.
351
+
352
+ [p. 10 | section: 6 CONCLUSIONS AND FUTURE WORK | type: Text]
353
+ Our method leaves wide room for future work both on novel Safety Order Preserving Functions, and algorithmic improvements. For instance, we currently only consider the off-policy MPO algorithm (Abdolmaleki et al., 2018) , but our framework is also compatible with other updates, such as (Song et al., 2019) . As already mentioned in Section 4, we also noticed opportunities to improve our method further, by choosing a better likelihood function. Another interesting possibility is framing ordinary MDP RL problems as CMDPs where the objective is given as an improvement constraint. This way one could design RL methods that by construction guarantee improvement.
iclr26/1m0EU6QXj6/paper.blocks.json ADDED
The diff for this file is too large to render. See raw diff
 
iclr26/1m0EU6QXj6/paper.md ADDED
The diff for this file is too large to render. See raw diff
 
iclr26/1m0EU6QXj6/parse_report.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "1m0EU6QXj6",
3
+ "pipeline": "marker_non_llm_v3",
4
+ "parser": "marker_single",
5
+ "formats": [
6
+ "markdown",
7
+ "chunks"
8
+ ],
9
+ "llm_enabled": false,
10
+ "pdf_path": "/network/scratch/j/jianan.zhao/ReviewAgent/data/processed_papers/iclr26_20260429_1952_all/raw/1m0EU6QXj6.pdf",
11
+ "pdf_sha256": "8eef4ff44a1b8527ed97b74ee56d834d224e1ddc8fd2e05cb4ee9c03e281e717",
12
+ "bytes": 1071643,
13
+ "source": "https://openreview.net/pdf?id=1m0EU6QXj6",
14
+ "page_count": 16,
15
+ "ok": true,
16
+ "elapsed_seconds": 303.04,
17
+ "paper2markdown_v3": {
18
+ "paper_id": "1m0EU6QXj6",
19
+ "pipeline": "Paper2Markdown-V3",
20
+ "ok": true,
21
+ "page_count": 16,
22
+ "chunk_count": 211,
23
+ "main_body_chunk_count": 118,
24
+ "appendix_chunk_count": 85,
25
+ "reference_chunk_count": 8,
26
+ "model_text_chars": 52940,
27
+ "raw_markdown_chars": 192332,
28
+ "sanitized_chars": 71911,
29
+ "page_provenance": {
30
+ "min_page": 1,
31
+ "max_page": 16,
32
+ "invalid_count": 0
33
+ },
34
+ "marker_block_type_counts": {
35
+ "Code": 1,
36
+ "Equation": 58,
37
+ "FigureGroup": 2,
38
+ "Footnote": 6,
39
+ "ListGroup": 2,
40
+ "PageFooter": 16,
41
+ "PageHeader": 16,
42
+ "SectionHeader": 22,
43
+ "TableGroup": 1,
44
+ "Text": 144
45
+ },
46
+ "asset_count_raw": 2,
47
+ "asset_count_model_kept": 2,
48
+ "asset_count_rejected": 0,
49
+ "asset_reject_reasons": {
50
+ "kept": 2
51
+ },
52
+ "artifact_leak_audit": {
53
+ "ok": true,
54
+ "hits": {
55
+ "Anonymous Authors": [],
56
+ "ACKNOWLEDGMENT": [],
57
+ "OpenReview": [],
58
+ "\"accept_label\"": [],
59
+ "\"decision\"": [],
60
+ "\"decision_tier\"": [],
61
+ "\"source_status\"": [],
62
+ "Meta-review": [],
63
+ "Official Review": [],
64
+ "official_reviews": [],
65
+ "meta_reviews": [],
66
+ "suggested_verdict_score": []
67
+ },
68
+ "artifact_count": 2
69
+ },
70
+ "default_model_input": "model_text_v3.txt",
71
+ "appendix_input": "appendix_text_v3.txt",
72
+ "reference_input": "reference_text_v3.txt"
73
+ }
74
+ }
iclr26/1m0EU6QXj6/reference_chunks.jsonl ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0118", "section": "REFERENCES", "page_start": 10, "page_end": 10, "type": "Text", "text": "Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Man- ´ fred Otto Heess, and Martin A. Riedmiller. Maximum a posteriori policy optimisation. ArXiv , abs/1806.06920, 2018. URL CorpusID:49310753 .", "source": "marker_v2", "marker_block_id": "/page/9/Text/7"}
2
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0119", "section": "REFERENCES", "page_start": 10, "page_end": 10, "type": "Text", "text": "Joshua Achiam, David Held, Aviv Tamar, and P. Abbeel. Constrained policy optimization. ArXiv , abs/1705.10528, 2017. URL CorpusID:10647707 .", "source": "marker_v2", "marker_block_id": "/page/9/Text/8"}
3
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0120", "section": "REFERENCES", "page_start": 10, "page_end": 10, "type": "Text", "text": "Boyd, Stephen and Vandenberghe, Lieven. Convex Optimization . Cambridge University Press, March 2004. ISBN 9780511804441. doi: 10.1017/cbo9780511804441. URL doi.org/10.1017/CBO9780511804441 .", "source": "marker_v2", "marker_block_id": "/page/9/Text/9"}
4
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0121", "section": "REFERENCES", "page_start": 10, "page_end": 10, "type": "Footnote", "text": "6 In fact, inspecting some of the trajectories created by CPPOPID, it turns out that CPPOPID learns to walk outside the area in which the simulation takes place in, yielding low reward but high safety.", "source": "marker_v2", "marker_block_id": "/page/9/Footnote/10"}
5
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0122", "section": "REFERENCES", "page_start": 11, "page_end": 11, "type": "ListGroup", "text": "Tuomas Haarnoja, Haoran Tang, P. Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. In International Conference on Machine Learning , 2017. URL https: //api.semanticscholar.org/CorpusID:11227891 . Edwin T. Jaynes. Information theory and statistical mechanics. Physical Review , 106:620–630, 1957. URL . Jiaming Ji, Borong Zhang, Xuehai Pan, Jiayi Zhou, Juntao Dai, and Yaodong Yang. Safety-Gymnasium, May 2023. URL safety-gymnasium . 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 . Jean Bernard Lasserre. Moments, Positive Polynomials and Their Applications . IMPERIAL COL-LEGE PRESS, 2009. doi: 10.1142/p665. URL doi/abs/10.1142/p665 . Zuxin Liu, Zhepeng Cen, Vladislav Isenbaev, Wei Liu, Zhiwei Steven Wu, Bo Li, and Ding Zhao. Constrained variational policy optimization for safe reinforcement learning. ArXiv , abs/2201.11927, 2022. URL 246411597 . Remi Munos, Tom Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient off- ´ policy reinforcement learning. In Neural Information Processing Systems , 2016. URL https: //api.semanticscholar.org/CorpusID:492962 . Karthik Narasimhan. Projection-based constrained policy optimization. ArXiv , abs/2010.03152, 2020. URL . Radford M. Neal and Geoffrey E. Hinton. A View of the Em Algorithm that Justifies Incremental, Sparse, and other Variants , pp. 355–368. Springer Netherlands, Dordrecht, 1998. ISBN 978- 94-011-5014-9. doi: 10.1007/978-94-011-5014-9 12. URL 978-94-011-5014-9_12 . Santiago Paternain, Luiz F. O. Chamon, Miguel Calvo-Fullana, and Alejandro Ribeiro. Constrained reinforcement learning has zero duality gap. In Neural Information Processing Systems , 2019. URL . John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. ArXiv , abs/1707.06347, 2017. URL semanticscholar.org/CorpusID:28695052 . H. Francis Song, Abbas Abdolmaleki, Jost Tobias Springenberg, Aidan Clark, Hubert Soyer, Jack W. Rae, Seb Noury, Arun Ahuja, Siqi Liu, Dhruva Tirumala, Nicolas Manfred Otto Heess, Dan Belov, Martin A. Riedmiller, and Matthew M. Botvinick. V-mpo: On-policy maximum a posteriori policy optimization for discrete and continuous control. ArXiv , abs/1909.12238, 2019. URL . Adam Stooke, Joshua Achiam, and P. Abbeel. Responsive safety in reinforcement learning by pid lagrangian methods. In International Conference on Machine Learning , 2020. URL https: //api.semanticscholar.org/CorpusID:220404280 . Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction . A Bradford Book, Cambridge, MA, USA, 2018. ISBN 0262039249. Chen Tessler, Daniel Jaymin Mankowitz, and Shie Mannor. Reward constrained policy optimization. ArXiv , abs/1805.11074, 2018. URL CorpusID:44095973 . Lin Xiao. On the convergence rates of policy gradient methods. ArXiv , abs/2201.07443, 2022. URL .", "source": "marker_v2", "marker_block_id": "/page/10/ListGroup/256"}
6
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0123", "section": "REFERENCES", "page_start": 12, "page_end": 12, "type": "Text", "text": "Tengyu Xu, Yingbin Liang, and Guanghui Lan. Crpo: A new approach for safe reinforcement learning with convergence guarantee. In International Conference on Machine Learning , 2020. URL .", "source": "marker_v2", "marker_block_id": "/page/11/Text/1"}
7
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0124", "section": "REFERENCES", "page_start": 12, "page_end": 12, "type": "Text", "text": "Long Yang, Jiaming Ji, Juntao Dai, Linrui Zhang, Binbin Zhou, Pengfei Li, Yaodong Yang, and Gang Pan. Constrained update projection approach to safe policy optimization. ArXiv , abs/2209.07089, 2022. URL 252280735 .", "source": "marker_v2", "marker_block_id": "/page/11/Text/2"}
8
+ {"paper_id": "1m0EU6QXj6", "chunk_id": "1m0EU6QXj6:0125", "section": "REFERENCES", "page_start": 12, "page_end": 12, "type": "Text", "text": "Yiming Zhang, Quan Ho Vuong, and Keith W. Ross. First order optimization in policy space for constrained deep reinforcement learning. ArXiv , abs/2002.06506, 2020. URL semanticscholar.org/CorpusID:211132768 .", "source": "marker_v2", "marker_block_id": "/page/11/Text/3"}
iclr26/1m0EU6QXj6/reference_text_v3.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [p. 10 | section: REFERENCES | type: Text]
2
+ Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Man- ´ fred Otto Heess, and Martin A. Riedmiller. Maximum a posteriori policy optimisation. ArXiv , abs/1806.06920, 2018. URL CorpusID:49310753 .
3
+
4
+ [p. 10 | section: REFERENCES | type: Text]
5
+ Joshua Achiam, David Held, Aviv Tamar, and P. Abbeel. Constrained policy optimization. ArXiv , abs/1705.10528, 2017. URL CorpusID:10647707 .
6
+
7
+ [p. 10 | section: REFERENCES | type: Text]
8
+ Boyd, Stephen and Vandenberghe, Lieven. Convex Optimization . Cambridge University Press, March 2004. ISBN 9780511804441. doi: 10.1017/cbo9780511804441. URL doi.org/10.1017/CBO9780511804441 .
9
+
10
+ [p. 10 | section: REFERENCES | type: Footnote]
11
+ 6 In fact, inspecting some of the trajectories created by CPPOPID, it turns out that CPPOPID learns to walk outside the area in which the simulation takes place in, yielding low reward but high safety.
12
+
13
+ [p. 11 | section: REFERENCES | type: ListGroup]
14
+ Tuomas Haarnoja, Haoran Tang, P. Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. In International Conference on Machine Learning , 2017. URL https: //api.semanticscholar.org/CorpusID:11227891 . Edwin T. Jaynes. Information theory and statistical mechanics. Physical Review , 106:620–630, 1957. URL . Jiaming Ji, Borong Zhang, Xuehai Pan, Jiayi Zhou, Juntao Dai, and Yaodong Yang. Safety-Gymnasium, May 2023. URL safety-gymnasium . 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 . Jean Bernard Lasserre. Moments, Positive Polynomials and Their Applications . IMPERIAL COL-LEGE PRESS, 2009. doi: 10.1142/p665. URL doi/abs/10.1142/p665 . Zuxin Liu, Zhepeng Cen, Vladislav Isenbaev, Wei Liu, Zhiwei Steven Wu, Bo Li, and Ding Zhao. Constrained variational policy optimization for safe reinforcement learning. ArXiv , abs/2201.11927, 2022. URL 246411597 . Remi Munos, Tom Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient off- ´ policy reinforcement learning. In Neural Information Processing Systems , 2016. URL https: //api.semanticscholar.org/CorpusID:492962 . Karthik Narasimhan. Projection-based constrained policy optimization. ArXiv , abs/2010.03152, 2020. URL . Radford M. Neal and Geoffrey E. Hinton. A View of the Em Algorithm that Justifies Incremental, Sparse, and other Variants , pp. 355–368. Springer Netherlands, Dordrecht, 1998. ISBN 978- 94-011-5014-9. doi: 10.1007/978-94-011-5014-9 12. URL 978-94-011-5014-9_12 . Santiago Paternain, Luiz F. O. Chamon, Miguel Calvo-Fullana, and Alejandro Ribeiro. Constrained reinforcement learning has zero duality gap. In Neural Information Processing Systems , 2019. URL . John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. ArXiv , abs/1707.06347, 2017. URL semanticscholar.org/CorpusID:28695052 . H. Francis Song, Abbas Abdolmaleki, Jost Tobias Springenberg, Aidan Clark, Hubert Soyer, Jack W. Rae, Seb Noury, Arun Ahuja, Siqi Liu, Dhruva Tirumala, Nicolas Manfred Otto Heess, Dan Belov, Martin A. Riedmiller, and Matthew M. Botvinick. V-mpo: On-policy maximum a posteriori policy optimization for discrete and continuous control. ArXiv , abs/1909.12238, 2019. URL . Adam Stooke, Joshua Achiam, and P. Abbeel. Responsive safety in reinforcement learning by pid lagrangian methods. In International Conference on Machine Learning , 2020. URL https: //api.semanticscholar.org/CorpusID:220404280 . Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction . A Bradford Book, Cambridge, MA, USA, 2018. ISBN 0262039249. Chen Tessler, Daniel Jaymin Mankowitz, and Shie Mannor. Reward constrained policy optimization. ArXiv , abs/1805.11074, 2018. URL CorpusID:44095973 . Lin Xiao. On the convergence rates of policy gradient methods. ArXiv , abs/2201.07443, 2022. URL .
15
+
16
+ [p. 12 | section: REFERENCES | type: Text]
17
+ Tengyu Xu, Yingbin Liang, and Guanghui Lan. Crpo: A new approach for safe reinforcement learning with convergence guarantee. In International Conference on Machine Learning , 2020. URL .
18
+
19
+ [p. 12 | section: REFERENCES | type: Text]
20
+ Long Yang, Jiaming Ji, Juntao Dai, Linrui Zhang, Binbin Zhou, Pengfei Li, Yaodong Yang, and Gang Pan. Constrained update projection approach to safe policy optimization. ArXiv , abs/2209.07089, 2022. URL 252280735 .
21
+
22
+ [p. 12 | section: REFERENCES | type: Text]
23
+ Yiming Zhang, Quan Ho Vuong, and Keith W. Ross. First order optimization in policy space for constrained deep reinforcement learning. ArXiv , abs/2002.06506, 2020. URL semanticscholar.org/CorpusID:211132768 .
iclr26/1m0EU6QXj6/sanitization_report.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paper_id": "1m0EU6QXj6",
3
+ "pipeline": "Paper2Markdown-V3",
4
+ "ok": true,
5
+ "page_count": 16,
6
+ "chunk_count": 211,
7
+ "main_body_chunk_count": 118,
8
+ "appendix_chunk_count": 85,
9
+ "reference_chunk_count": 8,
10
+ "model_text_chars": 52940,
11
+ "raw_markdown_chars": 192332,
12
+ "sanitized_chars": 71911,
13
+ "page_provenance": {
14
+ "min_page": 1,
15
+ "max_page": 16,
16
+ "invalid_count": 0
17
+ },
18
+ "marker_block_type_counts": {
19
+ "Code": 1,
20
+ "Equation": 58,
21
+ "FigureGroup": 2,
22
+ "Footnote": 6,
23
+ "ListGroup": 2,
24
+ "PageFooter": 16,
25
+ "PageHeader": 16,
26
+ "SectionHeader": 22,
27
+ "TableGroup": 1,
28
+ "Text": 144
29
+ },
30
+ "asset_count_raw": 2,
31
+ "asset_count_model_kept": 2,
32
+ "asset_count_rejected": 0,
33
+ "asset_reject_reasons": {
34
+ "kept": 2
35
+ },
36
+ "artifact_leak_audit": {
37
+ "ok": true,
38
+ "hits": {
39
+ "Anonymous Authors": [],
40
+ "ACKNOWLEDGMENT": [],
41
+ "OpenReview": [],
42
+ "\"accept_label\"": [],
43
+ "\"decision\"": [],
44
+ "\"decision_tier\"": [],
45
+ "\"source_status\"": [],
46
+ "Meta-review": [],
47
+ "Official Review": [],
48
+ "official_reviews": [],
49
+ "meta_reviews": [],
50
+ "suggested_verdict_score": []
51
+ },
52
+ "artifact_count": 2
53
+ },
54
+ "default_model_input": "model_text_v3.txt",
55
+ "appendix_input": "appendix_text_v3.txt",
56
+ "reference_input": "reference_text_v3.txt"
57
+ }
iclr26/1m0EU6QXj6/sanitized_v3.txt ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {0}
2
+ #### **ABSTRACT**
3
+ Reinforcement Learning (RL) has demonstrated significant success in optimizing complex control and planning problems. However, scaling RL to real-world applications with multiple, potentially conflicting requirements requires an effective handling of constraints. We propose a novel approach to constraint satisfaction in RL algorithms, focusing on incrementally improving policy safety rather than directly projecting the policy onto a feasible region. We accomplish this by first solving a nonparametric surrogate problem which is guaranteed to contract towards the feasible set, and then cloning that solution into a neural network policy. As a result, our approach improves stability, particularly during early training stages, when the policy lacks knowledge of constraint boundaries. We provide general theoretical results guaranteeing convergence to the safe set for this class of incremental systems. Notably, even the simplest algorithm produced by our theory produces comparable or superior performance when compared to highly tuned constrained RL baselines in challenging constrained environments.
4
+ ## 1 Introduction
5
+ Reinforcement Learning (RL) offers significant potential for improving performance in a wide range of control and planning problems by directly optimizing the behavior policy through interactions with a black-box environment (Sutton & Barto, 2018). However, RL can pose safety challenges due to an untrained policy that accidentally damages equipment or even harms users during the learning process. Further, even if a policy has been safely trained to completion (e.g. in a simulator), one can generally not be sure whether the policy can be considered safe during deployment in the real world.
6
+ To address these issues, there is a growing trend towards Safe Reinforcement Learning (SRL) which explicitly introduces safety considerations into the training process. One of the most popular formulations for SRL is the Constrained Markov Decision Process (CMDP), which extends the traditional Markov Decision Process (MDP) by incorporating constraints C(a,s) on the policy's behavior:
7
+ <span id="page-0-0"></span>
8
+ $$\max_{\pi} R(\pi) \qquad \text{s.t.} \quad C_i(\pi) \le B_i \quad \forall i = 0, \dots, N, \tag{1}$$
9
+ where $R(\pi) = \mathbb{E}_{\tau \sim \pi}[\sum_{t=0}^{\infty} \gamma_r^t r_t]$ represents the expected discounted future rewards, and $C_i(\pi) = \mathbb{E}_{\tau \sim \pi}[\sum_{t=0}^{\infty} \gamma_c^t c_{t,i}]$ the expected discounted future costs for the i-th cost function. For the sake of this work, we define C(s,a) as the cost associated with executing action a in state s and following the policy after (analogous to the Q-function). Constrained Reinforcement Learning (CRL) refers to the process of finding a policy that is optimal and is within the feasible set defined by Eq. 1.
10
+ It is worth noting that CRL is of wider interest than just safety. Constraints can be used to encode a wide range of different requirements, such as ensuring an autonomous quadcopter has enough battery to return to its charging station, or preventing policies from abusing known inaccuracies in a simulation of the real-world environment. Indeed, many reward shaping problems can be efficiently reformulated as constraint satisfaction tasks.
11
+ Methods that optimize directly for safety can struggle when the set of feasible policies is difficult to find or when the *closest* feasible policy is very suboptimal. Fig. 1 shows a robot that attempts
12
+ {1}------------------------------------------------
13
+ to throw a ball onto one of three platforms, each of them separated by chasms. The initial (unsafe) policy throws the ball onto the middle platform (R:0, C:0) and potentially into the holes to the left (R:1, C:1) and right (R:0, C:1). Since the initial policy has never reached the left platform, a greedy projection of the policy onto the feasible set would mean the policy only hits the central column, terminating with a reward of 0 and a cost of 0. Policy optimization methods that rely on greedy recovery [\(Achiam et al., 2017;](#page-9-0) [Xu et al., 2020\)](#page-11-0) or projection [\(Narasimhan, 2020;](#page-10-1) [Yang et al., 2022\)](#page-11-1) will naturally find themselves in a local optimum that is safe, but do not obtain reward (or, more generally, an arbitrarily bad reward), due to a lack of exploration.
14
+ Such situations are common in practice as they may also arise from inherent randomness in sampling from stochastic environments with stochastic policies. A sufficiently small probability of reaching high-reward, safe areas can effectively eliminate potentially feasible policies from consideration. Ensuring a sufficiently close policy πk+1 using KL-ball constraints KL(πk+1∥πk) < ε, introduces a new challenge, as the intersection of feasible policies and policies within the ε-ball might be empty.
15
+ This is a known problem: Constrained Variational Policy Optimization (CVPO) [\(Liu et al., 2022\)](#page-10-2) aims to directly solve a nonparametric surrogate problem. However, there is no guarantee that a safe policy within a KL-ball exists as the initial policy can be arbitrarily far away from the feasible set. As a result, [Liu et al.](#page-10-2) [\(2022\)](#page-10-2) decay their cost upper bound B from some large value Bmax → B over
16
+ <span id="page-1-0"></span>![](_page_1_Figure_4.jpeg)
17
+ Figure 1: A robot throws a ball to a different platform. The initial policy (gray) either hits the central platform (R:0) or one of the two chasms (C:1). The optimal policy throws the ball directly to the platform on the left (R:1, C:0).
18
+ the course of training. The limitation of this is obvious: Too fast decay may lead to unsatisfiable problems, while too slow decay requires a large number of iterations exceeding B. This means that the decay speed is a crucial hyperparameter that is also difficult to tune in practice, since it largely depends on the exploration performance and the specifics of the constraints and the environment.
19
+ One might challenge this notion with the proof provided by [Paternain et al.](#page-10-3) [\(2019\)](#page-10-3) who show that constrained RL has zero duality gap.[1](#page-1-1) Indeed, this is theoretically true: Assuming the occupation measure has a nonzero probability to reach every state, one could discover every possible policy. However, this relies on the assumption that the occupation measure has a nonzero probability of reaching every state, which is unrealistic in practical algorithms with finite evaluations. Lowprobability states effectively disappear from the sampled distribution and are never optimized. Since RL over occupation measures is linear (see [\(Paternain et al., 2019\)](#page-10-3), program P I′′), the distribution will never get optimized increased occupation in those states.
20
+ We propose an alternative approach: instead of greedily projecting onto the safe set, we aim to solely ensure that policy πk+1 is *safer* than the previous policy πk. We formulate this as a constrained Bayesian optimization problem, seeking a *monotonically increasing* likelihood of a trajectory being safe p(S = 1). Being a Bayesian approach this is typically more robust to approximation errors and local optima. This way we can design algorithms that achieve high safety, while being more robust against approximation errors and local optima.
21
+ # 2 RELATED WORK
22
+ Contemporary methods for achieving constraint satisfaction on CMDPs often rely on identifying and maintaining safety once a safe policy has been found. For instance, Constrained Policy Optimization (CPO) [\(Achiam et al., 2017\)](#page-9-0) bounds the increase in costs ensuring that given a safe policy π the updated policy π ′ will remain safe. During training, whenever a policy is considered unsafe, cost-minimizing recovery steps are performed. Constrained Update Projection (CUP) [\(Yang](#page-11-1) [et al., 2022\)](#page-11-1) utilizes a similar bound to project the updated policy back onto the feasible set defined by a generalization of the inequality used in [\(Achiam et al., 2017\)](#page-9-0). Constraint-Rectified Policy
23
+ <span id="page-1-1"></span><sup>1</sup> Indeed the proof by Paternain et al. [\(Paternain et al., 2019\)](#page-10-3) rediscovered a more general notion: every optimization problem max<sup>x</sup> L(x) can be turned into a linear program over measures: max<sup>ρ</sup> R L(x)ρ(x)dx, with the minimum being obtained by e.g. the Dirac impulse at the optimal x ⋆ (see e.g., [\(Lasserre, 2009\)](#page-10-4)).
24
+ {2}------------------------------------------------
25
+ Optimization (CRPO) [\(Xu et al., 2020\)](#page-11-0) updates the policy towards the optimum as long as the policy is safe, reverting to cost minimization to regain safety otherwise. Reward Constrained Policy Optimization (RCPO) [\(Tessler et al., 2018\)](#page-10-5) combines the reward and cost signal into a single value function V (st, λ) parameterized by the dual λ allowing for more principled updates than a traditional Lagrangian approach. This method is limited by how quickly λ can be updated under exploration noise. Projection-Based Constrained Policy Optimization (PCPO) [\(Narasimhan, 2020\)](#page-10-1) directly projects the policy onto the feasible set in every iteration, but requires Hessian calculations to perform accurate projections. Furthermore, projections may lead to large jumps in policies especially during early training as the estimate of the feasible set may be very noisy and the policy may be far from feasible. [Stooke et al.](#page-10-6) [\(2020\)](#page-10-6) adopt a PID perspective for tuning the Lagrangian λ which gives rise to a host of different traditional methods combined with a penalty function. Constraint recovery steps (either via hard projection as in CUP or descent-based as in CPO) easily lead to the scenario from Fig. [1.](#page-1-0) This is because the projection onto the space of safe distributions may not be exact (e.g., due to sampling errors) which prematurely reduces exploration for states that may be safe in practice. Our method solves this by not overcommitting to any individual cost estimate.
26
+ Outside of CRL, one notable earlier work is Maximum a Posteriori Optimization (MPO) [\(Abdol](#page-9-1)[maleki et al., 2018\)](#page-9-1). MPO first optimizes a surrogate objective using a nonparametric approximation q of the policy-improvement objective. The result of the surrogate is then cloned to the policy neural network by minimizing KL(π∥q). This explicit surrogate means that, from the point of view of neural network optimization, reinforcement learning becomes a supervised problem of matching to a known target distribution.
27
+ RL has long relied on incremental objectives, such as advantage functions, to reduce variance and improve convergence. It stands to reason that a similar treatment would benefit constrained RL methods. Indeed, most convergence proofs used in reinforcement learning rely on some notion of relative improvement compared to the previous policy (e.g. [\(Sutton & Barto, 2018;](#page-10-0) [Xiao, 2022\)](#page-10-7)). We would argue that such guaranteed improvement constraints are more natural in the iterative "explore then optimize" framework commonly used in RL.
28
+ # 3 SAFE MAXIMUM A POSTERIORI OPTIMIZATION (SAFEMPO)
29
+ We build upon Maximum a Posteriori Optimization (MPO) [\(Abdolmaleki et al., 2018\)](#page-9-1), extending their EM-style RL update to CMDPs. MPO sees policy updates as inference problems with the assumption that the probability of a trajectory being optimal p(O = 1) follows a Boltzman distribution p(O = 1|τ ) ∝ exp(P t rt/α). This leads to the following ELBO
30
+ <span id="page-2-0"></span>
31
+ $$\log P_{\pi}(O=1) = \log \int p_{\pi}(\tau) p(O=1|\tau) d\tau \ge \int q(\tau) \left[ \log p(O=1|\tau) + \log \frac{p_{\pi}(\tau)}{q(\tau)} \right] d\tau$$
32
+ $$= \mathbb{E}_{q} \left[ \sum_{t} r_{t} / \alpha \right] - KL(q(\tau) || p_{\pi}(\tau)),$$
33
+ (2)
34
+ which is then solved in two phases. This is a traditional Bayesian inference problem which can be solved using the Expectation-Maximization (EM) algorithm. The EM algorithm [\(Neal & Hinton,](#page-10-8) [1998\)](#page-10-8) solves Equation [2](#page-2-0) by iteratively maximizing q or π while keeping the other fixed. In the case of MPO, we first solve a nonparametric approximation derived directly from a batch of samples from the replay buffer to obtain q:
35
+ <span id="page-2-1"></span>
36
+ $$\max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] \tag{3a}$$
37
+ s.t.
38
+ $$KL(q||\pi) \le \varepsilon$$
39
+ (3b)
40
+ $$\int q(a,s)dadas = 1 \tag{3c}$$
41
+ where the KL-constraint is introduced to automatically construct a suitable temperature α. In a second step, one matches the policy neural network π to the nonparametrically optimal q
42
+ <span id="page-2-2"></span>
43
+ $$\min_{\pi} \{ KL(q \| \pi) : KL(\pi_{\text{old}} \| \pi) < \varepsilon \}. \tag{4}$$
44
+ This step is not dependent on any potentially nonstationary objective, but only has to clone the information of the optimal distribution found in eq. [\(3\)](#page-2-1).
45
+ {3}------------------------------------------------
46
+ MPO now proceeds to alternatingly solve Equation [\(3\)](#page-2-1) and Equation [\(4\)](#page-2-2): In every iteration, the current policy π is approximated empirically by drawing states from the replay buffer and predicting π(a|s). The samples are used to solve Equation [\(3\)](#page-2-1) for the optimal q [2](#page-3-0) , which is then cloned into the policy network using Equation [\(4\)](#page-2-2).
47
+ We believe this to be an appealing structure for CRL as the nonparametric model eq. [\(3\)](#page-2-1) can easily accomodate additional constraints, which can then be handled by efficient optimizers (in our case Sequential Least Squares Programming).
48
+ ## 3.1 SAFEMPO
49
+ We generalize this to CMDPs by introducing a second "policy is safe" event S and then optimizing the resulting joint distribution:
50
+ <span id="page-3-1"></span>
51
+ $$\log P_{\pi}(O=1, S=1) = \log \int p_{\pi}(\tau) p(O=1|\tau) p(S=1|\tau) d\tau$$
52
+ (5a)
53
+ $$\geq \int q(\tau) \left[ \log p(O=1|\tau) + \log p(S=1|\tau) + \log \frac{p_{\pi}(\tau)}{q(\tau)} \right] d\tau \tag{5b}$$
54
+ $$= \mathbb{E}_q \left[ \sum_t r_t / \alpha \right] + \log p(S = 1 | \tau) - KL(q(\tau) || p_{\pi}(\tau))$$
55
+ (5c)
56
+ Following [Abdolmaleki et al.](#page-9-1) [\(2018\)](#page-9-1), we define the probability of safety as an exponential law, but with the notable change that we truncate the law while the policy is safe
57
+ $$p(S=1|\tau) \propto \begin{cases} \exp\left(\frac{-(C(a,s)-B)}{\beta}\right) & C(a,s) \ge B\\ 1 & \text{otherwise} \end{cases}$$
58
+ (6)
59
+ Notice that this truncation automatically makes sure that all feasible policies have an equal likelihood to be safe, which is exactly the behavior we want in CRL. We also define the cost-log-likelihood function:
60
+ $$G(a,s) = \log p(S=1|\tau) = -\max\left(\frac{C(a,s) - B}{\beta}, 0\right). \tag{7}$$
61
+ This is the canonical choice for mapping the costs to a distribution, just as exp(R(τ )) is the canonical choice for returns [\(Abdolmaleki et al., 2018\)](#page-9-1). Specifically, the Gibbs distribution is the unique distribution that weights higher R higher while keeping maximal entropy [\(Jaynes, 1957\)](#page-10-9). Our truncation adds the third property that values above B are considered equal, which is the core difference between an optimization objective, and a constraint.
62
+ Notice that Eq. [5](#page-3-1) allows for a wide variety of optima: Any weighting for safety against optimality is possible. As we are interested in CRL (instead of multi-objective RL), we try to select an optimum such that the new policy q is *at least* as safe as the old policy π. Like [Abdolmaleki et al.](#page-9-1) [\(2018\)](#page-9-1), we replace the temperature β with a constraint, just that we want to use an improvement bound safety(π) ≤ safety(q).
63
+ Remark 1. *Note that our proofs would work, even if we choose a different distribution/likelihood function* G *since our proofs only rely on a safer policy having a higher likelihood. Therefore, any function that is monotonically decreasing for values* Ci(π) ≤ B<sup>i</sup> *will provide a feasible safety likelihood. We choose* G *as a truncated exponential, due to its connection with the reward function used in [\(Abdolmaleki et al., 2018;](#page-9-1) [Haarnoja et al., 2017\)](#page-10-10). However, this choice has disadvantages, which we will discuss in Section [4.](#page-7-0)*
64
+ In the following, we will show that with very limited assumptions, a simple improvement constraint safety(π) ≤ safety(q) is *insufficient* to guarantee improvement, and how one can create a consistently improving policy by explicitly forcing improvements in every iteration. First, to formalize the notion of safety(π) ≤ safety(q), we introduce the notion of a safety order preservation function:
65
+ <span id="page-3-2"></span><span id="page-3-0"></span>In practice, one solves the dual problem which is equivalent due to Equation [\(3\)](#page-2-1) being a convex problem with nonempty interior
66
+ {4}------------------------------------------------
67
+ Definition 1 (Safety Order Preserving Functions). *A function* K(p, q) *is called safety order preserving if, for all distributions* q, π *and all functions* G(a, s) *we have*
68
+ 1.
69
+ $$\mathbb{E}_{(a,s)\sim q}[G(a,s)] > \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) > 0$$
70
+ ,
71
+ 2.
72
+ $$\mathbb{E}_{(a,s)\sim q}[G(a,s)] < \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) < 0$$
73
+ 3.
74
+ $$\mathbb{E}_{(a,s)\sim q}[G(a,s)] = \mathbb{E}_{(a,s)\sim \pi}[G(a,s)] \implies K(q,\pi) = 0$$
75
+ Informally, a Safety Order Preserving function is one that defines a "direction" towards the feasible set. This definition will allow us later to make general monotonic improvement guarantees by defining "improvement" in terms of a general K(·, ·) function, which may allow individual states to increase cost, while decreasing the cost over all, facilitating greater freedom of exploration. We will now give examples for Safety Order Preserving Functions, starting with the naive choice of a linear improvement in expectation:
76
+ <span id="page-4-2"></span>Example 3.1 (Linear Safety Function (LSF)).
77
+ $$K(q,\pi) = \int q(a,s)G(a,s)dads - \int \pi(a,s)G(a,s)dads$$
78
+ *is safety order preserving.*
79
+ Example 3.2. *Priors conditional on safety*
80
+ $$K(q,\pi) = \begin{cases} f(q) & \int q(a,s)G(a,s)dads > 0 \\ 0 & \int q(a,s)G(a,s)dads = 0 \\ g(q) & \textit{otherwise} \end{cases}$$
81
+ *for* f *is a positive,* g *is a negative function, are safety order preserving.*
82
+ Flexibility in the safety order preserving function allows us to e.g. favor safe policies with lower variance, or to favor policies deeper in the interior of the feasible set by choosing a suitable f. It also allows a "hard" improvement boundary which simply counts the number of safe trajectories by setting f = 1 and g = −1. We will keep a more thorough analysis of good choices for K for future work. For now, the framework of safety order preserving functions allows us to make very general statements about how incremental improvement constraints can be used in CRL.
83
+ <span id="page-4-1"></span>Theorem 1. *Let* Q(a, s) *be a Q-function,* G(a, s) *the cost-likelihood function,* π *the current policy, and* K(p, q) *safety order preserving function. Then the optimal nonparametric policy* q *solving the improvement equation*
84
+ <span id="page-4-0"></span>
85
+ $$\max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] \tag{8a}$$
86
+ s.t.
87
+ $$KL(q||\pi) \le \varepsilon$$
88
+ (8b)
89
+ $$K(q,\pi) \ge 0 \tag{8c}$$
90
+ $$\int q(a,s)dads = 1 \tag{8d}$$
91
+ *either has the same safety as the original* π*, or ignores* K *and solves the unconstrained MPO problem (Eq. [3\)](#page-2-1).*
92
+ Proofs can be found in Appendix [B.](#page-11-2) This theorem immediately gives rise to two corollaries:
93
+ Corollary 1. *Whether a policy ends up being safe under the incremental model completely depends on whether* Q(a, s) *is higher in safe regions than in unsafe ones.*
94
+ Corollary 2. *Choosing the naive improvement constraint*
95
+ $$\mathbb{E}_{(a,s)\sim q}[G(a,s)] \ge \mathbb{E}_{(a,s)\sim \pi}[G(a,s)]$$
96
+ *for Equation* [\(8\)](#page-4-0) *is* not *a contraction over the safety likelihood* G*.*
97
+ {5}------------------------------------------------
98
+ ## 3.2 GUARANTEED IMPROVEMENT E-STEP
99
+ The core issue behind the method outlined in Theorem [1](#page-4-1) is that they do not force the model to pick a point in the interior of the feasible set of Eq. [8.](#page-4-0) This means we cannot guarantee a nonzero improvement in safety. To solve this issue, we borrow techniques from interior point methods, namely logarithmic barrier functions.
100
+ In interior point methods, the log-barrier function is used to maintain constraints g(x) ≤ 0 by converting them to a barrier of the form µ log(−g(x)). This ensures that once a point is feasible, it will always stay feasible due to the singularity at log(0). The downside for classical optimization is that points close to the barrier g(x) = 0 are hard to reach, which is why barrier methods slowly *reduce* the barrier weight µ → 0 during optimization to approximate the true feasible region. This way interior point methods slowly walk closer towards the barrier, but can never jump over g(x) = 0 due to the singularity of the logarithm.
101
+ Luckily, as we expressly *want* points in the interior, we can pick any arbitrary µ and a logarithmic barrier to ensure a nonzero improvement in our safety constraints. Specifically, with K being a safety-order preserving function, we can formulate our incremental approach as
102
+ $$\max_{q} \mathbb{E}_{(a,s)\sim q}[Q(a,s)] + \kappa \log\left(\frac{x}{\kappa}\right)$$
103
+ (9a)
104
+ s.t.
105
+ $$KL(q||\pi) \le \varepsilon$$
106
+ (9b)
107
+ <span id="page-5-1"></span>
108
+ $$K\left(q,\pi\right) \ge x \tag{9c}$$
109
+ $$\int q(a,s)dads = 1 \tag{9d}$$
110
+ Assuming E[Q(a, s)] is bounded, this method is guaranteed to improve the safety margin in every iteration by construction and provides a geometric convergence towards the feasible set (see theorem [4\)](#page-6-0). For any κ > 0, every q with a strictly positive improvement x > 0 will be favored over all other q since for x ≤ 0 we have log(x) = −∞. [3](#page-5-0) Importantly, neither the improvement nor the final optimum when this is iterated depends on the choice of κ, only the local per-iteration tradeoff between reward maximization and constraint improvement changes as κ changes!
111
+ For example, when choosing K as the LSF in Example [3.1,](#page-4-2) κ → ∞ produces a hard projection onto {q|KL(q∥π) ≤ ε, Ci(q) ≤ Bi}, and for κ → 0 one obtains the MPO update (see also Theorem [3\)](#page-6-1). We simply pick κ = 10 for all of our experiments. This value is not tuned for our experiments, which corresponds to the real-world usecase where the optimal (or even a good) κ may not be known.
112
+ One can easily solve Eq. [9](#page-5-1) by optimizing over the dual variables λ, ν in
113
+ <span id="page-5-2"></span>
114
+ $$\mathcal{L}(\lambda, \nu) = \int q^{\star}(a, s)Q(a, s)dads - \kappa \log \lambda$$
115
+ (10a)
116
+ $$+\lambda \left(\int q^{\star}(a,s)G(a,s)dads - \int \pi(a,s)G(a,s)dads\right)$$
117
+ (10b)
118
+ $$+ \nu \left( \varepsilon - \int q^{\star}(a, s) \log \left( \frac{q^{\star}(a, s)}{\pi(a, s)} \right) dads \right),$$
119
+ (10c)
120
+ where the optimal q ⋆ can be computed in closed form as
121
+ <span id="page-5-4"></span>
122
+ $$q^{\star}(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right). \tag{11}$$
123
+ Note that the optimization problem (Eq. [10\)](#page-5-2) is convex and only has 2 variables.[4](#page-5-3) To guarantee a solution to Eq. [10](#page-5-2) corresponds to solutions of Eq. [9,](#page-5-1) one needs a constraint qualification and strong duality. In general, solving the dual problem can be seen as favorable for constrained RL, as the dual problem's complexity scales with the number of constraints, rather than the number of state-action pairs in the batch. The latter might be very large as one may need a lot of samples to accurately track the expected values in Eq. [9.](#page-5-1) Convex optimization commonly uses Slater's condition:
124
+ <span id="page-5-0"></span><sup>3</sup>We make the usual assumption in convex optimization that undefined values receive a −∞ penalty [Boyd,](#page-9-2) [Stephen & Vandenberghe, Lieven](#page-9-2) [\(2004\)](#page-9-2).
125
+ <span id="page-5-3"></span><sup>4</sup>More generally, for a problem with N constraints, we have 1 + N variables.
126
+ {6}------------------------------------------------
127
+ **Proposition 1** (Slater's condition). If a convex program with constraints $f_0, \ldots, f_n \leq 0$ has a point in the relative interior $f_0, \ldots, f_n < 0$ , strong duality holds
128
+ Slater's condition acts as both a strong duality certificate, and a constraint qualification. Verifying Slater's condition can be somewhat tricky for very general constraint sets such as the ones used for Eq. 10. Fortunately, for Eq. 9 we can give an easier way to check condition for strong duality
129
+ <span id="page-6-2"></span>**Theorem 2.** Let $(A \times S, \Sigma, \mu)$ be a measure space. If $G(a, s) : A \times S \to \mathcal{R}$ is not almost everywhere constant, $\pi$ is fully supported and $\varepsilon > 0$ , and K is concave, then Eq. 9 has a solution and strong duality holds.
130
+ The proof can be found in Appendix B. Using this theorem we can conclude the following:
131
+ **Corollary 3.** Let $O: \pi \to q$ be an improvement operator induced by Equation (9). Then O is a contraction wrt the pseudo-metric $K(\cdot,\cdot)$ .
132
+ **Remark 2.** Theorem 2 still holds for multiple constraints $G_1, \ldots, G_N$ if one replaces the condition "G(a, s) is not almost everywhere constant" with "there exists a subset $A' \times S' \subseteq A \times S$ with $\mu(A' \times S') > 0$ where none of the $G_i$ are constant."
133
+ This means that, in practice, one only has to ensure that G(a,s) is not constant, and that $\pi$ has nonzero probability for all outputs (which is a standard assumption in both inference and RL), and that whatever K is chosen has to be concave and safety order preserving. For simplicity, we will choose K as the LSF (Example 3.1), since, without further assumptions, this can be seen as the canonical choice for K. Choosing a different K might further improve performance by e.g. favoring high-entropy solutions within the safer set. Choosing K choice has an interesting consequence: even if G(a,s) is constant, we can define a reasonable notion of the optimal solution in Eq. 9.
134
+ <span id="page-6-1"></span>**Theorem 3.** Assume a sufficiently large upper bound M > 0 on the dual variable associated with the improvement constraint. If K is the LSF (see Example 3.1), then solving Eq. 9 with a constrained dual produces a solution to Eq. 9 if G is not constant, and a solution of Eq. 3 if G is constant.
135
+ The result in Theorem 3 provides a very natural way of implementing the nonparametric surrogate: We optimize the dual variables under some sufficiently large constraints (we choose $\lambda \in [-10^6, 10^6]$ ). If the batch we are optimizing over is constant (e.g., all (a,s) are already safe, random sampling), we automatically make an MPO step, while in all other cases we perform a safe improvement step. We present the complete method in Algorithm 1.
136
+ Combining all previous theorems, we obtain a very general convergence guarantee
137
+ <span id="page-6-0"></span>**Theorem 4.** Assuming $\mathbb{E}_{(a,s)\sim q}[Q(a,s)]$ is bounded in [-M,M], and the feasible set is not empty, eq. (9) converges towards the feasible set, and K is sequentially continuous on the nonnegative component (cases 1., 3. for definition 1) and not constant. If we additionally choose K as the LSF (example 3.1), then we obtain geometric convergence speed.
138
+ #### 3.3 M-STEP
139
+ After the optimal nonparametric $q^*$ is computed, the resulting distribution has to be "cloned" into the policy neural network. Just like MPO (Abdolmaleki et al., 2018), we factor $\pi(a,s)=\pi(a|s)\mu(s)$ and $q(a,s)=q(a|s)\mu(s)$ where $\mu(s)$ is the stationary distribution estimated using the replay buffer. As in MPO, we use a split KL-difference constraint as the prior in our M-step. Therefore our M-step is
140
+ <span id="page-6-3"></span>
141
+ $$\mathcal{L}(q, \alpha_1, \alpha_2) = \mathbb{E}_{\mu(s)} \left[ \mathbb{E}_{q^*} \left[ \log \pi(a|s) \right] \right] + \alpha_1(\varepsilon_\mu - C\mu) + \alpha_2(\varepsilon_\Sigma - C_\Sigma), \tag{12}$$
142
+ where $C_{\Sigma} = \mathbb{E}_{\mu(s)}[\frac{1}{2}(\Sigma^{-1}\Sigma_{old}) - n + \log\left(\frac{|\Sigma|}{|\Sigma_{old}|}\right)]$ and $C_{\mu} = \mathbb{E}_{\mu(s)}[\frac{1}{2}(\mu - \mu_{old})^T\Sigma^{-1}(\mu - \mu_{old})]$ is the split KL-constraint. We update both Q(a,s) and C(a,s) using RETRACE (Munos et al., 2016) which has empirically good performance and is guaranteed to converge under small assumptions.
143
+ Generally speaking, our E-step is written to allow for different factorizations, such as the one used in V-MPO (Song et al., 2019), which has higher per-update efficiency but comes at the cost of not being able to use off-policy data. For the sake of this work, we utilize the traditional MPO estimator, but V-MPO style updates should be a plug-in replacement.
144
+ {7}------------------------------------------------
145
+ #### <span id="page-7-1"></span>Algorithm 1 SafeMPO update step
146
+ ```
147
+ Require: Policy π, safety function K, replay buffer D, dual multipliers α1, α2, maximal dual Mλ
148
+ Ensure: π > 0
149
+ sample Batch B ∼ D
150
+ Update Q(a, s) using RETRACE on B
151
+ Update C(a, s) using RETRACE on B
152
+ solve Equation (10) for λ ∈ [0, Mλ), ν ∈ [0, ∞) on B
153
+ Compute q
154
+
155
+ (a|s) using Equation (11)
156
+ for 0 ≤ i < N do
157
+ π ← using Equation (12) descend on π
158
+ α1 ← using Equation (12) ascend on α1
159
+ α2 ← using Equation (12) ascend on α2
160
+ end for
161
+ ```
162
+ ## 3.4 IMPLEMENTATION
163
+ Algorithm [1](#page-7-1) shows the prototypical implementation of a single-batch update to our policy. We first fit both the Q and C function to the sampled trajectories using the RETRACE [\(Munos et al., 2016\)](#page-10-11) estimator. We can then solve the dual problem Equation [\(10\)](#page-5-2) and compute the nonparametric reference q ⋆ (a|s), which we use as the target for our neural network. For the experiments in Section [4,](#page-7-0) we sample 20 batches of size 1024 and set N = 8.
164
+ ## <span id="page-7-0"></span>4 EXPERIMENTS
165
+ We compare against state-of-the-art algorithms implemented in Omnisafe [Ji et al.](#page-10-13) [\(2024\)](#page-10-13). For all experiments, we choose κ = 10 and a budget of B = 25. Our benchmarks are performed on three tasks from the safety-gymnasium [\(Ji et al., 2023\)](#page-10-14) benchmark set: SafetyCarGoal aims to drive a car in a randomly generated 3d environment towards a "goal" position while avoiding stationary hazards. Once a goal has been reached, a new goal is sampled. The reward is defined as the distance reduction towards the goal. The cost is +1 when an obstacle is hit, 0 otherwise. SafetyPointGoal is the same task as the previous, but instead of navigating a differential drive car, the point agent directly decomposes rotation and movement direction, making control much easier. The agent is also physically smaller, further improving the navigation performance. SafetyCarButton is the most challenging environment: Instead of driving the car towards the goal and having to avoid stationary obstacles, the car has to avoid both stationary and *moving* obstacles, while navigating towards the correct goal button. Rewards and costs are defined the same as in the Goal environments.
166
+ Since CRL has two, often diametrically opposed objectives (constraint satisfaction and reward maximization), it is often difficult to compare whether one algorithm outperforms another. Further, one considerable issue when comparing different algorithms are the hypeparameters: This is of course a limitation for all ML algorithms, but in CRL we have the additional problem that the optimal solution to the CRL problem provably relies only on the Lagrangian parameter [\(Paternain et al., 2019\)](#page-10-3). Therefore even a naive algorithm with fixed dual parameter could reach state-of-the-art when that parameter is known. This complicates benchmarking since over known benchmark environments practitioners know appropriate values for the dual, in contrast to real world problems where such ranges are unknown. This holds even for some dynamic methods, such as CPPOPID[5](#page-7-2) [\(Stooke et al.,](#page-10-6) [2020\)](#page-10-6) which implicitly has environment information inside their PID-values.
167
+ To give existing methods the best possible opportunities, we utilize the highly optimized hyperparameters provided by Omnisafe [\(Ji et al., 2024\)](#page-10-13). We would, however, argue that the fact that we only have a single hyperparameter which does not change the asymptotic behavior is significant advantage of our method that is hard to show in benchmarks.
168
+ When analyzing the results in Table [1,](#page-8-0) we observe that our method is competitive reaching stateof-the-art results in both the "SafetyCarGoal" and "SafetyCarButton" environments. Specifically,
169
+ <span id="page-7-2"></span><sup>5</sup>Note: we follow the nomenclature adopted by Omnisafe [Ji et al.](#page-10-13) [\(2024\)](#page-10-13) and call the combination of PPO [\(Schulman et al., 2017\)](#page-10-15) and PID presented in [\(Stooke et al., 2020\)](#page-10-6) "CPPOPID".
170
+ {8}------------------------------------------------
171
+ <span id="page-8-0"></span>Table 1: Safety Car Goal. All methods are evaluated after 10 Mio steps. Following (Ji et al., 2024), we set the cost budget B=25 for all algorithms unless otherwise mentioned.
172
+ | Method | SafetyCarGoal | | SafetyCarButton | | SafetyPointGoal | |
173
+ |----------------------------------|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|-------------------------------|------------------------------------------------------|
174
+ | Method | Reward | Cost | Reward | Cost | Reward | Cost |
175
+ | RCPO Tessler et al. (2018) | $18.71 \pm 2.72$ | $23.10\pm12.57$ | $-2.04 \pm 2.98$ | $43.48 \pm 31.52$ | $15.27 \pm 4.05$ | $30.56 \pm 19.15$ |
176
+ | | $21.56 \pm 2.87$ | $38.42 \pm 8.36$ | $0.36 \pm 0.85$ | $40.52 \pm 21.25$ | $18.57 \pm 1.71$ | $22.98 \pm 6.56$ |
177
+ | | $15.23 \pm 10.76$ | $31.66 \pm 93.51$ | $0.21 \pm 2.27$ | $31.78 \pm 47.03$ | $17.97 \pm 9.01$ | $33.72 \pm 42.24$ |
178
+ | | $25.52 \pm 2.65$ | $43.32 \pm 14.35$ | $0.82 \pm 1.60$ | $37.86 \pm 27.41$ | $20.46 \pm 1.38$ | $28.84 \pm 7.76$ |
179
+ | | $10.60 \pm 2.51$ | $30.66 \pm 7.53$ | $-1.36 \pm 0.68$ | $14.62 \pm 9.40$ | $8.43 \pm 3.43$ | $25.74 \pm 7.83$ |
180
+ | CUP Yang et al. (2022) | $6.14 \pm 6.97$ | $36.12 \pm 89.56$ | $1.49 \pm 2.84$ | $103.24 \pm 123.12$ | $14.42 \pm 6.74$ | $19.02 \pm 20.08$ |
181
+ | | $21.43 \pm 5.10$ | $32.23 \pm 7.43$ | $0.67 \pm 0.61$ | $30.87 \pm 4.47$ | $13.09 \pm 2.79$ | $32.92 \pm 3.43$ |
182
+ | SafeMPO $@B = 20 \text{ (ours)}$ | $20.24 \pm 2.24$ | $25.68 \pm 2.97$ | $0.94 \pm 0.12$ | $33.37 \pm 2.46$ | $18.36 \pm 3.41$ | $23.00 \pm 1.56$ |
183
+ | | 400 | | | | | |
184
+ | 125 | .00 | 4.4.4 | adapatan Herri dikka | 1.0 | SafeMPO — TRPOLag — | TRPO — RCPO PCPO — CPO |
185
+ | 100 | 300 | A ALL AND AND AND AND AND AND AND AND AND AND | graffen formalder for franchisch | 150 | Titl OLag | 1010 010 |
186
+ | A | 300 | NAME OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERSON OF THE PERS | | MM | | |
187
+ | ts 75- | 200 | √ I | | 100 | | |
188
+ | S 50- | Unally 200 | AM. | | | | |
189
+ | | 100 | 1 // | | 50 | ayahahayayayayayaya | Mary Mary Mary Mary Mary Mary Mary Mary |
190
+ | 25- | THE PARTY IN | White discussion | وملطنا ويتأجل بالأشابات | | "milythining Wilder John Comb | salblardishlananaharrat |
191
+ | 0 | 0 | | | 0. | Mark Mark I | Mary Land Andrews |
192
+ | | | | | | | |
193
+ | 30- | | a a disa madi di | يتقمل وللقل ورفوان فرواديان | dun | 11111 | Consult Milderer College |
194
+ | 301 | 20 | The state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the state of the s | the formal and the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of the second of t | 20 | | My manage of the Market |
195
+ | £ 20 · | Mayorway | Mail | and he are set offer | | Marry Mary | WALL WALL TO THE THE THE THE THE THE THE THE THE THE |
196
+ | 20-<br>te 10 | Academic his | 1 / | | l A | | munico |
197
+ | ₫ 10. | 10 | 1 A | | 10 | Maria Char | |
198
+ | | | | | | | 1 100 |
199
+ | 0 | 0 | | | | | |
200
+ | | | Part of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last of the last o | | 0. | 7" | |
201
+ | 0.0 0.2 0.4 0.6 (<br>step | 0.8 1.0 | 0.0 0.2 0 | | 1.0 0.0 | | 0.6 0.8 1.0 |
202
+ | step | | | step | *** | step | 101 |
203
+ Figure 2: Results throughout training. We adopt the same evaluation procedures as described in (Ji et al., 2024). The shaded area corresponds to $1\sigma$ deviations across independent runs. To maintain readability, we only plot a subset of the algorithms we compare against in Table 1.
204
+ (b) SafetyCarButton
205
+ (c) SafetyPointGoal
206
+ our agent manages to reach a higher reward than CUP (Yang et al., 2022) and CPPOPID (Paternain et al., 2019), while producing substantially lower cost. The only method that produces a policy below the cost threshhold of 25 is RCPO (Tessler et al., 2018), which also substantially drops in observed reward compared to SafeMPO. The major downside of RCPO compared to our method becomes apparent in the more challenging SafetyCarButton environment. SafeMPO produces a slightly lower constraint violation than FOCOPS (Zhang et al., 2020) while providing almost $3\times$ more reward. The only method to stay fully within the constraint set (CPPOPID) does so at the loss of performance, producing a highly negative reward. RCPO - the best model from SafetyCarGoal produces the worst results on SafetyCarButton: RCPO has the lowest reward and the second highest cost across all methods.
207
+ The pattern of inconsistent performance continues to SafetyPoinGoal - the easiest of the environments - here we find the best performing model to be CPO (Achiam et al., 2017) or PCPO (Narasimhan, 2020), depending on how one values a $\pm 3$ cost overrun/undershoot against a reward gain of $\approx 6$ points. This is the worst performing benchmark for SafeMPO, but we remain close to SOTA. Generally, our method has the advantage of behaving consistently, providing low run-to-run variance across independent runs.
208
+ Another interesting observation is the robustness provided by our method regarding costs: Our method consistently has the lowest run-to-run variance among all other approaches, which we hypothesize is due to the lack of "edge cases" introduced by other methods.
209
+ #### 5 DISCUSSION
210
+ (a) SafetyCarGoal
211
+ One interesting point to mention is that all our methods have a cost of roughly 30 compared to the cost limit of 25. This suggests that this is a limitation of how our likelihood function for safety is defined: since we only penalize policies *outside* the feasible set, the solution to Eq. 9 might end
212
+ {9}------------------------------------------------
213
+ up simply "eating" the cost for states that are almost safe already, leading to an effective shift in boundary due to sampling variance inside the approximations of the expectation. To validate our hypothesis, we re-run the SafetyCarGoal experiments with an artifically lowered cost threshhold of B = 20. The results can be found in table [1.](#page-8-0) As one can see, both SafetyPointGoal and SafetyCarGoal return feasible policies at SOTA reward levels (for feasible policies). Nevertheless, our method fails to find a feasible policy for SafetyCarButton, which is not unexpected considering that no method aside from CPPOPID can produce a feasible policy[6](#page-9-3) . Of course, tuning the boundary B is not a feasible solution but a smaller barrier leading to superior results suggests that our method is able to theoretically hit better threshholds, but is unable to reach the points due to the log-likelihood G we chose. Our method can technically handle arbitrary notions of safety, including e.g. Conditional Value at Risk (CVaR). Since this problem goes deeper than SafeMPO and touches the question of "What definition of safety is appropriate for Reinforcement Learning", we leave the analysis of alternative safety likelihood functions for future work.
214
+ One important aspect to note is the general behavior of Reinforcement Learning in Constrained scenarios and the "RL as inference" notion employed in this paper. It is generally impossible for RL agents - regardless of Value, policy, or model based - to be 100% safe in unknown environments. This is due to the inherent uncertainty when estimating the constraints: To choose an extreme example, one cannot know the safety of states that are never sampled. This means any well designed CRL method should have the property that action probabilities are nonzero (but perhaps very low) during finite exploration, and only converge to zero in the limit of infinite data. Otherwise, one cannot guarantee that an action is "banned" just due to poor initialization of the cost function or missing data. Indeed, this is the behavior we observe in our proof of Theorem [4:](#page-6-0) High cost states decrease in likelihood but only hit zero in the limit of infinite steps where one has certainty on the cost function.
215
+ # 6 CONCLUSIONS AND FUTURE WORK
216
+ We propose a novel framework for Constrained Reinforcement Learning that relies on relative improvements in the likelihood of a policy being safe, rather than primal-dual or projection based updates. We first analyze these types of relative improvement algorithms theoretically, proving that naive improvement bounds may not lead to a contraction towards a feasible set. However, we prove that with small changes inspired by interior point barriers, we can make broad statements of the convergence properties under relative improvement constraints. Finally, we demonstrate our method's high performance by comparing against highly tuned state-of-the-art algorithms.
217
+ Our method leaves wide room for future work both on novel Safety Order Preserving Functions, and algorithmic improvements. For instance, we currently only consider the off-policy MPO algorithm [\(Abdolmaleki et al., 2018\)](#page-9-1), but our framework is also compatible with other updates, such as [\(Song et al., 2019\)](#page-10-12). As already mentioned in Section [4,](#page-7-0) we also noticed opportunities to improve our method further, by choosing a better likelihood function. Another interesting possibility is framing ordinary MDP RL problems as CMDPs where the objective is given as an improvement constraint. This way one could design RL methods that by construction guarantee improvement.
218
+ # REFERENCES
219
+ <span id="page-9-1"></span>Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Man- ´ fred Otto Heess, and Martin A. Riedmiller. Maximum a posteriori policy optimisation. *ArXiv*, abs/1806.06920, 2018. URL [ [CorpusID:49310753](
220
+ <span id="page-9-0"></span>Joshua Achiam, David Held, Aviv Tamar, and P. Abbeel. Constrained policy optimization. *ArXiv*, abs/1705.10528, 2017. URL [ [CorpusID:10647707](
221
+ <span id="page-9-2"></span>Boyd, Stephen and Vandenberghe, Lieven. *Convex Optimization*. Cambridge University Press, March 2004. ISBN 9780511804441. doi: 10.1017/cbo9780511804441. URL [ [doi.org/10.1017/CBO9780511804441](
222
+ <span id="page-9-3"></span><sup>6</sup> In fact, inspecting some of the trajectories created by CPPOPID, it turns out that CPPOPID learns to walk outside the area in which the simulation takes place in, yielding low reward but high safety.
223
+ {10}------------------------------------------------
224
+ - <span id="page-10-10"></span>Tuomas Haarnoja, Haoran Tang, P. Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. In *International Conference on Machine Learning*, 2017. URL [https:]( [//api.semanticscholar.org/CorpusID:11227891](
225
+ - <span id="page-10-9"></span>Edwin T. Jaynes. Information theory and statistical mechanics. *Physical Review*, 106:620–630, 1957. URL <
226
+ - <span id="page-10-14"></span>Jiaming Ji, Borong Zhang, Xuehai Pan, Jiayi Zhou, Juntao Dai, and Yaodong Yang. Safety-Gymnasium, May 2023. URL [ [safety-gymnasium](
227
+ - <span id="page-10-13"></span>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 <
228
+ - <span id="page-10-4"></span>Jean Bernard Lasserre. *Moments, Positive Polynomials and Their Applications*. IMPERIAL COL-LEGE PRESS, 2009. doi: 10.1142/p665. URL [ [doi/abs/10.1142/p665](
229
+ - <span id="page-10-2"></span>Zuxin Liu, Zhepeng Cen, Vladislav Isenbaev, Wei Liu, Zhiwei Steven Wu, Bo Li, and Ding Zhao. Constrained variational policy optimization for safe reinforcement learning. *ArXiv*, abs/2201.11927, 2022. URL [ [246411597](
230
+ - <span id="page-10-11"></span>Remi Munos, Tom Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient off- ´ policy reinforcement learning. In *Neural Information Processing Systems*, 2016. URL [https:]( [//api.semanticscholar.org/CorpusID:492962](
231
+ - <span id="page-10-1"></span>Karthik Narasimhan. Projection-based constrained policy optimization. *ArXiv*, abs/2010.03152, 2020. URL <
232
+ - <span id="page-10-8"></span>Radford M. Neal and Geoffrey E. Hinton. *A View of the Em Algorithm that Justifies Incremental, Sparse, and other Variants*, pp. 355–368. Springer Netherlands, Dordrecht, 1998. ISBN 978- 94-011-5014-9. doi: 10.1007/978-94-011-5014-9 12. URL [ [978-94-011-5014-9\\_12](
233
+ - <span id="page-10-3"></span>Santiago Paternain, Luiz F. O. Chamon, Miguel Calvo-Fullana, and Alejandro Ribeiro. Constrained reinforcement learning has zero duality gap. In *Neural Information Processing Systems*, 2019. URL <
234
+ - <span id="page-10-15"></span>John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. *ArXiv*, abs/1707.06347, 2017. URL [ [semanticscholar.org/CorpusID:28695052](
235
+ - <span id="page-10-12"></span>H. Francis Song, Abbas Abdolmaleki, Jost Tobias Springenberg, Aidan Clark, Hubert Soyer, Jack W. Rae, Seb Noury, Arun Ahuja, Siqi Liu, Dhruva Tirumala, Nicolas Manfred Otto Heess, Dan Belov, Martin A. Riedmiller, and Matthew M. Botvinick. V-mpo: On-policy maximum a posteriori policy optimization for discrete and continuous control. *ArXiv*, abs/1909.12238, 2019. URL <
236
+ - <span id="page-10-6"></span>Adam Stooke, Joshua Achiam, and P. Abbeel. Responsive safety in reinforcement learning by pid lagrangian methods. In *International Conference on Machine Learning*, 2020. URL [https:]( [//api.semanticscholar.org/CorpusID:220404280](
237
+ - <span id="page-10-0"></span>Richard S. Sutton and Andrew G. Barto. *Reinforcement Learning: An Introduction*. A Bradford Book, Cambridge, MA, USA, 2018. ISBN 0262039249.
238
+ - <span id="page-10-5"></span>Chen Tessler, Daniel Jaymin Mankowitz, and Shie Mannor. Reward constrained policy optimization. *ArXiv*, abs/1805.11074, 2018. URL [ [CorpusID:44095973](
239
+ - <span id="page-10-7"></span>Lin Xiao. On the convergence rates of policy gradient methods. *ArXiv*, abs/2201.07443, 2022. URL <
240
+ {11}------------------------------------------------
241
+ <span id="page-11-0"></span>Tengyu Xu, Yingbin Liang, and Guanghui Lan. Crpo: A new approach for safe reinforcement learning with convergence guarantee. In *International Conference on Machine Learning*, 2020. URL <
242
+ <span id="page-11-1"></span>Long Yang, Jiaming Ji, Juntao Dai, Linrui Zhang, Binbin Zhou, Pengfei Li, Yaodong Yang, and Gang Pan. Constrained update projection approach to safe policy optimization. *ArXiv*, abs/2209.07089, 2022. URL [ [252280735](
243
+ <span id="page-11-3"></span>Yiming Zhang, Quan Ho Vuong, and Keith W. Ross. First order optimization in policy space for constrained deep reinforcement learning. *ArXiv*, abs/2002.06506, 2020. URL [ [semanticscholar.org/CorpusID:211132768](
244
+ # A LLM USAGE
245
+ We used LLMs to improve the writing and presentation of the work, as well as to aid in translation. We manually ensured that any alteration in wording did not change the meaning of the work.
246
+ # <span id="page-11-2"></span>B PROOFS
247
+ *Proof for Theorem [1.](#page-4-1)* Constructing the Lagrangian yields
248
+ $$\mathcal{L}(q,\eta,\lambda,\nu) = \mathbb{E}_{(a,s)\sim q}[Q(a,s)] + \eta(\varepsilon - KL(q||\pi)) + \lambda K(q,\pi) + \nu \left(1 - \int q(a,s)dads\right)$$
249
+ (13)
250
+ for η, λ ≥ 0. Solving for the optimal q (after absorbing the normalisation constraint) yields
251
+ $$q^{\star}(a,s) = \frac{1}{Z}\pi(a,s) \exp\left(\frac{Q(a,s) + \lambda \frac{\delta K(q,\pi)}{\delta q(a,s)}}{\eta}\right)$$
252
+ (14)
253
+ with Z = R <sup>π</sup>(a, s) exp Q(a,s)+λ δK(q,π) δq(a,s) η dads and δK(q,π) δq(a,s) the functional derivative wrt q.
254
+ Notice that for the Karush-Kuhn-Tucker conditions to hold, we also need complementary slackness of η, λ. Specifically we know that either K(q, π) = 0 or λ = 0.
255
+ In the former case, we have that the solution q is no safer than the solution π, be definition. In the latter case, the solution reduces to
256
+ $$q^{\star}(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s)}{\eta}\right)$$
257
+ (15)
258
+ which is the optimal solution to the unconstrained model.
259
+ *Proof for theorem [2.](#page-6-2)* If G(a, s) is not almost everywhere constant, then this means that there exists a pair of disjoint sets X<sup>1</sup> ×X<sup>2</sup> with 0 < µ(X1) = µ(X2) < ∞ such that for all ((a<sup>i</sup> , si),(a<sup>j</sup> , s<sup>j</sup> )) ∈ X<sup>1</sup> × X<sup>2</sup> we have G(a<sup>i</sup> , si) > G(a<sup>j</sup> , s<sup>j</sup> ).
260
+ Choose q such that q(a<sup>i</sup> , si) + ε<sup>1</sup> = π(a<sup>i</sup> , si) and q(a<sup>j</sup> , s<sup>j</sup> ) − ε<sup>1</sup> = π(a<sup>j</sup> , s<sup>j</sup> ). For any
261
+ $$0 < \varepsilon_1 < \min\left(\pi(a_i, s_i), \frac{1}{2}\sqrt{\frac{\varepsilon}{\mu(X_1 \cup X_2)}}\right)$$
262
+ Keep all other q(ak, sk) = π(ak, sk)∀k ̸= i, k ̸= j.
263
+ The KL-constraint is upheld due to Pinsker's inequality, i.e for any q, π we have
264
+ $$2D_{TV}(q,\pi)^2 \le KL(q||\pi) \le \varepsilon.$$
265
+ Our distributions only differ on the set X<sup>1</sup> ∪ X2, meaning the total variational distance is less than ε when we choose ε<sup>1</sup> < 1 2 q <sup>ε</sup> µ(X1∪X2) .
266
+ {12}------------------------------------------------
267
+ Trivially, the equality constraint $\int q(a,s)dads = 1$ is valid ( $\varepsilon_1$ deviations cancel over pairs). The improvement constraint is nonzero:
268
+ $$\begin{split} &\int_{\mathcal{A}\times\mathcal{S}}\pi(a,s)G(a,s)dads\\ &=\int_{X_1}\pi(a,s)G(a,s)dads\\ &+\int_{X_2}\pi(a,s)G(a,s)dads+\int_{(\mathcal{A}\times\mathcal{S})\backslash(X_1\cup X_2)}\pi(a,s)G(a,s)dads\\ &=\int_{X_1}\pi(a,s)G(a,s)dads\\ &+\int_{X_2}\pi(a,s)G(a,s)dads+\int_{(\mathcal{A}\times\mathcal{S})\backslash(X_1\cup X_2)}q(a,s)G(a,s)dads\\ &<\int_{X_1}(\pi(a,s)+\varepsilon_1)G(a,s)dads\\ &+\int_{X_2}(\pi(a,s)-\varepsilon_1)G(a,s)dads\\ &+\int_{X_2}q(a,s)G(a,s)dads\\ &=\int_{X_1}q(a,s)G(a,s)dads\\ &=\int_{X_1}q(a,s)G(a,s)dads\\ &=\int_{\mathcal{A}\times\mathcal{S}}q(a,s)G(a,s)dads \end{split}$$
269
+ where we use the fact that values G(a,s) in $X_1$ are strictly better than values G(a,s) in $X_2$ , and the fact that the sets $X_1$ and $X_2$ are not of measure zero to ensure strict inequality. Since K preserves the strict inequality, $\int_{\mathcal{A}\times\mathcal{S}}\pi(a,s)G(a,s)dads<\int_{\mathcal{A}\times\mathcal{S}}q(a,s)G(a,s)dads\Longrightarrow K(q,\pi)>0.$
270
+ Therefore there exists a q with nonzero x, which means $\log(x)$ is finite, which means a feasible interior point exists. The problem is also convex as both the KL constraint and the K constraint are convex (assumption). This also directly implies Slater's condition, which implies strong duality. $\square$
271
+ *Proof for Theorem 3.* Consider the Lagrangian
272
+ $$\mathcal{L}(q, x, \lambda, \nu, \mu) = \int q(a, s)Q(a, s)dads + \kappa \log\left(\frac{x}{\kappa}\right)$$
273
+ $$+ \lambda \left(\int q(a, s)G(a, s)dads - \int \pi(a, s)G(a, s)dads - x\right)$$
274
+ $$+ \nu \left(\varepsilon - \int q(a, s)\log(\frac{q(a, s)}{\pi(a, s)})dads\right) + \mu \left(\int q(a, s)dads - 1\right)$$
275
+ The optimal x is given by
276
+ $$x = \frac{\kappa}{\lambda} \tag{16}$$
277
+ while the optimal q (after absorbing the normalization constant) is given by
278
+ $$q(a,s) = \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right)$$
279
+ (17)
280
+ If G is not constant eq. (9) has a solution, which can be found by optimizing over the dual variables $\lambda, \nu$ . This follows directly from theorem 2.
281
+ {13}------------------------------------------------
282
+ If G is constant, but $\lambda$ is bounded, the q produced by optimizing eq. (9) can have any finite $\lambda$ . However, since G is constant $\lambda G(a,s)$ can be absorbed into the normalizer
283
+ $$\begin{split} q(a,s) &= \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s) + \lambda G(a,s)}{\nu}\right) \\ &= \frac{1}{Z}\pi(a,s)\exp\left(\frac{Q(a,s)}{\nu}\right)\exp\left(\frac{\lambda G(a,s)}{\nu}\right) \\ &= \frac{1}{Z_2}\pi(a,s)\exp\left(\frac{Q(a,s)}{\nu}\right) \end{split}$$
284
+ which is the solution to MPO
285
+ ### C CONVERGENCE
286
+ *Proof of theorem 4.* To simplify the notation, we will define $P(q) = \mathbb{E}_{(a,s)} [Q(a,s)]$ .
287
+ We will show that the sequence $\tilde{q} = q_0, q_1, \ldots$ defined by recursively applying eq. (9) leads to a contraction towards the feasible set. First, consider the slightly simplified problem
288
+ <span id="page-13-0"></span>
289
+ $$q_{i+1}^{\star} = \operatorname{argmax} P(q_{i+1}) + \kappa \log \left( \frac{K(q_{i+1}, q_i^{\star})}{\kappa} \right)$$
290
+ (18)
291
+ Note that this corresponds to eq. (9) without the KL-divergence constraint.
292
+ Let's pick some reference point q' within the feasible set. This acts as a lower bound for the maximization in eq. (18). By definition, we have that for
293
+ $$P(q_{i+1}^{\star}) + \kappa \log \left( \frac{K(q_{i+1}^{\star}, q_i^{\star})}{\kappa} \right) \ge P(q_{i+1}^{\prime}) + \kappa \log \left( \frac{K(q_{i+1}^{\prime}, q_i^{\star})}{\kappa} \right)$$
294
+ rearranging yields
295
+ $$\kappa \log \left(\frac{K(q_{i+1}^\star, q_i^\star)}{\kappa}\right) \geq \left[P(q_{i+1}^\prime) - P(q_{i+1}^\star)\right] + \kappa \log \left(\frac{K(q_{i+1}^\prime, q_i^\star)}{\kappa}\right)$$
296
+ Due to boundedness of $P(q_{i+1}^{\star}) < M$ and finiteness of $P(q_{i+1}^{\prime})$ we get
297
+ $$P(q'_{i+1}) - P(q'_{i+1}) \ge P(q'_{i+1}) - M =: -\Delta_{i+1}$$
298
+ This give us the rate
299
+ $$\log\left(\frac{K(q_{i+1}^{\star},q_{i}^{\star})}{\kappa}\right) \geq \frac{-\Delta_{i+1}}{\kappa} + \log\left(\frac{K(q_{i+1}^{\prime},q_{i}^{\star})}{\kappa}\right) = \log\left(\frac{K(q_{i+1}^{\prime},q_{i}^{\star})}{\kappa}\exp\left(\frac{-\Delta_{i+1}}{\kappa}\right)\right)$$
300
+ which yields the inequality
301
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge K(q_{i+1}^{\prime}, q_i^{\star}) \exp\left(\frac{-\Delta_{i+1}}{\kappa}\right)$$
302
+ One possible choice for q' is any feasible point within the original CMDP $\mathbb{E}_{(a,s)\sim q'}[C(a,s)] \leq B$ . Since this is feasible in every iteration, we get a fixed constant $c = \exp(-(M-P(q'))/\kappa) \in (0,1]$ such that
303
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star})$$
304
+ which is valid for all iterations. Therefore, we have a real decrease in $K(q_{i+1}^*, q_i^*)$ in every iteration. By definition of Equation (18), we have a lower bound on K, which means $\tilde{q}$ converges.
305
+ We now have to show that it converges to a safe q in the limit. For this consider
306
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star}) > 0$$
307
+ Assume that we converge to an unsafe q, we then have a fixed point where $q=q_i^\star=q_{i+1}^\star$ via sequential continuity we have
308
+ $$\underbrace{K(q,q) = 0}_{\text{def. K}} \land \underbrace{cK(q',q) > 0}_{\text{nonzero improvement}}$$
309
+ {14}------------------------------------------------
310
+ ![](_page_14_Figure_1.jpeg)
311
+ Figure 3: A comparison between different $\kappa$ values.
312
+ which is a contradiction. Therefore, we converge to a safe point in the limit.
313
+ Adding the KL-divergence bound complicates analysis, but the idea is the same. Picking a strictly feasible q wrt the original CMDP constraints is not enough, since that might be outside the KL-ball. The fix is simple: Let
314
+ $$q'_{i+1} = \operatorname{proj}_{KL(\cdot || q_i) \leq \varepsilon}(q')$$
315
+ be the projection of the selected point onto the KL ball. Assuming $\varepsilon > 0$ we can perform exactly the same proof as above, just that instead of having a fixed rate $c \in (0, 1]$ , we have
316
+ $$c_i = \exp\left(-\frac{M - P(q'_{i+1})}{\kappa}\right) \in (0, 1]$$
317
+ This still gives us an (iteration dependent) lower bound
318
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge cK(q', q_i^{\star})$$
319
+ where we can apply the same argument for convergence.
320
+ Now assume K is the LSF. Let's call $c_{min} = \inf_i \{c_i\}$ , we get geometric convergence via a standard squeeze argument:
321
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge c_{min} K(q', q_i^{\star}) > 0$$
322
+ Meaning we have
323
+ $$K(q_{i+1}^{\star}, q_i^{\star}) \ge c_{min} K(q', q_i^{\star})$$
324
+ for every step. Since the LSF telescopes $K(a,b)+K(b,c)=\mathbb{E}_a[G]-\mathbb{E}_b[G]+\mathbb{E}_b[G]-\mathbb{E}_c[G]=K(a,c)$ , we have
325
+ $$K(q', q_{i+1}^{\star}) = K(q', q_{i}^{\star}) - K(q_{i+1}^{\star}, q_{i}^{\star}) \le K(q', q_{i}^{\star}) - c_{min}K(q', q_{i}^{\star}) = (1 - c_{min})K(q', q_{i}^{\star})$$
326
+ By induction we get
327
+ $$K(q', q_n^*) < (1 - c_{min})^n K(q', q_0^*)$$
328
+ which proves the geometric rate.
329
+ **Remark 3.** Note that other choices for K may equally lead to a geometric convergence rate, but for the sake of conciseness we only cover the convergence of the LSF used in our experiments.
330
+ #### D ABLATION OF HYPERPARAMETERS
331
+ We run an ablation on the impact of $\kappa$ on the overall performance. We generally observed similar performance between the different $\kappa$ values across the entire interval tested.
332
+ We found no statistically significant difference in changing $\varepsilon$ slightly (evaluated across 10 runs).
333
+ {15}------------------------------------------------
334
+ # E VALUE AND COST ESTIMATION
335
+ We use the RETRACE [\(Munos et al., 2016\)](#page-10-11) algorithm to estimate the returns of Q<sup>π</sup> and C π . RE-TRACE works by computing importance-weighted updates of the Q function(s) over a replay buffer. Specifically
336
+ $$Q_{new}(s, a) = Q(s, a) + \mathbb{E}_{\mu} \left[ \sum_{t \ge 0} \gamma^{t} (\prod_{i=1}^{t} c_{i}) (r_{t} + \gamma \mathbb{E}_{\pi} [Q(s_{t+1}, \cdot)] - Q(s_{t}, a_{t}), \right]$$
337
+ where µ is an arbitrary behaviour policy (e.g. a previous version of the policy) and π is the current policy. RETRACE can be implemented analogously for C(s, a). RETRACE sets
338
+ $$c_i = \min(1, \frac{\pi(a_s|s_i)}{\mu(a_i|s_i)})$$
339
+ RETRACE is designed to give high quality estimates of the current policy by exploiting the similarity of previous policies to get lower variance estimates.
340
+ ## F HYPERPARAMETERS
341
+ We use a nearly identical network layout for policy, cost, and Q-function with 3 MLP layers with leakyReLU activations, followed by either a mean and covariance prediction layer (for the policy) or a value prediction head for cost/value networks. We use a width of 256 for all latent dimensions.
342
+ For the policy network we parameterize the mean and the cholesky factors of the covariance matrix.
343
+ We use κ = 10 and a standard ε = 0.1
344
+ # G ENVIRONMENTS
345
+ Safety Gymnasium uses a "composable environment" format where every environment contains an "Agent" (in our case "Point" and "Car") and a task (in our case "Goal" and "Button").
346
+ The "Goal" tasks give as an input a 48 dimensional state which corresponds to the relative distance towards obstacles and the goal. The "Button" task consists of a 64 dimensional state which corresponds to the distance towards the goal, the buttons, the static obstacles, and the moving obstacles.
347
+ In addition to the task-intrinsic state, every agent also adds its own state, which for point is an accelerometer, velocimeter, gyroscope, and magnetometer (12 dimensions), and for the car are Quaternions of the rear wheel which are turned into 3x3 rotation matrices, Angle velocity of the rear wheel, accelerometer, velocimeter, gyroscope, magnetometer (24 dimensions).
348
+ Both "Car" and "Point" supply a 2 dimensional action space corresponding to a differential drive platform.