GraphSAIL: Graph Structure Aware Incremental Learning for Recommender Systems

Yishi Xu, Yingxue Zhang, Wei Guo, Huifeng Guo, Ruiming Tang, Mark Coates · DOI

Abstract

Given the convenience of collecting information through online services, recommender systems now consume large scale data and play a more important role in improving user experience. With the recent emergence of Graph Neural Networks (GNNs), GNN-based recommender models have shown the advantage of modeling the recommender system as a user-item bipartite graph to learn representations of users and items. However, such models are expensive to train and difficult to perform frequent updates to provide the most up-to-date recommendations. In this work, we propose to update GNN-based recommender models incrementally so that the computation time can be greatly reduced and models can be updated more frequently. We develop a Graph Structure Aware Incremental Learning framework, GraphSAIL, to address the commonly experienced catastrophic forgetting problem that occurs when training a model in an incremental fashion. Our approach preserves a user's long-term preference (or an item's long-term property) during incremental model updating. GraphSAIL implements a graph structure preservation strategy which explicitly preserves each node's local structure, global structure, and self-information, respectively. We demonstrate its improvement compared to other incremental learning techniques on two public datasets and verify the effectiveness on a large-scale industrial dataset.

Introduction

Modern recommender systems leverage Graph Neural Networks (GNNs) to capture complex user-item interactions as bipartite graphs. While highly accurate, these models are computationally expensive to train from scratch. In fast-paced industrial environments, such as the Huawei AppGallery, new data arrives continuously, necessitating frequent model updates to maintain relevance.

A common alternative to full retraining is incremental fine-tuning on new data. However, this often leads to catastrophic forgetting, where the model over-optimizes for recent trends and loses the long-term preferences established in historical data. As illustrated in Figure 4, fine-tuning on new data blocks typically results in a sharp performance decline on older data as the model loses its previous state.

Catastrophic forgetting: performance on old data (red/blue lines) drops as the model is fine-tuned on new incremental blocks.

The GraphSAIL Framework

To mitigate forgetting while maintaining efficiency, we introduce GraphSAIL (Graph Structure Aware Incremental Learning). GraphSAIL utilizes a Knowledge Distillation (KD) framework where a "teacher" model (the version trained on historical data) guides a "student" model (the version being updated with new data).

Unlike standard KD, which focuses on matching output probabilities, GraphSAIL distills the underlying graph topology through three key components:

  1. Local Structure Distillation: Ensures that a node's relationship with its immediate neighbors remains consistent. If a user liked a specific set of items previously, their updated embedding should remain close to those items.
  2. Global Structure Distillation: Preserves a node's position relative to the broader graph. This is achieved by defining "anchor nodes" via K-means clustering and ensuring the student model maintains the node's distribution relative to these anchors, effectively providing a "GPS" for nodes in the latent space (see Figure 2).
  3. Self-embedding Distillation: Applies an adaptive constraint to prevent individual node embeddings from shifting too drastically between updates, with the constraint strength varying based on the volume of new data for that specific node.
The GraphSAIL architecture for global structure distillation, using anchor nodes to maintain a node's relative position in the latent space.

Experimental Evaluation

We evaluated GraphSAIL against state-of-the-art baselines on two public datasets (Gowalla and LastFM) and a massive industrial dataset consisting of 22 consecutive days of user-app download records.

Key Results

  • Accuracy Improvements: On the LastFM dataset, GraphSAIL improved Recall@20 by 10.14% compared to simple fine-tuning. On the industrial dataset, it outperformed batch retraining (using a sliding window) by 5.84% in Logloss.
  • Efficiency Gains: In production settings, GraphSAIL achieved a nearly 30x speedup, reducing update time from 912 seconds for batch retraining to just 31 seconds.
  • Stability: The framework effectively stabilized performance over time, preventing the decay typically seen when models are not updated frequently enough to capture shifting user trends.

Conclusion

GraphSAIL provides a robust solution for maintaining high-performance GNN recommenders in production. By explicitly preserving local and global graph structures during incremental updates, it overcomes catastrophic forgetting without the prohibitive costs of full retraining. Future research will focus on automating hyperparameter selection to better handle varying rates of user interest drift and improving anchor selection for global distillation.

Summary updated

BibTeX
@inproceedings{xu2020graphsail,
  author = {Yishi Xu and Yingxue Zhang and Wei Guo and Huifeng Guo and Ruiming Tang and Mark Coates},
  title = {{GraphSAIL: Graph Structure Aware Incremental Learning for Recommender Systems}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
  doi = {10.1145/3340531.3412754},
}
Figure