[Paper Review] Neural Hybrid Automata: Learning Dynamics with Multiple Modes and Stochastic Transitions
This paper introduces Neural Hybrid Automata (NHA), a data-driven framework for learning stochastic hybrid systems with unknown numbers of modes and stochastic transitions. By combining neural differential equations, normalizing flows, and self-supervision, NHAs infer multi-mode dynamics and event-triggered transitions without prior knowledge of system structure, achieving accurate mode recovery and end-to-end control in robotic swarms with 99.8% target accuracy.
Effective control and prediction of dynamical systems often require appropriate handling of continuous-time and discrete, event-triggered processes. Stochastic hybrid systems (SHSs), common across engineering domains, provide a formalism for dynamical systems subject to discrete, possibly stochastic, state jumps and multi-modal continuous-time flows. Despite the versatility and importance of SHSs across applications, a general procedure for the explicit learning of both discrete events and multi-mode continuous dynamics remains an open problem. This work introduces Neural Hybrid Automata (NHAs), a recipe for learning SHS dynamics without a priori knowledge on the number of modes and inter-modal transition dynamics. NHAs provide a systematic inference method based on normalizing flows, neural differential equations and self-supervision. We showcase NHAs on several tasks, including mode recovery and flow learning in systems with stochastic transitions, and end-to-end learning of hierarchical robot controllers.
Motivation & Objective
- To develop a general-purpose method for learning stochastic hybrid systems (SHSs) from data without prior knowledge of the number of system modes or transition dynamics.
- To address the challenge of entangled continuous flows and discrete events in hybrid system learning, particularly in stochastic and multi-modal settings.
- To enable end-to-end training of hierarchical robot controllers by jointly learning planning and control policies from demonstration data.
- To provide a systematic inference framework that integrates neural ODEs, normalizing flows, and self-supervised learning for SHS modeling.
Proposed method
- NHAs model SHSs using three core components: a neural differential equation (NDE) for mode-specific continuous dynamics, a discrete latent state for tracking system modes, and an event module for predicting stochastic transition times.
- The event module uses intensity functions derived from parametric TPPs (temporal point processes), with stochastic transitions modeled via inverse transform sampling and exponential variates.
- Normalizing flows are employed to model the latent state distribution and enable differentiable inference over mode transitions and system evolution.
- Self-supervision is applied through a policy planner that selects targets based on robot location and resource maps, enabling end-to-end training of control policies.
- A hybrid ODE integration algorithm with adaptive step size and root-finding is used for dataset generation, supporting multiple event types and mode transitions.
- The framework supports both deterministic and stochastic event handling by embedding intensity functions into the event detection mechanism.
Experimental results
Research questions
- RQ1Can a neural architecture learn multi-mode continuous dynamics and stochastic transitions in hybrid systems without prior knowledge of the number of modes?
- RQ2How well can NHAs recover hidden system modes and reconstruct underlying dynamics from observed trajectories?
- RQ3To what extent can NHAs enable end-to-end learning of hierarchical robot controllers in complex, dynamic environments?
- RQ4Can NHAs generalize to unseen map layouts and maintain high control accuracy in robotic swarm tasks?
Key findings
- NHAs successfully recover system modes and learn multi-mode continuous dynamics in systems with stochastic transitions, even when the number of modes is unknown.
- In a robotic swarm control task, NHAs achieved 99.8% ± 0.8% average target accuracy on a known map layout with 100 robots.
- On a new, unseen map layout, the model generalized effectively, achieving 98.5% ± 1.95% average target accuracy across 100 robots.
- The training process converged after 4000 episodes, with both average reward and control loss stabilizing, indicating robust learning.
- The hybrid integration algorithm with adaptive stepping and root-finding enabled accurate simulation of complex event sequences and mode switches.
- The framework demonstrated strong generalization in hierarchical control, where the planner and low-level controller were trained jointly via self-supervision.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.