TFMLab

Machine-learning lifecycle

Topics

From business use case to deployment, with one transaction foundation model as the running example. Click any stage, or let the payment travel.

Business use case

Which decisions a TFM improves, and what they are worth.

  1. Use cases & valueFraud, credit, marketing: where one model pays off across a business.7 labs

Data engineering

Getting raw transactions into a shape a model can read.

  1. Data & tokenizationTurning raw transactions into integers a model can read.1 lab

Data quality & QC

Checks that keep bad, missing or leaking data out of training.

  1. Data quality checksValidation, drift and leakage checks before a model sees the data.coming soon

Feature engineering

Turning fields and events into learned representations.

  1. EmbeddingsLearned vectors for tokens, events and whole customers.7 labs

Model architecture

The transformer parts inside the model and how they fit together.

  1. Transformer foundationsSoftmax, masks, normalization: the parts every transformer shares.11 labs
  2. Field attentionReading the fields of one transaction together.2 labs
  3. Sequence attentionReading a customer’s history in order, causally.7 labs
  4. Encoder architectureThe stacks, bridge and bottleneck inside the model.7 labs

Modeling & training

Pretraining, optimisation, validation and task heads.

  1. PretrainingLearning from unlabelled history with next-event prediction.2 labs
  2. Training & validationTwo-phase training, checkpoint choice and out-of-time tests.2 labs
  3. Fine-tuning & headsSmall task heads on top of a shared encoder.5 labs

Deployment & monitoring

Serving the model and putting its outputs into real decisions.

  1. Serving & consumptionHow the embedding reaches real decisions.5 labs