Universal representations for financial transactional data: embracing local, global, and external contexts

Alexandra Bazarova, Maria Kovaleva, Ilya Kuleshov, Evgenia Romanenkova, Alexander Stepikin, Alexandr Yugay, Dzhambulat Mollaev, Ivan Kireev, Andrey V. Savchenko, Alexey Zaytsev · OpenReview

Abstract: Effective processing of financial transactions is essential for banking data analysis. However, in this domain, most methods focus on specialized solutions to stand-alone problems instead of constructing universal representations suitable for many problems. We present a representation learning framework that addresses diverse business challenges. We also suggest novel generative models that account for data specifics, and a way to integrate external information into a client's representation, leveraging insights from other customers' actions. Finally, we offer a benchmark, describing representation quality globally, concerning the entire transaction history; locally, reflecting the client's current state; and dynamically, capturing representation evolution over time. Our generative approach demonstrates superior performance in local tasks, with an increase in ROC-AUC of up to 14% for the next MCC prediction task and up to 46% for downstream tasks from existing contrastive baselines. Incorporating external information improves the scores by an additional 20%.

Introduction

Modern financial institutions generate vast amounts of transactional data. Traditionally, banks have addressed business needs—such as churn prediction, credit scoring, or fraud detection—by building specialized models for each individual task. This approach is resource-intensive, requiring significant maintenance and large volumes of expert-labeled data. This paper proposes a shift toward Self-Supervised Learning (SSL) to create "universal" digital fingerprints, or embeddings, for bank customers. By training a single encoder on raw, unlabeled transaction data, banks can produce versatile representations suitable for a wide array of downstream applications.

Methodology

The researchers evaluated three primary families of unsupervised learning to determine their effectiveness in capturing "local" (immediate next event) and "global" (overall customer profile) characteristics:

  1. Contrastive Learning (e.g., CoLES, TS2Vec): These models learn by maximizing the similarity between different segments of the same user's history while minimizing similarity between different users.
  2. Generative Learning (e.g., Autoencoders, Masked Language Models, Autoregressive): These models focus on reconstructing missing parts of a sequence or predicting the subsequent transaction.
  3. Temporal Point Processes (TPP): These are specialized for handling the irregular timing inherent in financial transactions.
Overview of the self-supervised representation learning framework, illustrating the transition from unlabeled transaction data to task-specific embeddings.

A key innovation introduced is the External Context module. Recognizing that individual behavior is often influenced by broader market trends (e.g., holiday seasons or economic shifts), the authors utilized an attention mechanism to incorporate the concurrent actions of similar customers. This allows the model to distinguish between personal behavioral changes and macro-level trends.

Datasets and Evaluation

The framework was tested across four open-source datasets and one large-scale private industrial dataset containing anonymized data from 5 million customers over one year. The tasks included:

  • Churn Prediction: Identifying customers likely to exit.
  • Credit Scoring (Default): Predicting loan repayment success.
  • Fraud Identification (HSBC): Spotting fraudulent transactions.
  • Demographic Profiling (Age): Predicting customer age groups based on spending patterns.

Key Insights and Results

The study revealed a fundamental trade-off between local and global task performance. Contrastive models like CoLES excelled at global tasks by viewing sequences holistically but often missed immediate behavioral shifts. Conversely, Generative models, particularly Autoregressive (AR) models, dominated local tasks like "Next Merchant Category Code (MCC)" prediction.

Autoregressive models emerged as the most robust "all-rounders," maintaining competitive performance on global tasks while leading in local ones. Furthermore, the inclusion of the External Context module provided a significant performance boost, improving accuracy by up to 20% on the Churn dataset. In contrast, TPP models generally underperformed, suggesting that standard deep learning architectures are currently more effective for these specific embedding tasks.

Conclusion

This research demonstrates that self-supervised universal representations can significantly streamline banking analytics. By leveraging generative approaches and incorporating external context, banks can move away from fragmented, task-specific modeling toward a more unified and efficient data strategy. Future work will explore more sophisticated methods for defining customer similarity and investigate the potential of TPP models on longer transaction sequences.

Summary updated

BibTeX
@article{bazarova2024universal,
  author = {Alexandra Bazarova and Maria Kovaleva and Ilya Kuleshov and Evgenia Romanenkova and Alexander Stepikin and Alexandr Yugay and Dzhambulat Mollaev and Ivan Kireev and Andrey V. Savchenko and Alexey Zaytsev},
  title = {{Universal representations for financial transactional data: embracing local, global, and external contexts}},
  journal = {Int. J. Inf. Manag. Data Insights},
  year = {2024},
  url = {https://openreview.net/forum?id=2WcDOuGpEh},
}
Figure