How a neural network outperformed boosting, and Sber's team took 1st place in the Data Fusion Contest 2022

30 Jun 2022

Problem

Two organizations hold depersonalized event logs of the same people, with no shared client ID. The task is to find, for each bank client, the most likely clients of an internet provider. The logs differ in structure: card transactions on one side, web visits on the other. Boosting on hand-made aggregates is the usual start; the organizers' baseline scored R1 = 0.2217.

Example from the article: in Data Fusion Contest 2022 (Matching task) 15.4 million transactions of 17,581 bank clients had to be matched with 94.8 million clicks of 14,671 provider clients, returning the 100 most probable provider clients for each bank client.

Solution in brief

Train one sequence encoder for transactions and clicks so that the same person lands close in a shared embedding space. Training is contrastive: the matched pair is pulled together, random provider clients are pushed away. Augmentations and an ensemble of eleven networks added the final gain.

Questions this case answers
  • How to link records about the same person across two independent event logs of different types when no common identifier exists and the raw data cannot leave its owner
  • How to match customers across a bank's transaction data and a provider's clickstream when there is no shared identifier?
  • How to build embeddings of event sequences from two different domains in one vector space?
  • How to beat a feature-engineering plus gradient-boosting baseline on a ranking task with sequence data?

Tools and methods

  • PyTorch-Lifestream — Sber's open library with ready encoders and contrastive training for event sequences.
  • Siamese-style contrastive training — pairwise L2 distances between bank and provider embeddings with a softmax loss.
  • Event sequence encoder — a per-event encoder plus an RNN that compresses a sequence into one vector.
  • Gradient boosting on aggregates — the baseline the neural approach had to beat.
  • Ensembling — averaging the distance matrices of networks trained with different seeds.
Continue reading — it's free

Google or a one-time email code. No password.