Introduction
Reinforcement learning (RL) agents traditionally learn through trial and error. However, in safety-critical domains like robotics or autonomous driving, errors can be catastrophic. Standard approaches often rely on negative rewards (penalties) to discourage unsafe behavior, but this frequently leads to a "reward balancing" dilemma: low penalties may result in reckless behavior, while high penalties can stifle exploration entirely.
The CERES Framework
To address these challenges, the authors propose CERES (Constrained Exploration and Recovery from Experience Shaping). Instead of treating safety as a soft penalty, CERES treats it as a hard boundary on the action space that is learned dynamically during training.
The architecture consists of three parallel components:
- Direct Policy ($N^\pi_d$): The primary agent focused on task completion.
- Recovery Policy ($N^\pi_r$): A specialized agent trained to return the system to safety from dangerous states. If the recovery policy can save the system within a few steps, the preceding action is labeled "positive"; otherwise, it is "negative."
- Constraint Network ($N^C$): A network that predicts linear inequalities ($Gx \le h$) defining a "safe zone" for actions.
A key innovation is the integration of a Quadratic Programming (QP) layer. When the direct policy proposes an action, the QP layer projects it onto the nearest safe action within the boundaries defined by the Constraint Network. This ensures that the agent only executes actions likely to be safe, effectively "shaping" the exploration space.
Experimental Setup
The researchers evaluated CERES in two simulated environments: a Static Maze with fixed obstacles and a Dynamic Maze where obstacle placement changes every episode. In the dynamic environment, the agent is controlled via force commands (acceleration), introducing momentum that makes safety management significantly more difficult as the agent cannot stop instantly.
Key Results and Insights
CERES demonstrates superior performance by learning from both success and failure. Unlike traditional imitation learning, it uses "negative" demonstrations (crashes) to explicitly define forbidden regions.
The results indicate that CERES achieves significantly higher rewards and faster convergence compared to vanilla Proximal Policy Optimization (PPO). By filtering actions through the constraint layer, the agent experiences far fewer fatal collisions during the learning process.
Furthermore, the constraint network proved robust to complex dynamics. In force-control tasks, the agent learned to anticipate the need for braking based on velocity, rather than just proximity to walls. An interesting observation was that the main policy could succeed even with reduced sensory input, provided the constraint network maintained access to the full state (e.g., LIDAR-like observations), effectively offloading low-level safety tasks to the constraint layer.
Limitations and Future Work
While effective in simulation, CERES requires a "restoration function" to reset the environment to specific states for training the recovery policy—a requirement that may be difficult to meet in non-reversible real-world systems. Future work aims to apply CERES to physical robotic platforms where state spaces are continuous and noisy, and the cost of failure is high.
Summary updated