Large Scale Retrieval for the LinkedIn Feed using Causal Language Models

📅 2025-10-15
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
In ultra-large-scale recommendation systems (e.g., LinkedIn Feed), new users suffer from low recall quality and poor retention due to sparse social connections. Method: This paper proposes a dual-encoder retrieval architecture grounded in a causal language model (LLaMA-3). Relying solely on textual inputs, it employs prompt engineering to quantize numerical features into embeddings, and integrates large-scale fine-tuning with model quantization to achieve billion-scale candidate retrieval within millisecond latency and high throughput. Contribution/Results: It pioneers the adaptation of generative large language models to industrial-grade real-time retrieval, significantly improving semantic alignment between retrieval and ranking stages. Offline evaluations and online A/B tests demonstrate statistically significant gains in new-user click-through rate and 7-day retention, validating both effectiveness and deployability in production-scale environments.

Technology Category

Application Category

📝 Abstract
In large scale recommendation systems like the LinkedIn Feed, the retrieval stage is critical for narrowing hundreds of millions of potential candidates to a manageable subset for ranking. LinkedIn's Feed serves suggested content from outside of the member's network (based on the member's topical interests), where 2000 candidates are retrieved from a pool of hundreds of millions candidate with a latency budget of a few milliseconds and inbound QPS of several thousand per second. This paper presents a novel retrieval approach that fine-tunes a large causal language model (Meta's LLaMA 3) as a dual encoder to generate high quality embeddings for both users (members) and content (items), using only textual input. We describe the end to end pipeline, including prompt design for embedding generation, techniques for fine-tuning at LinkedIn's scale, and infrastructure for low latency, cost effective online serving. We share our findings on how quantizing numerical features in the prompt enables the information to get properly encoded in the embedding, facilitating greater alignment between the retrieval and ranking layer. The system was evaluated using offline metrics and an online A/B test, which showed substantial improvements in member engagement. We observed significant gains among newer members, who often lack strong network connections, indicating that high-quality suggested content aids retention. This work demonstrates how generative language models can be effectively adapted for real time, high throughput retrieval in industrial applications.
Problem

Research questions and friction points this paper is trying to address.

Develops retrieval system for LinkedIn Feed using causal language models
Fine-tunes LLaMA 3 to generate embeddings from textual inputs only
Addresses high-scale candidate retrieval with millisecond latency constraints
Innovation

Methods, ideas, or system contributions that make the work stand out.

Fine-tunes LLaMA 3 as dual encoder
Generates embeddings from text only
Quantizes numerical features in prompts
🔎 Similar Papers
No similar papers found.
S
Sudarshan Srinivasa Ramanujam
LinkedIn Corporation, Sunnyvale, CA, USA
Antonio Alonso
Antonio Alonso
brazil
S
Saurabh Kataria
LinkedIn Corporation, Sunnyvale, CA, USA
S
Siddharth Dangi
LinkedIn Corporation, Sunnyvale, CA, USA
A
Akhilesh Gupta
LinkedIn Corporation, Sunnyvale, CA, USA
B
Birjodh Singh Tiwana
LinkedIn Corporation, Sunnyvale, CA, USA
M
Manas Somaiya
LinkedIn Corporation, Sunnyvale, CA, USA
Luke Simon
Luke Simon
Distinguished Engineer at LinkedIn
Computer ScienceMachine LearningProgramming Languages
D
David Byrne
LinkedIn Corporation, Sunnyvale, CA, USA
S
Sojeong Ha
LinkedIn Corporation, Sunnyvale, CA, USA
S
Sen Zhou
LinkedIn Corporation, Sunnyvale, CA, USA
A
Andrei Akterskii
LinkedIn Corporation, Sunnyvale, CA, USA
Z
Zhanglong Liu
LinkedIn Corporation, Sunnyvale, CA, USA
S
Samira Sriram
LinkedIn Corporation, Sunnyvale, CA, USA
C
Crescent Xiong
LinkedIn Corporation, Sunnyvale, CA, USA
Z
Zhoutao Pei
LinkedIn Corporation, Sunnyvale, CA, USA
A
Angela Shao
LinkedIn Corporation, Sunnyvale, CA, USA
A
Alex Li
LinkedIn Corporation, Sunnyvale, CA, USA
A
Annie Xiao
LinkedIn Corporation, Sunnyvale, CA, USA
C
Caitlin Kolb
LinkedIn Corporation, Sunnyvale, CA, USA
T
Thomas Kistler
LinkedIn Corporation, Sunnyvale, CA, USA
Z
Zach Moore
LinkedIn Corporation, Sunnyvale, CA, USA
Hamed Firooz
Hamed Firooz
Principal (Director) Research Scientist Meta AI
Natural Language ProcessingMachine LearningArtificial IntelligenceLLM