[Paper Review] ODEFormer: Symbolic Regression of Dynamical Systems with Transformers
ODEFormer is a novel Transformer-based model that infers symbolic ordinary differential equations (ODEs) from single, noisy, or irregularly sampled trajectories. It achieves state-of-the-art performance in symbolic regression of dynamical systems, outperforming existing methods in accuracy, robustness to noise and irregular sampling, and inference speed, while introducing the ODEBench dataset for comprehensive evaluation.
We introduce ODEFormer, the first transformer able to infer multidimensional ordinary differential equation (ODE) systems in symbolic form from the observation of a single solution trajectory. We perform extensive evaluations on two datasets: (i) the existing "Strogatz" dataset featuring two-dimensional systems; (ii) ODEBench, a collection of one- to four-dimensional systems that we carefully curated from the literature to provide a more holistic benchmark. ODEFormer consistently outperforms existing methods while displaying substantially improved robustness to noisy and irregularly sampled observations, as well as faster inference. We release our code, model and benchmark dataset publicly.
Motivation & Objective
- To develop a deep learning model capable of inferring interpretable, symbolic ODEs from observational data without prior domain knowledge.
- To address the lack of robust benchmarks for symbolic regression of dynamical systems, particularly under noisy or irregular sampling conditions.
- To improve generalization and robustness in symbolic regression by leveraging large-scale pre-training on synthetic ODE trajectories.
- To enable fast, scalable inference of dynamical laws from single solution trajectories using attention-based sequence modeling.
- To release a comprehensive benchmark dataset (ODEBench) and trained models to accelerate research in scientific discovery via symbolic regression.
Proposed method
- ODEFormer employs a sequence-to-sequence Transformer architecture trained on large-scale synthetic data consisting of randomly generated ODEs and their corresponding discrete solution trajectories.
- The model is pre-trained on diverse symbolic ODEs across 1–4 dimensions, with trajectories generated via numerical integration from random initial conditions.
- During inference, the model takes a sequence of time-ordered, potentially noisy or irregularly sampled observations as input and predicts the symbolic form of the ODE vector field $ f(x) $.
- The model uses beam search decoding with temperature scaling to balance reconstruction fidelity and symbolic generalization performance.
- Symbolic outputs are evaluated using both reconstruction $ R^2 $-score and generalization $ R^2 $-score to distinguish between fitting noise and learning true dynamics.
- The method is designed to be robust to 50% missing data and up to 5% observation noise, with performance measured across multiple ODE families.
Experimental results
Research questions
- RQ1Can a Transformer-based model accurately infer the symbolic form of multidimensional ODEs from a single, noisy, or irregularly sampled trajectory?
- RQ2How does ODEFormer’s performance compare to existing symbolic regression and neural ODE methods under realistic data conditions such as noise and missing observations?
- RQ3To what extent does large-scale pre-training on synthetic ODEs improve generalization to unseen dynamical systems?
- RQ4How do beam search hyperparameters and temperature affect the trade-off between reconstruction accuracy and symbolic generalization?
- RQ5Can a curated, diverse benchmark dataset (ODEBench) serve as a reliable standard for evaluating symbolic regression of dynamical systems?
Key findings
- ODEFormer achieves state-of-the-art performance on both the Strogatz dataset and the newly introduced ODEBench, with higher generalization $ R^2 $-scores than existing methods under noisy and irregular sampling.
- On ODEBench, ODEFormer maintains high performance across 1–4 dimensional systems, with mean generalization $ R^2 $-scores significantly outperforming baselines like symbolic regression with genetic programming.
- The model demonstrates robustness to 50% missing trajectory points and up to 5% observation noise, with minimal degradation in generalization performance.
- Increasing beam size improves reconstruction accuracy but has little effect on generalization, indicating that reconstruction and symbolic recovery are distinct optimization objectives.
- The ODEBench dataset, comprising 63 curated ODEs from the scientific literature, provides a more comprehensive and realistic benchmark than previous datasets.
- ODEFormer enables fast inference, outperforming most symbolic regression baselines in speed while maintaining high accuracy and interpretability.
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.