Foundation Models for Event Prediction Across Heterogeneous Event Logs
Organizations: Celonis
Abstract
Event logs are ubiquitous across real-world domains, including business processes, manufacturing workflows, healthcare, and many other operational systems. Yet event logs can differ substantially in their event semantics, label spaces, interaction patterns, and temporal scales, making it difficult to build a single foundation model that generalizes directly to previously unseen systems. We address this challenge with the Foundation Event Predictor (FEP), a simple and scalable in-context architecture that performs next-event prediction through learned, event-level nonparametric inference. Causal self-attention encodes context and target histories into key and query representations, respectively, while the observed next context events are encoded as values. Cross-attention then performs learned, relevance-weighted aggregation of next-event outcomes over all context transitions, allowing the entire nonparametric prediction procedure to be expressed as standard attention operations and efficiently parallelized with modern kernels such as FlashAttention. To promote cross-system generalization, we introduce permutation-robust embedding learning and random fixed embeddings to decouple event IDs from persistent semantics, together with empirical quantile transforms and robust normalization to handle diverse temporal scales. We pretrain FEP on 696 real-world event datasets spanning heterogeneous event systems and evaluate it on 50 held-out datasets unseen during pretraining. Across these datasets, FEP generalizes effectively to new event systems without parameter adaptation, frequently approaching the performance of strong models trained separately on each target dataset while substantially outperforming existing foundation-model baselines, particularly on challenging prediction tasks.
Figures & tables
| Method | MAE score | Accuracy score |
|---|---|---|
| Transformer | ||
| GRU | ||
| Neural Hawkes | ||
| Transformer Hawkes | ||
| IFTPP | ||
| FEP (Local) |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Latency (ms) | Queries/s | Peak memory (GiB) | |||||
| # Context seq. | # Context K/V tokens | Standard | FA2 | Standard | FA2 | Standard | FA2 |
| 8 | 792 | 2.118 | 2.182 | 472.2 | 458.2 | 0.039 | 0.038 |
| 16 | 1,584 | 2.124 | 2.185 | 470.7 | 457.6 | 0.042 | 0.040 |
| 32 | 3,168 | 2.120 | 2.191 | 471.7 | 456.5 | 0.050 | 0.045 |
| 64 | 6,336 | 2.112 | 2.188 | 473.5 | 457.0 | 0.064 | 0.055 |
| 128 | 12,672 | 2.121 | 2.196 | 471.5 | 455.5 | 0.094 | 0.073 |
| # Context seq. (tokens) | Latency reduction | Throughput increase | Memory reduction |
|---|---|---|---|
| 2,048 (203K) | 19.3% | 23.9% | 42.1% |
| 4,096 (406K) | 27.8% | 38.5% | 42.8% |
| 8,192 (811K) | 34.7% | 53.0% | 43.3% |
| 12,288 (1.2M) | 37.5% | 60.0% | 43.4% |
| 16,384 (1.6M) | 39.1% | 64.1% | 43.5% |
| Setting | Accuracy (%) | NMAE |
|---|---|---|
| Random fixed | ||
| Learned + permutation | ||
| Learned, no permutation |
| Medical Appointments | Beijing Air Quality | NASA SMAP/MSL | ||||
|---|---|---|---|---|---|---|
| Method | Accuracy | NMAE | Accuracy | NMAE | Accuracy | NMAE |
| Transformer | ||||||
| GRU | ||||||
| Neural Hawkes | ||||||
| Trans. Hawkes | ||||||
| IFTPP | ||||||
| Dataset and source | #Cases | #Act. | Length | Duration |
|---|---|---|---|---|
| Environmental monitoring | ||||
| Beijing Air Quality ( Chen , 2017 ) | 12 | 5 | 4 387 | 1 218 |
| Hourly PM2.5 observations from 12 Beijing stations. Values are discretized into six AQI categories and only transitions between categories are retained. | ||||
| EPA AQS Ozone ( EPA AQS ) | 1 225 | 6 | 186.1 | 205.6 |
| Hourly ozone measurements from US EPA monitoring sites. Concentrations are mapped to six AQI categories and only changes in category are emitted as events. | ||||
| EPA AQS PM2.5 ( EPA AQS ) | 1 029 | 6 | 57.60 | 290.9 |