Problem
A bank's corporate and SME modeling team supports many ML models: credit scoring, pre-approved offers, product propensity, retention and fraud monitoring. Each model needs production data marts with interpretable features, and each domain has about 500-1000 features computed by expert-designed algorithms. Building the marts is costly, and data quality and feature correctness need constant monitoring. Credit-history factors are usually taken only as monthly snapshots, although the bank stores the history daily.
Example from the article: one client (id_00001) has five transactions between 2021-12-03 and 2022-02-04, from 90,000 to 10,500,000 in amount. The team encodes them as arrays of dates, types, masks, classes and amounts for a network, not as monthly features.
Solution in brief
Turn each client's transactions, balances and credit history into an event sequence, encode the attributes and feed it to an LSTM or GRU. The output vector is a client embedding. Its components replace domain features or are added to them, giving similar or better ranking quality.
Questions this case answers
- How to replace a large hand-built feature mart with learned representations of raw event sequences for several prediction tasks
- How to turn daily-stored histories that are only used as point-in-time snapshots into model input that keeps the dynamics
- How to cut the cost of building and maintaining hundreds of hand-made features for credit scoring and product propensity models?
- How to use transaction, balance and credit-history sequences as model input instead of monthly snapshot features?
Tools and methods
- LSTM / GRU — turn a sequence of events into one client vector
- CoLES (Contrastive Learning for Event Sequences) — unsupervised, task-independent client embeddings
- Frequency encoding and
torch.nn.Embedding— turn categorical event attributes into model input - PyTorch, PyTorch-LifeStream — modeling on GPU servers and the CoLES implementation
- PySpark, Hadoop — assemble and store the sequences
Google or a one-time email code. No password.