Engineering LinkedIn's Next-Generation Feed with LLMs and Transformer Models
LinkedIn's Feed relied on a heterogeneous retrieval architecture with multiple separate sources—trending content, collaborative filtering, and embedding-based systems—each with its own infrastructure, creating engineering complexity and preventing holistic optimization. The traditional ranking model evaluated each impression independently, missing sequential patterns in how professionals consume content over time.
Passing raw numerical engagement counts as unprocessed text tokens resulted in near-zero correlation (-0.004) between item popularity and embedding similarity, degrading retrieval quality. Including all impressed posts—both engaged and scrolled-past—in training histories hurt model performance and inflated GPU compute costs.
Percentile-bucketed feature encoding improved recall@10 by 15%.
Adding two hard negatives per member improved recall by a further 3.6%. Positives-only training reduced per-sequence memory footprint by 37% and enabled 2.6× faster training iteration. A custom Flash Attention variant delivered an additional 2× serving speedup, with the full system achieving sub-50ms retrieval latency across millions of posts.
Show all 11 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Percentile-bucketed feature encoding improved recall@10 by 15%.
What tools did this team use?
LLM, GPUs, H100, PyTorch, MMoE, DCNv2, GRMIS, InfoNCE.
What results were reported?
Recall@10 improvement from percentile feature encoding: 15%; Popularity-embedding correlation jump from percentile encoding: 30x; Recall improvement from 1 hard negative per member: +2.0%; Recall improvement from 2 hard negatives per member: +3.6% (source-reported, not independently verified).
What failed first in this deployment?
Passing raw numerical engagement counts as unprocessed text tokens resulted in near-zero correlation (-0.004) between item popularity and embedding similarity, degrading retrieval quality.
How is this back office ops AI workflow structured?
Member opens Feed → Prompt generation from structured data → LLM dual-encoder embedding generation → k-NN retrieval from embedding index → Sequential ranking with Generative Recommender → Personalized Feed delivered.