Physics-Informed Model and Hybrid Planning for Efficient Dyna-Style Reinforcement Learning

Zakariae El Asri, Olivier Sigaud, Nicolas Thome

Introduction

Reinforcement Learning (RL) has long grappled with a fundamental trade-off known as the "triple challenge": balancing high asymptotic performance, sample efficiency, and real-time inference speed. Traditional Model-Free RL (MFRL) methods offer fast inference but require millions of interactions to learn. Conversely, Model-Based RL (MBRL) methods are highly sample-efficient but often suffer from computationally expensive planning phases that hinder real-time deployment.

The proposed framework, PhIHP (Physics-Informed model and Hybrid Planning), seeks to bridge this gap. By integrating partial physical knowledge into a neural dynamics model and employing a novel hybrid planning strategy, PhIHP achieves state-of-the-art results with significantly reduced data requirements and faster execution than existing hybrid methods.

Methodology

The PhIHP framework is built upon three synergistic pillars designed to optimize the learning and execution pipeline.

1. Physics-Informed Dynamics Model

Rather than learning environment dynamics from a blank slate, PhIHP utilizes a Neural ODE approach that incorporates a known, approximate physical model (e.g., basic equations of motion). A data-driven neural network "residual" is trained to capture unmodeled complexities such as friction or aerodynamic drag. This physical prior acts as a powerful regularizer, enabling the model to generalize to unseen states far more effectively than purely data-driven alternatives.

2. Dyna-Style Training in Imagination

To maximize sample efficiency, PhIHP adopts a Dyna-style architecture. The agent trains its policy and Q-function primarily within a "dream" environment generated by the physics-informed model. Because the underlying model is anchored in physical reality, the synthetic trajectories are highly accurate, allowing a model-free agent (specifically TD3) to learn robust behaviors without exhaustive real-world interaction.

3. Hybrid Planning

At inference time, PhIHP does not rely solely on the learned policy. Instead, it employs a hybrid planning strategy using the Cross-Entropy Method (CEM). The learned policy "seeds" the planner with high-quality action candidates, while the learned Q-function provides an estimate of long-term rewards. This allows for a significantly shorter planning horizon and smaller computational budget, making it viable for high-frequency control.

Experimental Setup

The researchers evaluated PhIHP on six continuous control tasks from the Gymnasium suite, including Pendulum, Cartpole, and Acrobot, along with their more challenging swing-up variants. To test robustness against model mismatch, a friction term was added to the environments that was omitted from the agent's analytical physical prior. This setup mimics real-world scenarios where "textbook" physics equations are only partially accurate, forcing the residual component to learn the discrepancy.

Key Results and Discussion

PhIHP demonstrates a superior balance across all critical metrics compared to established baselines like TD-MPC and TD3.

  • Sample Efficiency: PhIHP reached 90% of peak performance using 5 to 15 times fewer samples than TD-MPC across most tasks. The physical prior allows the agent to understand the "rules" of the world much faster than methods that must infer them entirely from data.
  • Inference Speed: By reducing the planning burden through policy seeding and Q-function look-ahead, PhIHP is significantly faster than standard MBRL. In the Pendulum task, PhIHP achieved an inference time of ~6.3ms per step, compared to ~39.6ms for TD-MPC, representing a nearly 6x speedup.
  • Performance: In sparse-reward environments like Acrobot-swingup, PhIHP achieved higher final scores than both the model-free and hybrid baselines, suggesting that the combination of physical priors and hybrid planning leads to more stable and effective global solutions.
Radar chart comparing PhIHP, TDMPC, and TD3 across the 'triple challenge' metrics: Performance, Sample Efficiency, and Time Efficiency.

Conclusion

PhIHP represents a significant step toward practical, real-time robotic control. By leveraging the synergy between physics-informed modeling and hybrid planning, it overcomes the traditional limitations of both model-free and model-based reinforcement learning. While the method requires a partial physical prior, its ability to learn residuals makes it highly adaptable to complex, real-world dynamics where pure analytical models fall short.

Summary updated

BibTeX
@inproceedings{asri2024physics,
  author = {Zakariae EL ASRI and Olivier Sigaud and Nicolas THOME},
  title = {{Physics-Informed Model and Hybrid Planning for Efficient Dyna-Style Reinforcement Learning}},
  booktitle = {EWRL17},
  year = {2024},
  url = {https://openreview.net/forum?id=6ItKUaCzGK},
}
Figure