Towards a Foundation Purchasing Model: Pretrained Generative Autoregression on Transaction Sequences

Piotr Skalski, David Sutton, Stuart Burrell, Iker Perez, Jason Wong

Researchers at Featurespace have introduced a "Foundation Purchasing Model" that applies self-supervised generative pretraining—the core technology behind Large Language Models (LLMs)—to financial transaction sequences. By training on over 5 billion transactions, the study demonstrates that a model can learn universal consumer behavior patterns, significantly outperforming traditional hand-crafted systems in fraud detection and financial forecasting.

The Challenge of Financial Time-Series

Traditional financial machine learning models for fraud, credit scoring, or churn detection rely heavily on "hand-engineered features" (e.g., average spend over 30 days). This approach is labor-intensive, rigid against emerging fraud patterns, and often misses complex, long-term behavioral nuances. While Natural Language Processing (NLP) has transitioned to foundation models like GPT, financial data has lagged due to its multivariate nature (amounts, timestamps, merchant codes) and irregular intervals.

The NPPR Framework

The authors propose NPPR (Next event Prediction and Past Reconstruction), a method using Gated Recurrent Units (GRUs) to process transaction sequences. Unlike Transformers, GRUs are highly efficient for real-time banking, as they update their hidden state with each new transaction without re-processing the entire history.

The NPPR architecture combines Next Event Prediction (NP) with a novel Past Reconstruction (PR) task to capture long-term behavioral patterns.

The model is trained on two simultaneous tasks:

  1. Next Event Prediction (NP): Predicting the features of the subsequent transaction (e.g., amount and merchant).
  2. Past Reconstruction (PR): Reconstructing a previous transaction given the current state and a time delta. This forces the encoder to maintain a robust "memory" of long-term behavior.

Large-Scale Pretraining

The study utilized a massive corpus from 180 European issuing banks, containing 5.1 billion transactions from 61 million cardholders over 12 months. This data was used to train the "Foundation" version of the model. Additionally, the model was tested on public benchmarks covering churn, age prediction, expenditure forecasting, and credit default.

Performance Evaluation

The results indicate that purchasing behavior can be treated similarly to language. Just as a sentence structure implies a missing word, transaction sequences imply future spending patterns. The model demonstrated "emergent semantics," where its embedding space naturally clustered similar businesses (e.g., airlines or hotel chains) without explicit category labels.

Value Detection Rate (VDR) across three datasets shows that adding NPPR embeddings to baselines significantly improves fraud detection performance at various False Positive (FP) ratios.

In fraud detection tasks, adding NPPR embeddings to baseline features provided up to a 140% uplift in the Value Detection Rate (VDR) at high-precision thresholds. NPPR consistently outperformed both hand-engineered features and other state-of-the-art self-supervised methods like CoLES and SimCSE across all benchmarks. Ablation studies confirmed that the Past Reconstruction task is vital for long-term tasks like churn prediction.

Discussion and Future Directions

While the model shows exceptional zero-shot transfer capabilities across different banks and borders, several hurdles remain. Integrating such massive models into the millisecond-latency environments of global payment processors is a significant engineering challenge. Furthermore, training on data from hundreds of banks necessitates rigorous attention to privacy and potential algorithmic bias. Future work will explore few-shot learning efficiency and the deployment of these foundation models in live production environments.

Summary updated

BibTeX
@inproceedings{skalski2023towards,
  author = {Piotr Skalski and David Sutton and Stuart Burrell and Iker Perez and Jason Wong},
  title = {{Towards a Foundation Purchasing Model: Pretrained Generative Autoregression on Transaction Sequences}},
  booktitle = {Icaif},
  year = {2023},
  doi = {10.1145/3604237.3626850},
}
Figure