SAC-MoE: Reinforcement Learning with Mixture-of-Experts for Control of Hybrid Dynamical Systems with Uncertainty
Leroy D'Souza, Akash Karthikeyan, Yash Vardhan Pant, Sebastian Fischmeister
TL;DR
This work tackles control of hybrid dynamical systems with unobserved latent modes and switching locations by introducing SAC-MoE, which casts the SAC actor as a Mixture-of-Experts with a differentiable router. The MoE actor enables adaptive composition of specialized sub-policies without mode labels, while a curriculum learning scheme prioritizes harder contexts to improve generalization. Empirical studies on autonomous racing and Walker2d locomotion show that SAC-MoE achieves superior zero-shot generalization to unseen contexts, with the router's expert activations qualitatively aligning with latent modes. The approach offers a robust, interpretable framework for hybrid-system control with uncertainty, with potential for extension to few-shot adaptation and latent-context encoding.
Abstract
Hybrid dynamical systems result from the interaction of continuous-variable dynamics with discrete events and encompass various systems such as legged robots, vehicles and aircrafts. Challenges arise when the system's modes are characterized by unobservable (latent) parameters and the events that cause system dynamics to switch between different modes are also unobservable. Model-based control approaches typically do not account for such uncertainty in the hybrid dynamics, while standard model-free RL methods fail to account for abrupt mode switches, leading to poor generalization. To overcome this, we propose SAC-MoE which models the actor of the Soft Actor-Critic (SAC) framework as a Mixture-of-Experts (MoE) with a learned router that adaptively selects among learned experts. To further improve robustness, we develop a curriculum-based training algorithm to prioritize data collection in challenging settings, allowing better generalization to unseen modes and switching locations. Simulation studies in hybrid autonomous racing and legged locomotion tasks show that SAC-MoE outperforms baselines (up to 6x) in zero-shot generalization to unseen environments. Our curriculum strategy consistently improves performance across all evaluated policies. Qualitative analysis shows that the interpretable MoE router activates different experts for distinct latent modes.
