CODE: A global approach to ODE dynamics learning
cs.LG, stat.ML
Submitted: 2025-11-19
Updated: 2025-11-19
Journal ref: Journal of Machine Learning for Modeling and Computing, Vol. 7, Issue 2, 2026, pp. 73-105
DOI: 10.1615/JMachLearnModelComput.2026062518
Code: https://github.com/NilsWildt/CODE-Global-ODE-learning
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: Ordinary differential equations (ODEs) are a conventional way to describe the observed dynamics of physical systems.
Terminology
Abstract
Ordinary differential equations (ODEs) are a conventional way to describe the observed dynamics of physical systems. Scientists typically hypothesize about dynamical behavior, propose a mathematical model, and compare its predictions to data. However, modern computing and algorithmic advances now enable purely data-driven learning of governing dynamics directly from observations. In data-driven settings, one learns the ODE's right-hand side (RHS). Dense measurements are often assumed, yet high temporal resolution is typically both cumbersome and expensive. Consequently, one usually has only sparsely sampled data. In this work we introduce ChaosODE (CODE), a Polynomial Chaos ODE Expansion in which we use an arbitrary Polynomial Chaos Expansion (aPCE) for the ODE's right-hand side, resulting in a global orthonormal polynomial representation of dynamics. We evaluate the performance of CODE in several experiments on the Lotka-Volterra system, across varying noise levels, initial conditions, and predictions far into the future, even on previously unseen initial conditions. CODE exhibits remarkable extrapolation capabilities even when evaluated under novel initial conditions and shows advantages compared to well-examined methods using neural networks (NeuralODE) or kernel approximators (KernelODE) as the RHS representer. We observe that the high flexibility of NeuralODE and KernelODE degrades extrapolation capabilities under scarce data and measurement noise. Finally, we provide practical guidelines for robust optimization of dynamics-learning problems and illustrate them in the accompanying code.
Sources
- A Common Interface for Automatic Differentiation
- Anamnesic Neural Differential Equations with Orthogonal Polynomial Projections
- An Agent-Based Model Framework for Utility-Based Cryptoeconomies
- Don't Unroll Adjoint: Differentiating SSA-Form Programs
- Scaling Laws for Neural Language Models
- Adam: A Method for Stochastic Optimization
- Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flows
- Reduction of a biochemical network mathematical model by means of approximating activators and inhibitors as perfect inverse relationships
- Universal Differential Equations for Scientific Machine Learning
- Forward-Mode Automatic Differentiation in Julia
- Differentiable Programming for Differential Equations: A Review
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks