Lune

NeurIPS2025Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ForecastPFN: Synthetically-Trained Zero-Shot Forecasting cites Transformers Can Do Bayesian Inference
  • In-Context Learning of Temporal Point Processes with Foundation Inference Models cites Zero-shot Imputation with Foundation Inference Models for Dynamical Systems
  • In-Context Learning of Temporal Point Processes with Foundation Inference Models cites Transformers Can Do Bayesian Inference
  • In-Context Learning of Temporal Point Processes with Foundation Inference Models cites Foundation Inference Models for Ordinary Differential Equations
  • Foundation Inference Models for Ordinary Differential Equations cites In-Context Learning of Temporal Point Processes with Foundation Inference Models
  • Foundation Inference Models for Ordinary Differential Equations cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Foundation Inference Models for Ordinary Differential Equations cites Zero-shot Imputation with Foundation Inference Models for Dynamical Systems
  • Foundation Inference Models for Ordinary Differential Equations cites ForecastPFN: Synthetically-Trained Zero-Shot Forecasting
  • Foundation Inference Models for Ordinary Differential Equations cites Transformers Can Do Bayesian Inference
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. 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
  2. Foundation Inference Models for Ordinary Differential EquationsJohannes Hübers, Maximilian Mauel, David Berghaus, Patrick Seifner et al.ICML 2026 · 3 citations
  3. Zero-shot Imputation with Foundation Inference Models for Dynamical SystemsPatrick Seifner, Kostadin Cvejoski, Antonia Körner, Ramsés J. SánchezICLR 2025

Builds on15

  1. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
  2. Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 citations
  3. Transformers Can Do Bayesian InferenceSamuel Müller, Noah Hollmann, Sebastian Pineda-Arango, Josif Grabocka et al.ICLR 2022 · 287 citations
  4. Neural SDEs as Infinite-Dimensional GANsPatrick Kidger, James Foster, Xuechen Li, Terry J. LyonsICML 2021 · 214 citations
  5. ForecastPFN: Synthetically-Trained Zero-Shot ForecastingSamuel Dooley, Gurnoor Singh Khurana, Chirag Mohapatra, Siddartha V. Naidu et al.NeurIPS 2023 · 142 citations

Related papers

  1. Scalable Inference in SDEs by Direct Matching of the Fokker-Planck-Kolmogorov EquationArno Solin, Ella Tamir, Prakhar VermaNeurIPS 2021 · 23 citations
  2. Neural Stochastic Flows: Solver-Free Modelling and Inference for SDE SolutionsNaoki Kiyohara, Edward Johns, Yingzhen LiNeurIPS 2025 · 5 citations
  3. SING: SDE Inference via Natural GradientsAmber Hu, Henry Smith, Scott W. LindermanNeurIPS 2025 · 6 citations
  4. Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
  5. Variational Inference for SDEs Driven by Fractional NoiseRembert Daems, Manfred Opper, Guillaume Crevecoeur, Tolga BirdalICLR 2024 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines