An Adaptive Graph Pre-training Framework for Localized Collaborative Filtering

Yiqi Wang, Chaozhuo Li, Zheng Liu, Mingzheng Li, Jiliang Tang, Xing Xie, Lei Chen, Philip S. Yu

In the world of recommendation systems, Graph Neural Networks (GNNs) have become the gold standard for capturing the complex web of interactions between users and items. However, GNNs have a notorious "Achilles' heel": they require a lot of data to perform well. In the real world, user-item interaction graphs are often incredibly sparse, leading to subpar recommendations.

While fields like Natural Language Processing (NLP) and Computer Vision (CV) have solved similar sparsity issues through massive-scale pre-training (think BERT or ResNet), recommendation systems have struggled to follow suit. A new paper, "An Adaptive Graph Pre-training Framework for Localized Collaborative Filtering (ADAPT)," proposes a clever way to bridge this gap.

TL;DR

ADAPT is a pre-training framework that allows GNNs to learn transferable recommendation patterns across different datasets by focusing on local graph structures instead of specific user/item identities. It uses an "adaptor" mechanism to customize the model for the unique global properties of any given graph, significantly boosting performance in data-sparse scenarios.

What Problem Does This Paper Address?

Pre-training in RecSys faces two unique hurdles that NLP and CV do not:

  1. Disjoint Identities: In NLP, the word "apple" means the same thing across different books. In RecSys, User A in a "Books" dataset has no relation to User B in a "Movies" dataset. You cannot simply transfer learned embeddings (ID-based features) from one task to another.
  2. Graph Heterogeneity: Different recommendation tasks have wildly different graph properties. One might be a dense graph of movie ratings, while another is a sparse graph of luxury car purchases. A "one-size-fits-all" pre-trained model often fails to account for these structural differences.

Methods

The authors introduce ADAPT, which consists of two primary innovations:

1. Meta-LGNN (Localized GNN)

Instead of learning global embeddings for every user and item, the Meta-LGNN makes predictions based on the local neighborhood surrounding a user-item pair.

  • Sub-graph Extraction: For any user $u$ and item $i$, it extracts a small local subgraph.
  • Positional Labeling: It uses Double-Radius Node Labeling (DRNL) to assign attributes to nodes based on their distance to the target pair. This makes the model "identity-blind" but "structure-aware," allowing it to learn that "a user who likes items similar to what their friends like" is a universal pattern, regardless of who the specific user is.
Fig. 2. The proposed GNN recommendation method based on localized collaborative filtering. Given a target user 𝑢and a target item 𝑖, we first extract a local graph at these two target nodes from the user-item interaction graph, of which the structure is denoted as A𝑠𝑢𝑏(𝑢,𝑖). Next, we generate a positional attribute for each node based on their minimum distances towards the target nodes, and these node attributes are denoted as X𝑠𝑢𝑏(𝑢,𝑖) . Then, we can leverage a GNN model to get the graph representation for this attributed graph. Finally, we can compute a recommendation score 𝑠𝑢𝑖based on the local graph representation via a scoring function to make the final prediction for the given user and item pair.

2. The GNN Adaptor

To handle different types of graphs, ADAPT uses a "GNN Adaptor." This is essentially a hypernetwork that takes global graph properties (like density, size, and clustering coefficients) as input and generates specific "adaptation parameters." These parameters are then used to tweak the weights of the Meta-LGNN using a technique called FiLM (Feature-wise Linear Modulation).

