Abstract
Learning user sequence behaviour embedding is very sophisticated and challenging due to the complicated feature interactions over time and high dimensions of user features. Recent emerging foundation models, e.g., BERT and its variants, encourage a large body of researchers to investigate in this field. However, unlike natural language processing (NLP) tasks, the parameters of user behaviour model come mostly from user embedding layer, which makes most existing works fail in training a universal user embedding of large scale. Furthermore, user representations are learned from multiple downstream tasks, and the past research work do not address the seesaw phenomenon. In this paper, we propose SUPERMOE, a generic framework to obtain high quality user representation from multiple tasks. Specifically, the user behaviour sequences are encoded by MoE transformer, and we can thus increase the model capacity to billions of parameters, or even to trillions of parameters. In order to deal with seesaw phenomenon when learning across multiple tasks, we design a new loss function with task indicators. We perform extensive offline experiments on public datasets and online experiments on private real-world business scenarios. Our approach achieves the best performance over state-of-the-art models, and the results demonstrate the effectiveness of our framework.
Introduction
In the world of Natural Language Processing (NLP), "foundation models" like BERT have revolutionized how we represent text. However, applying these same techniques to user behavior sequences—such as clicks, purchases, and app usage—is notoriously difficult. Researchers from Ant Group have introduced SUPERMOE, a framework that scales universal user behavior embeddings to billions, and potentially trillions, of parameters.
Traditional user modeling faces two primary hurdles:
- The Memory Wall: Unlike NLP models where parameters reside mostly in neural network layers, user modeling parameters are trapped in the embedding layer (e.g., billions of unique User IDs). This leads to "GPU memory explosion" when using standard architectures.
- The Seesaw Phenomenon: User representations are often used for multiple downstream tasks simultaneously. In traditional multi-task learning, optimizing for one objective often degrades performance on another—a trade-off known as the seesaw phenomenon or negative transfer.
Methods
SUPERMOE introduces three key innovations to overcome these challenges:
- MoE Transformer Backbone: Instead of a dense model, SUPERMOE utilizes a Sparse Mixture of Experts (MoE). This allows the model to maintain massive capacity while only activating a small, computationally efficient subset of "experts" for any given input.
- Split Feature Projection Layer: To handle the memory bottleneck of hundreds of behavior channels, the authors devised a model-parallel approach (using the Whale framework) to split the feature projection layer across devices. This prevents GPU memory exhaustion while integrating diverse data types like location, time, and trade amounts.
- Bi-level Multi-task Optimization: To address the "seesaw phenomenon," the framework employs a new loss function and a bi-level optimization algorithm. The model treats task weights as hyperparameters to be optimized, specifically aiming to maximize the Area Under Curve (AUC) across all tasks simultaneously.
- Masked Channel Prediction (MCP): For pre-training, the model adapts the "Masked Language Modeling" concept from BERT. It randomly hides certain user behaviors and forces the model to predict them based on the remaining sequence context.
Datasets
The model was evaluated on a mix of public and high-stakes private datasets:
- SIUPD: A public dataset from the IJCAI17 contest containing shopping logs from 1.39 million Alipay users.
- Paytool: A private dataset focused on user payment preferences (240M training samples).
- MCP Dataset: A massive internal dataset with 103 channels of subscription and redemption behaviors.
- Fortune: A private dataset tracking the "impression → click → purchase" funnel.
Key Results and Insights
SUPERMOE consistently outperformed state-of-the-art baselines like MMoE, PLE, and BERT across all tested scenarios.
Sparsity and Scaling
By using MoE, the authors demonstrate that increasing model capacity to 20B parameters yields significant performance gains without a linear increase in computational cost. In the Paytool task, moving from a 1-billion parameter MoE to a 20-billion parameter MoE yielded a 0.67 gain in AUC and a substantial jump in Recall@85.
Online Impact
In real-world A/B testing on the Alipay platform, the model delivered substantial business wins:
- Online1 (Payment switching): +13.41% in Page Views (PV) and +21.36% in Gross Merchandise Value (GMV).
- Online2 (Fund subscription): +9.11% in Conversion Rate (CVR) and +25.19% in GMV.
Conclusion
SUPERMOE demonstrates that sparsity is the secret to scaling user understanding. By treating multi-channel user data (ID, category, price, etc.) as distinct but related "languages," the framework allows for much richer representations than traditional methods. While the paper successfully addresses memory and multi-task optimization issues, future work is needed to explore the inference latency of such massive models in high-traffic production environments where milliseconds are critical.
Summary updated