Abstract
Applying reinforcement learning (RL) to physical systems is often hindered by extreme sample inefficiency and the risk of model bias in learned simulators. This paper introduces Physics-informed Model-Based Reinforcement Learning (PiMBRL), a framework that embeds known physical laws—expressed as ordinary or partial differential equations—directly into the learning process. By constraining the agent's transition model with a physics-based loss, PiMBRL significantly improves sample efficiency and generalization. Experimental results across benchmarks ranging from simple mechanics to chaotic fluid dynamics demonstrate up to a 90% reduction in required real-world interactions compared to model-free baselines.
Introduction
While Deep Reinforcement Learning (DRL) has achieved remarkable success in digital domains, its transition to physical engineering systems like robotics and fluid dynamics remains challenging. Two primary obstacles persist: sample inefficiency and model bias. Model-free RL (MFRL) often requires millions of interactions, which is prohibitively expensive and potentially damaging in physical setups. Model-based RL (MBRL) attempts to mitigate this by training a transition model to simulate the environment. However, standard neural networks often "hallucinate" unphysical behavior when generalizing to unseen states, leading the agent to learn flawed control strategies.
Methodology: The PiMBRL Framework
The proposed PiMBRL framework utilizes a Dyna-style architecture where the agent alternates between interacting with the real environment and "dreaming" trajectories within a learned transition model.
Physics-Informed Transition Model
The core innovation lies in the transition model, which employs an encoder-decoder recurrent structure (CNN encoder, LSTM, and MLP decoder). Unlike standard models that minimize only the prediction error (data loss), PiMBRL incorporates a physics loss. This loss penalizes predictions that violate the discretized governing equations (ODEs or PDEs) of the system. By acting as a regularizer, this physics constraint ensures that the "imagined" data used for training the RL agent remains physically plausible, even in data-sparse regions of the state space.
RL Control Agent
The framework employs the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm as the underlying RL agent. The agent is trained on a mixture of real-world transitions and synthetic transitions generated by the physics-informed model.
Experimental Evaluation
The researchers evaluated PiMBRL on four distinct control benchmarks:
- Cart-Pole & Pendulum (ODE): Classic mechanical control tasks involving balancing and stabilization.
- Burgers’ Equation (PDE): Controlling source terms in a 1D viscous fluid flow to follow a reference trajectory.
- Kuramoto-Sivashinsky (KS) Equation (PDE): Managing a nonlinear, spatiotemporally chaotic system, serving as a proxy for turbulence control.
Results and Discussion
PiMBRL demonstrated superior performance across all test cases, particularly in complex and chaotic environments.
- Efficiency Gains: In the Cart-Pole environment, PiMBRL reached peak performance in 3,000 steps—a 5x improvement over the 15,000 steps required by MFRL.
- PDE Control: For the Burgers' equation, PiMBRL required only 46% of the interactions needed by MFRL. In the chaotic KS environment, the improvement was even more pronounced, with PiMBRL reaching target returns using only 30.2% of the interactions required by its model-free counterpart.
- Robustness to Chaos: Standard MBRL often fails in chaotic systems like the KS equation because small prediction errors accumulate rapidly. PiMBRL's physics-informed "anchoring" prevents this divergence, allowing the agent to learn effective control where purely data-driven models fail.
Conclusion and Future Work
PiMBRL bridges the gap between data-driven reinforcement learning and classical physics-based engineering. By leveraging known governing equations, the framework drastically reduces the data burden of RL. While the method requires prior knowledge of the system's physics and introduces additional computational overhead during training, its ability to handle complex, chaotic dynamics marks a significant step toward practical RL for real-world physical systems. Future research will focus on extending this approach to 3D Navier-Stokes equations for advanced fluid-structure interaction control.
Summary updated