EBES: Easy Benchmarking for Event Sequences

Dmitry Osin, Igor Udovichenko, Egor Shvetsov, Viktor Moskvoretskii, Evgeny Burnaev

Introduction

In domains such as finance and healthcare, data is frequently recorded as event sequences (EvS)—logs of activities characterized by irregular timing and a mix of categorical and numerical features. Despite the prevalence of this data, the research community has lacked a standardized benchmark, leading to inconsistent results and "test leakage." EBES (Easy Benchmarking for Event Sequences) is a new open-source library and benchmark designed to standardize evaluation and identify the most effective architectures for these complex datasets.

The Challenge of Event Sequences

Unlike traditional time series, which are sampled at regular intervals, event sequences are inherently irregular. They often contain missing values, varying frequencies, and a combination of discrete events and continuous measurements. This "messy" nature makes them difficult to model using standard tools.

Comparison of regular time series (a) and various event sequence types (b-d), illustrating the irregularity and complexity of EvS data.

The lack of a "level playing field" in prior research made it difficult to determine if modern architectures like Transformers or Mamba actually outperformed classic models on these irregular logs. EBES addresses this by providing a curated collection of 10 diverse datasets and a unified preprocessing pipeline.

The EBES Framework

The EBES framework introduces a rigorous two-step evaluation protocol to ensure statistical significance and prevent overfitting during hyperparameter tuning.

The EBES evaluation protocol: (1) Hyperparameter Optimization (HPO) using fixed splits and (2) Final Evaluation using Monte Carlo cross-validation across 20 random seeds.

The framework includes:

  • Standardized Protocol: HPO is conducted via Optuna (TPE) on a fixed compute budget, followed by a final evaluation using 20 random seeds to ensure results are statistically significant.
  • The EBES Library: A PyTorch-based implementation of 9 models, ranging from general-purpose sequence models (GRU, Transformer, Mamba) to specialized ones like CoLES (contrastive learning) and mTAND (multi-time attention).
  • Unified Preprocessing: A flexible, YAML-configured pipeline that handles common data issues like log-transforming fat-tailed variables and rescaling timestamps.

Benchmarking Across Diverse Datasets

The authors curated 10 datasets across three categories to test model generalization:

  • Discrete EvS: Includes industrial-scale banking data (MBD), e-commerce logs (Taobao), and loan applications (BPI17).
  • Continuous EvS: Medical records (PhysioNet 2012, MIMIC-III) and a novel synthetic Pendulum dataset designed to test temporal dynamics.
  • Time Series: Control groups like ArabicDigits to contrast EvS performance with traditional time-series models.

Key Insights: The Resilience of the GRU

The benchmark revealed several surprising findings that challenge current trends in deep learning:

  1. GRU Dominance: Classic GRU-based models, particularly when paired with contrastive pre-training (CoLES), consistently outperformed more complex architectures like Transformers and Mamba. The inductive bias of the GRU appears better suited for the temporal structure of event sequences.
  2. The Importance of Features over Order: In "stress tests" where event order was shuffled, performance on industrial datasets (like banking) dropped minimally. This suggests that for many tasks, the content of the events is more predictive than their exact sequence.
  3. Strong Baselines: A simple Multi-Layer Perceptron (MLP) acting as a "bag of features" performed within 5% of state-of-the-art models, highlighting the need for researchers to compare against simpler baselines.
  4. Domain Specificity: Models designed for regular time series (e.g., ConvTran) failed to translate effectively to irregular event sequences, confirming that EvS requires specialized modeling approaches.

Conclusion and Future Directions

EBES provides a much-needed foundation for event sequence research. While the study highlights the effectiveness of GRU-based models, it also points to future challenges, such as the high compute cost of rigorous HPO and the need to address "out-of-time" data shifts. Future iterations of EBES may expand beyond classification to include next-event prediction and time-to-event forecasting.

Summary updated

BibTeX
@inproceedings{osin2024ebes,
  author = {Dmitry Osin and Igor Udovichenko and Egor Shvetsov and Viktor Moskvoretskii and Evgeny Burnaev},
  title = {{EBES: Easy Benchmarking for Event Sequences}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure