/Awesome-Graph-Prompt

Awesome Papers About Performing Prompting On Graphs

MIT LicenseMIT

Awesome-Graph-Prompt

A collection of AWESOME things about performing prompting on Graphs.

Awesome GitHub stars

Recently, the workflow of "pre-train, fine-tune" has been proved less effective and efficient when dealing with diverse downstream tasks on graph domain. Inspired by the prompt learning in natural language processing (NLP) domain, the "pre-train, prompt" workflow has emerged as a promising solution.

This repo aims to provide a curated list of research papers that explore the prompting on graphs. It is based on our Survey Paper: Graph Prompt Learning: A Comprehensive Survey and Beyond. We will try to make this list updated frequently. If you found any error or any missed paper, please don't hesitate to open issues or pull requests.🌹

Table of Contents

GNN Prompting Papers

Summary of existing representative works on graph prompt. $\mathcal{S}$: Subgraph. $V(\mathcal{S})$: Node set within subgraph $\mathcal{S}$. $\pi$: Pre-trained parameters. $\phi$: Task head parameters. $\theta$: Prompt parameters. $\widetilde{\mathbf{s}}$: Filled prompt.

GraphPromptSummary

  1. GPPT: Graph Pre-training and Prompt Tuning to Generalize Graph Neural Networks. In KDD'2022, [Paper] [Code].

  2. SGL-PT: A Strong Graph Learner with Graph Prompt Tuning. In arXiv, [Paper].

  3. GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural Networks. In WWW'2023, [Paper] [Code].

  4. All in One: Multi-Task Prompting for Graph Neural Networks. In KDD'2023 Best Paper Award 🌟, [Paper] [Code].

  5. Deep Graph Reprogramming. In CVPR'2023 Highlight 🌟, [Paper].

  6. Virtual Node Tuning for Few-shot Node Classification. In KDD'2023, [Paper].

  7. PRODIGY: Enabling In-context Learning Over Graphs. In NeurIPS'2023 Spotlight 🌟, [Paper] [Code].

  8. Universal Prompt Tuning for Graph Neural Networks. In NeurIPS'2023, [Paper] [Code].

  9. Deep Prompt Tuning for Graph Transformers. In arXiv, [Paper].

  10. Prompt Tuning for Multi-View Graph Contrastive Learning. In arXiv, [Paper].

  11. ULTRA-DP:Unifying Graph Pre-training with Multi-task Graph Dual Prompt. In arXiv, [Paper].

  12. HetGPT: Harnessing the Power of Prompt Tuning in Pre-Trained Heterogeneous Graph Neural Networks. In WWW'2024, [Paper].

  13. Enhancing Graph Neural Networks with Structure-Based Prompt. In arXiv, [Paper].

  14. Generalized Graph Prompt: Toward a Unification of Pre-Training and Downstream Tasks on Graphs. In arXiv, [Paper] [Code].

  15. HGPROMPT: Bridging Homogeneous and Heterogeneous Graphs for Few-shot Prompt Learning. In AAAI'2024, [Paper] [Code].

  16. MultiGPrompt for Multi-Task Pre-Training and Prompting on Graphs. In WWW'2024, [Paper].

  17. Subgraph-level Universal Prompt Tuning. In arXiv, [Paper] [Code].

  18. Inductive Graph Alignment Prompt: Bridging the Gap between Graph Pre-training and Inductive Fine-tuning From Spectral Perspective. In WWW'2024, [Paper].

Multi-Modal Prompting with Graphs

Prompt in Text-Attributed Graphs

  1. Augmenting Low-Resource Text Classification with Graph-Grounded Pre-training and Prompting. In SIGIR'2023, [Paper] [Code].

  2. Prompt Tuning on Graph-augmented Low-resource Text Classification. In arXiv, [Paper] [Code].

  3. Prompt-Based Zero- and Few-Shot Node Classification: A Multimodal Approach. In arXiv, [Paper].

  4. Prompt-based Node Feature Extractor for Few-shot Learning on Text-Attributed Graphs. In arXiv, [Paper].

  5. Large Language Models as Topological Structure Enhancers for Text-Attributed Graphs. In arXiv, [Paper].

  6. ZeroG: Investigating Cross-dataset Zero-shot Transferability in Graphs. In arXiv, [Paper].

Large Language Models in Graph Data Processing

For this research line, please refer to Awesome LLMs with Graph Tasks [Survey Paper | Github Repo]

We highly recommend this work as they have provided a comprehensive survey to summarize the works on the integration of LLM and Graph 👍

