Home

Awesome

MultiGPrompt

We provide the code (in pytorch) and datasets for our paper "MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs", which is accepted by WWW2024.

Description

The repository is organised as follows:

Package Dependencies

Running experiments

Due to the limitation of file size, we upload all datasets except for PROTEINS. But the pre-trained model for each datasets is uploaded.

Node Classification for Cora and Citeseer

Default dataset is Cora. You need to change the corresponding parameters in preprompt.py, downprompt.py.py and execute.py to train and evaluate on other datasets.

Pretrain and Prompt tune: python execute.py

Node Classification for ENZYMES and PROTEINS

Default dataset is ENZYMES. You need to change the corresponding parameters in preprompt.py, downprompt.py.py and execute.py to train and evaluate on other datasets.

Pretrain and Prompt tune: python execute.py

Graph Classification for BZR,COX2,ENZYMES,PROTEINS.

Default dataset is ENZYMES. You need to change the corresponding parameters in preprompt.py, downprompt.py.py and execute.py to train and evaluate on other datasets.

Pretrain and Prompt tune: python execute.py