Manuscript Offprint

arXiv:2608.26571

Arrive and Survive: Scaling Safe Goal-Conditioned Policy Learning from One-Bit Failure Signals

Guopeng Li, Yiyang Duan, Yiru Jiao, Chengcheng Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Contrastive reinforcement learning (CRL) scales effectively in goal-conditioned tasks by casting policy learning into a self-supervised contrastive objective. However, in a failure-terminated Markov decision process, established CRL considers pre-failure future goals only when constructing positive samples, without accounting for the probability mass removed by failure termination. Our theoretical analysis shows that this omission induces a systematic overestimation bias in goal-reaching values. Consequently, near-failure trajectories provide disproportionately strong supervision of success despite retaining little future occupancy. Unsafe actions can thereby be reinforced through catastrophic failure bootstrapping, leading to failed policy learning and unsustainable goal-reaching behaviours. To address this problem, we introduce two minimal yet strong corrections: mass-weighted InfoNCE corrects the overweighting of short surviving futures in critic learning, and a log-survival-mass score restores the missing survival mass in policy optimization. The resulting method, Safe Contrastive Reinforcement Learning (Safe-CRL), requires only the one-bit signal provided by failure termination to scale safe goal-conditioned policy learning. Across twelve failure-prone robot navigation and locomotion tasks, Safe-CRL consistently improves survival and substantially outperforms the Scaling-CRL baseline in goal-reaching performance. Additionally, deep Safe-CRL policies exhibit complex failure-avoidance behaviours. This study completes the CRL theory under failure termination and provides a scalable safe RL framework. The code is available via https://github.com/RomainLITUD/safe-crl.

Keywords Self-Supervised Reinforcement Learning · Contrastive Learning · Safe Policy Learning · Robot Control

Figure

Figure 1: Comparison of time at goal between Scaling-CRL and the proposed Safe-CRL method in failure-prone navigation and locomotion tasks (mean ± standard deviation over five random seeds). Both methods use 64-layer actor and critic networks (8-layer for Point Goal and Car Goal). Safe-CRL achieves higher or on-par mean time at goal across all tasks, with pronounced gains in nine.

1 Introduction

Scaling model capacity has become an important route toward more capable reinforcement learning (RL) policies [1, 2]. In goal-conditioned RL, contrastive reinforcement learning (CRL) is particularly promising. It turns sparse goal-reaching reward into dense self-supervision through goal relabelling [3, 4], and learns to reach commanded goals via a contrastive objective. Recent work on Scaling-CRL has shown that this approach can effectively exploit deeper actor and critic networks to improve performance, establishing CRL as a scalable policy learning framework [5].

In practice, many goal-conditioned tasks involve failure termination – unsafe events like falls or collisions immediately end the episode. For example, robot locomotion requires reaching the goal position without falls [6, 7]; navigation and autonomous driving require chasing moving goals while avoiding collisions [8, 9]. In these safety-critical settings, failure prevents the goal from being reached or terminates the episode shortly after the agent reaches the goal. Therefore, a safe goal-conditioned policy needs to learn how to arrive and to survive in a scalable manner. A desirable solution should preserve the self-supervised scalability of CRL without introducing additional safety annotations or task-specific cost signals. Ideally, learning should rely only on the one-bit failure signal already provided by termination.

However, failure termination interacts with the established CRL method subtly: failure truncates the future states available for relabelling, but established CRL renormalizes the remaining pre-failure future goals back to unit mass [3, 5]. For example, from the same state, consider two actions that lead to similar observed pre-failure future goals: one is followed by a long stable trajectory, whereas the other leads to failure quickly after reaching the goal. Relabelling the valid futures of each trajectory without accounting for their different trajectory lengths gives the two actions comparable positive supervision despite different safety performance. In other words, CRL preserves information about which pre-failure future goals are reachable, but loses information about how much discounted future-goal occupancy survives, which we term the survival mass.

The missing survival mass induces a systematic bias in goal-reaching value and can have severe consequences. The first one is what we refer to as catastrophic failure bootstrapping. In failure-prone tasks, the replay buffer is filled with short near-failure trajectories during the early stages of training. Repeatedly reinforcing such trajectories through self-supervision can trap learning in failure-prone behaviour. Another consequence is unsustainable goal reaching: the agent aggressively reaches a commanded goal but collides, overshoots, or falls shortly afterwards, as illustrated in Figure 2. These two failure modes can substantially degrade CRL performance in safety-critical tasks.

The discussion above raises a critical research question: How should CRL account for failure termination to realize scalable and safe goal-conditioned policy learning, when only a one-bit failure signal is available?

Figure

(a)

(b)

(c)

(d)

Figure 2: Examples of unsustainable goal reaching under Scaling-CRL. (a) The Point agent reaches the goal region but subsequently collides with a moving obstacle; (b) the Ant reaches the goal at high speed and overshoots into the wall; (c–d) locomotion agents reach the goal but fall immediately afterwards. These examples illustrate that successful short-term goal reaching does not necessarily lead to a stable trajectory under failure termination.

In this paper, we first identify and formalize the systematic overestimation bias in established CRL under failure termination. This bias can trap policy learning in unsafe, near-failure regions, or cause unsustainable goal reaching. To address this problem, we introduce mass-weighted InfoNCE and a log-survival-mass correction, yielding Safe-CRL as a minimal yet strong extension of Scaling-CRL [5]. Safe-CRL substantially improves survival and goal-reaching performance in failure-prone environments while preserving Scaling-CRL's depth scalability.

References (26)

  • Bigger, better, faster: Human-level Atari with human-level efficiency
  • SimBa: Simplicity bias for scaling up parameters in deep reinforcement learning
  • Contrastive learning as goal-conditioned reinforcement learning
  • Hindsight experience replay
  • 1000 layer networks for self-supervised RL: Scaling depth can enable new goal-reaching capabilities
  • SMiRL: Surprise minimizing reinforcement learning in unstable environments
  • From pixels to legs: Hierarchical learning of quadruped locomotion
  • Line of sight robot navigation toward a moving goal
  • ChauffeurNet: Learning to drive by imitating the best and synthesizing the worst
  • Representation Learning with Contrastive Predictive Coding
  • Accelerating goal-conditioned reinforcement learning algorithms and research
  • Brax: A differentiable physics engine for large scale rigid body simulation
  • Safety-Gymnasium: A unified safe reinforcement learning benchmark
  • MuJoCo: A physics engine for model-based control
  • MuJoCo Playground (opens arXiv in a new tab)
  • Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor
  • SVL: Goal-conditioned reinforcement learning as survival learning
  • C-learning: Learning to achieve goals via recursive classification
  • Distributional distance classifiers for goal-conditioned reinforcement learning
  • USHER: Unbiased sampling for hindsight experience replay
  • Demystifying the mechanisms behind emergent exploration in goal-conditioned RL. In The Fourteenth International Conference on Learning Representations, 2026
  • Survival reinforcement learning: Toward scalable self-supervised RL. arXiv preprint arXiv:2605.31273, 2026 (opens arXiv in a new tab)
  • Constrained policy optimization
  • A Lyapunov-based approach to safe reinforcement learning
  • Responsive safety in reinforcement learning by PID Lagrangian methods
  • $$ (A.44) Such an anchor has zero weight in the mass-weighted contrastive objective and therefore does not require a valid positive goal in the population formulation