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: Bridging the Gap Between Learning and Safety
Deep Reinforcement Learning (DRL) has shown incredible potential in robotics, but its "black-box" nature is a significant barrier for safety-critical systems like autonomous vehicles or industrial robots. Standard DRL agents are purely data-driven; they learn by trial and error and can easily "hallucinate" behaviors that violate the laws of physics or exceed safety limits, leading to catastrophic failures. Conversely, traditional model-based control is safe and predictable but often struggles with the complex, non-linear dynamics of the real world. Phy-DRL addresses this fundamental gap by embedding physical invariants directly into the agent's architecture and reward function.
The Phy-DRL Framework
The Phy-DRL framework relies on three core "invariant-embedding" designs that regulate the agent's behavior through known physics.
- Residual Action Policy: Instead of letting the DRL agent control everything, the final action is the sum of a simple, physics-based linear policy ($a_{phy}$) and a data-driven DRL policy ($a_{drl}$). The DRL agent only needs to learn the "residual"—the complex parts the simple model misses, such as friction or complex joint dynamics.
- Safety-Embedded Reward: Physics knowledge, specifically Control Lyapunov Functions, is used to automatically construct a reward function. This reward acts like a "global attractor," mathematically forcing the system to stay within a defined "safety envelope."
- Physics-Model-Guided NN Editing: This novel approach "edits" the neural network's architecture itself to ensure strict compliance with physical laws.
Physics-Model-Guided Neural Network Editing
Unlike most "physics-informed" machine learning methods that simply add penalty terms to a loss function, Phy-DRL hard-codes physics into the network structure. This ensures the network physically cannot represent functions that contradict known physics.
As illustrated in the PhyN architecture, this involves:
- Link Editing: Removing unnecessary connections between neurons that represent physically impossible interactions.
- Activation Editing: Disabling certain neurons to prevent the representation of non-physical behaviors.
- NN Input Augmentation: Enriching the input space with relevant physical monomials derived from Taylor series expansions of physical laws.
Experimental Evaluation and Results
The framework was evaluated using two primary benchmarks: a classic Cart-Pole System and a high-fidelity simulation of the Unitree A1 quadruped robot. The quadruped was tested across challenging terrains, including snowy and wet roads, to assess robustness.
Key Results
- Guaranteed Safety: In both tests, Phy-DRL successfully kept the systems within safety bounds (e.g., CoM height, yaw limits) even with high model mismatch. Purely data-driven DRL frequently violated these bounds.
- Efficiency Gains: Because the network is "edited" to be leaner, it requires far fewer parameters. The "PKN-15" model used only ~4,600 parameters compared to ~35,000 for a standard fully connected MLP.
- Faster Training: The quadruped agent reached stable, safe performance in just $10^6$ steps, whereas standard DRL required $10^7$ steps—a 10x improvement in sample efficiency.
Conclusion
Phy-DRL demonstrates that architecture-level physics integration provides a robust path toward safe and efficient autonomous systems. By decoupling invariant physics from unknown residuals, it offers a mathematically provable safety guarantee without sacrificing the learning power of DRL. Future work will focus on handling "faulty" physics knowledge where the assumed model is significantly wrong.
Summary updated