Model-Based Reinforcement Learning via Stochastic Hybrid Models

Hany Abdulsamad, Jan Peters

TL;DR

This paper introduces a novel approach to controlling complex nonlinear systems by modeling their dynamics as "hybrid systems" – systems that switch between simpler, localized behaviors. They develop a method to learn these hybrid models from data and then use them to train controllers that are more interpretable and potentially more efficient than traditional black-box methods.

What Problem Does This Paper Address?

Controlling complex, nonlinear dynamical systems is a fundamental challenge in many fields. While modern machine learning, particularly deep learning, has achieved impressive results by using powerful but opaque "black-box" models for control, these models often lack interpretability. It's hard to understand why they make certain decisions or how the system's dynamics are structured. This opacity can hinder debugging, safety guarantees, and our fundamental understanding of the system. This paper aims to bridge this gap by using a "hybrid system" perspective, which breaks down complex dynamics into a hierarchy of simpler, localized models. This structured approach promises better interpretability and potentially more data-efficient learning.

Methods

The core of the paper lies in two main contributions:

  • Hybrid System Modeling: They propose using probabilistic hybrid dynamic Bayesian networks (HDBNs), specifically recurrent autoregressive hidden Markov models (rARHMMs), to model nonlinear system dynamics. These models explicitly capture both continuous dynamics (like position and velocity) and discrete "switching" dynamics (which regime the system is currently in). An Expectation-Maximization (EM) algorithm is developed to learn the parameters of these HDBNs from observed data, automatically decomposing complex dynamics into piecewise affine (and potentially polynomial) components with nonlinear transition boundaries.
  • Hybrid Reinforcement Learning (Hb-REPS): They introduce a novel reinforcement learning algorithm called Hybrid Relative Entropy Policy Search (Hb-REPS). This algorithm leverages the learned hybrid models to synthesize controllers. Unlike standard REPS, Hb-REPS explicitly incorporates the hierarchical structure of the hybrid models, optimizing piecewise polynomial feedback controllers and a piecewise polynomial approximation of the state-value function. This allows for learning controllers that are structured according to the identified system dynamics.

Datasets

The paper evaluates their methods on three simulated deterministic systems:

  • A bouncing ball (a canonical example of a dual-regime hybrid system due to impact).
  • A pendulum (both in polar and Cartesian coordinates).
  • A cart-pole system (also tested with an elastic wall constraint).

These systems are used for both system identification (learning the dynamics) and for evaluating the learned controllers in behavioral cloning and reinforcement learning tasks.

Key Insights and Ideas

  • Structure is Power: The paper strongly advocates for imposing structure (via hybrid models) on control problems, arguing it leads to more interpretable and potentially more efficient solutions compared to purely black-box approaches.
  • Decomposition is Key: By decomposing complex nonlinear dynamics into simpler, localized "regimes," the system's behavior becomes more understandable. This is achieved through the EM algorithm for learning the hybrid models.
  • Hierarchical Control: The Hb-REPS algorithm demonstrates how to effectively integrate this hierarchical system structure into the reinforcement learning process, leading to structured controllers.
  • Interpretability without Sacrificing Performance: The results suggest that hybrid models can achieve comparable performance to state-of-the-art black-box models while requiring significantly fewer parameters, leading to more interpretable controllers.

Key Results

  • System Identification: The learned rARHMMs consistently outperformed other models (FNNs, GPs, RNNs, LSTMs) in predicting future states for the bouncing ball, pendulum, and cart-pole systems, especially in long-horizon and limited-data scenarios. They achieved this with a fraction of the parameters of neural network models.
  • Behavioral Cloning: The decomposed hybrid controllers successfully replicated the behavior of expert controllers on challenging nonlinear systems (pendulum and cart-pole) with over 95% success rate, demonstrating the ability to distill complex expert policies into simpler, piecewise controllers.
  • Reinforcement Learning: Hb-REPS showed comparable learning performance to standard REPS and a hierarchical REPS baseline on pendulum swing-up and cart-pole stabilization tasks, while relying on simpler piecewise polynomial models for policies and value functions.

Limitations and Future Work

  • Scalability: The authors acknowledge that their current approach is primarily limited to low-dimensional dynamical systems. The inference techniques, while improved, still present a bottleneck for higher-dimensional problems.
  • Future Work: They suggest investigating Bayesian non-parametric extensions of HDBNs for better scalability and exploring "control-as-inference" paradigms to integrate the Bayesian structure more deeply into the control optimization process. They also aim to develop uncertainty-aware approaches for better exploration-exploitation.

Summary updated

BibTeX
@article{abdulsamad2023model,
  author = {Hany Abdulsamad and Jan Peters},
  title = {{Model-Based Reinforcement Learning via Stochastic Hybrid Models}},
  journal = {IEEE Open Journal of Control Systems},
  year = {2023},
  doi = {10.1109/ojcsys.2023.3277308},
}
Figure