In-Context Learning of Stochastic Differential Equations with Foundation Inference Models
Patrick Seifner, Kostadin Cvejoski, David Berghaus, César Ali Ojeda Marin, Ramsés J. Sánchez
Abstract
Stochastic differential equations (SDEs) describe dynamical systems where deterministic flows, governed by a drift function, are superimposed with random fluctuations, dictated by a diffusion function. The accurate estimation (or discovery) of these functions from data is a central problem in machine learning, with wide application across the natural and social sciences. Yet current solutions either rely heavily on prior knowledge of the dynamics or involve intricate training procedures. We introduce FIM-SDE (Foundation Inference Model for SDEs), a pretrained recognition model that delivers accurate in-context (or zero-shot) estimation of the drift and diffusion functions of low-dimensional SDEs, from noisy time series data, and allows rapid finetuning to target datasets. Leveraging concepts from amortized inference and neural operators, we (pre)train FIM-SDE in a supervised fashion to map a large set of noisy, discretely observed SDE paths onto the space of drift and diffusion functions. We demonstrate that FIM-SDE achieves robust in-context function estimation across a wide range of synthetic and real-world processes -from canonical SDE systems (e.g. double-well dynamics or weakly perturbed Lorenz attractors) to stock price recordings and oil-price and wind-speed fluctuations -while matching the performance of symbolic, Gaussian process and Neural SDE baselines trained on the target datasets. When finetuned to the target processes, we show that FIM-SDE consistently outperforms all these baselines. Our pretrained model, repository and tutorials are available online 1 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 85689314-c7ad-4b3a-a8ca-6e1d436ec426Cited by top-tier papers3
- In-Context Learning of Temporal Point Processes with Foundation Inference ModelsDavid Berghaus, Patrick Seifner, Kostadin Cvejoski, César Ali Ojeda Marin et al.ICLR 2026 · 8 citations
- Foundation Inference Models for Ordinary Differential EquationsJohannes Hübers, Maximilian Mauel, David Berghaus, Patrick Seifner et al.ICML 2026 · 3 citations
- Zero-shot Imputation with Foundation Inference Models for Dynamical SystemsPatrick Seifner, Kostadin Cvejoski, Antonia Körner, Ramsés J. SánchezICLR 2025
Builds on15
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
- Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 citations
- Transformers Can Do Bayesian InferenceSamuel Müller, Noah Hollmann, Sebastian Pineda-Arango, Josif Grabocka et al.ICLR 2022 · 287 citations
- Neural SDEs as Infinite-Dimensional GANsPatrick Kidger, James Foster, Xuechen Li, Terry J. LyonsICML 2021 · 214 citations
- ForecastPFN: Synthetically-Trained Zero-Shot ForecastingSamuel Dooley, Gurnoor Singh Khurana, Chirag Mohapatra, Siddartha V. Naidu et al.NeurIPS 2023 · 142 citations
Related papers
- Scalable Inference in SDEs by Direct Matching of the Fokker-Planck-Kolmogorov EquationArno Solin, Ella Tamir, Prakhar VermaNeurIPS 2021 · 23 citations
- Neural Stochastic Flows: Solver-Free Modelling and Inference for SDE SolutionsNaoki Kiyohara, Edward Johns, Yingzhen LiNeurIPS 2025 · 5 citations
- SING: SDE Inference via Natural GradientsAmber Hu, Henry Smith, Scott W. LindermanNeurIPS 2025 · 6 citations
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
- Variational Inference for SDEs Driven by Fractional NoiseRembert Daems, Manfred Opper, Guillaume Crevecoeur, Tolga BirdalICLR 2024 · 11 citations
