Generalized Graph Prompt: Toward a Unification of Pre-Training and Downstream Tasks on Graphs

Xingtong Yu, Zhenghao Liu, Yuan Fang, Zemin Liu, Sihong Chen +1 more
11/26/2023
76 citations
cs.LG

Official code: gmcmt/graph_prompt_extension (19 stars, Python, last commit 2023-12-12).

Abstract

Graph neural networks have emerged as a powerful tool for graph representation learning, but their performance heavily relies on abundant task-specific supervision. To reduce labeling requirement, the "pre-train, prompt" paradigms have become increasingly common.

Show full abstract

However, existing study of prompting on graphs is limited, lacking a universal treatment to appeal to different downstream tasks. In this paper, we propose GraphPrompt, a novel pre-training and prompting framework on graphs. GraphPrompt not only unifies pre-training and downstream tasks into a common task template but also employs a learnable prompt to assist a downstream task in locating the most relevant knowledge from the pre-trained model in a task-specific manner. To further enhance GraphPrompt in these two stages, we extend it into GraphPrompt+ with two major enhancements. First, we generalize several popular graph pre-training tasks beyond simple link prediction to broaden the compatibility with our task template. Second, we propose a more generalized prompt design that incorporates a series of prompt vectors within every layer of the pre-trained graph encoder, in order to capitalize on the hierarchical information across different layers beyond just the readout layer. Finally, we conduct extensive experiments on five public datasets to evaluate and analyze GraphPrompt and GraphPrompt+.

View on arXivView PDF

Code Implementations(1)

194PythonNov 26, 20232 years ago

Similar Papers

Cite this paper

@article{yu2023generalized,
  title  = {Generalized Graph Prompt: Toward a Unification of Pre-Training and Downstream Tasks on Graphs},
  author = {Xingtong Yu and Zhenghao Liu and Yuan Fang and Zemin Liu and Sihong Chen and Xinming Zhang},
  year   = {2023},
  eprint = {2311.15317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.15317v5}
}

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

Discussion