Overview
FIM-PP (Foundation Inference Model for Point Processes) is the first foundation model for Marked Temporal Point Processes (MTPPs) that leverages in-context learning to predict event sequences without requiring training on a specific target dataset. By pretraining on a massive, diverse synthetic dataset, the model can infer the underlying dynamics of new real-world systems "zero-shot" or with minimal, lightning-fast fine-tuning.
The Problem: A Foundation Model Gap for Event Data
Temporal Point Processes (TPPs) are the mathematical backbone for modeling asynchronous, irregular events—such as taxi pickups, retweets, or stock market trades. Traditionally, modeling a new dataset required training a specialized neural network from scratch. This approach is computationally expensive and fails to leverage the general rules of event dynamics that might apply across different domains.
The authors identify a "foundation model gap." While Large Language Models (LLMs) have revolutionized text processing by pretraining on massive corpora, event data—the very lifeblood of digital interactions—has lacked a corresponding general-purpose model. The primary challenge is that event sequences vary wildly in time scales, event types (marks), and causal structures.
Methodology: FIM-PP Architecture
To address this gap, FIM-PP shifts the paradigm from training specialized models to inference via a generalized foundation model.
- In-Context Learning (ICL): Instead of learning a fixed set of weights for a single dataset, the model takes a "context" (a set of example sequences from a system) and a "history" (the current sequence) to predict future events.
- Hierarchical Transformer Architecture:
- An Encoder processes multiple context sequences independently and combines them into a global representation of the system's dynamics.
- A Decoder uses the current event history as a "query" to look up relevant patterns in the encoded context.
- Intensity Parametrization: Rather than merely predicting the next timestamp, the model predicts the parameters of a flexible conditional intensity function. This allows the model to remain interpretable, revealing the instantaneous rate at which events are expected to occur.
- Instance Normalization: To handle vastly different time scales (e.g., milliseconds vs. months), the model scales all temporal data to a canonical range based on the maximum inter-event time in the context.
Training and Evaluation Data
- Pretraining: The model was pretrained on a massive synthetic dataset of 14.4 million events generated from 72,000 different Hawkes and Poisson processes. These included diverse interaction kernels (excitatory, inhibitory, and neutral) and varying base intensities (constant, sinusoidal, and Gamma-shaped).
- Evaluation (Real-World): FIM-PP was tested on five standard benchmarks: Amazon (product reviews), Taxi (NYC trip records), Taobao (e-commerce interactions), StackOverflow (badge awards), and Retweet (information cascades).
Key Insights
- Synthetic Data is Sufficient: A striking finding is that a model pretrained entirely on synthetic data can generalize to complex real-world datasets. This suggests that the "vocabulary" of event dynamics is finite and can be effectively captured through diverse simulations.
- Amortized Inference: By amortizing the cost of learning during pretraining, the model effectively performs a soft version of Bayesian inference at test time simply by conditioning on the provided context.
- Interpretability: Unlike black-box sequence models, FIM-PP estimates the infinitesimal operators of the system, allowing researchers to study physically relevant observables like stationary distributions or causal interaction graphs.
Experimental Results
- Zero-Shot Prowess: In zero-shot mode (no training on the target data), FIM-PP matched or outperformed specialized, state-of-the-art models (like CDiff and NHP) on multi-event prediction for datasets like Taxi and Retweet. As seen above, the zero-shot intensity estimates closely track the ground truth.
- Rapid Fine-Tuning: When allowed just a few minutes of fine-tuning, FIM-PP became the top performer across nearly all benchmarks and metrics.
- Efficiency: Fine-tuning FIM-PP takes only minutes on a single GPU, compared to the hours typically required to train baseline models from scratch.
- Scale Invariance: Thanks to its normalization scheme, the model successfully transferred its knowledge across datasets with vastly different absolute time units.
Limitations and Future Directions
While powerful, FIM-PP has limitations. The zero-shot model occasionally struggled with specific patterns not well-represented in the synthetic prior, such as strict oscillations between two specific event types or datasets heavily dominated by a single mark. Additionally, the current architecture is constrained by a maximum number of event types (22) and a fixed maximum sequence length.
Future work will focus on broadening the synthetic pretraining distribution to include more exotic patterns and exploring "intensity-free" (purely generative) versions of the foundation model to improve long-horizon forecasting.
Summary updated