Inductive Transfer Learning for Graph-Based Recommenders

Florian Grötschla, Elia Trachsel, Luca A Lanzendörfer, Roger Wattenhofer

TL;DR

Most graph-based recommender systems rely on static ID embeddings, making them unable to generalize to new users, items, or entirely unseen datasets without retraining. To solve this, the authors introduce NBF-Rec, an inductive model that computes representations dynamically via interaction-level message passing. Without requiring any shared users, items, or multimodal side information, NBF-Rec achieves competitive zero-shot recommendation performance across disjoint domains and further improves with lightweight fine-tuning.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) such as LightGCN excel at modeling user-item interactions, but they operate primarily in a transductive setting: they learn fixed lookup tables for specific user and item IDs. Consequently, when deployed to a new platform or domain where the user and item sets are completely disjoint, these models must be retrained from scratch.

Existing cross-domain recommendation methods typically rely on overlapping users/items, domain-specific alignment, or heavy pretrained language/vision models (e.g., LLM-based recommenders like P5). The authors tackle the challenge of achieving purely interaction-driven, inductive transfer learning across graphs with completely disjoint entity sets, without depending on external text or visual features.

Methods

NBF-Rec builds upon the Neural Bellman-Ford Network (NBFNet) framework, adapting it for bipartite recommendation graphs:

  • Dynamic, Query-Dependent Message Passing: Instead of assigning static embeddings to node IDs, the model initializes representations relative to a query user $u$ ($h_v^{(0)} = \mathbf{1}(u = v)$). Node representations are computed dynamically at inference time by tracking paths emanating from the query node.
  • Edge Feature Integration: Interactions often carry rich context (e.g., ratings, timestamps, play counts, or categories). NBF-Rec maps raw edge features through a dataset-specific projection MLP followed by a shared backbone MLP, using a non-parametric DistMult operation to weight messages across layers.
  • Node Update and Scoring: Incoming messages are summed, transformed, and layer-normalized. A final scoring MLP evaluates candidate items using the concatenation of their final-layer representation and initial state.
  • Preventing Trivial Solutions: During training with binary cross-entropy on positive/negative interaction triplets, batch edges ("easy edges") are removed from the convolution graph. This forces the model to learn multi-hop relational patterns rather than memorizing direct connections.

Because the model parameters are tied to message-passing operators and edge-transformation MLPs rather than node IDs, the architecture is entirely node-inductive.

Datasets

The authors evaluate NBF-Rec on seven established, real-world benchmark datasets spanning varied interaction types:

  • MovieLens-1M (ML-1M): ~1M ratings across ~5.9K users and ~2.8K movies (evaluated with Hits@10).
  • LastFM: Music artist listening counts with ~1.8K users and ~1.8K items (Hits@10).
  • Amazon Beauty: E-commerce reviews with ~52K users and ~57K items (Hits@10).
  • Gowalla: Location check-in network with spatio-temporal data (NDCG@20).
  • Epinions: Consumer review network with explicit ratings and trust signals (Hits@10).
  • BookX (Book-Crossing): Large-scale book rating domain (Hits@10).
  • Yelp18: User-business ratings and reviews with >1M interactions (NDCG@20).

No new datasets were introduced; the evaluation tests how well a model trained on one dataset (or multi-dataset mixes like Amazon Beauty + Epinions) generalizes to others.

Key Insights and Ideas

  • Inductive transfer works without entity overlap: Structural interaction patterns and path-based relational flows are transferable across completely different domains, disproving the assumption that cross-domain recommendation requires shared users, items, or semantic text embeddings.
  • Pretraining on other domains can beat self-pretraining: For benchmarks like BookX and Amazon Beauty, transferring a model pretrained on an external domain yielded higher accuracy than evaluating a zero-shot checkpoint trained on the target domain itself. External datasets can inject superior inductive biases.
  • Transferability is asymmetric: Models trained on LastFM transfer effectively to MovieLens-1M (reaching 0.85 relative performance), but the reverse transfer is substantially weaker (0.54 relative performance).
  • More edge features $\neq$ better transfer: While edge attributes aid in distinguishing interaction intensity, having complex attributes does not guarantee strong transfer (e.g., Yelp transfers poorly, while Gowalla, with simpler features, transfers well).

Key Results

  • Zero-Shot Transfer: Across unseen target domains, NBF-Rec trained on Amazon Beauty and Epinions achieves performance within 5% of fully supervised, domain-specific baselines on MovieLens-1M, BookX, and Yelp18.
  • Fine-Tuning: Lightweight adaptation on target graphs consistently boosts performance and closes the gap to supervised baselines—most noticeably on LastFM and Gowalla, where zero-shot transfer initially struggles.
  • Ablation vs. Structural NBFNet: Adding edge-feature embedding networks to the base NBFNet architecture consistently improves performance in zero-shot, fine-tuned, and end-to-end setups (e.g., on Gowalla fine-tuning, NBF-Rec reaches 0.13 NDCG@20 vs. 0.07 for vanilla NBFNet).

Limitations and Future Work

  • Inference Complexity: Because representations are computed dynamically per user query ($O(T|E|)$ for $T$ layers), inference is computationally heavier than traditional matrix factorization or LightGCN, which perform cheap vector dot products on precomputed embeddings.
  • Evaluation Scale: Experiments were restricted to medium-scale benchmarks (up to ~1M edges); scaling to web-scale production graphs with hundreds of millions of interactions remains an open challenge.
  • Predicting Transferability: The mechanisms explaining why certain dataset pairs transfer well while others do not (and why transfer is asymmetric) remain incompletely understood.

Summary updated

BibTeX
@inproceedings{grotschla2025inductive,
  author = {Florian Grötschla and Elia Trachsel and Luca A Lanzendörfer and Roger Wattenhofer},
  title = {{Inductive Transfer Learning for Graph-Based Recommenders}},
  booktitle = {NPGML @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=k7XxilA9sy},
}
Figure