Building Foundation Models into Nubank’s AI Platform

Hiroto Udagawa11 Jun 2025

Problem

Banks usually run decisions on linear models, gradient-boosted trees and aggregated tabular features. Aggregates hide behavioral signals that sit in the raw transaction sequence. Moving to large transformer models changes data pipelines, compute and evaluation at once, and a bank does this in a highly regulated environment. Nubank (100+ million customers) had to do this inside its existing AI platform, in eight months.

Example from the article: challenger models trained on raw transaction sequences gave an average +1.20% AUC lift over four benchmark tasks, 2–3x the lift of a mature model's typical annual release.

Solution in brief

Keep what the bank already does well (data infrastructure, governance, deployment) and build only three new components: sequence data preprocessing, GPU clusters and transformer architectures. Run each use case as a challenger against the production tabular model: replicate the baseline exactly, then feed sequence data.

Questions this case answers
  • How to replace aggregated-feature models with sequence models in regulated production decisions while keeping existing data validation, governance and deployment
  • How to compare a new model architecture against a production baseline so that any metric gain is attributable to the model and not to data or evaluation changes
  • How to introduce transformer models on raw transaction sequences into a bank's existing decision engines without rebuilding the ML platform?
  • How to measure fairly whether a sequence model beats the production tabular model?

Tools and methods

  • Transformer sequence models on raw transactions — foundation models that replace aggregated tabular features.
  • Tabular baseline replication — same labels, features and evaluation as the production model, to measure the true delta.
  • Ray — scaling heterogeneous CPU/GPU clusters for data preparation, training and inference.
  • Core and custom pipelines — reusable off-the-shelf pipelines plus plug-in custom components.
  • Model Catalog, Model View, Reporting Tool — internal tools for comparing models, inspecting artifacts and building evaluation plots.
Continue reading — it's free

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