Graph4Rec: A Universal Toolkit with Graph Neural Networks for Recommender Systems

Weibin Li, Mingkai He, Zhengjie Huang, Xianming Wang, Shikun Feng +2 more
12/2/2021
cs.LG
gnn

Official code: PaddlePaddle/PGL (1,584 stars, Python, Apache-2.0, last commit 2023-12-11).

Abstract

In recent years, owing to the outstanding performance in graph representation learning, graph neural network (GNN) techniques have gained considerable interests in many real-world scenarios, such as recommender systems and social networks. In recommender systems, the main challenge is to learn the effective user/item representations from their interactions.

Show full abstract

However, many recent publications using GNNs for recommender systems cannot be directly compared, due to their difference on datasets and evaluation metrics. Furthermore, many of them only provide a demo to conduct experiments on small datasets, which is far away to be applied in real-world recommender systems. To address this problem, we introduce Graph4Rec, a universal toolkit that unifies the paradigm to train GNN models into the following parts: graphs input, random walk generation, ego graphs generation, pairs generation and GNNs selection. From this training pipeline, one can easily establish his own GNN model with a few configurations. Besides, we develop a large-scale graph engine and a parameter server to support distributed GNN training. We conduct a systematic and comprehensive experiment to compare the performance of different GNN models on several scenarios in different scale. Extensive experiments are demonstrated to identify the key components of GNNs. We also try to figure out how the sparse and dense parameters affect the performance of GNNs. Finally, we investigate methods including negative sampling, ego graph construction order, and warm start strategy to find a more effective and efficient GNNs practice on recommender systems. Our toolkit is based on PGL https://github.com/PaddlePaddle/PGL and the code is opened source in https://github.com/PaddlePaddle/PGL/tree/main/apps/Graph4Rec.

View on arXivView PDF

Code Implementations(1)

PaddlePaddle/PGLOfficial100%
Apache-2.0

Paddle Graph Learning (PGL) is an efficient and flexible graph learning framework based on PaddlePaddle

1,584308Python, Jupyter NotebookJun 11, 20192 years agoApache-2.0
graphgraph-learninggraph-neural-networkheterogeneous-graph-learningmetapath

Similar Papers

Cite this paper

@article{li2021graphrec,
  title  = {Graph4Rec: A Universal Toolkit with Graph Neural Networks for Recommender Systems},
  author = {Weibin Li and Mingkai He and Zhengjie Huang and Xianming Wang and Shikun Feng and Weiyue Su and Yu Sun},
  year   = {2021},
  eprint = {2112.01035},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.01035}
}

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/2112.01035.svg)](https://codeofpaper.com/paper/2112.01035)

Discussion