Constrained Exploration and Recovery from Experience Shaping

Tu-Hoa Pham, Giovanni De Magistris, Don Joven Agravante, Subhajit Chaudhury, Asim Munawar, Ryuki TachibanaarXiv 2018 · arXiv

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:

  1. Direct Policy ($N^\pi_d$): The primary agent focused on task completion.
  2. 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."
  3. 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.

Static and dynamic maze environments used for evaluation.

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.

Comparison of reward convergence between vanilla PPO and PPO with learned constraints (CERES).

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

BibTeX
@misc{pham2018constrained,
  author = {Tu-Hoa Pham and Giovanni De Magistris and Don Joven Agravante and Subhajit Chaudhury and Asim Munawar and Ryuki Tachibana},
  title = {{Constrained Exploration and Recovery from Experience Shaping}},
  year = {2018},
  eprint = {1809.08925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.08925},
}
Figure