FMint: Bridging Human Designed and Data Pretrained Models for Differential Equation Foundation Model

Zezheng Song, Jiaxin Yuan, Haizhao Yang · OpenReview

Abstract

In this paper, we propose a pre-trained foundation model FMint (Foundation Model based on Initialization), designed to speed up large-scale simulations of various differential equations with high accuracy via error correction. Human-designed simulation algorithms excel at capturing the fundamental physics of engineering problems, but often need to balance the trade-off between accuracy and efficiency. While deep learning methods offer innovative solutions across numerous scientific fields, they frequently fall short in domain-specific knowledge. FMint bridges these gaps through conditioning on the initial coarse solutions obtained from conventional human-designed algorithms, and trained to obtain refined solutions for various differential equations. Based on the backbone of large language models, we adapt the in-context learning scheme to learn a universal error correction method for dynamical systems from given prompted sequences of coarse solutions. The model is pre-trained on a corpus of 600K ordinary differential equations (ODEs), and we conduct extensive experiments on both in-distribution and out-of-distribution tasks. FMint outperforms various baselines on large-scale simulation, and demonstrates its capability in generalization to unseen ODEs. Our approach achieves an accuracy improvement of 1 to 2 orders of magnitude over state-of-the-art dynamical system simulators, and delivers a 5X speedup compared to traditional numerical algorithms.

Introduction

Simulating dynamical systems, typically represented by Ordinary Differential Equations (ODEs), is a cornerstone of scientific research, spanning fields from meteorology to pharmacology. However, a persistent "accuracy-efficiency trade-off" plagues traditional numerical solvers. High-precision methods like Runge-Kutta require infinitesimal time steps, leading to significant computational overhead. Conversely, while pure deep learning models offer speed, they often lack physical grounding and require massive datasets to generalize.

FMint addresses this gap by acting as a "universal error corrector." It leverages the structural reliability of human-designed algorithms while utilizing the pattern-recognition capabilities of large-scale transformer pre-training.

Methodology: In-Context Learning for Physics

The core innovation of FMint lies in its hybrid architecture. Instead of predicting system states from scratch, FMint focuses on predicting the error correction term relative to a "coarse solution" generated by a fast, traditional solver (e.g., the Euler method with large time steps).

The FMint architecture utilizes a transformer backbone to process multi-modal embeddings, including coarse solutions, error corrections, and optional textual prompts.

The model employs a decoder-only transformer backbone adapted for In-Context Learning (ICL). It processes sequences of "prompts" consisting of pairs of coarse solutions and their corresponding ground-truth error terms. This allows the model to learn the relationship between approximations and true solutions dynamically. Furthermore, FMint can optionally incorporate textual descriptions of the ODE (e.g., "Lorenz system with chaotic behavior") to provide high-level domain knowledge.

Datasets and Evaluation

FMint was pre-trained on a massive corpus of 600,000 ODEs spanning major families including Lorenz models (chaotic), Damped Oscillators (periodic), Van der Pol oscillators (limit cycles), and Lotka-Volterra (predator-prey).

To evaluate generalization, the model was tested on out-of-distribution (OOD) systems not seen during training, such as the Driven-damped pendulum, FitzHugh-Nagumo neuron dynamics, and the Rössler attractor. This rigorous testing ensures the model acts as a foundation for general dynamical systems rather than just memorizing specific trajectories.

Key Results and Insights

FMint demonstrates superior performance in both accuracy and speed. It achieves 10 to 100 times higher accuracy (measured in MAE and RMSE) than state-of-the-art simulators like Neural ODE and ICON-LM across both in-distribution and out-of-distribution tasks.

Comparison of FMint predictions against coarse and fine ODE solvers for Lorenz and Van der Pol systems.

Key findings include:

  • Efficiency: FMint provides a 5X speedup over high-precision numerical algorithms (like RK4) while maintaining comparable accuracy.
  • Robustness: The model successfully simulates chaotic systems where traditional solvers often diverge at large time steps.
  • Data Efficiency: FMint can adapt to unseen ODEs with as few as 25 trajectories, significantly outperforming baselines that require tens of thousands.
  • Textual Guidance: Natural language descriptions help the model navigate complex transitions, such as the shift from periodic to chaotic regimes, which are notoriously difficult for pure numerical models.

Conclusion and Future Work

FMint represents a significant step toward a foundation model for dynamical systems. By combining classical initialization with transformer-based error correction, it bypasses traditional speed-accuracy bottlenecks. Future work will focus on extending this framework to Partial Differential Equations (PDEs) and exploring performance in extremely high-dimensional systems like complex fluid dynamics or climate modeling.

Summary updated

BibTeX
@inproceedings{song2025fmint,
  author = {Zezheng Song and Jiaxin Yuan and Haizhao Yang},
  title = {{FMint: Bridging Human Designed and Data Pretrained Models for Differential Equation Foundation Model}},
  booktitle = {Advanced},
  year = {2025},
  doi = {10.1002/adts.202500062},
}
Figure