TL;DR
This paper tackles the challenge of creating unified representations for bank transaction data that capture both short-term (local) and long-term (global) customer behavior, while also incorporating external context from other customers. They propose and evaluate generative self-supervised learning methods, finding they excel at local tasks, while contrastive methods are better for global ones. Their novel approach of using external context significantly boosts performance, especially for local tasks.
What Problem Does This Paper Address?
Banks are awash in transactional data, and leveraging this data with AI is crucial for improving customer experience, risk assessment, and operational efficiency. However, many AI tasks require understanding customer behavior at different levels: "local" (e.g., predicting the next transaction) and "global" (e.g., predicting loan repayment). Traditionally, this has meant building separate, costly models for each task. This paper aims to bridge this gap by developing a single representation learning framework that can effectively capture both local and global customer patterns, and further enhance this by incorporating "external context" – information derived from the collective behavior of other customers. This unified approach promises to reduce model complexity and improve overall performance across various banking applications.
Methods
The authors explore and adapt several self-supervised learning (SSL) paradigms for transactional data. They compare:
- Contrastive Methods: COLES and TS2Vec, which learn representations by distinguishing between similar and dissimilar data points (e.g., transactions from the same vs. different customers).
- Generative Methods: Autoencoders (AE), Masked Language Models (MLM), and Autoregressive (AR) models. These methods learn by reconstructing data or predicting missing parts, aiming to capture the underlying data distribution.
- Temporal Point Process (TPP) Models: NHP, A-NHP, and COTIC, which are specifically designed for event sequences and model the intensity of future events.
A key novelty is their external context incorporation method. This involves aggregating local representations of other users to create a context vector, which is then concatenated with a user's own representation. They explore classical aggregation methods (mean, max pooling) and an attention mechanism to learn how to best combine this external information.
Datasets
The paper uses a combination of public and private datasets:
- Public Datasets: Churn, Default, HSBC, and Age. These datasets represent various banking scenarios like customer churn, loan default prediction, fraud detection, and customer age group prediction.
- Private Dataset: A large-scale, anonymized dataset from a major bank, containing millions of customers and approximately one year of transaction data.
Key Insights and Ideas
- Generative vs. Contrastive Trade-off: Generative models (AE, MLM, AR) generally outperform contrastive methods (COLES, TS2Vec) on local tasks (like next MCC prediction), aligning with expectations. Contrastive methods are often better for global tasks.
- External Context is Powerful: Incorporating external context significantly boosts performance, especially for local tasks, with ROC-AUC improvements of up to 20%. This suggests that understanding how a customer's behavior relates to the broader customer base is crucial.
- Attention Mechanism for Context: The attention mechanism, particularly with a trainable matrix, proves effective in leveraging external context, outperforming simpler aggregation methods in many cases.
- TPP Models' Niche: Temporal Point Process models, while designed for event sequences, tend to underperform in representation learning tasks unless sequences are very long, suggesting their strength lies more in direct event intensity modeling.
- Generative Models' Sensitivity to Local Changes: Generative models (AE, AR) are shown to be more sensitive to local pattern changes in transaction sequences, reacting faster to shifts in behavior.
Key Results
- Generative models (AR, MLM) generally offer the best trade-off between local and global representation quality.
- The proposed method for incorporating external context, especially using a trainable attention mechanism, significantly improves performance on local tasks across various datasets.
- On the proprietary dataset, the AR model achieved the best local task performance, while CoLES performed comparably on global tasks.
- The paper provides a comprehensive benchmark of various SSL and TPP models on multiple downstream tasks, offering valuable insights into their strengths and weaknesses for transactional data.
Limitations and Future Work
- Dataset Imbalance: Several datasets (Default, HSBC) suffer from significant class imbalance, which complicates evaluation and can lead to increased metric variance.
- TPP Model Sequence Length: TPP models require long sequences to operate successfully, which is not always the case for local tasks.
- Computational Resources for External Context: Incorporating external context requires significant computational resources due to the need to store and process local representations of many users. The authors address this by using random subsets of users.
- Future Work: The paper suggests that further research could explore more sophisticated ways to incorporate external context and investigate the dynamic properties of representations more deeply. The authors also release their code to facilitate further research.
Summary updated