Abstract
Modern recommendation systems often operate in silos, where models for different content types (e.g., videos, advertisements, or augmented reality lenses) are trained independently. This fragmentation prevents the capture of deep, cross-domain collaborative filtering signals. This paper presents Universal User Modeling (UUM), a Transformer-based architecture deployed at Snapchat that integrates disparate user interaction streams into a unified chronological sequence. By leveraging domain-specific encoders and Information Bottleneck (IB) tokens, the UUM framework generates "universal" embeddings that capture holistic user intent. Production results demonstrate significant engagement gains, including a 19.2% increase in video view time and improved performance across AR lenses and notifications.
Introduction
In large-scale social media platforms, users interact with a diverse array of features, from short-form video content to interactive Augmented Reality (AR) lenses. Traditionally, recommendation engines for these features are developed as isolated systems. While engineers may share data between these surfaces through post-hoc feature engineering—such as using a user's video history as a feature in an ad-ranking model—this approach often fails to capture the nuanced, latent relationships between different types of user intent.
Snapchat researchers addressed this limitation by developing Universal User Modeling (UUM). The goal of UUM is to move beyond siloed models by training a single, powerful representation of the user based on their entire interaction history across the platform. This approach allows the system to recognize that a user’s interaction with a specific advertisement might be a strong predictor for their interest in a particular AR lens or video category.
The UUM Framework
Data Stitching and Augmentation
The foundation of UUM is the Platform-wise User Event Sequence. The researchers developed a pipeline to aggregate disparate event logs (Content, Ads, Lenses) into a single tabular format sorted by timestamp. To manage the power-law distribution of user activity—where some users generate thousands of events while others generate very few—the system utilizes a sliding window approach. Long histories are broken into independent 800-length subsequences, ensuring the model remains computationally feasible while capturing sufficient context.
Transformer Architecture
The core of the system is a "User Tower" based on a standard Transformer architecture with multi-head self-attention. Each event in the sequence is converted into a latent representation that incorporates event IDs, domain types, and temporal information. The model is trained using a multi-task objective:
- Next Event Prediction: Using a sampled softmax objective with in-batch negatives to predict the user's next interaction.
- Auxiliary Property Prediction: Predicting specific attributes of the next event, such as expected view time, using cross-entropy or mean squared error (MSE).
Mitigating Domain Imbalance
A significant challenge in multi-domain learning is data imbalance; for instance, video views may vastly outnumber AR lens interactions. To prevent high-volume domains from "drowning out" smaller ones, the researchers introduced two key architectural innovations:
- Domain-Specific Encoders: Independent layers that capture intra-domain patterns before the data enters the shared attention layers.
- Information Bottlenecks (IB): The use of special tokens that restrict cross-domain interaction. These tokens act as filters, ensuring that only the most relevant knowledge is transferred between domains, which helps mitigate the risk of "negative transfer" where noise from one domain degrades performance in another.
Results and Impact
The UUM representations were integrated into Snapchat’s production environment, leading to substantial improvements in user engagement across multiple surfaces:
- Long-form Video: The model achieved a 2.78% increase in the Open Rate for retrieval and a 19.2% increase in total View Time for L2 ranking.
- AR Lenses: Lens play time increased by 1.76%.
- Notifications: The Notification Open Rate saw a 0.87% increase, suggesting that universal intent signals can even improve the relevance of time-sensitive alerts.
Offline evaluations further validated the architectural choices. The inclusion of domain-specific encoders and Information Bottleneck tokens improved Recall@20 from 0.483 (base UUM) to 0.522, confirming that controlled communication between domains is superior to a naive shared-encoder approach.
Discussion and Future Work
While UUM has proven highly effective, it introduces significant computational overhead. Processing sequences of 800+ events per user requires substantial hardware resources, and the current 800-length limit represents a trade-off between capturing long-range dependencies and maintaining system latency.
Future research will focus on more sophisticated pooling strategies to aggregate final user representations beyond simple weighted summation. Additionally, the researchers aim to explore how UUM can better address the "cold start" problem for new users who lack a robust history across any of the platform's domains. Despite these challenges, the success of UUM demonstrates that breaking down data silos is essential for the next generation of large-scale recommendation systems.
Summary updated