Multi-modal Fusion with Graph and Prompting

  1. GraphAdapter: Tuning Vision-Language Models With Dual Knowledge Graph. In NeurIPS'2023, [Paper] [Code]. Graph+Text+Image

  2. SynerGPT: In-Context Learning for Personalized Drug Synergy Prediction and Drug Design. In arXiv, [Paper]. Graph+Text

  3. Which Modality should I use - Text, Motif, or Image? Understanding Graphs with Large Language Models. In arXiv, [Paper]. Graph+Text+Image

Graph Domain Adaptation with Prompting

  1. GraphGLOW: Universal and Generalizable Structure Learning for Graph Neural Networks. In KDD'2023, [Paper] [Code].

  2. GraphControl: Adding Conditional Control to Universal Graph Pre-trained Models for Graph Domain Transfer Learning. In WWW'2024, [Paper] [Code] [Chinese Blog].

  3. All in One and One for All: A Simple yet Effective Method towards Cross-domain Graph Pretraining. In arXiv, [Paper].

Application Papers

Temporal Interaction Graphs

  1. Prompt Learning on Temporal Interaction Graphs. In arXiv, [Paper].

Social Networks

  1. Prompt-and-Align: Prompt-Based Social Alignment for Few-Shot Fake News Detection. In CIKM'2023, [Paper] [Code]. Fake News Detection
  2. Voucher Abuse Detection with Prompt-based Fine-tuning on Graph Neural Networks. In CIKM'2023, [Paper]. Fraud Detection

Recommender Systems

  1. Contrastive Graph Prompt-tuning for Cross-domain Recommendation. In TOIS'2023, [Paper]. Cross-domain Recommendation
  2. An Empirical Study Towards Prompt-Tuning for Graph Contrastive Pre-Training in Recommendations. In NeurIPS'2023, [Paper] [Code]. General Recommendation
  3. Motif-Based Prompt Learning for Universal Cross-Domain Recommendation. In WSDM'2024, [Paper]. Cross-domain Recommendation
  4. GraphPro: Graph Pre-training and Prompt Learning for Recommendation. In WWW'2024, [Paper] [Code]. General Recommendation

Knowledge Graph

  1. Structure Pretraining and Prompt Tuning for Knowledge Graph Transfer. In WWW'2023, [Paper] [Code].
  2. Graph Neural Prompting with Large Language Models. In arXiv, [Paper].
  3. Knowledge Graph Prompting for Multi-Document Question Answering. In arXiv, [Paper] [Code].

Biology

  1. Can Large Language Models Empower Molecular Property Prediction? In arXiv, [Paper] [Code].
  2. GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learning. In NeurIPS'2023, [Paper] [Code].
  3. MolCA: Molecular Graph-Language Modeling with Cross-Modal Projector and Uni-Modal Adapter. In EMNLP'2023, [Paper] [Code].
  4. ReLM: Leveraging Language Models for Enhanced Chemical Reaction Prediction. In EMNLP'2023, [Paper] [Code].
  5. MolCPT: Molecule Continuous Prompt Tuning to Generalize Molecular Representation Learning. In WSDM'2024, [Paper].
  6. Protein Multimer Structure Prediction via PPI-guided Prompt Learning. In ICLR'2024, [Paper].
  7. DDIPrompt: Drug-Drug Interaction Event Prediction based on Graph Prompt Learning. In arXiv, [Paper].

Others

  1. A Data-centric Framework to Endow Graph Neural Networks with Out-Of-Distribution Detection Ability. In KDD'2023, [Paper] [Code]. OOD Detection
  2. MMGPL: Multimodal Medical Data Analysis with Graph Prompt Learning. In arXiv, [Paper].

Other Resources

Open Source

  • ProG: A Unified Library for Graph Prompting [Website] [Code]

    ProG (Prompt Graph) is a library built upon PyTorch to easily conduct single or multiple task prompting for a pre-trained Graph Neural Networks (GNNs).

Datasets

Datasets that are commonly used in GNN prompting papers.

