Towards Graph Foundation Models for Personalization

Andreas Damianou, Francesco Fabbri, Paul Gigioli, Marco De Nadai, Alice Wang, Enrico Palumbo, Mounia LalmasarXiv 2024

TL;DR

Researchers at Spotify have proposed a novel Graph Foundation Model (GFM) for personalization that combines the semantic power of Large Language Models (LLMs) with the relational depth of Heterogeneous Graph Neural Networks (HGNNs). By decoupling the architecture into a "static" foundation layer and a "dynamic" adaptation layer, they created a unified system that scales across diverse content types (like podcasts and audiobooks) and outperforms traditional, siloed recommendation models.

What Problem Does This Paper Address?

Modern recommendation engines face a "silo" problem: they often use different models for different types of content, making it hard to share insights across the platform. While Graph Neural Networks (GNNs) are great at capturing complex relationships and LLMs are excellent at understanding content, combining them at an industrial scale is difficult.

Standard LLM-based recommenders struggle to adapt quickly to new items or changing user tastes, while traditional GNNs can be computationally expensive to retrain daily. The authors aim to build a Graph Foundation Model that is:

  1. Generalizable: Works across different item types (e.g., recommending a podcast based on audiobook history).
  2. Scalable: Handles millions of users and items in a real-world production environment.
  3. Adaptable: Quickly incorporates fresh user interaction data without needing a full, heavy retraining of the entire stack.

Methods

The authors introduce a two-step architecture that splits the workload into "Static" and "Dynamic" layers:

1. The Static (Foundation) Layer

This layer builds the core "understanding" of the items.

  • LLM Featurization: They use a Large Language Model (specifically Sentence BERT) to create text embeddings from item descriptions. This ensures all items, regardless of type, are represented in a uniform way.
  • HGNN (Heterogeneous Graph Neural Network): They construct an item-item graph where edges represent "co-interactions" (users who listened to both items). A GraphSAGE-based HGNN then processes these nodes and edges. This allows the model to learn "multi-hop" relationships—understanding that if Item A is like Item B, and Item B is often listened to with Item C, then A and C are likely related.

2. The Dynamic (Adaptation) Layer

This layer handles the actual personalization for individual users.

  • Two-Tower (2T) Architecture: A standard, scalable industry approach where one "tower" represents the item and another represents the user.
  • Unified Vector Space: Crucially, the item tower uses the pre-computed HGNN embeddings. The user tower creates a user vector by averaging the HGNN embeddings of items the user recently interacted with. Because both towers use the same foundational embeddings, users and items end up in the same vector space, making retrieval (finding the best match) highly efficient.
Figure 1: Our GFM-based approach to personalization, instantiated for the domain of audiobook/podcast recommendations in a real-world online streaming platform. The LLM embeddings are passed as node features for the HGNN as well as item features in the 2T. The corresponding HGNN embedding for a given item is passed to the item tower. For a given user, we take the average of the HGNN embeddings corresponding to all items that the user has interacted with. Notice how the HGNN embeddings are, thus, shared between the two towers. With this approach, the resulting user and item embeddings (irrespective of item type) all lie in the same vector space.

Datasets

The model was tested using real-world data from Spotify:

  • Scale: A sample of 10 million users, 3.5 million podcasts, and 250,000 audiobooks.
  • Training Window: 90 days of interaction data.
  • Evaluation: A hold-out set consisting of all streams from the final 14 days of the period.
  • Metric: Hit-Rate@10 (HR@10), which measures how often the actual item a user interacted with appeared in the model's top 10 recommendations.

Key Insights and Ideas

  • The Power of Unity: Training one "Unified" model on both podcasts and audiobooks actually improved performance for audiobooks compared to a model trained only on audiobooks. This suggests the model successfully transferred "knowledge" across content types.
  • Decoupling is Key: By separating the heavy graph learning (static) from the user-specific adaptation (dynamic), they achieved a "best of both worlds" scenario: deep relational understanding that is still fast enough for production.
  • Stability of Foundations: The researchers found that the HGNN embeddings are remarkably stable. You don't need to retrain the complex graph model every day to maintain high accuracy, which is a massive win for engineering efficiency.

Key Results

The experiments validated three main hypotheses:

  1. Generalization: The Unified 2T model achieved an HR@10 of 0.316, significantly outperforming the audiobook-specific baseline of 0.271 (see Figure 2).
  2. The GNN Advantage: Removing the HGNN embeddings and learning content vectors from scratch led to a drop in performance across both podcasts and audiobooks (see Figure 4).
  3. Temporal Stability: Comparing a model with daily HGNN retraining vs. one without showed virtually no difference in performance (HR@10 of 0.151 vs 0.152 for podcasts), proving the "foundation" remains valid over time (see Figure 3).

Limitations and Future Work

While successful, the authors note that the LLM and HGNN components are currently trained independently. A major next step is end-to-end (e2e) training, where the gradients from the final recommendation task flow all the way back to the LLM and GNN weights.

Additionally, they plan to expand the model's scope beyond recommendations to include search-related tasks like query suggestions, further testing the "foundation" nature of their approach.

Summary updated

BibTeX
@misc{damianou2024towards,
  author = {Andreas Damianou and Francesco Fabbri and Paul Gigioli and Marco De Nadai and Alice Wang and Enrico Palumbo and Mounia Lalmas},
  title = {{Towards Graph Foundation Models for Personalization}},
  year = {2024},
  eprint = {2403.07478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07478},
}
Figure