TL;DR

Netflix post-trains an internal foundation LLM into GenRec, a recommendation ranker that matches or beats its mature production model with far fewer labels and input signals.

Summary

The production recommender relies on thousands of hand-crafted features and bespoke architectures, which makes new content types and surfaces costly. GenRec verbalizes user history, item metadata and context as text, post-trains a Netflix-adapted LLM with a catalog-aware scoring head and reward-weighted objectives, and serves it in prefill-only mode on vLLM. In an A/B test over about 10% of traffic for four weeks it won on short and long-term metrics, using roughly 40× fewer Phase-2 labeled examples.

Key takeaways

  1. Train in two phases: Phase 1 adapts an open-source LLM to Netflix content and behavior (10–20% better offline than starting from an off-the-shelf LLM); Phase 2 post-trains for ranking and is refreshed far more often (+35–50%, about 80% after two weeks of staleness).
  2. Turn logs into conversations: user message holds verbalized context and history, assistant message holds the real engagement; at inference only the scoring head runs, nothing is decoded.
  3. Treat context as the feature budget: keep high-signal events, drop weak ones, compress repetition, elaborate cold-start items, and share prefixes for caching; the elbow-point study cut tokens to about one third with negligible metric loss, and serving cost fell similarly.
  4. Align with reward weights instead of full RL: scale each example’s ranking loss by long-term satisfaction and content-mix signals; GRPO-style RL gave extra gains but is left for later because of cost.
  5. Score the whole catalog in one forward pass: prefill-only inference with learned item embeddings avoids autoregressive decoding; distilled or smaller backbones cut cost further.
  6. Expect scaling-law behavior: more Phase-2 data and larger backbones (about 1B to 10B) improved offline MRR consistently; offline gain was about +1.6% MRR with 40× fewer labels.

Tools and concepts

ItemRole in the page
LLM, TransformersDecoder-only backbone adapted to Netflix data
Fine-tuningPhase 1 adaptation and Phase 2 post-training
vLLMServing stack, prefill-only mode
MRROffline ranking metric used throughout

When to use

  1. When considering replacing feature engineering with context engineering in a recommender.
  2. When designing LLM serving for ranking large candidate sets cheaply (prefill-only, prefix caching, distillation).
  3. When aligning a model to long-term business goals without a full RL pipeline.

Caveats

  • Company blog: baseline, data and metric values are internal and not reproducible; most online gains are shown only as figures.
  • The A/B test covered batch-compute surfaces (about 10% of traffic), not all product surfaces.

LLM Transformers MLOps