Fig. 3. The adaptation process. Given a specific graph 𝐺𝑚, the GNN adaptor takes its graph property vector p𝑚as input, and outputs customized adapting parameters Φ𝑚for 𝐺𝑚. Suppose that the meta-LGNN model consists of 𝐿GNN layers, we can denote its parameter as 𝚯𝑀𝑒𝑡𝑎−𝐿𝐺𝑁𝑁= {𝜽1𝑐𝑜𝑛𝑣, · · · , 𝜽𝐿𝑐𝑜𝑛𝑣}, where 𝜽𝑙𝑐𝑜𝑛𝑣∈R𝑑𝑙−1×𝑑𝑙and 𝑑𝑙denotes the dimension of node embeddings outputted by 𝑙-th GNN layer. The GNN adaptor will generate 𝐿adapting parameters corresponding to these GNN layers for 𝐺𝑚, which can be denoted as 𝚽𝑚= {𝝓1𝑚, · · · , 𝝓𝐿𝑚}, where 𝝓𝑙𝑚∈R2𝑑𝑙−1𝑑𝑙. For the graph convolution in the 𝑙-th GNN layer of the customized GNN model for graph 𝐺𝑚, its parameters 𝝓𝑙𝑚are adapted via 𝝓𝑙𝑚on 𝜽𝑙𝑐𝑜𝑛𝑣.

Datasets

The researchers evaluated ADAPT using two major real-world sources:

  • Tianchi: A massive user behavior dataset from Alibaba. They used 60 different category-based graphs for pre-training and 4 for downstream testing.
  • MovieLens: A classic movie rating dataset. They used 6 categories for pre-training and the "War" category for downstream testing.

To simulate real-world "data scarcity," they intentionally reduced the training data for downstream tasks to just 40% or 60% of the available interactions.

Key Insights and Ideas

  • Structure Over Identity: The core "aha moment" is that collaborative filtering information is encoded in the topology of interactions. By ignoring IDs and focusing on local subgraphs, the model becomes truly inductive and transferable.
  • The Necessity of Adaptation: The authors found that pre-training on many diverse graphs without an adaptor can actually lead to "negative transfer"—where the model performs worse because it gets confused by the different graph distributions. The GNN Adaptor is the "secret sauce" that makes multi-graph pre-training viable.
  • Stability in the Face of Sparsity: Unlike standard models (like LightGCN) whose performance craters as data disappears, ADAPT remains remarkably stable, proving that pre-trained structural knowledge can compensate for missing local data.

Key Results

ADAPT consistently outperformed state-of-the-art baselines (NGCF, LightGCN, and GCC) across all datasets:

  • Massive Gains: In the most sparse scenarios (40% training data), ADAPT showed performance gains of up to 81.7% over models trained from scratch.
  • Superiority over General Pre-training: ADAPT significantly outperformed GCC (a general-purpose graph pre-training framework), likely because ADAPT is specifically optimized for the recommendation-specific BPR (Bayesian Personalized Ranking) loss.
  • Joint Fine-tuning: The authors found that fine-tuning both the Meta-LGNN and the Adaptor together during the downstream task (Joint Fine-tuning) yielded the best results.

Limitations and Future Work

While ADAPT is a major step forward, the authors note several areas for growth:

  • Base Model: The current implementation uses a standard GCN. Future versions could swap this for more powerful architectures like GIN (Graph Isomorphism Network).
  • Node Distinction: Currently, the node labeling treats users and items as structurally identical. Distinguishing between user-nodes and item-nodes in the labeling process could provide more nuance.
  • Shared Nodes: The framework assumes graphs are totally independent. In some cases, there might be overlapping users or items across datasets; leveraging these overlaps remains an open research question.

For engineers and researchers dealing with the "cold start" or "sparse data" problems in recommendation, ADAPT provides a robust blueprint for moving beyond ID-based models toward truly intelligent, structure-aware systems.

Summary updated

BibTeX
@article{wang2023adaptive,
  author = {Yiqi Wang and Chaozhuo Li and Zheng Liu and Mingzheng Li and Jiliang Tang and Xing Xie and Lei Chen and Philip S. Yu},
  title = {{An Adaptive Graph Pre-training Framework for Localized Collaborative Filtering}},
  journal = {ACM Trans. Information Systems},
  year = {2023},
  doi = {10.1145/3555372},
}
Figure