LLM-Native Recommendation System at Scale

Netflix2026
View original source

Netflix developed GenRec, an LLM-backed recommendation ranker that addresses the complexity and rigidity of traditional feature-engineered recommendation systems. The solution post-trains a Netflix-adapted foundation LLM on verbalized user histories, item metadata, and context using a two-phase training framework, incorporating catalog-aware scoring heads and reward-weighted objectives aligned to long-term member satisfaction. In a large-scale A/B test covering approximately 10% of Netflix traffic, GenRec achieved statistically significant improvements on both short-term and long-term online metrics compared to the mature production baseline, while using 10-40× fewer Phase-2 labeled training examples and relying on dramatically fewer hand-engineered features, demonstrating the viability of LLM-native recommendation at massive scale.

Industry

Media & Entertainment

Technologies

Overview

Netflix’s GenRec represents a significant production deployment of an LLM-native recommendation system that fundamentally reimagines how personalization works at scale. The case study describes Netflix’s evolution from traditional feature-engineered recommendation systems—which rely on thousands of hand-crafted features and specialized architectures—toward an LLM-centric approach that verbalizes user behavior and context as natural language. This shift addresses the growing complexity and maintenance burden of their existing production stack, where onboarding new content types or product surfaces requires substantial feature engineering, architecture changes, and infrastructure work.

The problem GenRec tackles is both technical and operational: Netflix needs to serve recommendations across diverse content types including movies, series, games, live events, and podcasts, across multiple product surfaces, while optimizing for long-term member satisfaction rather than just immediate engagement. Traditional approaches have become increasingly costly to maintain and extend, creating friction in product development and experimentation.

Two-Phase Training Framework

GenRec employs a sophisticated two-phase training architecture that separates foundational knowledge from task-specific optimization. Phase 1 adapts an open-source LLM on proprietary Netflix corpora to develop foundational capabilities including Netflix content understanding, member behavior patterns, and general language comprehension. This phase is updated relatively infrequently and serves as a shared backbone across multiple applications at Netflix, not just recommendation.

Phase 2 then post-trains this foundation model specifically for ranking tasks. This phase focuses on ranking quality and steering, incorporates multiple reward signals through reward-weighted losses, and is refreshed more frequently to track new content releases and evolving member preferences. Critically, Phase 2 is explicitly optimized under serving cost constraints, recognizing that production deployment requires balancing quality against computational expense. The ablation studies reveal that Phase 1 provides a 10-20% improvement in offline ranking metrics compared to starting from an off-the-shelf LLM, while Phase 2 adds another 35-50% gain when evaluated near the Phase 1 training cutoff, growing to about 80% improvement after two weeks as the Phase 1 model becomes stale.

Data as Conversations and Verbalization Strategy

A distinctive aspect of GenRec’s approach is converting Netflix’s hundreds of billions of interaction events into single-turn or multi-turn “conversations” between user and recommender. Each turn contains a user message with verbalized context, profile, history, item metadata, and task description, plus an assistant message capturing the member’s actual engagement behavior. This conversational format serves the dual purpose of supporting both language modeling objectives during training while allowing natural expression of rich recommendation signals as text.

However, Netflix discovered that naive verbalization quickly exceeds token budgets and becomes prohibitively expensive at their scale. This led to the development of what they term “context engineering”—a systematic approach to managing the context window as a “feature budget.” The strategy involves retaining high-signal engagements like long plays and thumbs-up with rich details, omitting low-signal events such as very short plays or quick hovers, summarizing or compressing repetitive behaviors like binge-watching patterns, and elaborating selectively on important or cold-start items like new releases.

The context engineering optimization revealed that they could reduce context tokens to roughly one-third of the original budget with negligible degradation in offline ranking metrics. Since serving cost is approximately proportional to context length, this translated directly to similar reductions in serving expense. The team systematically studied this tradeoff by varying context length and verbosity, identifying an “elbow point” beyond which additional context yields diminishing returns, typically manifesting when they’ve included the most relevant historical events.

Multi-Objective Training and Alignment

GenRec employs a sophisticated multi-objective loss function combining three components. The primary catalog-aware ranking objective teaches the model to score items by engagement quality, labeling positives using high-value engagements with appropriate thresholds and denoising logic, training via cross-entropy loss over the catalog or candidate set. A language modeling objective is retained over the verbalized inputs and outputs to preserve general language understanding, improve interpretation of rich natural-language histories and item metadata, and keep options open for future text-generation use cases like recommendation explanations.

