NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Universal User Representations via Self-Supervised Lifelong Behaviors Modeling

Bei Yang, Ke Liu, Xiaoxiao Xu, Renjun Xu, Hong Liu, huan xu

TL;DR

The Lifelong User Representation Model (LURM) learns universal, task-agnostic user embeddings from lifelong behavior sequences spanning millions of interactions over multiple years. By clustering items into a high-dimensional "Bag of Interests" (BoI) across time intervals and compressing them using a self-supervised multi-anchor network, LURM achieves near-lossless compression and state-of-the-art performance across downstream profiling and preference tasks.

What Problem Does This Paper Address?

In digital platforms like e-commerce and social networks, user interaction logs accumulate over years, often reaching hundreds of thousands or even millions of events per user. Capturing these lifelong behaviors is vital for profiling and personalization. However, two major hurdles persist:

  1. Scalability bottlenecks: Standard sequential deep learning architectures (like RNNs and Transformers) typically choke on sequences beyond a few hundred or a thousand items due to memory and computational limits.
  2. Generalizability: Most existing long-sequence architectures are trained end-to-end on single supervised objectives (e.g., click-through rate prediction), producing representations that fail to transfer to other downstream business tasks.

The authors address how to compress and encode arbitrary-length, lifelong user histories into compact, universal representations without catastrophic forgetting or task-specific fine-tuning.

Methods

LURM breaks lifelong sequence modeling into a two-stage cascade:

  1. Bag of Interests (BoI):
  2. Item Embeddings: Learns item representations via contrastive learning on items co-occurring within a short time window ($\beta = 5$ days) in user sessions.
  3. Large-Scale Clustering: Clusters millions/billions of item embeddings into an "interest vocabulary" of $D \approx 10^5$ clusters using HDSC (High-Dimensional Spectral Clustering).
  4. Temporal Slicing: Divides a user's lifelong activity into fixed time intervals (e.g., monthly and yearly) and generates a sparse, high-dimensional BoI frequency vector $b_t \in \mathbb{R}^D$ for each period.
  5. Self-Supervised Multi-Anchor Encoder Network (SMEN):
  6. Multi-Anchor Module: Instead of collapsing a user into a single vector, $M$ anchor vectors (e.g., $M=10$) project the sparse $10^5$-dimensional interest vector into $M$ low-dimensional preference vectors ($H=128$) using an interest-to-anchor attention mechanism.
  7. Time Aggregation: Uses Gated Recurrent Units (GRUs) along each anchor trajectory independently to model preference evolution across time.
  8. Multi-Scale Aggregation: Fuses monthly-grained and yearly-grained temporal representations with a learned gating switch to capture both fine-grained temporal nuances and long-term trends.
  9. Contrastive Learning Objective: Pre-trains SMEN in a self-supervised manner using an InfoNCE-style contrastive loss, treating different temporal sub-sequences from the same user as positive pairs and sub-sequences from other users as negatives.
Lifelong Behaviors ──► [Bag of Interests] ──► Sparse BoI Sequences (Monthly / Yearly)
                                                       │
                                                       ▼
Final User Repr. ◄── [Multi-Scale Fusion] ◄── [GRUs] ◄── [Multi-Anchor Attention]

Datasets

The authors evaluated LURM on two large-scale datasets:

  • Public Amazon Dataset: 43.5M users with a maximum sequence length of 13,122 review behaviors (spanning 1997–2017 for pre-training; 2018 for downstream evaluation). Evaluated on four category preference prediction tasks (Books of Literature, Games of Sports, Outdoor-hunting, Musical Instrument).
  • Proprietary Industrial E-commerce Dataset: Over 214.3M users with interaction sequences scaling up to 1,952,546 behaviors (collected between 2016 and 2021). Evaluated on three category preference tasks (Clothing, Shoe, Coffee) and two demographic profiling tasks (User Age [6 classes] and Baby Age [7 classes]).

Key Insights and Ideas

  • Decoupling item sequence scale from model depth: Converting temporal slices into sparse interest counts circumvents the $O(L)$ or $O(L^2)$ scaling limits of standard sequential networks on raw interaction sequences.
  • Multi-anchor attention prevents information collapse: Compressing a $10^5$-dimensional sparse BoI vector into a single dense vector (128-d or 1280-d) causes severe performance drops. Distributing interests across multiple separate preference anchors retains diverse facets of a user (e.g., work, sports, hobbies), achieving nearly lossless compression compared to the raw BoI representation.
  • Lifelong history matters differently across tasks: For stable user characteristics (user age, baby age), scaling history from 2 months to 5 years yielded dramatic gains (+9.75% AUC / +16.03% ACC). In contrast, category preference prediction peaked around 1 year of history, indicating that recent behavior dominates short-term shopping intent.

Key Results

  • Superiority over Unsupervised Baselines: On Amazon, LURM achieved an average improvement of 3.23% AUC / 1.49% ACC over SUMN and 4.41% AUC / 2.09% ACC over PTUM.
  • Beating Supervised Baselines: Even frozen universal representations from LURM with a simple downstream MLP outperformed task-specifically trained supervised networks (TextCNN by +8.26% AUC, HAN by +3.82% AUC on Amazon).
  • Industrial Scale Gains: On the industrial dataset, lifelong LURM beat 2-month baseline models significantly. On user profiling, LURM achieved 96.09% AUC on User Age and 94.59% AUC on Baby Age (outperforming SUMN by ~15.55% AUC on average).

Limitations and Future Work

  • Modality restriction: The current BoI item representation pipeline relies solely on textual metadata and item IDs, ignoring rich visual, audio, or video modalities common in modern recommender platforms.
  • Fixed time-granularity partitioning: Discretizing time into rigid monthly/yearly bins may struggle to capture irregular burst behaviors or micro-session dynamics.
  • Future directions: The authors plan to integrate multimodal inputs, design more specialized sequence architectures, and evaluate on a wider range of industrial downstream tasks.

Summary updated

BibTeX
@inproceedings{yang2022learning,
  author = {Bei Yang and Ke Liu and Xiaoxiao Xu and Renjun Xu and Hong Liu and huan xu},
  title = {{Learning Universal User Representations via Self-Supervised Lifelong Behaviors Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=YTtMaJUN_uc},
}
Figure