[Paper Review] GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural Networks
GraphPrompt unifies graph pre-training and downstream tasks via subgraph similarity and a learnable prompt, enabling few-shot node and graph classification with a single pre-trained model.
Graphs can model complex relationships between objects, enabling a myriad of Web applications such as online page/article classification and social recommendation. While graph neural networks(GNNs) have emerged as a powerful tool for graph representation learning, in an end-to-end supervised setting, their performance heavily rely on a large amount of task-specific supervision. To reduce labeling requirement, the "pre-train, fine-tune" and "pre-train, prompt" paradigms have become increasingly common. In particular, prompting is a popular alternative to fine-tuning in natural language processing, which is designed to narrow the gap between pre-training and downstream objectives in a task-specific manner. However, existing study of prompting on graphs is still 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-train model in a task-specific manner. Finally, we conduct extensive experiments on five public datasets to evaluate and analyze GraphPrompt.
Motivation & Objective
- Address the gap between graph pre-training and downstream tasks by proposing a unified framework.
- Leverage subgraph similarity to unify pre-training and downstream tasks for both node- and graph-level problems.
- Introduce task-specific learnable prompts to guide ReadOut and enable task-adaptive knowledge transfer.
- Demonstrate effectiveness on multiple datasets in few-shot learning scenarios.
Proposed method
- Define a common template where both pre-training and downstream tasks are cast as subgraph similarity learning.
- Use contextual subgraphs to represent node-level instances and maximum subgraphs for graph-level instances.
- Pre-train with a link prediction objective based on contextual subgraph similarity.
- Introduce a learnable prompt vector to guide the ReadOut operation for each downstream task.
- Freeze the GNN during downstream prompting and optimize only the task-specific prompt.
- Evaluate with cosine similarity and a temperature parameter in the loss.
Experimental results
Research questions
- RQ1Can a unified subgraph-similarity template support both pre-training and multiple downstream tasks (node and graph classification) on graphs?
- RQ2Does a task-specific learnable prompt improve downstream performance by guiding the ReadOut and exploiting pre-trained knowledge in a few-shot setting?
- RQ3How does GraphPrompt perform across diverse datasets in node and graph classification under few-shot regimes?
Key findings
- GraphPrompt provides a unified framework where pre-training and downstream tasks share a common subgraph similarity template.
- A learnable prompt guides the ReadOut to adapt aggregation for different downstream tasks.
- Pre-training uses a self-supervised link prediction objective based on contextual subgraph similarity.
- Downstream learning uses prompt tuning with frozen GNN weights, reducing parameters and data needs.
- Experiments on five public datasets show superior performance of GraphPrompt compared to baselines across node and graph classification tasks in few-shot settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.