Foundational Inference Models for Dynamical Systems

Patrick Seifner, Kostadin Cvejoski, Ramsés J. Sánchez · OpenReview

Abstract

Ordinary differential equations (ODEs) underlie dynamical systems which serve as models for a vast number of natural and social phenomena. Yet inferring the ODE that best describes a set of noisy observations on one such phenomenon can be remarkably challenging, and the models available to achieve it tend to be highly specialized and complex too. In this work we propose a novel supervised learning framework for zero-shot inference of ODEs from noisy data. We first generate large datasets of one-dimensional ODEs, by sampling distributions over the space of initial conditions, and the space of vector fields defining them. We then learn neural maps between noisy observations on the solutions of these equations, and their corresponding initial condition and vector fields. The resulting models, which we call foundational inference models (FIM), can be (i) copied and matched along the time dimension to increase their resolution; and (ii) copied and composed to build inference models of any dimensionality, without the need of any finetuning. We use FIM to model both ground-truth dynamical systems of different dimensionalities and empirical time series data in a zero-shot fashion, and outperform state-of-the-art models which are finetuned to these systems.

Introduction

Time series data in fields like biology, physics, and engineering are frequently characterized by noise and sparsity. Traditionally, inferring the underlying dynamics requires training specialized models for specific datasets—a "one-model-per-task" paradigm that suffers from inflexibility and data scarcity. This work introduces the Foundation Inference Model (FIM), a neural recognition model designed for "zero-shot" missing data imputation and dynamics inference. By training exclusively on a massive, diverse synthetic dataset of ODE solutions, FIM generalizes to unseen real-world data—ranging from air quality to human motion—without any task-specific fine-tuning.

Methods: The Foundation Inference Framework

The core innovation of FIM lies in shifting the computational burden to an offline synthetic training phase. The framework consists of two primary components: a generative model for data synthesis and a recognition model for inference.

Synthetic Data Generation

To create a "foundation" for dynamical systems, the authors generated a vast universe of ODE solutions. They sampled from broad probability distributions over initial conditions $x(0)$, time derivatives $\dot{x}(t)$ (using Chebyshev expansions and Gaussian Processes), and various noise mechanisms. This diversity ensures the model encounters a wide spectrum of "locally simple" dynamics that can approximate complex real-world phenomena.

Recognition Model Architecture

The FIM learns to map noisy, sparse observations directly onto the space of initial conditions and time derivatives.

The FIM framework: (Left) Generative graphical model for synthetic ODE data. (Right) Neural recognition model mapping noisy observations to latent dynamics.

Two specialized architectures were developed:

  1. FIM-ℓ: A neural operator-based architecture optimized for "point-wise" missing patterns (randomly distributed missing values).
  2. FIM: A transformer-based sequence processor designed for "temporal" missing patterns (large consecutive gaps), capable of capturing global trends and seasonality to bridge significant data voids.

A key feature of FIM is Channel Independence: the model treats each dimension of a multi-dimensional dataset independently. While this ignores cross-variable correlations, it is mathematically exact for ODE time derivatives and allows the model to scale to any dimensionality without retraining.

Results and Evaluation

FIM was evaluated across a diverse set of benchmarks, including ODEBench (63 autonomous systems), high-dimensional real-world datasets (Air Quality, Traffic, Solar Power), and complex simulations like Navier-Stokes fluid dynamics.

Performance on Synthetic and Real-World Data

On the ODEBench, FIM-ℓ achieved a Mean Absolute Error (MAE) of 0.17, significantly outperforming the state-of-the-art symbolic regression model ODEFormer (MAE: 1.18). In real-world scenarios with 50% missing data, FIM-ℓ outperformed established baselines like BRITS and CSDI on half of the tested datasets, despite those baselines being specifically trained on the target data. For large temporal gaps (20% block missingness) in Navier-Stokes simulations, FIM achieved an MAE of 0.051, compared to 0.076 for specialized LatentODE models.

Phase Portrait Recovery

One of the most significant emergent capabilities of FIM is its ability to reconstruct a system's phase portrait—the relationship between position and velocity—even when provided with noisy observations of only a single coordinate.

Zero-shot phase portrait recovery of a dynamical system from noisy, partial observations.

This demonstrates that the model effectively "hallucinates" the underlying physical laws correctly based on its synthetic training.

Discussion and Limitations

While FIM demonstrates remarkable zero-shot capabilities, it faces challenges with extremely high-frequency oscillations where observations are too sparse to capture the dynamics (e.g., in certain Van der Pol oscillator regimes). Additionally, performance may degrade if real-world systems exhibit non-smooth jumps or dynamics entirely unrepresented in the synthetic training set.

Future work aims to extend this framework to zero-shot forecasting and to develop more sophisticated emission models to handle non-Gaussian noise typical of physical sensors. By providing a pretrained foundation for dynamical inference, FIM offers a powerful tool for scientific discovery in data-scarce domains.

Summary updated

BibTeX
@inproceedings{seifner2025foundational,
  author = {Patrick Seifner and Kostadin Cvejoski and Ramsés J. Sánchez},
  title = {{Foundational Inference Models for Dynamical Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=NPSZ7V1CCY},
}
Figure