Robust Training Objectives Improve Embedding-based Retrieval in Industrial Recommendation Systems

Matthew Kolodner, Mingxuan Ju, Zihao Fan, Tong Zhao, Elham Ghazizadeh, Yan Wu, Neil Shah, Yozen Liu

Introduction

Industrial recommendation systems typically employ a two-stage pipeline: a high-throughput retrieval stage followed by a high-precision ranking stage. In the retrieval phase, Embedding-Based Retrieval (EBR) is the standard approach, mapping users and items into a shared latent space where proximity represents relevance. While self-supervised learning (SSL) has shown significant potential in academic benchmarks for enhancing embedding robustness, deploying these techniques in massive industrial environments—characterized by graphs with hundreds of millions of nodes—presents two primary challenges: prohibitive computational costs and the risk of "negative transfer," where auxiliary tasks degrade the performance of the primary recommendation goal.

Researchers at Snap Inc. have addressed these hurdles by developing a Self-Supervised Multitask Learning (SSMTL) framework designed for scale. By integrating non-contrastive objectives with standard link prediction, they achieved substantial gains in recommendation quality for hundreds of millions of users.

Methodology

The proposed SSMTL framework utilizes a Graph Attention Network (GAT) backbone. Rather than relying solely on a supervised signal, the model optimizes three concurrent objectives:

  1. Link Prediction (Primary Task): This supervised task predicts the likelihood of a user adding a specific candidate as a friend using categorical cross-entropy loss.
  2. Canonical Correlation Analysis (CCA): A non-contrastive SSL method that maximizes the correlation between two different augmented views of the same subgraph. Crucially, it includes a decorrelation component to ensure that the learned features are not redundant.
  3. Masked Autoencoders (MAE): A generative SSL task where specific user features are masked. The model is then tasked with reconstructing these features based on the surrounding local graph neighborhood.

Scaling Strategy

To manage a graph exceeding 800 million nodes and edges, the framework avoids global graph operations. Instead, it samples $K$-hop neighborhoods (subgraphs) around query users. The choice of non-contrastive SSL methods (CCA and MAE) is pivotal; unlike contrastive methods that require comparing positive pairs against many negative samples across the global graph, non-contrastive methods rely on local information, making them significantly more memory-efficient and stable at scale.

Key Insights

  • The Power of Non-Contrastive SSL: The researchers found that contrastive SSL often fails in production due to its reliance on global information. In contrast, CCA and MAE focus on feature relationships and local reconstruction, which are more amenable to distributed industrial training.
  • SSL as a Regularizer: The best performance was achieved by weighting the primary link prediction loss several orders of magnitude higher than the SSL losses. In this configuration, the SSL tasks act as a robust regularizer, guiding the model toward better generalization without distracting from the main recommendation objective.
  • Complementary Signals: While CCA helps by reducing feature redundancy, MAE assists the model in understanding the underlying distribution of user attributes. Together, they produce a more "sturdy" embedding than link prediction alone.

Experimental Results

The framework was evaluated via live online A/B testing on Snapchat's friend recommendation system. The results were statistically significant and demonstrated the model's robustness across diverse user segments:

  • +5.45% increase in the total number of new friendships formed.
  • +1.91% increase in new friendships for cold-start users (those with few existing connections).
  • Improved performance across various global markets compared to the single-task production baseline.

Conclusion and Future Work

This research demonstrates that SSMTL can be successfully scaled to improve retrieval in large-scale industrial systems. By carefully selecting non-contrastive objectives, developers can enhance embedding robustness and cold-start performance without incurring the computational penalties of traditional SSL.

Future work will explore automated hyperparameter tuning to manage the sensitivity of loss weighting ($\alpha, \beta, \gamma$) and investigate automated task selection to further mitigate the risk of negative transfer. Additionally, the team plans to test these robust objectives with alternative graph architectures such as GraphSAGE or LightGCN.

Summary updated

BibTeX
@inproceedings{kolodner2024robust,
  author = {Matthew Kolodner and Mingxuan Ju and Zihao Fan and Tong Zhao and Elham Ghazizadeh and Yan Wu and Neil Shah and Yozen Liu},
  title = {{Robust Training Objectives Improve Embedding-based Retrieval in Industrial Recommendation Systems}},
  booktitle = {RobustRecSys@RecSys},
  year = {2024},
}
Figure