GraphPro: Graph Pre-training and Prompt Learning for Recommendation

Yuhao Yang, Lianghao Xia, Da Luo, Kangyi Lin, Chao Huang
11/28/2023
54 citations
cs.IRcs.AI
gnn

Official code: HKUDS/GraphPro (73 stars, Python, Apache-2.0, last commit 2024-06-10).

Abstract

GNN-based recommenders have excelled in modeling intricate user-item interactions through multi-hop message passing. However, existing methods often overlook the dynamic nature of evolving user-item interactions, which impedes the adaption to changing user preferences and distribution shifts in newly arriving data.

Show full abstract

Thus, their scalability and performances in real-world dynamic environments are limited. In this study, we propose GraphPro, a framework that incorporates parameter-efficient and dynamic graph pre-training with prompt learning. This novel combination empowers GNNs to effectively capture both long-term user preferences and short-term behavior dynamics, enabling the delivery of accurate and timely recommendations. Our GraphPro framework addresses the challenge of evolving user preferences by seamlessly integrating a temporal prompt mechanism and a graph-structural prompt learning mechanism into the pre-trained GNN model. The temporal prompt mechanism encodes time information on user-item interaction, allowing the model to naturally capture temporal context, while the graph-structural prompt learning mechanism enables the transfer of pre-trained knowledge to adapt to behavior dynamics without the need for continuous incremental training. We further bring in a dynamic evaluation setting for recommendation to mimic real-world dynamic scenarios and bridge the offline-online gap to a better level. Our extensive experiments including a large-scale industrial deployment showcases the lightweight plug-in scalability of our GraphPro when integrated with various state-of-the-art recommenders, emphasizing the advantages of GraphPro in terms of effectiveness, robustness and efficiency. The implementation details and source code of our GraphPro are available in the repository at https://github.com/HKUDS/GraphPro

View on arXivView PDF

Code Implementations(1)

HKUDS/GraphProOfficial100%
Apache-2.0

[WWW'2024] "GraphPro: Graph Pre-training and Prompt Learning for Recommendation"

734PythonNov 30, 20232 years agoApache-2.0
collaborative-filteringgraph-neural-networksgraph-pretrainingprompt-learningrecommendation

Similar Papers

Cite this paper

@article{yang2023graphpro,
  title  = {GraphPro: Graph Pre-training and Prompt Learning for Recommendation},
  author = {Yuhao Yang and Lianghao Xia and Da Luo and Kangyi Lin and Chao Huang},
  year   = {2023},
  eprint = {2311.16716},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.16716v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.16716.svg)](https://codeofpaper.com/paper/2311.16716)

Discussion