Towards Continuous-time Causal Foundation Models

Dennis Thumm, Ruben Wiedemann, Ying ChenFMSD @ ICML 2026

TL;DR

This paper introduces a framework for building continuous-time causal foundation models by training transformers on synthetic data generated from Stochastic Differential Equations (SDEs). By enforcing a "continuity criterion"—ensuring the model's behavior is invariant to how often data is observed—the authors enable zero-shot causal inference on irregularly sampled real-world data, such as medical records and physical systems.

What Problem Does This Paper Address?

Most current "causal foundation models" (like Do-PFN) are designed for tabular data or discrete-time series where observations happen at regular intervals (e.g., every second). However, the real world is messy: doctors take blood samples at irregular times, and physical sensors might have variable delays.

Simply rewriting a causal model as an SDE isn't enough. The authors point out a subtle trap: if you only calculate the SDE's state at the exact moments you observe it (naive integration), the underlying mathematical "law" of the trajectory becomes dependent on the observation schedule. This results in a "discrete-time Markov model in SDE clothing." To build a true foundation model for time series, the model must understand the underlying continuous process, regardless of when or how often we choose to look at it.

Methods

The authors propose a three-tier taxonomy for temporal priors:

  1. Tier A (Discrete): Standard models fixed to an integer grid.
  2. Tier B (Naive Continuous): SDEs integrated only at observation points.
  3. Tier C (True Continuous): SDEs integrated on a very fine internal grid and then subsampled to the observation schedule.

Key Technical Innovations: * Continuous-Time Prior: They generate synthetic datasets using random Directed Acyclic Graphs (DAGs). Each node in the graph represents a variable whose dynamics are governed by an SDE (either linear Ornstein-Uhlenbeck processes or nonlinear MLP-based drifts). * Fine-Grid Integration: To satisfy their "continuity criterion," they use Euler-Maruyama integration on a fine grid ($\Delta t_{fine}$) that is much smaller than the observation gaps. * $\Delta t$-Aware Encoder: They replace standard positional embeddings in a Transformer with Fourier embeddings of continuous time and inter-observation gaps. This allows the model to ingest timestamps directly. * Interventions: The prior includes hard, soft, and time-varying interventions, allowing the model to learn counterfactual reasoning (e.g., "What would happen to the patient if we changed the drug dose at hour 4?").

Datasets

The models are pre-trained entirely on synthetic data generated by the SDE-based prior. They are then evaluated zero-shot (without further training) on:

  • Theophylline: A classic pharmacokinetic dataset tracking drug concentration in 12 subjects.
  • Warfarin: A complex medical dataset involving drug concentration and blood clotting (prothrombin) response.
  • Causal Chamber: A real-world physical "wind tunnel" system used to test AI's ability to track dynamics and causal effects in a controlled environment.

Key Insights and Ideas

  • Integration over Architecture: The biggest "aha moment" is that how you generate the training data (integration method) matters more than the specific neural architecture. Using fine-grid integration (Tier C) makes the model significantly more robust.
  • The Encoder Paradox: When the data is generated using true continuous-time integration, the choice of encoder (positional vs. time-aware) becomes almost irrelevant. The model learns the underlying physics so well that it doesn't need explicit "time-gap" features to compensate for discretization errors.
  • Schedule Invariance: A foundation model should treat the observation schedule as "pure measurement." If a model's predictions change just because you sampled the data twice as often, it hasn't truly captured the causal mechanism.

Key Results

  • Naive vs. Fine: In a $2 \times 2$ ablation study, fine-grid integration (Tier C) outperformed naive integration (Tier B) in 100% of the experimental cells (8/8).
  • SDE Limit: The performance gap between "True Continuous" and "Naive" models grows as the evaluation grid becomes finer, proving that Tier C models better approximate the true SDE limit.
  • Zero-Shot Success: Despite never seeing real-world data during training, the model achieved a Pearson correlation of $r \approx 0.88$ on Warfarin concentration and $r = 0.95$ on wind-tunnel fan speeds, demonstrating powerful transferability from synthetic SDEs to real physics.

Limitations and Future Work

  • Model Scale: The experiments used relatively small models (1.1M parameters) and short training runs (10k steps). Scaling these to larger Transformers is a natural next step.
  • Noise Complexity: The current prior assumes Markovian noise. Real-world systems often have time-correlated noise or hidden "non-Markovian" confounders that aren't yet fully addressed.
  • Statistical Rigor: The authors note that while the results are consistent, multi-seed replication is needed to fully "harden" the cross-prior agreements.
  • Broader Mechanisms: Future work aims to include jump-diffusion SDEs and more complex hidden states to better model sudden events (like a patient suddenly reacting to a treatment).

Summary updated

BibTeX
@inproceedings{thumm2026towards,
  author = {Dennis Thumm and Ruben Wiedemann and Ying Chen},
  title = {{Towards Continuous-time Causal Foundation Models}},
  booktitle = {FMSD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=iZO7RRZDCC},
}
Figure