TL;DR
SeqLLM bridges the gap between large language models (LLMs) and behavioral sequence modeling, allowing joint reasoning over unstructured text and long transaction streams without suffering from catastrophic forgetting. Fully deployed at WeChat Pay, it boosts merchant risk screening precision from 92.0% to 97.5% while maintaining strong general language capabilities and training up to 4.8× more efficiently than existing baselines.
What Problem Does This Paper Address?
In high-stakes risk control scenarios—such as screening millions of merchants daily at WeChat Pay—the trickiest fraud cases cannot be solved by looking at a single data type. A merchant’s text profile or a user complaint might sound slightly suspicious, and their transaction statistics might look normal on paper. However, when you analyze the interaction between the text and the long, timestamped sequence of behavioral events (e.g., unusual nighttime payment clusters spanning multiple provinces targeting elderly users), the fraud becomes obvious.
While LLMs excel at understanding text, they cannot natively process long behavioral sequences. Past attempts to fix this typically fall into two traps:
- Text Serialization: Converting transaction logs into raw text creates massive, low-density inputs that overwhelm the LLM's attention mechanism.
- Continual Pre-Training (CPT): Teaching the LLM discrete behavior tokens via standard pre-training causes "catastrophic forgetting," severely degrading the model's core language and reasoning skills.
The authors tackle this challenge by introducing a framework that injects native behavioral sequence modeling into a pretrained LLM while fully preserving its language competence.
Methods
SeqLLM achieves this balance through three core architectural components:
- Behavioral Vocabulary: Instead of treating an entire transaction event as a single ID or serializing it into text, SeqLLM factorizes events into compact, field-level tokens (e.g.,
<Time:Thu_00h>,<Channel:Scan QR>,<Amount:200-500 CNY>). This compresses sequence lengths by roughly 6×. - Behavior Projector: A lightweight, two-layer MLP with a residual connection maps these behavior tokens into the LLM's native semantic space. It is trained using a two-stage curriculum: translation (mapping tokens back to natural language descriptions) followed by multi-event reasoning.
- Prefix-Guided Capability Injection: Instead of standard CPT, which applies next-token loss across the entire sequence, SeqLLM uses instruction-conditioned Supervised Fine-Tuning (SFT). By framing sequence completion under a specific task prefix and masking the loss on the historical context, parameter updates are confined to specific pathways, preventing general language degradation.
Datasets
The framework was evaluated across both massive industrial datasets and standard public benchmarks:
- WeChat Pay Dataset: Consists of ~20M unlabeled merchant behavior sequences for capability injection, and 4.06M labeled merchants for downstream risk fine-tuning.
- MovieLens-20M & Amazon Reviews: Used to evaluate next-item prediction, preference classification, and review generation.
- RecIF: A large-scale public recommendation benchmark containing 96M interactions.
- RecProbe: A novel evaluation suite constructed by the authors from RecIF data to specifically test an LLM's semantic understanding of behavior tokens across four distinct tasks (e.g., Video-Topic Matching).
Key Insights and Ideas
- Localization Prevents Forgetting: Standard CPT updates the model's weights broadly and disruptively. By conditioning sequence modeling on a task prefix, prefix-guided SFT keeps per-layer weight changes small and uniform, protecting the model's original knowledge base.
- The Power of Modality Synergy: Risk detection relies heavily on the interplay between text and behavior. As shown in the paper's ablation studies, a model restricted to behavior-only or text-only inputs performs significantly worse than a joint model.
Key Results
- Production Impact at WeChat Pay: In a three-month shadow deployment screening millions of merchants daily, SeqLLM improved risk screening precision to 97.5% compared to the text-only production baseline's 92.0%. Post-launch, merchant appeals dropped from 12% to ~2%.
- Downstream Fraud Detection Boost: Using SeqLLM's pretrained behavior embeddings to initialize an existing transaction-pair fraud detector yielded massive online A/B testing gains, including a +26.8 percentage point increase in [email protected]%.
- Public Benchmarks & Efficiency: On the RecIF benchmark, SeqLLM outperformed the state-of-the-art OpenOneRec pipeline while requiring 4.8× fewer GPU-days and completely bypassing the need for a complex, separate language-distillation recovery stage.
Limitations and Future Work
Not explicitly discussed in the paper.
Summary updated