Antom 3-in-1 Transformer: A Payment Foundation Model
Paper, explained · Hugging Face ·A close reading of the source at huggingface.co: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.
PretrainingMixture of ExpertsFine-Tuning
The idea
Ant International trained one payment foundation model that reads three views of a transaction at once: the user's event sequence, the tabular features of the payment, and the graph of accounts, cards and devices it touches (paper, arXiv). It is a ~7B-parameter model with ~1.7B parameters active per "task route" (a mixture-style design that sends each risk task through part of the network), pretrained mostly on Ant International's internal payment data and then fine-tuned for fraud and risk detection.
Why it matters
Tabular fraud detection is one of the last big ML areas still run by gradient-boosted trees. The authors claim pretraining pays off there too (all numbers are theirs, from the abstract; no independent replication):
- Transfer: pretraining lifts the target business metric by 34.5% over the same architecture trained from scratch, when moving to a new business line.
- Label efficiency: with 25% of the labels, the pretrained model beats the full-label scratch model on Average Precision and Recall@0.5% across merchant domains.
- Production: in a four-month online test on a billion-scale platform, the overall loss rate fell 37.88% relative to the incumbent online XGBoost model.
For an AI engineer this is the "foundation model for your own event logs" pattern: one pretrained encoder, many cheap downstream heads, fewer labels per new task.
In plain words
Instead of building a new fraud model for every country and merchant type, Ant trains one big model that has already "seen how payments normally look" from three angles: what a person did before, what this payment looks like, and who it is connected to. A new fraud task then only needs a small amount of labelled data. The headline claim is a 38% cut in money lost compared with the tree model it replaced. Caveat: the data is private, so no one outside Ant can check the result, and the abstract does not say how much the model costs to serve per transaction compared with XGBoost.