TraCeS: Learning Per-Timestep Constraint-Violation Credit from Sparse Trajectory-Level Labels
Abstract
Ensuring safe behavior in reinforcement learning (RL) is challenging when safety constraints are implicit and cannot be densely measured. In many settings, supervision is limited to coarse approvals or rejections of whole trajectories (e.g., whether a rollout remained within an unknown safety threshold). We propose TraCeS (Trajectory-based Constraint Estimation for Safety), a method for learning per-timestep violation credit from such sparse trajectory-level labels. TraCeS trains a sequential violation estimator whose per-step credits factorize the predicted probability that a trajectory has not yet violated the constraint, and integrates this learned signal into constrained policy optimization. The method requires neither a known cost function nor a known threshold, and remains compatible with standard continuous-control algorithms. We provide a theoretical analysis of the approximation gap introduced by the learning objective, and demonstrate empirically that TraCeS improves constraint satisfaction and feedback efficiency over baselines across multiple continuous-control benchmarks, including long-horizon tasks and settings with noisy or inconsistent labels.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- Accepted at ICML 2026. Code available at https://github.com/siowmeng/TraCeS
Related papers
Step-Level Sparse Autoencoder for Reasoning Process Interpretation
Shared title terminologycs.LGXuan Yang, Jiayu Liu, Yuhang Lai et al.
From States to Dynamics: Detecting Rule Violations in OthelloGPT
Shared title terminologycs.LGDavid L. Cao, Sai Sumedh R. Hindupur, Demba Ba
Learning Acceptable Lotteries via Queries: Minimizing Aggregated Violation Distances
Shared title terminologycs.LGNicholas Teh, Paul W. Goldberg
QASparse: Query-Adaptive Sparse Attention with Tailored Budgets and Tokens
Shared title terminologycs.LGZhiyuan Chen, Zihao Yang, Quanjiang Li et al.
On Adaptive Step Sizes for Eligibility Traces in Deep Reinforcement Learning
Shared title terminologycs.LGEsraa Elelimy, Martha White
VeriLogic: Reinforcement Learning over Verifiable Logical Reasoning Traces
Shared title terminologycs.LGZeLiang Chen, Yunyao Zhang, Xinglang Zhang et al.