Abstract
This paper proposes the Phy-DRL: a physics-regulated deep reinforcement learning (DRL) framework for safety-critical autonomous systems. The Phy-DRL has three distinguished invariant-embedding designs: i) residual action policy (i.e., integrating data-driven-DRL action policy and physics-model-based action policy), ii) automatically constructed safety-embedded reward, and iii) physics-model-guided neural network (NN) editing, including link editing and activation editing. Theoretically, the Phy-DRL exhibits 1) a mathematically provable safety guarantee and 2) strict compliance of critic and actor networks with physics knowledge about the action-value function and action policy. Finally, we evaluate the Phy-DRL on a cart-pole system and a quadruped robot. The experiments validate our theoretical results and demonstrate that Phy-DRL features guaranteed safety compared to purely data-driven DRL and solely model-based design while offering remarkably fewer learning parameters and fast training towards safety guarantee.
Introduction
Deep Reinforcement Learning (DRL) has demonstrated remarkable success in complex decision-making tasks. However, its "black box" nature poses significant risks for safety-critical systems such as autonomous vehicles or surgical robotics. Standard DRL agents are purely data-driven, often leading to behaviors that violate physical laws or suffer from "catastrophic forgetting." While some "physics-informed" methods exist, they typically treat physics as a soft penalty in the loss function, which does not provide rigorous safety guarantees.
This paper introduces Phy-DRL, a framework that strictly regulates DRL agents by embedding physical constraints directly into their architecture and reward mechanisms. This approach ensures that the agent cannot violate known physical boundaries while learning to adapt to "unknown unknowns" like varying friction or external disturbances.
The Phy-DRL Framework
The core of Phy-DRL lies in three "invariant embeddings"—design elements that remain fixed during training to ensure physical consistency.
1. Residual Action Policy
Phy-DRL decouples the control action into two components: $a(k) = a_{drl}(k) + a_{phy}(k)$. A reliable, linear physics-based model ($a_{phy}$) handles fundamental control, while the DRL agent ($a_{drl}$) learns the "residual"—the complex adjustments required to compensate for real-world noise and model inaccuracies.
2. Safety-Embedded Reward
Using Control Lyapunov Functions (CLF), the authors design a reward function that mathematically defines a "safety envelope." This structure creates a "global attractor" force: as the agent approaches a safety boundary, the reward structure pulls it back toward a safe state, providing a mathematically provable safety guarantee.
3. Physics-Knowledge-Enhanced DNN (PhyN)
The most significant architectural innovation is the Physics-Knowledge-Enhanced DNN. By applying Taylor series expansions to physical governing equations, the framework determines the functional dependencies between inputs and outputs.
- NN Editing: This includes Link Editing, where connections that contradict physical laws are pruned, and Activation Editing, which ensures the network's functional form matches physical equations.
- NN Input Augmentation: Higher-order terms (e.g., $v^2$) are explicitly fed into the network, allowing it to capture nonlinearities with significantly fewer hidden layers.
Experimental Evaluation
The framework was tested on two challenging systems:
- Cart-Pole System: Modified with significant model mismatch (ignoring friction) to test the agent's ability to compensate for faulty base models.
- Quadruped Robot (Unitree A1): A 12-degree-of-freedom robot simulated in Pybullet. The agent performed lane tracking and center-of-gravity management across diverse conditions like snow and wet pavement.
Key Results
- Guaranteed Safety: Unlike standard DRL, which frequently violated safety boundaries in quadruped tests, Phy-DRL maintained the robot within the safety envelope across all environments.
- Model Efficiency: In the quadruped task, Phy-DRL required only 4,636 parameters—a nearly 8x reduction compared to the 35,585 parameters of a standard MLP.
- Accelerated Training: Phy-DRL achieved a stable, safe policy in 1 million steps, whereas standard DRL required 10 million steps and still failed to guarantee safety.
Conclusion
Phy-DRL demonstrates that treating neural network architecture as a physical constraint, rather than just a learning target, leads to safer and more efficient autonomous systems. By decoupling known physics from unknown environmental factors, it provides a robust path forward for deploying DRL in real-world, safety-critical applications.
Summary updated