CARTA: Self-Supervised Reusable Transaction Embeddings via Heterogeneous Tokenization and Cross-Attention
Organizations: Visa Inc. Foster City, CA, USA · Massachusetts Institute of Technology Cambridge, MA, USA
Abstract
Acquiring fraud labels for payment transactions is expensive and inconsistent across tasks, and high-cardinality identifiers such as merchant names make one-hot feature pipelines infeasible at scale. We present CARTA, a self-supervised encoder that learns a compact 16-dim embedding from raw transactions without labels; the frozen embedding is then reused for label-efficient fraud probing and exploratory unsupervised risk stratification without retraining the encoder. CARTA uses type-specific projections with learned embedding tables for high-cardinality identifiers, trained with token excision and InfoNCE contrastive loss. On IEEE-CIS, its linear probe at 1% of labels exceeds a raw-feature probe at 100%; on IBM TabFormer (2M rows), its frozen embedding reaches GBDT AUPRC 0.508, above frequency encoding (0.411) and the merchant-dropping baseline (0.022), though fully-supervised CatBoost is stronger. CARTA is a label-free, reusable representation that complements task-specific supervised models.
Figures & tables
| IEEE-CIS (590,540 rows, 3.50% fraud) | TabFormer (2,000,000 rows, 0.13% fraud) | ||||||
| Method | Dim | Lin. AUPRC | GBDT AUPRC | GBDT AUC | Lin. AUPRC | GBDT AUPRC | GBDT AUC |
| Raw † | 30/68 | 0.134 ±0.002 | 0.616 ±0.006 | 0.923 | 0.013 ±0.001 | 0.022 ±0.002 | 0.835 |
| Freq. enc. ‡ | 35/69 | — | — | — | 0.023 ±0.001 | 0.411 ±0.056 | 0.871 |
| PCA-16 | 16 | 0.112 ±0.001 | 0.455 ±0.005 | 0.882 | 0.012 ±0.000 | 0.017 ±0.001 | 0.818 |
| CARTA-16 (ours) | 16 | 0.217 ±0.034 | 0.465 ±0.013 | 0.868 | 0.008 ±0.009 | 0.508 ±0.063 | 0.876 |
| CatBoost § | all | — | 0.508 | 0.907 | — | 0.711 | 0.982 |
| Method | 1% | 5% | 10% | 25% | 100% |
| Raw | 0.162 | 0.129 | 0.131 | 0.136 | 0.134 |
| PCA-16 | 0.105 | 0.111 | 0.110 | 0.114 | 0.112 |
| UMAP-16 | 0.046 | 0.049 | 0.049 | 0.050 | 0.050 |
| CARTA-16 | 0.206 | 0.219 | 0.215 | 0.219 | 0.217 |
| IEEE-CIS | TabFormer | |||
| Variant | Lin. AUPRC | GBDT AUPRC | Lin. AUPRC | GBDT AUPRC |
| Full (cell + InfoNCE + cycl. KL) | 0.199 | 0.492 | 0.014 | 0.401 |
| Cyclical KL ( ) | 0.208 | 0.481 | 0.219 | 0.431 |
| InfoNCE (single view) | 0.151 | 0.467 | 0.005 | 0.365 |
| Token excision | 0.186 | 0.425 | 0.031 | 0.513 |
| Feature-wise excision (default) | 0.241 | 0.469 | 0.009 | 0.533 |
| Representation | Lin. AUPRC | LE@1% | GBDT AUPRC | Silhou. | Train (s) |
| PCA-16 | 0.112 | 0.105 | 0.455 | 0.152 | |
| UMAP-16 | 0.050 | 0.046 | 0.357 | 0.202 | 1,318 |
| Autoencoder | 0.179 | 0.147 | 0.468 | 0.215 | 319 |
| Sparse AE | 0.139 | 0.135 | 0.446 | 0.225 | 303 |
| MLP-VAE | 0.083 | 0.083 | 0.443 | 0.717 | 286 |
| SCARF | 0.214 | 0.217 | 0.491 | 0.086 | 788 |
Representation Learning
Representation learning develops data transformations that expose useful structure for prediction, transfer, generation, and control.
See all 798 papers