Ant International accumulates large volumes of transaction history across users and payment businesses. Confirmed fraud and chargeback outcomes, by contrast, are scarce, delayed, and specific to each business. A single encoder pretrained on unlabeled histories could serve all businesses, but only if pretraining captures the behavior that separates risk. Coarse activity differences can make contrastive pretraining on transaction logs too easy: transaction volume, amount, and timing can distinguish a history's continuation from arbitrary candidates without modeling how payment resources are used. We present TRIDENT-Seq, a transaction foundation model trained with Prefix-Future Contrast (PFC). PFC matches each prefix to a summary of its subsequent behavior among candidates with similar activity profiles; activity prediction and dispersion regularization act on the encoder output. Across three production payment businesses, the pretrained encoder improves average precision (AP) and recall at a 0.5% intervention budget over architecture-matched scratch training in all six business-budget settings. With a fixed validation set, it exceeds full-label scratch training in mean AP and recall using 10% of the training labels on Wallet and 25% on Shopping and SME. Pretraining only on another business's histories still helps. Replacing profile-matched candidates with random ones cuts recall from 24.62% to 5.64%. In Ant International's deployment evaluation, recorded amount-based chargeback and overall loss rates are 37.7% and 37.9% lower than those of the previous XGBoost-based system under the same intervention budget.
Figures & tables
Figure 1. TRIDENT-Seq overview. (a) PFC learns behavioral representations without risk labels. (b) The shared foundation model adapts to each business through supervised fine-tuning (SFT) with limited labels. (c) At Ant International, online A/B evaluation across deployed payment businesses shows a 37.9% reduction in the overall loss rate under the same intervention budget. Three stages: behavior pretraining from prefixes and future summaries; reuse of the same pretrained encoder for business-specific supervised fine-tuning; and production risk evaluation.
Figure 2. TRIDENT-Seq architecture. (a) Event tokenization. (b) Shared history encoder. (c) Pretraining with PFC, activity prediction, and dispersion regularization, and business-specific supervised adaptation. Event attributes are encoded into tokens. A Transformer produces a history representation. Pretraining uses prefix and summary projection heads; downstream adaptation uses a business risk head.
Table 2. Performance comparison (%). Best results are bold; second-best results are underlined.
Figure 3. Label efficiency on Shopping and SME. Four plots show AP and recall at a 0.5 percent intervention budget for TRIDENT-Seq and scratch training across five training-label budgets on Shopping and SME, with a dashed line for full-label scratch.
Table 4. Wallet ablation: recall (%) at three intervention budgets.
Figure 4. Pretrained representations of annotated histories. PCA and t-SNE projections of pretrained representations, with two behavior groups and an outlined t-SNE region used for case inspection.
Figure 5. Card and device switching after rejection. Three payment attempts show changes in anonymous card and device identities following rejections while retaining the IP identity, ending in a successful attempt.
Method
Traffic (M)
CB rate change ↓
Loss rate change ↓
XGB-AutoRefit
9.06
base
base
SAINT-style
10.56
− 13.21%
− 18.18%
TRIDENT-Seq
8.58
− 37.74%
− 37.88%
Table 5. Portfolio-level online A/B results at Ant International. Pooled arm-level rate changes relative to XGB.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Setting
Value
Layers / hidden size / heads
8 / 1,024 / 8
Encoder parameters / history cap
92.92M / 300 events
Hash bits / probes
128 / 4 per field
Eligible history / prefix
At least 2 events / older 60%
Future summary
24 dimensions (Table 7 )
Profile
Three coordinates (Equation 4 )
Appendix
Table 6. Encoder and pretraining configuration.
Coordinates
Definition
1
Constant 1
2
min(10,Std(Δδ)/max(Mean∣Δδ∣,10−6))/10
3–5
Mean(u)/16 , Std(u)/16 , max(u)/16
6–7
Mean(δ)/92 , Std(δ)/92
8
∑j,khjk/(1536m)
9
Field-level switching rate SW between adjacent events