Foundation Models for Recommendations

By Ludovico Bessi, Senior ML Engineer at Google Β· Updated

A foundation model for recommendations is one large model trained on interaction data from many surfaces and tasks, then adapted or distilled to serve them all. Netflix, LinkedIn and Meta have reported that a shared model improves quality and cuts duplicated effort, at the cost of heavy training and serving engineering.

What "Foundation Model" Means Here

In language, a foundation model is pretrained once on broad data and adapted to many tasks. In recommendations, the idea is the same: train one large model on interaction data from many surfaces (home feed, search, notifications, ads, short video…) and many tasks (retrieval, ranking, multiple engagement types), then adapt or distill it for each production use.

The motivation:

  • Data sharing. Behavior on one surface informs predictions on another; small surfaces benefit from big ones.
  • Scaling. Generative and sequence-based recommenders showed quality can keep improving with compute (see Sequential Generative Recommenders), which justifies one very large model rather than dozens of medium ones.
  • Engineering consolidation. Fewer models, shared features and shared improvements instead of every team maintaining its own stack.

Common Architecture Pattern

            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 All user   β”‚  Foundation model (large,     β”‚   user / item embeddings,
 activity β†’ β”‚  sequence-based, multi-task)  β”‚ β†’ scores, representations
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚ distillation / embeddings / fine-tuning
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   Home feed ranker   Search ranker   Notifications model ...
     (small, fast)     (small, fast)     (small, fast)

The foundation model is usually too expensive to run on every request. Its knowledge reaches production in three ways:

  1. Embeddings as features. It produces user and item embeddings (refreshed nearline) consumed by existing rankers.
  2. Distillation. Smaller task-specific student models are trained to match its predictions.
  3. Direct serving for high-value surfaces where the budget allows, often with heavy inference optimization.

Industry Examples

  • Netflix has described building a foundation model for personalized recommendation that learns from members' full interaction histories with a transformer-style architecture, inspired by LLMs, and serves many downstream applications through embeddings and fine-tuning. Their later work studied how such models behave as they scale toward billions of parameters.
  • Meta has described generative recommenders built on HSTU, trained at very large scale and deployed across surfaces, and has published work on scaling interaction architectures (Wukong).
  • Pinterest has described PinnerFormer, a sequence model that produces user embeddings from long histories, trained to predict long-term engagement and shared across products.
  • LinkedIn has described large foundation-style ranking models trained across feed and other surfaces, using LLM-derived representations.

The common thread: a large shared sequence model produces representations, and smaller production models consume them.

Key Design Questions

What is the pretraining objective?

  • Next-item prediction over the interaction sequence (generative).
  • Multi-task prediction of several actions across surfaces.
  • Long-horizon objectives (what will the user engage with over the next days, not the next click) β€” PinnerFormer used such a dense all-action objective to make embeddings stable and useful for daily batch use.

How are items represented?

  • ID embeddings capture collaborative signal but grow with the catalog and fail on new items.
  • Content embeddings (text, image, video) generalize to new items.
  • Semantic IDs combine both: discrete codes derived from content that the model learns like tokens.

Most foundation models mix ID and content representations.

How fresh does it need to be?

A model that is retrained weekly cannot know about yesterday's viral video. Solutions: nearline embedding refreshes, combining foundation embeddings with real-time features in the downstream ranker, and incremental fine-tuning.

How do you measure it?

Pretraining loss and offline next-item metrics are only proxies. The real test is downstream lift: do rankers that consume its embeddings, or students distilled from it, win A/B tests on each surface?

Challenges

  • Cost. Training on all users' full histories is expensive; scaling laws must justify it.
  • Serving. Long-sequence inference per request is costly; caching user representations and amortizing across candidates is essential.
  • Organizational complexity. One model serving many teams needs clear ownership, versioning and evaluation contracts.
  • Negative transfer. Some surfaces may get worse when objectives conflict; per-surface adaptation layers help.
  • Privacy and governance. Pooling data across products must respect user consent and regulatory boundaries.

Key Takeaways

  1. A recommendation foundation model is one large model trained across surfaces and tasks, adapted downstream.
  2. Its knowledge reaches production through embeddings, distillation or (rarely) direct serving.
  3. Netflix, Meta, Pinterest and LinkedIn have all published variants of this pattern.
  4. Pretraining objective, item representation and freshness are the key design choices.
  5. Judge the foundation model by downstream lift, not pretraining loss.