Most notably, GenRec implements reward-weighted loss for alignment with business objectives and long-term member satisfaction. Training only on raw interaction sequences can lead to undesirable behaviors such as over-favoring binge-watching or over-focusing on single content types. To address this, each training example receives a scalar weight derived from two types of signals: long-term satisfaction proxies that estimate how short-term engagement contributes to outcomes like return behavior and sustained engagement, and behavior rebalancing adjustments across content types and launch stages to align with business goals.

This reward-weighted approach provides a simpler and more cost-efficient alternative to full reinforcement learning while delivering effective alignment in practice. Netflix notes they’ve observed additional gains from RL-style methods like GRPO but left them for future work due to higher computational costs. This pragmatic approach to alignment demonstrates how production LLMOps requires balancing theoretical optimality against operational constraints.

Architecture and Inference Optimization

The GenRec architecture follows a decoder-only Transformer design trained with next-token-prediction objectives, augmented with a catalog-aware ranking head that scores only in-catalog Netflix items. The scoring pipeline verbalizes user history, context, and item metadata into a text sequence, processes it through the LLM to extract a pooled hidden state summarizing current preferences, then combines this state with learned item embeddings via a scoring head to produce rankings. All parameters—backbone, scoring head, and item embeddings—are trained jointly, with sampled softmax or candidate sets enabling efficient training and inference over large catalogs.

A critical production consideration is serving cost, driven primarily by model size, context length, and inference mode. Netflix employs three key strategies: training GenRec on smaller or distilled foundation models with larger or more targeted datasets to capture quality of larger models at lower cost; aggressive context compaction through the engineering strategies described earlier; and most importantly, prefill-only inference mode.

The prefill-only approach is particularly clever: rather than autoregressive decoding over large candidate sets (which would be prohibitively expensive), GenRec runs in prefill-only mode where the model consumes the prompt once and scores the entire candidate set in a single forward pass with no token-by-token decoding. This architectural decision makes it feasible to serve GenRec on high-volume workloads within reasonable compute budgets. The system runs on Netflix’s internal LLM serving stack using vLLM, demonstrating how production LLM deployments benefit from specialized serving infrastructure.

Production Evaluation and Results

Netflix conducted rigorous evaluation through both offline metrics and large-scale online A/B testing. Offline, GenRec outperformed the production ranker on ranking metrics despite using far fewer input signals and labeled examples. With approximately 40× fewer Phase-2 labeled training examples, GenRec achieved about 1.6% improvement in Mean Reciprocal Rank (MRR), with continued improvement as they increased Phase-2 training data and enriched input signals.

The online A/B test was particularly compelling, running on batch-compute recommendation surfaces covering approximately 10% of Netflix traffic over roughly four weeks. In this low-data, low-signal configuration, GenRec delivered statistically significant gains over the production baseline on both short-term and long-term online metrics. This validation against a mature production system that has been tuned over many years provides strong evidence that LLM-backed rankers can compete with traditional recommendation models in real-world production environments.

The data and model scaling studies revealed clear trends. For both ~1B and ~10B parameter backbones, offline MRR improved as they increased Phase-2 post-training data, with larger models reaching higher absolute MRR while following similar scaling curves. Under fixed training budgets, larger backbones (within the 1B to 10B parameter range tested) consistently achieved higher offline MRR than smaller ones, suggesting that recommendation inherits the beneficial scaling properties observed in general LLM development.

The data efficiency comparison is particularly striking: starting from a strong Phase-1 model, GenRec matches or exceeds the production ranker using 10-40× fewer Phase-2 labeled examples depending on configuration. This marginal data efficiency is especially valuable because Phase 2 requires more frequent refreshing than Phase 1 to track new content and evolving preferences, making training efficiency directly translate to operational benefits.

LLMOps Insights and Production Considerations

The case study provides several valuable insights for production LLMOps. The shift from “feature engineering to context engineering” represents a fundamental change in how recommendation systems are developed. Rather than designing thousands of hand-crafted features and maintaining complex feature infrastructure, the focus moves to constructing rich textual contexts from raw logs, metadata, and tools, with the prompt effectively becoming the new feature vector. Modeling effort shifts from feature design to decisions about which signals to include, temporal coverage, and compression strategies within token budgets.

Netflix observes a broader architectural convergence where many tasks can share a common foundation backbone rather than requiring custom architectures for each recommendation task. Differentiation comes from data and verbalization strategies, post-training objectives and rewards, and inference optimization rather than bespoke neural architectures. This enables easier knowledge sharing across applications and opens possibilities for natural-language steering in future product experiences.

