Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Point Processes: A Crash Course

This section gives the minimum background needed to use FIM-PP and is adapted from Berghaus et al. (2026).

What FIM-PP Infers

FIM-PP is a Foundation Inference Model for marked temporal point processes. A marked temporal point process is a sequence of event times

{(ti,κi)}i=1n\{(t_i, \kappa_i)\}_{i=1}^n

where each event arrives at time tit_i and carries a discrete mark κi\kappa_i describing its type.

The goal is to infer the conditional intensity

λ(t,κHt),\lambda(t, \kappa \mid \mathcal{H}_t),

which describes how likely an event of type κ\kappa is to occur at time tt given the history Ht\mathcal{H}_t.

Rather than training a new neural point-process model for every dataset, FIM-PP is pretrained on a broad synthetic distribution of point processes and then used in-context on new event data.

FIM-PP encodes context paths and attends to them when estimating the conditional intensity of a target history.

Figure 1:FIM-PP encodes context paths and attends to them when estimating the conditional intensity of a target history.

Hawkes Processes as the Training Prior

The released checkpoint is trained on a broad family of Hawkes-style processes. For each mark kk, the conditional intensity is of the form

λk(tHt)=μk(t)+(ti,κi)Htzkκiγkκi(tti),\lambda_k(t \mid \mathcal{H}_t) = \mu_k(t) + \sum_{(t_i, \kappa_i) \in \mathcal{H}_t} z_{k\kappa_i}\,\gamma_{k\kappa_i}(t-t_i),

where

This gives FIM-PP a strong prior over interpretable point-process dynamics while still allowing the pretrained model to generalize beyond the exact synthetic processes seen during training.

Inputs and Outputs

The released FIM-PP checkpoint expects a context/inference split:

Given these tensors, the model returns predicted Hawkes intensity parameters together with evaluated intensity curves. If ground-truth functions are provided, it can also return target intensity values and losses for comparison.

Zero-Shot Use vs Fine-Tuning

The released checkpoint is configured for up to 22 marks.

Example intensity estimates from the FIM-PP paper on synthetic and real-world data.

Figure 2:Example intensity estimates from the FIM-PP paper on synthetic and real-world data.

Practical Recommendation

For user-facing workflows, prefer the standardized Hugging Face path:

from transformers import AutoModel

model = AutoModel.from_pretrained("FIM4Science/fim-pp", trust_remote_code=True)

This is the primary path documented in the companion tutorial notebook. The lower-level fallback FIMHawkes.load_model(...) remains useful for debugging local checkpoints.

References
  1. Berghaus, D., Seifner, P., Cvejoski, K., Ojeda, C., & Sánchez, R. J. (2026). In-Context Learning of Temporal Point Processes with Foundation Inference Models. The Fourteenth International Conference on Learning Representations. https://openreview.net/forum?id=h9HwUAODFP