GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
RecentarXiv preprint

GenRec: An LLM-Backed Recommendation Ranker at Netflix

Netflix replaced thousands of engineered features with a text prompt and an LLM that scores the whole catalog in one pass. It beat a mature ranker online; the long-term lift was 0.006%.

Breakdown by FDE Interviews · 15 min read · Updated

About the original · 2026
AUTHORS
Li, Sehgal, Rao, Houthooft, et al.
FROM
Netflix
PUBLISHED
Aug 2026 · arXiv preprint
IN THIS BREAKDOWN · 10 SECTIONS

You can read 17% of this breakdown.

01

The paper in one minute

Netflix's title ranker is a mature discriminative model built over many years on thousands of engineered features, special networks for feature interactions, sequence models and multi-task heads. It works, and it is expensive to change: a new content type such as live events or podcasts means new features, new architecture work and new pipelines. Ying Li and colleagues at Netflix describe GenRec, an attempt to replace that ranker with a large language model.

GenRec has two training phases. Phase 1, built elsewhere at Netflix and changed rarely, adapts an open-source LLM to Netflix data so it understands the catalog and member behavior. Phase 2, the subject of this paper, post-trains that foundation model for ranking and is refreshed often. A member's history, the titles' metadata and the request's context (device, time, surface) are written as text. The model reads that text once, a pooled hidden state is scored against a learned embedding for every catalog item, and a softmax over the catalog gives the ranking. Because the model never generates a title name, it cannot recommend something Netflix does not have.

Training mixes a ranking loss over the catalog with a language-modeling loss, and weights each example by reward models that estimate long-term satisfaction and rebalance content types. Serving runs on vLLM in prefill-only mode: one forward pass per request, no decoding.

The results: about 40 times fewer Phase-2 labels than production for a 1.6% relative offline gain in mean reciprocal rank, and a four-week online test on about 10% of traffic with statistically significant gains on a short-term engagement metric (+0.115%) and the long-term core metric (+0.006%).

THE IDEA, VISUALLY
ONE RANKING REQUEST (SECTIONS 4.3 TO 4.7) raw logs history · item metadata · context verbalize keep high-signal plays, drop noise, compress binges LLM, prefill only decoder-only backbone on vLLM, one forward pass pooled state h one d-dimensional summary of member and context catalog head score h against an embedding per catalog item softmax ranking every title scored; out-of-catalog impossible CONTEXT COMPACTION (SECTION 5.4) before ~5,000 after ~1,700 tokens negligible offline loss; serving cost about a third WHERE THE OFFLINE GAIN COMES FROM (TABLE 1) Phase 1 vs open-source base +10-20% Phase 2 vs fresh Phase 1 +35-50% Phase 2, two weeks later ~80% MRR, relative; the two-week figure includes Phase 1 going stale ONLINE A/B, ~10% OF TRAFFIC, 4 WEEKS (FIG. 3) short-term homepage engagement +0.115% p = 3.1e-10 long-term core metric +0.006% p = 0.025 Offline: about 40x fewer Phase-2 labels than production, +1.6% relative MRR. Backbones ~1B to ~10B parameters.
GenRec turns a member's history into text, reads it once and scores every catalog title. Compact prompts set the serving bill; the online test found a large short-term lift and a tiny long-term one.
Research notes: the problem, approach and results
~40x

fewer Phase-2 labeled examples than the production ranker, for +1.6% relative offline MRR (Section 5.1)

5,000 → 1,700

prompt tokens after compaction, with negligible offline loss and about a third of the serving cost (Section 5.4)

+0.006%

relative lift on the long-term core online metric, p = 0.025 (Figure 3)

THE PROBLEM

Netflix's production ranker runs on thousands of hand-built features and bespoke architectures. Each new content type or surface means new features, new models and new pipelines, and the system has become slow to change.

THE IDEA

Write the member's history, item metadata and context as text, post-train an in-house LLM on Netflix data with reward-weighted ranking labels, and add a head that scores every catalog item from one pooled state, served prefill-only.

THE RESULT

With about 40 times fewer Phase-2 labels and fewer input signals, GenRec beat the production ranker offline (+1.6% relative MRR) and in a four-week A/B test on about 10% of traffic, by +0.115% short-term and +0.006% on the long-term core metric.

02

Why it matters to an FDE

Few FDEs will build a Netflix ranker. Many will be asked to put an LLM behind a ranking, routing, matching or scoring decision that a classical model already makes, and this paper is a rare production account of doing that against a strong incumbent.

The prompt becomes the feature vector. The engineering effort moves from building features to deciding what goes into a fixed token budget: which events to keep, which to drop, what to compress and how far back to go. GenRec cut its prompts from about 5,000 tokens to about 1,700 with no meaningful quality loss, and serving cost fell by about two thirds. Context engineering is the cost lever.

Score, don't generate. Generating title names token by token is slow and can produce items that do not exist. A scoring head over a fixed catalog ranks everything in one pass and makes invalid outputs impossible. The same move applies to any LLM picking from a known list: products, routes, categories, next actions.

Encode business rules as training weights. Instead of reinforcement learning, Netflix scales each example's loss by reward models for long-term value and content mix. It is simpler to run and maintain, which matters more than the extra gain GRPO-style training showed in their preliminary tests.

Read the online result with care. A long-term lift of 0.006% at p = 0.025 is a real result at Netflix's scale and a small one. Before quoting a vendor's "statistically significant improvement" to a customer, ask for the effect size and the interval.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 199 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The architecture, the two phases, the numbers, and the misreadings to avoid

    Free account
  2. 04How it works

    Data, verbalization, the scoring head, the objective, rewards and serving

    Premium
  3. 05The numbers that matter

    Offline and online results, scaling, phase contributions and compaction

    Premium
  4. 06Try it yourself

    Recompute the compaction, back out the A/B test's precision, and compare scoring with generation

    Premium
  5. 07Where it breaks

    What the paper leaves unmeasured, and the conditions the design depends on

    Premium
  6. 08Using it on a deployment

    Putting an LLM behind a customer's ranking or routing decision, and proving it beats the incumbent

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →