Reinforcement Learning in a Safety-Embedded MDP with Trajectory Optimization
Fan Yang, Wenxuan Zhou, Zuxin Liu, Ding Zhao, David Held
TL;DR
This work tackles safety in reinforcement learning for robotics by formulating a safety-constrained problem within a Constrained MDP and proposing a hierarchical Safety-Embedded MDP (SEMDP) that integrates a trajectory optimizer. The high-level RL agent outputs subgoals which are translated into safe trajectories by the optimizer, while a trajectory-following module executes the plan; this decouples reward optimization from safety enforcement and enables stable, long-horizon policy learning. Empirical results on Safety Gym Push tasks and a real-robot box-pushing task show significantly higher rewards with near-zero safety violations compared to baselines, including robust performance under perception noise and across multiple robot morphologies. The approach demonstrates that embedding optimization-based safety into the transition dynamics can yield superior, practically relevant safety and performance gains, with potential extensions to dynamic obstacles and manipulation tasks.
Abstract
Safe Reinforcement Learning (RL) plays an important role in applying RL algorithms to safety-critical real-world applications, addressing the trade-off between maximizing rewards and adhering to safety constraints. This work introduces a novel approach that combines RL with trajectory optimization to manage this trade-off effectively. Our approach embeds safety constraints within the action space of a modified Markov Decision Process (MDP). The RL agent produces a sequence of actions that are transformed into safe trajectories by a trajectory optimizer, thereby effectively ensuring safety and increasing training stability. This novel approach excels in its performance on challenging Safety Gym tasks, achieving significantly higher rewards and near-zero safety violations during inference. The method's real-world applicability is demonstrated through a safe and effective deployment in a real robot task of box-pushing around obstacles.
