Towards Graph Prompt Learning: A Survey and Beyond

Qingqing Long, Yuchen Yan, Peiyan Zhang, Chen Fang, Wentao Cui, Zhiyuan Ning, Meng Xiao, Ning Cao, Xiao Luo, Lingjun Xu, Shiyue Jiang, Zheng Fang, Chong Chen, Xian-Sheng Hua, Yuanchun ZhouarXiv 2024 · DOI

TL;DR

This paper surveys the emerging field of "graph prompt learning," which adapts powerful pre-trained models to graph-structured data using task-specific prompts. It aims to bridge the gap between successful prompt learning in NLP/CV and its nascent application in graphs, offering a comprehensive taxonomy, analysis of methods, and future directions.

What Problem Does This Paper Address?

The success of "pre-train and prompt learning" in domains like NLP and Computer Vision has been remarkable, allowing large models to adapt to new tasks with minimal data. However, applying these paradigms to graph-structured data is challenging. Graphs have unique complexities: disparate node/edge features and intricate topological structures that differ significantly from pre-training data. This mismatch creates a "gap" that hinders effective transfer learning. This survey aims to bridge this gap by systematically reviewing and categorizing existing approaches to graph prompt learning, highlighting their design principles, applications, and challenges.

Methods

The paper provides a comprehensive taxonomy of graph prompt learning methods, categorizing them based on:

  • Prompt Design Principles:
    • Tokenization: How information is segmented and represented as prompts, including node tokens (for features), structure tokens (for local/global graph patterns), and task tokens (for specific task objectives).
  • Alignment Strategy: How prompts bridge the gap between pre-trained and downstream tasks, focusing on node-level (e.g., cross-entropy for node classification) and graph-level alignment (e.g., contrastive learning for graph classification).
  • Prompt Tuning: Strategies for optimizing prompts, including tuning in line with pre-training objectives and task-oriented tuning.
  • Prompting Paradigms:
    • Input Graph Prompting: Modifying the input graph by adding virtual nodes or edges.
  • Model Output Prompting: Adjusting the output of Graph Neural Networks (GNNs) to incorporate prompt information.
  • Heterogeneous Graph Prompting: Specialized methods for graphs with diverse node and edge types, using function-based or template-based approaches.

The survey also contrasts graph prompt learning with traditional graph pre-training/fine-tuning and few-shot learning, emphasizing its efficiency and flexibility.

Datasets

The paper discusses various datasets used for evaluating graph prompt learning methods, broadly categorized into:

  • Homogeneous Datasets:
    • Citation Networks: Cora, Citeseer, PubMed, CoraFull, ogbn-arxiv, DBLP.
  • Social Networks: Reddit, REDDIT-BINARY, REDDIT-MULTI-5K, REDDIT-MULTI-12K, Flickr, COLLAB.
  • Molecular/Biological Datasets: PROTEINS, COX2, ENZYMES, BZR (often simplified to homogeneous for experiments).
  • Heterogeneous Datasets:
    • WebKB Webpage: Cornell, Texas, Wisconsin.
  • Author Co-occurrence: Wikipedia.
  • Other: Chameleon, Squirrel.

The paper notes that while molecular and biological graphs are inherently heterogeneous, they are often treated as homogeneous for experimental purposes. It also highlights challenges in dataset standardization and reporting.

Key Insights and Ideas

  • Bridging the Pre-train/Fine-tune Gap: Graph prompt learning offers a more efficient and flexible way to adapt pre-trained models to new graph tasks compared to traditional fine-tuning, which can be computationally intensive and prone to overfitting.
  • The Power of Prompts in Graphs: Prompts, inspired by NLP, can effectively guide GNNs by injecting task-specific information, improving performance without extensive retraining. This is crucial for handling the unique structural and feature disparities in graph data.
  • Heterogeneity is Key: Real-world graphs are often heterogeneous. The survey emphasizes the growing importance of methods that can handle diverse node and edge types, moving beyond simpler homogeneous graph assumptions.
  • LLMs as Enablers: Large Language Models (LLMs) are increasingly integrated into graph learning, particularly for text-attributed graphs, by generating prompts or enhancing node features, leading to improved performance and zero-shot capabilities.
  • Need for Theoretical Grounding: Much of the current work in graph prompt learning is empirically driven. There's a significant need for theoretical foundations to explain why prompts work and to guide more robust and generalizable designs.

Key Results

The paper is a survey, so it doesn't present new experimental results. Instead, it synthesizes findings from over 100 existing works. Key qualitative findings highlighted include:

  • Graph prompt learning significantly reduces the need for extensive labeled data and computational resources.
  • It enhances model adaptability and applicability across a wide range of downstream tasks.
  • Methods are being developed to address specific challenges like molecular property prediction, drug-drug interactions, text-attributed graph analysis, and recommendation systems.
  • The integration of LLMs with GNNs via prompting shows promise for tasks involving both textual and structural information.

Limitations and Future Work

The authors identify several key limitations and suggest future research directions:

  • Theoretical Foundations: A lack of comprehensive theoretical analysis explaining the effectiveness of graph prompts and their transferability. Future work should focus on establishing robust theoretical frameworks.
  • Robustness: Graph prompt methods are hypothesized to be more robust than fine-tuning, but this needs empirical validation, especially against adversarial attacks and during optimization.
  • Standardization: Discrepancies in dataset reporting and a lack of unified standards for evaluation criteria hinder reproducible research. Future work should focus on standardizing datasets and evaluation protocols.
  • Universal Applicability: While NLP prompts are broadly applicable, graph prompts are often task-specific due to graph variability. Developing more universally applicable prompting mechanisms is a key challenge.
  • Improving Expressiveness: Exploring how graph prompts can amplify the inherent expressiveness of GNNs and transcend their limitations is an important research avenue.

Summary updated

Abstract

Large-scale "pre-train and prompt learning" paradigms have demonstrated remarkable adaptability, enabling broad applications across diverse domains such as question answering, image recognition, and multimodal retrieval. This approach fully leverages the potential of large-scale pre-trained models, reducing downstream data requirements and computational costs while enhancing model applicability across various tasks. Graphs, as versatile data structures that capture relationships between entities, play pivotal roles in fields such as social network analysis, recommender systems, and biological graphs. Despite the success of pre-train and prompt learning paradigms in Natural Language Processing (NLP) and Computer Vision (CV), their application in graph domains remains nascent. In graph-structured data, not only do the node and edge features often have disparate distributions, but the topological structures also differ significantly. This diversity in graph data can lead to incompatible patterns or gaps between pre-training and fine-tuning on downstream graphs. We aim to bridge this gap by summarizing methods for alleviating these disparities. This includes exploring prompt design methodologies, comparing related techniques, assessing application scenarios and datasets, and identifying unresolved problems and challenges. This survey categorizes over 100 relevant works in this field, summarizing general design principles and the latest applications, including text-attributed graphs, molecules, proteins, and recommendation systems. Through this extensive review, we provide a foundational understanding of graph prompt learning, aiming to impact not only the graph mining community but also the broader Artificial General Intelligence (AGI) community.
BibTeX
@misc{long2024towards,
  author = {Qingqing Long and Yuchen Yan and Peiyan Zhang and Chen Fang and Wentao Cui and Zhiyuan Ning and Meng Xiao and Ning Cao and Xiao Luo and Lingjun Xu and Shiyue Jiang and Zheng Fang and Chong Chen and Xian-Sheng Hua and Yuanchun Zhou},
  title = {{Towards Graph Prompt Learning: A Survey and Beyond}},
  year = {2024},
  eprint = {2408.14520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.14520},
}
Figure