Fine-Tuning Transaction User Models

Daniel Braithwaite, Misael Cavalcanti, Hiroto Udagawa14 May 2025

Problem

A bank has a transformer that turns a customer's transaction history into one embedding. A task model must tune this embedding to a target and add tabular data such as bureau information, which the sequence lacks. The usual route freezes the embedding and feeds it, with the tabular features, to a gradient-boosted tree (GBT). Then the embedding cannot learn from what the tabular features already say. Neural networks on tabular data, meanwhile, often lose to trees.

Example from the article: Nubank blends transaction-transformer embeddings with its tabular features on internal benchmark tasks, against a LightGBM baseline on the features alone.

Solution in brief

Fine-tune the transformer with a prediction head on the user embedding. To add tabular features, replace the tree with a neural blending head (DCNv2 on embedded features) and train it jointly with the transformer ("joint fusion"). Matching trees on tabular data needs numerical feature embeddings, regularization and a normalized transformer embedding.

Questions this case answers
  • How to combine learned embeddings of an event sequence with existing tabular features in one model so that the embedding encoder learns what the tabular features miss
  • How to combine a transaction-sequence model with tabular features such as bureau data for customer prediction
  • How to make pre-trained customer embeddings task-specific for a given prediction target
  • How to make a neural network on tabular features match gradient-boosted trees

Tools and methods

  • Supervised fine-tuning — prediction head on the user embedding, trained with the transformer.
  • Joint fusion — end-to-end training of transformer and tabular blending network.
  • DCNv2 (Deep & Cross Network v2) — cross-layer network for the embedded tabular features.
  • Numerical and categorical feature embeddings — periodic embeddings for numbers, embedding tables for categories.
  • LightGBM — tabular baseline and late-fusion blender.
Continue reading — it's free

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