One4all User Representation for Recommender Systems in E-commerce

Kyuyong Shin, Hanock Kwak, Kyung-Min Kim, Minkyu Kim, Young-Jin Park, Jisu Jeong, Seungjae JungarXiv 2021

TL;DR

This paper introduces ShopperBERT, a novel pre-training framework for learning universal user representations in e-commerce. By training on a massive dataset of user purchase behaviors with nine pretext tasks, ShopperBERT embeddings significantly outperform models trained from scratch across various downstream tasks like user profiling, targeting, and recommendation, especially for cold-start users.

What Problem Does This Paper Address?

The field of machine learning has seen tremendous success with large-scale pre-training, exemplified by models like BERT in NLP. However, applying this "one-for-all" representation learning paradigm to e-commerce user behavior for diverse downstream tasks (user profiling, targeting, recommendations) remains an open challenge. Existing approaches often rely on task-specific models or fine-tuning, which can be computationally expensive and lack generalizability. This paper aims to bridge this gap by investigating whether a single, pre-trained user representation can effectively serve multiple e-commerce applications, particularly addressing the persistent cold-start problem for new users.

Methods

The core of this work is ShopperBERT, a model inspired by BERT's architecture. It takes a sequence of user purchase logs (each log containing product details and timestamps) as input. Key methodological components include:

  • Pretext Tasks: ShopperBERT is trained on nine auxiliary self-supervised tasks. These tasks involve predicting masked product categories and date information within a user's purchase history. This forces the model to learn rich, contextual representations of user behavior.
  • Augmentation: Two augmentation strategies, shuffling and cropping, are applied to user purchase sequences. Shuffling helps the model learn representations that are less dependent on the exact order of purchases, while cropping focuses on local co-purchase patterns. These augmentations act as regularizers, enhancing the robustness of learned representations.
  • User Representation Extraction: Two methods are proposed for extracting user embeddings:
  • ShopperBERT-MP (Mean Pooling): Averages the final hidden vectors of all behavior tokens in the sequence.
  • ShopperBERT-CLS: Utilizes the hidden vector of a special [CLS] token prepended to the sequence.
  • Transfer Learning: The pre-trained ShopperBERT embeddings are used as input features for downstream tasks. A simple Multi-Layer Perceptron (MLP) is employed as the downstream model (U-MLP), demonstrating the effectiveness of the pre-trained features without complex fine-tuning.

Datasets

  • Pre-training Dataset: A massive dataset of 0.8 billion user purchase behaviors collected over two years (October 2018 - October 2020) from an e-commerce platform. This dataset comprises approximately 12.7 million users and 48.5 million products.
  • Downstream Tasks Datasets: Six distinct datasets were used for evaluation:
  • Gender Classification (GC): 1 million users with gender information.
  • Membership Targeting (MT): ~950,000 users for predicting membership sign-ups.
  • Live Commerce Targeting (LCT): 1 million users for predicting live commerce engagement.
  • Product Collection Recommendation (PCR): ~1.1 million click logs for recommending product collections.
  • Marketing Message Recommendation (MMR): ~2.4 million click logs for recommending chatbot messages.
  • Shopping Search Query Recommendation (SSQR): ~1.5 million search records for query recommendation.

Key Insights and Ideas

  • Universal Representation is Achievable: The paper strongly suggests that a single, pre-trained user representation can indeed be effective across a wide range of e-commerce tasks, challenging the notion that task-specific models are always superior.
  • Pre-training Outperforms Scratch for Most Tasks: Even for tasks with available supervised signals, ShopperBERT embeddings fed into a simple MLP often outperform more complex models trained from scratch on task-specific data. This highlights the power of learning general patterns from large-scale unsupervised data.
  • Cold-Start Problem Mitigation: The pre-trained embeddings significantly improve performance on cold-start targeting tasks, demonstrating their ability to provide meaningful representations for users with little to no prior interaction history.
  • Scale Matters: The performance of pre-trained features consistently improves with larger pre-training datasets, reinforcing the "scaling laws" observed in other domains like NLP and computer vision.
  • Computational Efficiency: Using pre-trained embeddings with a lightweight MLP offers substantial computational advantages (inference speed, parameter count, data size) compared to training large models from scratch or fine-tuning, making it more practical for real-world deployment.
  • Implicit Demographic Learning: Visualizations show that ShopperBERT embeddings naturally capture demographic information (gender, age) even though this information was not explicitly used in the pretext tasks, suggesting potential for improved user profiling.

Key Results

  • Targeting Tasks: ShopperBERT's U-MLP (using pre-trained embeddings) achieved AUROC scores of 0.6766 (MT) and 0.7039 (LCT), outperforming P-Trans (raw logs) by 5.5% and 5.8% respectively. UP-Trans (combination of logs and embeddings) showed even better results.
  • Recommendation Tasks: CLS+A (ShopperBERT-CLS with augmentation) achieved significant NDCG@10 improvements over P-Trans: 19.9% for MMR and 3.6% for SSQR.
  • Cold-Start Performance: For cold users in recommendation tasks, U-MLP showed improvements of 3.7%, 26.0%, and 1.2% in NDCG@10 for PCR, MMR, and SSQR, respectively, over T-Trans (task-specific).
  • Computational Costs: Table 3 shows that ShopperBERT (fine-tuning) has a significantly higher parameter count (79.2M) but U-MLP (using pre-trained embeddings) offers a 21x inference speedup and uses much less data compared to P-Trans.

Limitations and Future Work

  • No Superiority Between MP and CLS: The paper found no definitive winner between the Mean Pooling (MP) and CLS token methods for extracting user representations.
  • Need for Specialized Methods: The authors note that user representation learning is still in its early stages, and specialized methods are needed, as there are no general labels for user pairs like there are for sentence pairs in NLP.
  • Future Work:
    • Developing more effective learning methods for general-purpose user representations.
  • Releasing datasets and downstream tasks to foster further research.
  • Extending user representations to other domains like movies and news by incorporating new pre-training datasets.

Summary updated

BibTeX
@misc{shin2021one,
  author = {Kyuyong Shin and Hanock Kwak and Kyung-Min Kim and Minkyu Kim and Young-Jin Park and Jisu Jeong and Seungjae Jung},
  title = {{One4all User Representation for Recommender Systems in E-commerce}},
  year = {2021},
  eprint = {2106.00573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.00573},
}
Figure