Foundation Model for Large-Scale Personalized Recommendation

netflix · Media & Entertainment · 2025 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: personalized recommendation foundation models

Netflix's personalized recommender system had become costly to maintain because many specialized models were independently trained on common data, making innovation transfer difficult while serving-latency constraints limited how much user history each model could use.

Constraints:

Architecture

Netflix built a recommendation foundation model inspired by LLMs. It tokenizes member interactions into meaningful sequence events, trains an autoregressive next-token model with recommendation-specific objectives, uses sparse attention and sliding-window sampling to learn from long histories, handles cold-start with incremental training and metadata-based title embeddings, and exposes the model through direct prediction, batch embeddings, candidate generation, and fine-tuning for downstream recommendation applications.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  user-interaction-history[User interaction history]
  interaction-tokenizer[Interaction tokenizer]
  autoregressive-recommendation-model[Autoregressive recommendation model]
  sparse-attention-and-sampling[Sparse attention and sampling]
  cold-start-embedding-mixer[Cold-start embedding mixer]
  embedding-stabilization-layer[Embedding stabilization layer]
  downstream-recommendation-applications[Downstream recommendation applications]
  user-interaction-history --> interaction-tokenizer
  interaction-tokenizer --> autoregressive-recommendation-model
  autoregressive-recommendation-model --> sparse-attention-and-sampling
  sparse-attention-and-sampling --> autoregressive-recommendation-model
  autoregressive-recommendation-model --> cold-start-embedding-mixer
  cold-start-embedding-mixer --> autoregressive-recommendation-model
  cold-start-embedding-mixer --> embedding-stabilization-layer
  embedding-stabilization-layer --> downstream-recommendation-applications
  downstream-recommendation-applications --> embedding-stabilization-layer
  downstream-recommendation-applications --> autoregressive-recommendation-model
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
User interaction history Provides browsing, play, duration, device, time, locale, and title interactions from Netflix members. Interaction tokenizer
Interaction tokenizer Merges raw actions into meaningful recommendation tokens while balancing information retention against sequence length. Autoregressive recommendation model
Autoregressive recommendation model Learns member preferences from sequence data using next-token-style objectives adapted for recommendation behavior. Sparse attention and sampling, Cold-start embedding mixer
Sparse attention and sampling Extends context with sparse attention and sliding-window training while preserving inference efficiency. Autoregressive recommendation model
Cold-start embedding mixer Combines metadata-based and ID-based title embeddings, using entity age to support new or pre-launch titles. Autoregressive recommendation model, Embedding stabilization layer
Embedding stabilization layer Applies an orthogonal low-rank transformation so downstream consumers see stable embedding dimensions across retraining. Downstream recommendation applications
Downstream recommendation applications Use the foundation model directly, consume batch embeddings, retrieve candidate titles, or fine-tune model subgraphs for specific canvases. Embedding stabilization layer, Autoregressive recommendation model

Data flow

Raw member activity is tokenized by merging meaningful interactions and retaining details such as duration, locale, time, device, title ID, genre, and release country. Training samples overlapping windows from long histories and uses autoregressive objectives plus auxiliary targets to learn member preferences. New-title metadata and ID embeddings are mixed based on entity age. Downstream systems then consume predictions, stable embeddings, candidate-generation features, or fine-tuned subgraphs.

3 supporting quotes
“Tokenization helps define what constitutes a meaningful “token” in a sequence.”article, stated
“During training, we sample overlapping windows of interactions from the full sequence.”article, stated
“The model’s adaptability allows for fine-tuning with application-specific data.”article, stated

Why this architecture

Netflix centralized preference learning because maintaining many independently trained recommendation models was costly and made it hard to transfer innovations. The design borrows LLM scaling and semi-supervised next-token learning, but adapts it for recommender-specific constraints such as millisecond latency, unequal interaction importance, new-title cold start, and stable downstream embeddings.

