[Paper Review] Learning Neural Event Functions for Ordinary Differential Equations
This paper introduces Neural Event ODEs, a framework that extends Neural ODEs by learning implicit termination criteria through differentiable neural event functions, enabling modeling of discrete, instantaneous state changes in continuous-time systems without predefined end times. The approach supports end-to-end training via reparameterization gradients and enables effective simulation-based training of point processes and discrete control in hybrid dynamical systems.
The existing Neural ODE formulation relies on an explicit knowledge of the termination time. We extend Neural ODEs to implicitly defined termination criteria modeled by neural event functions, which can be chained together and differentiated through. Neural Event ODEs are capable of modeling discrete and instantaneous changes in a continuous-time system, without prior knowledge of when these changes should occur or how many such changes should exist. We test our approach in modeling hybrid discrete- and continuous- systems such as switching dynamical systems and collision in multi-body systems, and we propose simulation-based training of point processes with applications in discrete control.
Motivation & Objective
- To extend Neural ODEs by replacing fixed termination times with learnable, implicit event functions that trigger state discontinuities.
- To enable end-to-end training of event-triggered systems where the timing and effects of events are determined by neural networks.
- To support simulation-based training of temporal point processes and discrete control policies in continuous-time environments.
- To address the challenge of backpropagating through event locations in ODE solvers using differentiable event functions.
- To demonstrate the method's effectiveness in modeling hybrid systems such as bouncing balls, switching dynamics, and control policies in biological and neuronal systems.
Proposed method
- Introduces ODESolveEvent as a generalization of ODESolve, where integration terminates when a neural event function $ g(t, z(t), \phi) $ crosses zero.
- Parameterizes the event function $ g $ using a neural network with learnable parameters $ \phi $, allowing the model to learn when and how to trigger state changes.
- Derives gradients for both the ODE vector field $ f $ and the event function $ g $ using adjoint sensitivity methods, enabling backpropagation through event times.
- Employs reparameterization gradients for training stochastic temporal point processes, enabling differentiable sampling of event sequences.
- Uses a sparse aggregator (e.g., min or max) to handle minibatching of trajectories with independent event times.
- Applies the framework to train deterministic and stochastic control policies in continuous-time systems, such as HIV treatment and Hodgkin-Huxley neuron dynamics.
Experimental results
Research questions
- RQ1Can neural networks learn implicit event functions that trigger state discontinuities in continuous-time systems without predefined termination times?
- RQ2How can gradients be backpropagated through event times when the event function is a differentiable neural network?
- RQ3Can the framework support end-to-end training of temporal point processes and discrete control policies in continuous-time dynamics?
- RQ4How does the reparameterization gradient compare to REINFORCE in training event sequences with varying numbers of events?
- RQ5Can deterministic control policies be trained effectively in continuous-time systems using differentiable event functions?
Key findings
- Neural Event ODEs successfully model the bouncing ball dynamics with perfect recovery of physical laws and superior extrapolation compared to standard Neural ODEs.
- The reparameterization gradient enables faster and more stable training than REINFORCE, especially for longer sequences of events (e.g., 5–10 events).
- In the HIV dynamics model, the method achieves effective treatment strategy learning with discrete control over two inhibitor types, matching or outperforming prior methods.
- For the Hodgkin-Huxley model, the method successfully learns to match target action potentials through discrete stimulus control, with deterministic policies outperforming stochastic ones.
- The framework generalizes standard Neural ODEs by allowing event functions to be learned, enabling modeling of hybrid systems with state discontinuities.
- Initialization with large variance in event function parameters helps prevent degeneration to standard Neural ODEs when roots are not encountered.
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.