LLM-Based Generative Retrieval for Snapchat Content Recommendation
Liam Collins, Jiwen Ren, Donald Loveland, Bhuvesh Kumar, Clark Mingxuan Ju, Xuan Guo, Mo Li, Alvin Hou, Yi Cui, Peng Yang, Jian Wang, Saud Afzal Shafi, Nga Than, Ruiming Lu, Wenfeng Zhuo, Dongheng Li, Lili Zhang, Mingtao Zhang, Jinchao Ye, Jiacong He, Vincent Xue, Chunhui Zhu, Neil Shah
Abstract
Pretrained large language models (LLMs) are promising retrieval engines because they combine rich semantic priors, strong sequence modeling capabilities, and favorable scaling behavior. However, turning a pretrained LLM into a generative retriever in production deployment raises several challenges: the model must learn an internal item vocabulary that was absent from pretraining, and generate valid item identifiers under strict latency and cost constraints. We address these challenges through the design and launch of SnapLGR, an LLM-based generative retrieval system for short-video recommendation at Snapchat. The system is built around three main designs. First, we construct semantic identifiers (SIDs) from multimodal item embeddings and enhance them with Personalized PageRank (PPR)-based co-engagement contrastive learning, resulting in improved codebook utilization, reduced collisions, and infused collaborative signal. Second, we use continued pretraining (CPT) to ground the introduced SID tokens before supervised fine-tuning (SFT) on user interaction sequences. Third, we make SnapLGR serving practical through TensorRT-LLM CUDA-backed beam search and a decentralized worker-loop architecture. In a live A/B test, the launched system increased View Time by 0.37%, Time Spent by 0.09%, Deep Sessions by 0.18%, and Deep Sessions Unique User by 0.11% relative to the existing TIGER-style generative retrieval baseline. We then decompose this offline gap under a fixed tokenizer and quantify the gains due to model architecture, scaling, and pretraining. Overall, our deployment shows that successful production SnapLGR requires joint design across representation learning, vocabulary grounding, and efficient training and serving.
Create a lesson
Related papers
From Sessions to Serving: Integrating LLM-Based Embeddings into Retrieval for Production Content Recommendation
Shared title terminologycs.IRZhixiong Hu, Meng Li, Maggie Zhang et al.
Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation
Shared title terminologycs.IRYuheng Chen, Fan Zhang, Yixuan Xu et al.
ReSID: Rethinking Long-Tail Retrieval in Generative Recommendation through Item Reachability
Shared title terminologycs.IRMuyu Zou, Shunye Tang, Yi Xu et al.
Preserving Item Semantics for Free: Rethinking Token Initialization in LLM-Based Generative Recommendation
Shared title terminologycs.IRDonald Loveland, Liam Collins, Bhuvesh Kumar et al.
GRACE: Generative Recommender Acceleration Engine for Real-Time Ads Retrieval
Shared title terminologycs.IRZhou Fang, Yuhang Huang, Ang Zhang et al.
Multi-Decoder OneRec: Controllable Generative Retrieval for Multi-Objective Industrial Recommendation
Shared title terminologycs.IRYou Wang, Zhao Liu, Guoping Tang et al.