3 supporting quotes
“maintenance of the recommender system became quite costly. Furthermore, it was difficult to transfer innovations from one model to another”article, stated
“This scenario underscored the need for a new recommender system architecture where member preference learning is centralized”article, stated
“This constraint is more stringent than what is typical in LLM applications, where longer inference times (seconds) are more tolerable.”article, stated

Models used: Netflix recommendation foundation model · autoregressive next-token prediction model · sparse attention mechanisms · KV caching

Scale

Alternatives considered (roads not taken)

maintain numerous independently trained specialized recommendation models

Rejected because: The model fleet had become costly and made innovation transfer difficult despite shared data sources.

“it was difficult to transfer innovations from one model to another, given that most are independently trained despite using common data sources.”article, stated

extract features only from brief recent interaction windows

Rejected because: Short windows miss comprehensive member history, but full histories exceed practical latency and training constraints.

“many are confined to a brief temporal window due to constraints in serving latency or training costs.”article, stated

treat every target interaction equally during pretraining

Rejected because: Recommendation events differ in importance, and long-term satisfaction cannot be aligned by weighting every interaction equally.

“in our model, not all user interactions are of equal importance.”article, stated

use only item ID embeddings for new titles

Rejected because: New and pre-launch titles may have little or no interaction data, so metadata must help estimate preferences.

“newly-launched or pre-launch titles have reasonable embeddings even with no user interaction data.”article, stated

expose raw embedding spaces that change after each retraining

Rejected because: Arbitrary, incompatible embedding dimensions create bugs and force downstream consumers to adapt after every retrain.

“the embedding space has arbitrary, uninterpretable dimensions and is incompatible across different model training runs.”article, stated

Patterns

retrieval-ranking (personalization)

Netflix uses a foundation model to generate predictions, embeddings, and candidate-generation features for personalized recommendation surfaces.

“The model is primarily trained to predict the next entity a user will interact with.”article, stated
“They can serve as features in other models or be used for candidate generation, such as retrieving appealing titles for a user.”article, stated

fine-tuning-adaptation (model-adaptation)

The foundation model can be integrated directly or through subgraphs and fine-tuned with application-specific data using less data and compute.

“Users can integrate the full model or subgraphs into their own models, fine-tuning them with less data and computational power.”article, stated
“It facilitates the distribution of these learnings to other models, either through shared model weights for fine tuning or directly through embeddings.”article, stated

eval-driven-development (model-quality)

Netflix treats scaling as dependent on robust evaluation that can distinguish model improvements and identify where the recommender should improve.

“Successful scaling demands robust evaluation, efficient training algorithms, and substantial computing resources.”article, stated
“Evaluation must effectively differentiate model performance and identify areas for improvement.”article, stated

Tradeoffs

Centralize preference learning in a foundation model.

Chose a unified recommendation foundation model over many independently trained specialized models.

Rationale: Centralization reduces maintenance cost and makes shared preference learning reusable across downstream models.

“enabling a transition from maintaining numerous small, specialized models to building a scalable, efficient system.”article, stated

Balance sequence compression with retained interaction detail.

Chose interaction tokenization that merges adjacent actions while preserving key fields over raw fine-grained event sequences or overly lossy tokens.

Rationale: The model needs long histories but cannot afford unbounded sequence length or dropped behavioral signals.

“the goal is to balance the length of interaction history against the level of detail retained in individual tokens.”article, stated

Use multi-token and auxiliary objectives instead of plain next-item prediction alone.

Chose multi-token prediction plus auxiliary targets such as genre over equal-weight single-token item prediction.

Rationale: The modified objective captures longer-term dependencies, reduces overfitting on noisy item IDs, and narrows candidate lists.

“we can adopt a multi-token prediction objective during training, where the model predicts the next n tokens at each step instead of a single token”article, stated
“it acts as a regularizer to reduce overfitting on noisy item ID predictions”article, stated

Mix metadata and ID embeddings by entity age.

Chose age-aware attention between metadata-based and ID-based title embeddings over simply summing metadata and ID embeddings.

Rationale: New titles should rely more on metadata, while established titles can rely more on learned engagement-based IDs.

“Instead of simply summing these embeddings, we use an attention mechanism based on the “age” of the entity.”article, stated

Expose stable transformed embeddings to downstream systems.

Chose orthogonal low-rank transformation over forcing downstream consumers to adapt to each retrained embedding space.

Rationale: Stabilized dimensions reduce bugs and invalid assumptions when the foundation model is retrained and redeployed.

“downstream consumers, who must adapt to each retraining and redeployment, risking bugs due to invalidated assumptions about the embedding structure.”article, stated

Gotchas (what bit them)

Specialized recommender fleets create maintenance and transfer costs.

Root cause: Models are independently trained even when they use common data sources, so each innovation must be moved model by model.

Resolution: Centralize member preference learning in a foundation model that can distribute weights, embeddings, and fine-tuning capabilities.

“maintenance of the recommender system became quite costly. Furthermore, it was difficult to transfer innovations from one model to another”article, stated

Tokenizing recommendation behavior can lose either detail or tractability.

Root cause: Overly lossy tokenization drops valuable signals, while too-granular sequences exceed processing-time and memory limits.

Resolution: Merge adjacent actions into meaningful tokens while preserving important information such as watch duration and engagement types.

“Overly lossy tokenization risks losing valuable signals, while too granular a sequence can exceed practical limits on processing time and memory.”article, stated

Recommender context windows are constrained by serving latency rather than only model capacity.

Root cause: Online recommender services require millisecond-level inference, making long histories harder to use than in typical LLM apps.

Resolution: Use sparse attention, sliding-window sampling, and KV caching to learn from long histories while maintaining low latency.

“context windows during inference are often limited to hundreds of events — not due to model capability but because these services typically require millisecond-level latency.”article, stated

New titles have no interaction history.

Root cause: Recommendation models must estimate preferences for newly launched or pre-launch titles before members have engaged with them.

Resolution: Warm-start new embeddings and combine metadata-based embeddings with ID-based embeddings using an age-aware attention mechanism.

“the models need to estimate members’ preferences for newly launched titles before anyone has engaged with them.”article, stated

Embedding spaces change across retraining runs.

Root cause: The user/item embedding dimensions are arbitrary, uninterpretable, and incompatible across model versions.

Resolution: Apply an orthogonal low-rank transformation to stabilize embedding dimensions for downstream consumers.

“To address this, we apply an orthogonal low-rank transformation to stabilize the user/item embedding space”article, stated

Evaluation

Netflix evaluates the foundation model through downstream integrations, scaling-law experiments, model/data/context scaling, prediction quality, embedding usefulness, and evaluation methods that can distinguish performance and identify improvement areas.

Metrics: over 300 million users at end of 2024 · hundreds of billions of interactions · context windows extended to several hundred events · active histories spanning thousands of events · millisecond-level serving latency · scaling-law improvements as data and model size increase · promising downstream integration results

3 supporting quotes
“Our experiments confirm that the scaling law also applies to our foundation model, with consistent improvements observed as we increase data and model size.”article, stated
“Evaluation must effectively differentiate model performance and identify areas for improvement.”article, stated
“direct use as a predictive model to generate user and entity embeddings for other applications, and can be fine-tuned for specific canvases.”article, stated

Outcomes

The source reports over 300 million users, hundreds of billions of interactions, active histories of thousands of events, several-hundred-event context via sparse attention, millisecond-serving constraints, and promising downstream integrations.

3 supporting quotes
“The Foundation Model allows various downstream applications, from direct use as a predictive model to generate user and entity embeddings for other applications”article, stated
“Our experiments confirm that the scaling law also applies to our foundation model”article, stated
“This move from multiple specialized models to a more comprehensive system marks an exciting development in the field of personalized recommendation systems.”article, stated