Citation Networks
Dataset #Node #Edge #Feature #Class
Cora 2708 5429 1433 7
CoraFull 19793 63421 8710 70
Citeseer 3327 4732 3703 6
DBLP 17716 105734 1639 4
Pubmed 19717 44338 500 3
Coauthor-CS 18333 81894 6805 15
Coauthor-Physics 34493 247962 8415 5
ogbn-arxiv 169343 1166243 128 40
Purchase Networks
Dataset #Node #Edge #Feature #Class
Amazon-Computers 13752 245861 767 10
Amazon-Photo 7650 119081 745 8
ogbn-products 2449029 61859140 100 47
Social Networks
Dataset #Node #Edge #Feature #Class
Reddit 232965 11606919 602 41
Flickr 89250 899756 500 7
Molecular Graphs
Dataset #Graph #Node (Avg.) #Edge (Avg.) #Feature #Class
COX2 467 41.22 43.45 3 2
ENZYMES 600 32.63 62.14 18 6
MUTAG 188 17.93 19.79 7 2
MUV 93087 24.23 26.28 - 17
HIV 41127 25.53 27.48 - 2
SIDER 1427 33.64 35.36 - 27

Online Talks

  • Official Presentation of All in One Link

Blogs

  • A Chinese Blog that provides a comprehensive introduction of ALL graph prompting works [Zhihu]

Contributing

👍 Contributions to this repository are welcome!

If you have come across relevant resources, feel free to open an issue or submit a pull request.

Citation

If you find this repo helpful to you, please feel free to cite these works:

Survey Paper

@article{sun2023graph,
  title = {Graph Prompt Learning: A Comprehensive Survey and Beyond},
  author = {Sun, Xiangguo and Zhang, Jiawen and Wu, Xixi and Cheng, Hong and Xiong, Yun and Li, Jia},
  year = {2023},
  journal = {arXiv:2311.16534},
  eprint = {2311.16534},
  archiveprefix = {arxiv}
}

ProG Library

@inproceedings{sun2023all,
  title={All in One: Multi-Task Prompting for Graph Neural Networks},
  author={Sun, Xiangguo and Cheng, Hong and Li, Jia and Liu, Bo and Guan, Jihong},
  booktitle={Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery \& data mining (KDD'23)},
  year={2023},
  pages = {2120–2131},
  location = {Long Beach, CA, USA},
  isbn = {9798400701030},
  url = {https://doi.org/10.1145/3580305.3599256},
  doi = {10.1145/3580305.3599256}
}

Other Representative Works:

🔥 All in One A Representative GNN Prompting Framework

@inproceedings{sun2023all,
  title={All in One: Multi-Task Prompting for Graph Neural Networks},
  author={Sun, Xiangguo and Cheng, Hong and Li, Jia and Liu, Bo and Guan, Jihong},
  booktitle={Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery \& data mining (KDD'23)},
  year={2023},
  pages = {2120–2131},
  location = {Long Beach, CA, USA},
  isbn = {9798400701030},
  url = {https://doi.org/10.1145/3580305.3599256},
  doi = {10.1145/3580305.3599256}
}

🔥 All in One and One for All A Cross-domain Graph Pre-training Framework

@article{zhao2024all,
  title={All in One and One for All: A Simple yet Effective Method towards Cross-domain Graph Pretraining}, 
  author={Haihong Zhao and Aochuan Chen and Xiangguo Sun and Hong Cheng and Jia Li},
  year={2024},
  eprint={2402.09834},
  archivePrefix={arXiv}
}

🔥 TIGPrompt A Temporal Interation Graph Prompting Framework

@article{chen2024prompt,
  title={Prompt Learning on Temporal Interaction Graphs}, 
  author={Xi Chen and Siwei Zhang and Yun Xiong and Xixi Wu and Jiawei Zhang and Xiangguo Sun and Yao Zhang and Yinglong Zhao and Yulin Kang},
  year={2024},
  eprint={2402.06326},
  archivePrefix={arXiv},
  journal = {arXiv:2402.06326}
}

🔥 Graph Prompting Works on Biology Domain

@inproceedings{gao2024protein,
  title={Protein Multimer Structure Prediction via {PPI}-guided Prompt Learning},
  author={Ziqi Gao and Xiangguo Sun and Zijing Liu and Yu Li and Hong Cheng and Jia Li},
  booktitle={The Twelfth International Conference on Learning Representations (ICLR)},
  year={2024},
  url={https://openreview.net/forum?id=OHpvivXrQr}
}

@article{wang2024ddiprompt,
  title={DDIPrompt: Drug-Drug Interaction Event Prediction based on Graph Prompt Learning}, 
  author={Yingying Wang and Yun Xiong and Xixi Wu and Xiangguo Sun and Jiawei Zhang},
  year={2024},
  eprint={2402.11472},
  archivePrefix={arXiv},
  journal = {arXiv:2402.11472}
}