Exploiting Behavioral Consistence for Universal User Representation

Jie Gu, Feng Wang, Qinghui Sun, Zhiquan Ye, Xiaoxiao Xu, Jingmin Chen, Jun Zhang

Abstract

Researchers from Alibaba have developed SUMN (Self-supervised User Modeling Network), a framework that learns "universal" user embeddings from raw, unlabeled behavior logs. By leveraging a novel behavioral consistency loss and a multi-hop aggregation layer, the model creates versatile representations that can be applied to various downstream tasks—such as gender prediction or interest profiling—without the need to retrain the core encoder for every specific application.

Introduction

In the field of personalized services, user modeling is typically a task-specific endeavor. Predicting a user's interest in electronics requires one model, while predicting their age requires another. This approach is computationally expensive, demands massive amounts of labeled data, and often results in models that are "blind" to information outside their narrow scope.

The challenge lies in creating a universal user representation: a single, high-quality vector (embedding) that captures the "essence" of a user across different contexts. The difficulty is designing a self-supervised task capable of extracting meaningful features from diverse, messy behavior logs (like search queries or tweets) without relying on human-provided labels.

Methodology

The Self-supervised User Modeling Network (SUMN) is built upon three primary pillars designed for industrial-scale efficiency and representational depth:

  1. Behavior Encoder: To maintain scalability, SUMN uses simple mean word embeddings to convert individual behaviors (e.g., a search query) into vectors. This avoids the high computational overhead of heavy transformer models like BERT when processing hundreds of behaviors for millions of users.
  2. Multi-hop Aggregation Layer: This architectural component serves as the model's "brain." Instead of simple averaging, which can wash out nuances, SUMN employs a multi-hop attention mechanism. It processes the user's behavior history multiple times, refining the representation with each hop to capture diverse facets of a user's identity (e.g., both a "marathon runner" and a "software engineer").
  3. Behavioral Consistency Loss: This training objective is based on the observation that user behavior remains relatively consistent over time. The model uses a set of "past" behaviors to predict the distribution of words in a disjoint set of "future" behaviors. By minimizing the KL-divergence between predicted and actual future distributions, the model learns the underlying latent factors of the user.
The SUMN architecture, featuring the Behavior Encoder, Multi-hop Aggregation Layer, and Behavioral Consistency Loss.

Experimental Setup

The authors evaluated SUMN on three large-scale datasets:

  • Amazon Dataset: 1.7M users; product reviews used as behavior sequences.
  • Twitter Dataset: 741k users; public tweets used to predict user gender.
  • Industrial Dataset: A massive Alibaba dataset with 64 million users and search logs, used for age and category preference prediction.

Key Results and Insights

SUMN consistently outperformed standard unsupervised methods like Word2Vec, Doc2Vec, and TF-IDF across all datasets. On the Industrial dataset, it showed an average AUC improvement of 0.027 over Doc2Vec.

Remarkably, these universal embeddings performed as well as, or better than, task-specific supervised models like TextCNN and HAN. For instance, on the Twitter gender prediction task, SUMN achieved 70.28% accuracy, surpassing the supervised HAN model's 69.21%.

Performance comparison (AUC) of SUMN against supervised and unsupervised baselines across different categories.

The Power of Consistency and Diversity

  • Consistency as Supervision: Using the "future" to supervise the "past" proves to be a powerful signal. Because interests evolve slowly, the vocabulary overlap between different time periods provides a strong identity signal.
  • The Diversity Dilemma: The multi-hop approach acts like a memory bank, allowing the model to "attend" to different clusters of behavior in each hop, ensuring secondary interests are not ignored.
  • Scalability: The model is production-ready, converging on a 64-million-user dataset in approximately 11 hours on a single V100 GPU.

Limitations and Future Work

While effective, SUMN currently treats behaviors as a set rather than a sequence, potentially ignoring temporal order. Future iterations could integrate other modalities, such as images or graph-based user-item interactions. Additionally, while the representation is universal, a small classifier (MLP) is still required for each new downstream task, meaning it is not yet entirely "plug-and-play" without any labels.

Summary updated

BibTeX
@inproceedings{gu2021exploiting,
  author = {Jie Gu and Feng Wang and Qinghui Sun and Zhiquan Ye and Xiaoxiao Xu and Jingmin Chen and Jun Zhang},
  title = {{Exploiting Behavioral Consistence for Universal User Representation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16527},
}
Figure