Predicting symbolic ODEs from multiple trajectories

Yakup Emre Sahin, Niki Kilbertus, Sören BeckerarXiv 2025 · DOI

Introduction

In scientific discovery, identifying the governing equations of a dynamical system—typically Ordinary Differential Equations (ODEs)—from observed data is a fundamental challenge known as symbolic regression. While modern neural models have made strides, they often struggle with a single trajectory due to noise, sparsity, or structural ambiguity. In practice, researchers often have access to multiple experimental runs from different initial conditions. Traditional models fail to leverage this collective information, processing each run in isolation.

The MIO Architecture

To address this, the authors propose MIO (Multiple Instance-ODEFormer). MIO extends the transformer-based ODEFormer architecture by incorporating Multiple Instance Learning (MIL) to fuse information from several trajectories into a single symbolic prediction.

The MIO architecture processes multiple system trajectories through an encoder and an aggregator to produce a unified symbolic representation for the decoder.

The MIO pipeline consists of three primary stages:

  1. Embedding: Each trajectory is independently embedded and processed by a transformer encoder to generate instance-specific latent representations.
  2. Aggregation: An aggregator block fuses these latents. While the researchers explored complex time-aware attention mechanisms, they found that simple mean pooling offered a highly effective and computationally efficient balance.
  3. Decoding: A transformer decoder translates the aggregated representation into a symbolic mathematical expression.

Performance and Robustness

MIO was evaluated on massive synthetic datasets comprising up to 100 million non-linear ODE systems. The results demonstrate a clear advantage in using multiple trajectories, particularly for generalization—the ability to predict system behavior from unseen starting points.

Generalization accuracy of MIO variants compared to baselines across different noise levels and numbers of instances for 2D and 3D systems.

Key findings include:

  • The Power of Two: The most significant performance gain occurs when moving from one to two trajectories, suggesting that a second viewpoint resolves most structural ambiguities.
  • Superiority over Baselines: MIO consistently outperforms genetic programming (PySR), sparse regression (SINDy), and its predecessor, ODEFormer. Even when ODEFormer is given multiple attempts, MIO's single integrated prediction is more accurate.
  • Noise Resilience: Unlike classical methods that rely on sensitive numerical differentiation, MIO's transformer-based approach remains stable even with significant multiplicative Gaussian noise ($\sigma = 0.05$).

Insights and Future Directions

The success of simple mean pooling suggests that the encoder effectively maps diverse trajectories of the same system to a consistent region in latent space. Furthermore, while adding trajectories makes fitting the input data (reconstruction) slightly more constrained, it drastically improves the "truthfulness" of the discovered equations (generalization). For scientific discovery, generalization is the primary objective.

Current limitations include a focus on systems up to four dimensions and evaluation on in-distribution data. Future work aims to scale MIO to higher-dimensional biological or physical systems and develop a "universal" model capable of handling varying dimensions and trajectory counts without retraining.

Summary updated

BibTeX
@misc{sahin2025predicting,
  author = {Yakup Emre Sahin and Niki Kilbertus and Sören Becker},
  title = {{Predicting symbolic ODEs from multiple trajectories}},
  year = {2025},
  eprint = {2510.23295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23295},
}
Figure