Predicting the future is rarely about a single "correct" answer. If you bet on black at a roulette wheel, the future splits into two very different, yet equally realistic, paths. Traditional forecasting models, however, often try to split the difference, producing an "average" prediction that—while mathematically close to both outcomes—is physically impossible.
A new paper from researchers at the Applied AI Institute and several partner institutions, titled "Realism VS Accuracy: Event Sequence Forecasting from a Generative Modeling Perspective," tackles this head-on. They argue that for complex event sequences, we need to stop choosing between being "right" and being "realistic."
TL;DR
The authors introduce a new benchmark for event sequence forecasting that evaluates models on both prediction accuracy and distributional realism. They uncover a fundamental trade-off where accurate models often produce unrealistic sequences, then introduce Wasserstein BaryBooster, a novel algorithm that aggregates multiple realistic samples into a single, state-of-the-art accurate forecast.
What Problem Does This Paper Address?
Event sequences are everywhere: credit card transactions, clinical records, or player actions in an online game. These aren't just timestamps; they are "heterogeneous," meaning each event has a mix of numerical (e.g., transaction amount) and categorical (e.g., merchant type) features.
Most prior work, particularly in Temporal Point Processes (TPP), focuses almost exclusively on accuracy—how close a prediction is to the actual ground truth. However, in multi-horizon forecasting, aiming for the "mean" can lead to what the authors call the "pathology of the mean."
As shown in Figure 1, a model trying to minimize error might predict a "cheap" category (a bus ride) with an "expensive" amount (averaged from a restaurant visit), creating a sequence that never happens in the real world. This paper argues we need models that are both accurate and realistic.
Methods
To study this, the authors built a comprehensive benchmark and developed several key components:
- New Metrics:
- Temporal Matching Score (TMS): A novel accuracy metric that uses optimal transport to align predicted and ground-truth events, handling heterogeneous features on a common scale.
- Conditional Detection Fooling Score (cDFS): A realism metric that measures how well a generated sequence "fools" a trained discriminator into thinking it's real, given the preceding history.
- Model Adaptations: They adapted cutting-edge generative models, including Latent Diffusion Models (LDM) and Data-space Diffusion Models (DDM), to handle sequential, heterogeneous data.
- Wasserstein BaryBooster: This is the paper's "secret sauce." It’s a post-hoc procedure that takes $N$ stochastic samples from a realistic generative model (like an LDM) and finds their "Wasserstein barycenter"—essentially the most representative "average" sequence that remains grounded in the manifold of realistic samples.
Datasets
The authors curated three large-scale, real-world card transaction datasets for the benchmark:
- Gender: 14k sequences (15 months).
- Age: 30k sequences (2 years).
- Alphabattle: 135k sequences (2 years).
These were chosen specifically because they contain long sequences with rich, heterogeneous features, unlike many standard TPP datasets that only track timestamps and a single event type.
Key Insights and Ideas
- The Fundamental Trade-off: The most striking finding is the Pareto front between realism and accuracy. Models like DEF (a state-of-the-art non-diffusion model) are highly accurate but fail realism tests completely. Conversely, LDM produces highly realistic sequences but struggles with point-accuracy.
- The "Repeat" Baseline is a Sleeping Giant: A simple baseline that just repeats the last $L$ events from history actually sits on the Pareto front for accuracy. It’s hard to beat "more of the same" when it comes to simple error metrics.
- Realism can be "Converted" to Accuracy: The Wasserstein BaryBooster proves that you don't have to sacrifice one for the other. By aggregating realistic samples, it moves the LDM from a "realistic but inaccurate" position to the top of the accuracy leaderboards.
Key Results
The experiments revealed a sharp split in model performance:
- Realism (cDFS): LDM was the clear winner, often achieving near-perfect realism scores (e.g., 1.000 on the Age dataset), while most other learned models collapsed toward zero.
- Accuracy (TMS): DEF and the "Repeat" baseline initially led the pack.
- The Booster Effect: When LDM-WB (LDM with Wasserstein BaryBooster) was applied, it achieved the highest TMS across all datasets, outperforming the previous state-of-the-art (DEF) while maintaining significantly higher realism than any other accurate predictor.
Limitations and Future Work
The authors acknowledge a few hurdles:
- Domain Specificity: The current benchmark is heavily focused on financial transactions. While they showed some transferability to other domains (like Retweet data), more diverse datasets are needed.
- Computational Cost: The BaryBooster is a post-hoc optimization that requires generating multiple samples (the authors used $N=30$) and solving an iterative alignment problem, which adds significant overhead at inference time.
- Future Directions: The authors suggest this work opens the door for "foundation models" for event sequences—single generative models that can be adapted for various downstream tasks (forecasting, anomaly detection, etc.) without retraining.
For those interested in diving deeper or testing their own models, the code and benchmark are available at https://github.com/xaosina/event-sequence-forecasting.
Summary updated