Solving Stabilize-Avoid via Epigraph Form Optimal Control using Deep Reinforcement Learning
Stabilizing a robotic system at a target state while strictly avoiding unsafe regions—the "stabilize-avoid" problem—is a fundamental challenge in control. Traditional methods like Hamilton-Jacobi reachability struggle with high-dimensional states, while constrained reinforcement learning (RL) using Lagrangian multipliers often suffers from numerical instability. This paper introduces Epigraph Form Proximal Policy Optimization (EFPPO), a framework that reformulates the safety-constrained problem into an epigraph form. By introducing an auxiliary "cost budget" variable, EFPPO achieves superior gradient stability and enables safe stabilization in complex systems, including a 17-degree-of-freedom F16 fighter jet.
The Challenge of Stabilize-Avoid
In robotics and autonomous systems, the primary objective is often dual-natured: the system must reach and maintain a goal state (stabilization) while ensuring it never enters prohibited or dangerous configurations (avoidance). This "stabilize-avoid" requirement is more stringent than simple "reach-avoid," as the controller must prevent oscillations or drifts that might lead to safety violations after the goal is initially reached.
Current approaches face significant hurdles. Hamilton-Jacobi (HJ) reachability provides formal guarantees but is computationally infeasible for systems beyond 5 or 6 dimensions. Lyapunov or Control Barrier Functions require manual design, which is difficult for nonlinear, high-dimensional dynamics. Constrained RL (CMDP) typically uses Lagrangian duality, where a penalty weight $\lambda$ balances task performance and safety. However, if a safe path is not immediately found, $\lambda$ can grow excessively, leading to vanishing gradients for the primary task and overall training instability.
The Epigraph Form Approach
The authors propose the Epigraph Form Constrained Optimal Control Problem (EF-COCP) to address these stability issues. Instead of a penalty-based trade-off, they transform the constrained problem into a two-stage optimization using an auxiliary variable $z$, representing a "cost budget."
In the Lagrangian approach, as the penalty $\lambda$ increases to enforce safety, the gradients of the objective function $J$ become negligible relative to the safety term $\lambda h$. In contrast, the Epigraph form uses a max-operator: $\min \max(h(x), J(x) - z)$. Here, $z$ acts as a shift. This structure ensures that gradients remain well-scaled regardless of the budget level, preventing the optimization "explosions" common in traditional safe RL.
Implementation: Inner and Outer Problems
The EFPPO framework operates in two main phases:
- Inner Problem (Policy Learning): A modified Proximal Policy Optimization (PPO) agent learns a policy $\pi(x, z)$ conditioned on the budget $z$. The authors derive a specific Policy Gradient Theorem to handle the non-smooth max-operator.
- Outer Problem (Budget Optimization): After training the policy, the optimal budget $z^*(x)$ for each state is determined. This is the minimum budget required to satisfy the safety constraints. A neural network regressor then learns to predict $z^*$ in real-time, allowing the agent to dynamically adjust its budget based on its current state.
Experimental Results
EFPPO was benchmarked against state-of-the-art methods across several environments, culminating in a high-fidelity F16 fighter jet simulation. The F16 task involves ground collision avoidance within a narrow, low-altitude flight corridor—a 17-dimensional state space with non-linear, non-smooth dynamics.
Key findings include:
- Superior Performance: In the F16 benchmark, EFPPO achieved a 70-fold improvement in stabilization performance over Constrained PPO (CPPO). While CPPO could maintain safety, it often failed to guide the jet to the target altitude.
- Robustness: EFPPO-trained controllers demonstrated significantly larger "regions of attraction," successfully reaching the goal from a much wider variety of initial conditions compared to baselines.
- Zero-Tuning Safety: Unlike Lagrangian methods that require tedious manual tuning of $\lambda$, EFPPO handles the safety-task trade-off systematically through the budget variable, providing a more intuitive and stable training signal.
Conclusion
EFPPO represents a significant step forward in safe reinforcement learning for high-dimensional systems. By shifting from penalty-based constraints to an epigraph-based budget formulation, it overcomes the numerical instabilities that have long hindered the application of RL to safety-critical control tasks. Future work aims to integrate the two-stage training process into a single simultaneous optimization and to explore the framework's robustness under model uncertainty and sensor noise.
Summary updated