GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural Networks
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Molecular property prediction | BACE (test) | ROC-AUC67.7 | 65 | |
| Molecular property prediction | BBBP (test) | ROC-AUC0.6929 | 64 | |
| Molecular property prediction | SIDER (test) | ROC-AUC0.5871 | 53 | |
| Molecular property prediction | Tox21 (test) | ROC-AUC0.6809 | 53 | |
| Molecular property prediction | MUV (test) | ROC-AUC62.35 | 49 | |
| Molecular property prediction | ToxCast (test) | ROC-AUC60.54 | 34 | |
| Molecular property prediction | ClinTox (test) | ROC-AUC55.37 | 33 | |
| Anomaly Detection | MUTAG | AUPRC83.44 | 30 | |
| Anomaly Detection | T-Group | AUPRC115 | 25 | |
| Drug trafficking detection | Twitter-HetDrug 20% label setting (train) | Macro-F165.89 | 24 |