arXiv:2608.12306cs.LGAug 2026

Manuscript Offprint

arXiv:2608.12306

Redistribution-based Cost Inference Improves Sparse Safe Offline RL

Ebenezer Gelo, Geraud Nangue Tasse, Steven James, Benjamin Rosman

Abstract

Safe offline RL typically assumes access to dense per-step cost annotations, but in practice supervisors provide only trajectory-level stop-feedback: a binary signal at the first unsafe transition, with no per-step attribution. We frame this as a temporal credit assignment problem and propose the Redistribution-based Cost Inference (RCI) framework, which converts sparse stop-feedback into dense per-step costs via return decomposition, then trains a constrained offline policy on the augmented dataset. We show that return-equivalent redistribution preserves the feasible policy set and the optimal Lagrangian in a CMDP, establishing that the transformation is lossless in theory while yielding better-conditioned cost critic learning in practice. Experiments on highway driving and robotic manipulation demonstrate substantially lower violation rates than sparse and classifier-based baselines, with robustness to heterogeneous dataset compositions and label noise.

I Introduction

Safe reinforcement learning (RL) is central to deploying autonomous agents in high-stakes domains such as autonomous driving, clinical decision support, and robotic manipulation [1, 2]. The predominant formalism, the Constrained Markov Decision Process (CMDP) [3], encodes safety as a constraint on expected cumulative cost, but standard CMDP methods presuppose access to dense, per-step cost annotations—a requirement that is prohibitively expensive to satisfy in practice.

The offline RL paradigm exacerbates this gap. Agents trained on fixed historical datasets avoid the risks of online exploration [4, 5, 6], yet they inherit the safety profile of the behavior policy and face unreliable value and cost estimates under distributional shift [7]. Critically, offline datasets collected without safety instrumentation lack the cost labels required by existing constrained methods, and post-hoc expert annotation at the per-step level is intractable at scale.

A more realistic supervision signal is trajectory-level stop feedback: a binary label indicating whether an episode was halted by a safety monitor upon detecting a violation. Such signals arise naturally from human oversight and automated safety systems, which operate by terminating execution rather than scoring individual transitions. However, each unsafe trajectory contributes only a single cost label at its termination point, providing no direct information about which earlier actions precipitated the violation. Recovering per-step costs from this signal is a temporal credit-assignment problem [8, 9, 10], compounded here by distributional shift and the one-shot nature of offline data collection.

We address this problem with the Redistribution-based Cost Inference (RCI) framework, which converts sparse trajectory-level stop labels into dense per-step cost estimates via return decomposition, then trains safe policies using standard constrained offline RL. RCI is explicitly modular: the redistribution stage accepts any return-equivalent decomposition method (instantiated here with RUDDER [8], though GRD [9] applies directly), and the policy learning stage accepts any constrained offline RL algorithm (instantiated with BCQ-Lagrangian [4], though CPQ or CDT substitute without modification). We evaluate on highway driving and simulated robot control tasks across datasets generated by unsafe, random, and mixed behavior policies, demonstrating that RCI substantially reduces constraint violation rates while preserving task performance comparable to an unconstrained baseline.