ID2Pattern: Pretraining Generalizable Identity Behavior Patterns for Transaction Risk Foundation Models

Ze Zhao, Haoyu Jiang, Weiyu Han, Ruobing Zuo, Xiao Tan +2 more
10/30/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Large-scale behavioral pretraining offers a promising route to generalizable representations in online payment systems. However, high-cardinality identity fields such as card, device, and account IDs, though rich in behavioral signals, remain underexploited.

Show full abstract

Their continually growing vocabularies and limited semantic meaning make existing vocabulary-based and semantics-based encodings ill-suited. Their generalizable signal lies not in specific values, but in the identity behavior patterns they exhibit across a transaction sequence. Building on this insight, we propose ID2Pattern, a pretraining framework that brings these patterns into transaction foundation models. ID2Pattern first encodes identity fields with a Local Anonymous ID (LAID) tokenizer, which captures how each identity appears and recurs within the sequence, independent of its specific value. It then pretrains a multi-scale pattern codebook on unlabeled sequences, which abstracts LAID sequences into discrete behavior patterns for downstream prediction. Experiments on an industrial dataset with over 100M sequences and six public datasets show that ID2Pattern consistently outperforms strong baselines, improving industrial by 4.13% and public datasets by 8.83% on average. Notably, ID2Pattern remains equally effective even when all identity values are unseen during training, highlighting its potential to generalize to new users and markets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2026idpattern,
  title  = {ID2Pattern: Pretraining Generalizable Identity Behavior Patterns for Transaction Risk Foundation Models},
  author = {Ze Zhao and Haoyu Jiang and Weiyu Han and Ruobing Zuo and Xiao Tan and Shuai Chen and Tianyi Zhang},
  year   = {2026},
  eprint = {2610.41988},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.41988v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.41988.svg)](https://codeofpaper.com/paper/2610.41988)

Discussion