---
id: "lib-2026-11-12-inside-plata-cerebro-a-transaction-transformer"
type: "library"
title: "Inside Plata Cerebro: a transaction transformer for credit risk (Inside Plata Cerebro: predict the next transaction, uncover credit risk)"
lang: "EN"
org: "Plata (Mexico)"
source_type: "Practitioner post"
date: "2026-11-12"
week: "2026-W46"
url: "https://nosov.ai/library/lib-2026-11-12-inside-plata-cerebro-a-transaction-transformer/"
original_url: "https://plata.careers/article/inside-plata-cerebro"
tier: "A"
tier_name: "Strong evidence"
tier_reason: "Plata, a Mexican bank, reports a transaction transformer measured out-of-time against its own production credit-risk stack, with ablations for each design choice and stated open questions; self-reported, but the method is shown in detail."
summary_basis: "full-text"
original_minutes: "18"
tags: ["business transformation", "banking credit risk", "transaction foundation model"]
---

# Inside Plata Cerebro: a transaction transformer for credit risk (Inside Plata Cerebro: predict the next transaction, uncover credit risk)

Tier A (Strong evidence): Plata, a Mexican bank, reports a transaction transformer measured out-of-time against its own production credit-risk stack, with ablations for each design choice and stated open questions; self-reported, but the method is shown in detail.

Summary based on the full text.

## In short

Plata trained Cerebro gen0, a decoder-only transformer over raw credit-card event streams from millions of accounts (billions of tokens), and measured it against the risk stack it joins in production. On the first credit-line decision it adds 8.6 percentage points of Gini for default at 60 or more days past due within six months. Once Cerebro was in the stack, removing the hand-built behavioural module cost almost nothing, so it replaced that module. Getting from nothing to production took about eight weeks and several dozen experiments.

## Key numbers

- 8.6 pp: Gini added on the first credit-line decision over the production stack (application score plus behavioural module)
- 4.3 pp: the same uplift in AUC terms
- 90%: increase in Gini uplift from self-supervised next-action pretraining, against training directly on default
- 55%: extra uplift of the residual head over the standalone transaction-only head
- about 250,000: events per second on one GPU in the forward pass, which made the historical backfill possible

## What it reports

- Uplift of 8.6 pp Gini (4.3 pp AUC) over the application score plus behavioural module, measured out-of-time and rerun independently on statements joined to the production scoring log.
- Transactions alone, without bureau or application data, rank risk better than either component of the existing stack on its own.
- Self-supervised pretraining on next-action prediction (six customer action types, amount bucket, merchant, category, time to next action) raised the Gini uplift by 90% over training directly on default, the largest single contribution.
- Amounts enter twice: as one of 20 percentile buckets per source, field and event kind, and as a signed logarithm. Time enters through rotary embeddings on event time, with no absolute dates, so the score does not change when the scoring date shifts with no new event.
- Five cross-fitted models share a pretrained starting checkpoint trained on each account's first 28 days, and an alignment loss keeps their embeddings comparable for reuse by other teams.
- A residual head trained on top of the frozen application logit gives 55% more uplift than the standalone head and matches, within noise, a heavier design that feeds application features into the transformer.
- One GPU processes about 250,000 events per second; scores and embeddings are stored point-in-time in the warehouse and pushed to decision systems.

## How they got it

Ablations against the same production baseline and target, out-of-time evaluation, customer-level folds with cross-fitting, and an independent rerun on production scoring logs. The team states one open question: whether alignment between models could leak fold information into the out-of-fold training scores (not the reported results).

## Limits

- One validated use case (first credit-line decision) at one bank; the authors say so.
- Results are self-reported in a company engineering and recruiting post; no external audit.
- Dormant accounts keep their last score because the model only rescores on new events.
- Absolute default rates and population sizes are not given.

## Why it matters for companies

This is a clear case of a sequence model replacing hand-engineered features in a regulated decision, measured against the real production baseline rather than a toy one. The transferable lessons are operational: most of the engineering went into a point-in-time data path with no future leakage, and packaging scores as a service with as-of joins let other teams use them safely. Any firm with rich event logs (transactions, orders, service interactions) can test the same pretraining idea before building more manual features.

Original: https://plata.careers/article/inside-plata-cerebro
