[Paper Review] MLEM: Generative and Contrastive Learning as Distinct Modalities for Event Sequences
This paper introduces MLEM, a novel self-supervised method that treats generative and contrastive learning as distinct modalities for event sequence representation learning. By aligning embeddings from a pre-trained generative model with a contrastive model, MLEM achieves state-of-the-art performance across diverse tasks, outperforming both individual methods and supervised baselines on all evaluated datasets.
This study explores the application of self-supervised learning techniques for event sequences. It is a key modality in various applications such as banking, e-commerce, and healthcare. However, there is limited research on self-supervised learning for event sequences, and methods from other domains like images, texts, and speech may not easily transfer. To determine the most suitable approach, we conduct a detailed comparative analysis of previously identified best-performing methods. We find that neither the contrastive nor generative method is superior. Our assessment includes classifying event sequences, predicting the next event, and evaluating embedding quality. These results further highlight the potential benefits of combining both methods. Given the lack of research on hybrid models in this domain, we initially adapt the baseline model from another domain. However, upon observing its underperformance, we develop a novel method called the Multimodal-Learning Event Model (MLEM). MLEM treats contrastive learning and generative modeling as distinct yet complementary modalities, aligning their embeddings. The results of our study demonstrate that combining contrastive and generative approaches into one procedure with MLEM achieves superior performance across multiple metrics.
Motivation & Objective
- To investigate the effectiveness of generative and contrastive self-supervised learning for event sequence modeling.
- To determine whether generative and contrastive approaches can complement each other in representation learning.
- To develop a hybrid method that combines both paradigms without relying solely on loss-weighted fusion.
- To evaluate the robustness and generalization of self-supervised models under temporal perturbations.
- To compare self-supervised pre-training against supervised fine-tuning on real-world event sequence datasets.
Proposed method
- Proposes MLEM, a hybrid model that treats generative and contrastive representations as distinct modalities.
- Uses a contrastive model to align the embeddings of a generative model via a contrastive alignment loss.
- Applies a dual-branch encoder architecture: one branch for generative modeling (next-event prediction), another for contrastive learning (positive/negative subsequence pairs).
- Employs a contrastive loss based on MoCo-style queue and momentum update to stabilize positive sample contrast.
- Performs linear probing for downstream evaluation after pre-training on multiple datasets.
- Uses a modality alignment head to align generative and contrastive embeddings during training, inspired by multimodal contrastive learning.

Experimental results
Research questions
- RQ1Can generative and contrastive self-supervised learning be effectively combined to improve event sequence representation learning?
- RQ2Does treating generative and contrastive learning as distinct modalities lead to better performance than single-method approaches?
- RQ3How do self-supervised models compare to supervised baselines in terms of downstream task accuracy?
- RQ4How robust are these models to temporal perturbations such as event shuffling?
- RQ5In what scenarios does generative modeling outperform contrastive learning, and vice versa?
Key findings
- MLEM outperforms both standalone generative and contrastive models across all datasets, achieving state-of-the-art performance on average.
- Self-supervised pre-training consistently surpasses supervised fine-tuning on all datasets, with MLEM achieving ROC-AUC of 0.790 on ABank and 0.642 on Age.
- Generative modeling achieves superior performance on Temporal Point Process (TPP) tasks, such as next-event type and time prediction.
- Models show near-robustness to event shuffling (e.g., -1.45% performance drop on ABank), suggesting a 'bag-of-words' behavior in some cases.
- Performance degrades significantly on the Pendulum dataset when time order is perturbed, indicating sensitivity to temporal structure in time-critical sequences.
- MLEM achieves near-supervised performance (e.g., 0.790 ROC-AUC on ABank) with only 25 GPU hours, compared to 288 GPU hours for SeqNas, indicating high computational efficiency.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.