Abstract: Neural Ordinary Differential Equations model dynamical systems with ODEs learned by neural networks. However, ODEs are fundamentally inadequate to model systems with long-range dependencies or discontinuities, which are common in engineering and biological systems. Broader classes of differential equations (DE) have been proposed as remedies, including delay differential equations and integro-differential equations. Furthermore, Neural ODE suffers from numerical instability when modelling stiff ODEs and ODEs with piecewise forcing functions. In this work, we propose Neural Laplace, a unified framework for learning diverse classes of DEs including all the aforementioned ones. Instead of modelling the dynamics in the time domain, we model it in the Laplace domain, where the history-dependencies and discontinuities in time can be represented as summations of complex exponentials. To make learning more efficient, we use the geometrical stereographic map of a Riemann sphere to induce more smoothness in the Laplace domain. In the experiments, Neural Laplace shows superior performance in modelling and extrapolating the trajectories of diverse classes of DEs, including the ones with complex history dependency and abrupt changes.
Introduction
While Neural Ordinary Differential Equations (Neural ODEs) have become a standard tool for modeling continuous-time data, they possess significant "blind spots." Standard ODEs operate under the Markovian assumption: the future state depends solely on the current state ($ \dot{\mathbf{x}} = \mathbf{f}(t, \mathbf{x}(t)) $). However, many real-world systems in engineering and biology are governed by complex dependencies that violate this assumption, such as delays (Delay Differential Equations, DDEs) and memory effects (Integro-Differential Equations, IDEs).
Furthermore, Neural ODEs often struggle with "stiff" dynamics or abrupt changes, where numerical solvers become unstable or prohibitively slow. Neural Laplace addresses these challenges by shifting the learning process from the time domain to the complex Laplace domain.
The Neural Laplace Framework
The core innovation of Neural Laplace is approximating the solution of a differential equation in the Laplace domain rather than modeling the derivative in the time domain. The Laplace transform converts complex differential equations into algebraic equations, where history-dependencies and discontinuities can be represented as summations of complex exponentials.
Architecture
The framework consists of three primary components trained end-to-end:
- Encoder ($h_\gamma$): A GRU-based network that processes an observed trajectory snippet to produce a latent representation $\mathbf{p}$. This vector captures the initial conditions and necessary history to represent the specific class of DE.
- Laplace Representation Network ($g_\beta$): A feed-forward network that predicts the value of the solution $\mathbf{F}(s)$ for any complex frequency $s$.
- Inverse Laplace Transform (ILT): To return to the time domain, the model utilizes a differentiable ILT algorithm (specifically the Fourier Series Inverse). This allows the state $\hat{\mathbf{x}}(t)$ to be queried at any time point $t$ without iterative stepping.
Geometric Smoothing via Stereographic Projection
A significant challenge in the Laplace domain is the presence of singularities (points where the function goes to infinity). To make the learning process more efficient for neural networks, the authors employ a Stereographic Projection. By mapping the complex plane onto a Riemann Sphere, the domain is compacted and singularities are "smoothed out," creating a bounded, continuous surface that is significantly easier for a network to approximate.
Key Results and Insights
Neural Laplace was evaluated across a diverse set of systems, including DDEs (Mackey-Glass), stiff ODEs (Van der Pol Oscillator), and IDEs.
- Superior Accuracy: Neural Laplace consistently outperformed baseline models. For instance, on Integro-Differential Equations, it achieved an RMSE of 0.0014, while standard Neural ODEs reached only 0.0730.
- Computational Efficiency: By bypassing iterative numerical solvers, Neural Laplace is "global." Querying a state at $t=100$ is as fast as querying at $t=1$. In long-term extrapolation tasks, it required up to 1,000x fewer Number of Function Evaluations (NFEs) than Neural ODEs.
- Implicit Class Discovery: The model does not require prior knowledge of the DE class (e.g., whether it is an ODE or a DDE). The encoder implicitly captures the required history to represent the correct dynamics.
- Handling Stiffness: Unlike traditional solvers that may crash or require infinitesimal steps for stiff equations, Neural Laplace remains stable and accurate by modeling the global solution surface.
Conclusion
Neural Laplace represents a paradigm shift in modeling dynamical systems. By leveraging the properties of the Laplace domain and geometric tricks like stereographic projection, it provides a unified, stable, and highly efficient framework for learning complex differential equations that were previously beyond the reach of standard Neural ODEs. Future work may explore other integral transforms or additional mathematical constraints to further enhance long-term stability.
Summary updated