On Foundation Models for Temporal Point Processes to Accelerate Scientific Discovery

David Berghaus, Patrick Seifner, Kostadin Cvejoski, Ramsés J. SánchezarXiv 2025 · DOI

Introduction

In many scientific fields—ranging from seismology and finance to medicine—researchers analyze sequences of discrete events occurring at irregular intervals. These sequences are mathematically modeled as Marked Temporal Point Processes (MTPPs). While deep learning has significantly advanced the modeling of these processes, current state-of-the-art methods suffer from a critical lack of transferability. Typically, a new model must be trained from scratch for every new dataset, a process that is computationally expensive and data-intensive.

To address this, the authors introduce FIM-PP, the first foundation model for MTPPs. By pretraining a Transformer-based architecture on millions of simulated event sequences, the model performs "in-context" inference, allowing it to estimate the underlying dynamics of unseen datasets in a zero-shot manner.

Methodology: The FIM-PP Framework

The core innovation of FIM-PP is treating TPP inference as an in-context learning task, similar to how Large Language Models (LLMs) process text. The architecture utilizes a Transformer encoder-decoder structure designed to map observed event sequences directly to an underlying intensity function.

The FIM-PP architecture uses a Transformer encoder to process context sequences and a decoder to generate intensity estimates based on history and marks.

Architecture Components

  1. Context Encoder: A set of observed event sequences (the context) is passed through a Transformer encoder to create a summary representation of the underlying dynamics.
  2. Target Decoder: A specific sequence (the target history) acts as a query for the Transformer decoder.
  3. Intensity Parameterization: The output is a context-aware embedding that parameterizes a flexible conditional intensity function $\lambda(t, \kappa | H_t)$. This function combines a base intensity with an exponential decay component to capture complex excitatory and inhibitory effects between events.

Training and Data

FIM-PP is pretrained on a massive, diverse synthetic dataset generated using Ogata’s Thinning Algorithm. The training data consists of millions of sequences sampled from a broad prior over Hawkes processes, including various functional forms for base intensities (constant, sinusoidal, exponential) and different interaction kernels. This approach allows the model to learn the general "physics" of event dynamics—how events trigger or inhibit one another—rather than just memorizing specific sequence patterns.

Key Results and Zero-Shot Generalization

The most significant finding is FIM-PP's ability to generalize to entirely new types of dynamics without retraining. By observing a few context examples, the model accurately "recognizes" the pattern and provides a precise intensity estimate.

Qualitative results showing FIM-PP (blue line) tracking ground-truth intensity (dashed line) across Classical Hawkes, Gamma Base, and Poisson processes.

Performance Highlights

  • Visual Accuracy: Qualitative evaluations demonstrate that FIM-PP’s zero-shot estimates track ground-truth intensities almost perfectly, even for complex, multi-modal dynamics.
  • Competitive Benchmarking: In zero-shot mode, FIM-PP matches the predictive performance of specialized MTPP models trained specifically on target datasets.
  • Fine-tuning Efficiency: While zero-shot performance is robust, rapid fine-tuning on target data allows FIM-PP to outperform existing state-of-the-art methods across most evaluated tasks.

Discussion and Future Directions

By focusing on the estimation of the intensity function—an infinitesimal operator—FIM-PP remains more interpretable than standard "black-box" sequence models. The intensity has direct physical or statistical meaning, which is crucial for scientific discovery.

However, challenges remain, such as the "sim-to-real" gap and the context window constraints inherent to Transformer architectures. Future work involves applying FIM-PP to diverse real-world scientific problems. The authors intend to release the pretrained model and repository to the public to foster further research in this domain.

Summary updated

BibTeX
@misc{berghaus2025foundation,
  author = {David Berghaus and Patrick Seifner and Kostadin Cvejoski and Ramsés J. Sánchez},
  title = {{On Foundation Models for Temporal Point Processes to Accelerate Scientific Discovery}},
  year = {2025},
  eprint = {2510.12640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.12640},
}
Figure