Abstract
Standard deep learning approaches for event sequences typically encode each user's activity in isolation, failing to account for global context or data scarcity in individual records. This paper introduces a novel framework that aggregates information from co-occurring sequences to enrich individual representations. By utilizing a unique Kernel attention mechanism, the proposed method captures complex, non-linear relationships between users, leading to significant performance improvements in predictive tasks across finance, e-commerce, and education datasets.
Introduction
In domains such as finance and e-commerce, user behavior is represented as a sequence of discrete events (e.g., transactions or clicks). Traditional models process these sequences independently, an "isolationist" approach that suffers from two primary limitations. First, data scarcity often results in stale or coarse embeddings for users with infrequent recent activity. Second, missing context prevents models from capturing external factors—such as macroeconomic shifts or seasonal trends—that influence all users simultaneously. This research proposes bridging this gap by incorporating "external information" from concurrent activities of other users to supercharge individual sequence representations.
Proposed Methodology
The researchers propose a modular pipeline designed to operate on top of existing sequence encoders, such as LSTMs or Transformers. The process follows three distinct stages:
- Encoding: A pre-trained encoder (often trained via self-supervised contrastive learning) generates embeddings for both the target user and a set of "neighboring" users active within the same temporal window.
- Aggregation: The embeddings of these neighbors are combined into a single external context vector. While several strategies were tested—including simple mean/max pooling and temporal decay (Hawkes-inspired)—the authors' primary contribution is Kernel Attention. This method employs a learnable two-layer neural network to transform embeddings before calculating similarity, allowing the model to learn intricate, non-linear relationships rather than relying on simple vector similarity.
- Concatenation: The final representation joins the target user's embedding with the newly formed context vector, providing a richer input for downstream tasks like churn prediction or fraud detection.
Experimental Setup and Datasets
The approach was validated across six large-scale, diverse datasets to ensure generalizability:
- Finance: Churn (bank exit prediction), Default (loan repayment), and HSBC (fraud detection).
- Education: Assessment (children's gameplay interaction data).
- E-commerce: Taobao (user shopping logs).
- Recommendation: MovieLens-1M (predicting user attributes from rating sequences).
Key Results and Analysis
The experimental results demonstrate that incorporating external context almost universally improves performance. Even naive aggregation methods outperformed models operating in total isolation. However, the Kernel attention method emerged as the most robust strategy, achieving the lowest mean rank across all datasets and tasks.
Specific performance gains were notable: on the Churn dataset, ROC-AUC increased from 0.743 to 0.774. In the Assessment dataset, the improvement was even more pronounced, rising from 0.871 to 0.996. The authors also identified a "self-similarity trap" in common self-supervised techniques; by using a learnable kernel, the model can transform sparse, diagonal views of user relationships into dense, information-rich affinity graphs.
Conclusion
This work demonstrates that "looking around" at concurrent user activity provides vital context that individual sequence models lack. The Kernel attention mechanism offers a scalable and effective way to aggregate this external information, providing significant boosts to predictive accuracy with minimal computational overhead during inference. Future work will explore more stable neural temporal point processes and the explicit representation of macroeconomic parameters within these context vectors.
Summary updated