arXiv:2610.09508cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09508

Safe on Average, Unsafe in the Tail: When Is the Episodic-Cost Tail Controllable?

Samuel Tetteh, Cody Fleming

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Safe reinforcement learning seeks policies that maximize return while satisfying constraints on cumulative cost. Most methods impose these constraints on expected episodic cost. Consequently, standard evaluations report mean episodic cost without characterizing how cost is distributed across episodes. A policy that satisfies the mean-cost criterion may therefore remain unsafe in its worst episodes. Mean-cost reporting neither identifies this tail violation nor shows whether it can be brought within budget while preserving return. In this work, we measure the episodic-cost tail using CVaR0.1CVaR_{0.1}, the average cost of the worst 10% of episodes. We classify a policy as tail-safe when CVaR0.1CVaR_{0.1} is within the safety budget. This allows us first to identify policies that are safe on average but unsafe in the tail and then to study whether their tail violations can be controlled while preserving return. To identify tail-unsafe policies, we evaluate five standard algorithms on three Safety-Gymnasium navigation tasks. We then examine four constraint families on dense-hazard navigation and assess tail control across four navigation and four locomotion tasks.

1 INTRODUCTION

Safe reinforcement learning (RL) seeks policies that maximize return while limiting undesirable behavior. A nonnegative cost c(st,at)c(s_t, a_t) quantifies undesirable behavior at time tt, and the episodic cost C(τ)=∑tc(st,at)C(\tau) = \sum_t c(s_t, a_t) sums this quantity over the trajectory. Most constrained RL methods require the expected episodic cost to remain within a budget dd (Altman, 1999; Achiam et al., 2017). This expectation does not characterize how cost is distributed across episodes. A policy can satisfy the mean-cost constraint while a small fraction of episodes incurs costs far above the budget (Figure 1).

Safe on Average, Unsafe in the Tail

Figure

Figure 1: Mean compliance can hide episodic tail risk. Both panels describe the same illustrative policy. Its mean episodic cost is within budget, but the average cost of its worst 10% of episodes exceeds the budget. Our evaluation measures both quantities from complete post-training episodes.

We measure this high-cost tail using Conditional Value at Risk, CVaRαCVaR_{\alpha}, which averages the largest α\alpha fraction of episodic costs (Rockafellar & Uryasev, 2000). We call a policy tail-safe when

CVaR 0.1_{0.1} ≤\leq d. Safety-Gymnasium evaluations commonly report aggregate episodic cost, which does not determine whether this tail criterion is satisfied (Ji et al., 2023). Although episodic-cost CVaR has been reported on modified Safety-Gymnasium tasks (McCarthy et al., 2025), no shared evaluation establishes how large this tail is across standard expected-cost algorithms and tasks.

We study two related questions. First, which policies evaluated using mean cost remain unsafe in their worst episodes? Second, when can these tail violations be brought within budget while preserving return? We address the first question through a common post-training evaluation of five standard safe-RL algorithms on three navigation tasks. We address the second through 38 archived training runs from four constraint families on dense-hazard navigation and an evaluation of tail control across four navigation and four locomotion tasks.

The initial evaluation reveals substantial tail violations. Across the three navigation tasks, the average cost of the worst 10% of episodes reaches 4.4–18.2 times the budget. Strengthening the tested constraints does not resolve this problem on dense-hazard navigation. Return collapses before the tail reaches the budget. Locomotion exhibits a different pattern. On the two tasks with the most severe baseline tails, OQ-SAC, its component ablations, and Lagrangians trained with lower internal budgets all reach safe operating points without collapsing return. Tail control is therefore not unique to one method.

The episode-level results suggest an explanation for this difference. Tail control is observed when a policy can reliably produce episodes that are both safe and high-return. In the evaluated navigation tasks, safe episodes either have little return or occur too rarely to control the worst-decile cost. In locomotion, safe episodes remain frequent while retaining high return. A single-seed hazard-count analysis in PointGoal1 examines how the observed return–tail relationship varies with hazard count.

Contributions. Our work makes three contributions. (1) We apply a shared post-training protocol that measures both mean episodic cost and CVaR0.1CVaR_{0.1}, revealing safety violations that mean-cost reporting does not identify. (2) We test four constraint families and document contrasting outcomes for tail control at held return across the evaluated navigation and locomotion tasks. (3) We identify the frequency and return of safe episodes as empirical indicators of tail controllability and examine this interpretation through a within-navigation hazard-count analysis.

References (43)