The application of scaling laws as design guides represents another shift from traditional RecSys development. While traditional recommendation systems often hit diminishing returns due to sparse IDs, heavy engineering objectives, and task-specific architectures, LLM-backed recommendation inherits clearer data and model scaling behavior where more data and larger models consistently improve quality within cost limits. This brings recommendation system design closer to the broader LLM paradigm where scaling laws help guide model and data investment decisions.

From an infrastructure perspective, LLM-backed recommenders push toward LLM-style infrastructure: GPU-accelerated, vLLM/Triton-based serving with careful batching and caching. This represents a significant departure from classic RecSys stacks built around MLPs or factorization models, requiring teams to develop new operational expertise and tooling.

Critical Assessment

While the results are impressive, the case study comes from Netflix’s engineering blog and naturally presents their work in a favorable light. Several considerations warrant balanced assessment. The comparison is against a “mature production ranker” but specific details about the baseline’s architecture, training data volume, and feature count are limited, making it difficult to fully assess the fairness of the comparison. The claim of 10-40× fewer Phase-2 labeled examples is notable, but Phase 1 itself required substantial data and compute investment on proprietary Netflix corpora, representing a significant upfront cost that may not be accessible to all organizations.

The online A/B test results show “statistically significant improvements” but Netflix doesn’t disclose the magnitude of these improvements, only showing them visually in a figure without numerical values. The test was conducted on “batch-compute recommendation surfaces” which may represent specific use cases rather than the full Netflix recommendation stack. It’s unclear whether GenRec has fully replaced the traditional production system or serves specific surfaces alongside it.

The serving cost optimizations are presented as successful but there’s limited discussion of absolute costs compared to the previous system. The prefill-only inference mode is clever but constrains the system to scoring predetermined candidate sets rather than truly generative recommendation. The context engineering required to fit within token budgets represents ongoing operational overhead and requires careful ongoing tuning.

Despite these caveats, the case study represents a significant contribution to understanding how LLMs can be deployed for production recommendation at massive scale, with transparent discussion of cost optimization strategies, training approaches, and the tradeoffs involved in moving from traditional to LLM-native architectures.

More Like This

AI-Powered Semantic Job Search at Scale

Linkedin2025

LinkedIn transformed their traditional keyword-based job search into an AI-powered semantic search system to serve 1.2 billion members. The company addressed limitations of exact keyword matching by implementing a multi-stage LLM architecture combining retrieval and ranking models, supported by synthetic data generation, GPU-optimized embedding-based retrieval, and cross-encoder ranking models. The solution enables natural language job queries like "Find software engineer jobs that are mostly remote with above median pay" while maintaining low latency and high relevance at massive scale through techniques like model distillation, KV caching, and exhaustive GPU-based nearest neighbor search.

question_answeringclassificationchatbot+42

Agentic AI Copilot for Insurance Underwriting with Multi-Tool Integration

Snorkel2025

Snorkel developed a specialized benchmark dataset for evaluating AI agents in insurance underwriting, leveraging their expert network of Chartered Property and Casualty Underwriters (CPCUs). The benchmark simulates an AI copilot that assists junior underwriters by reasoning over proprietary knowledge, using multiple tools including databases and underwriting guidelines, and engaging in multi-turn conversations. The evaluation revealed significant performance variations across frontier models (single digits to ~80% accuracy), with notable error modes including tool use failures (36% of conversations) and hallucinations from pretrained domain knowledge, particularly from OpenAI models which hallucinated non-existent insurance products 15-45% of the time.

healthcarefraud_detectioncustomer_support+90

Large-Scale Personalization and Product Knowledge Graph Enhancement Through LLM Integration

DoorDash2025

DoorDash faced challenges in scaling personalization and maintaining product catalogs as they expanded beyond restaurants into new verticals like grocery, retail, and convenience stores, dealing with millions of SKUs and cold-start scenarios for new customers and products. They implemented a layered approach combining traditional machine learning with fine-tuned LLMs, RAG systems, and LLM agents to automate product knowledge graph construction, enable contextual personalization, and provide recommendations even without historical user interaction data. The solution resulted in faster, more cost-effective catalog processing, improved personalization for cold-start scenarios, and the foundation for future agentic shopping experiences that can adapt to real-time contexts like emergency situations.

customer_supportquestion_answeringclassification+64