Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarking

Juanhui Li, Harry Shomer, Haitao Mao, Shenglai Zeng, Yao Ma +3 more
6/18/2023
cs.LGcs.SI

Official code: Juanhui28/HeaRT (64 stars, MIT, last commit 2024-09-26).

Abstract

Link prediction attempts to predict whether an unseen edge exists based on only a portion of edges of a graph. A flurry of methods have been introduced in recent years that attempt to make use of graph neural networks (GNNs) for this task. Furthermore, new and diverse datasets have also been created to better evaluate the effectiveness of these new models. However, multiple pitfalls currently exist that hinder our ability to properly evaluate these new methods. These pitfalls mainly include: (1) Lower than actual performance on multiple baselines, (2) A lack of a unified data split and evaluation metric on some datasets, and (3) An unrealistic evaluation setting that uses easy negative samples. To overcome these challenges, we first conduct a fair comparison across prominent methods and datasets, utilizing the same dataset and hyperparameter search settings. We then create a more practical evaluation setting based on a Heuristic Related Sampling Technique (HeaRT), which samples hard negative samples via multiple heuristics. The new evaluation setting helps promote new challenges and opportunities in link prediction by aligning the evaluation with real-world situations. Our implementation and data are available at https://github.com/Juanhui28/HeaRT

View on arXivView PDF

Code Implementations(1)

Juanhui28/HeaRTOfficial100%
MIT
646C++, CudaJun 7, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023evaluating,
  title  = {Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarking},
  author = {Juanhui Li and Harry Shomer and Haitao Mao and Shenglai Zeng and Yao Ma and Neil Shah and Jiliang Tang and Dawei Yin},
  year   = {2023},
  eprint = {2306.10453},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.10453v3},
  journal = {NEURIPS 2023 2023}
}

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

Discussion