Graph Prompting for Graph Learning Models: Recent Advances and Future Directions

Xingbo Fu, Zehong Wang, Zihan Chen, Jiazheng Li, Yaochen Zhu, Zhenyu Lei, Cong Shen, Yanfang Ye, Chuxu Zhang, Jundong Li

Introduction

Graph learning has traditionally relied on supervised training, requiring vast amounts of labeled data to achieve high performance. However, in specialized domains like drug discovery, bioinformatics, and healthcare, labeled data is often a scarce and expensive resource. While the "pre-train, fine-tune" paradigm—borrowed from Natural Language Processing—has offered a partial solution, it introduces its own set of challenges, including significant computational costs and a fundamental mismatch between pre-training objectives and downstream tasks.

This paper provides a comprehensive systematic review of graph prompting, an emerging "pre-train, prompt" paradigm. By keeping pre-trained models frozen and only training lightweight, task-specific "prompts," this approach bridges the gap between self-supervised knowledge and specific downstream applications with extreme parameter efficiency.

The Shift to Graph Prompting

Traditional fine-tuning requires updating millions of parameters for every new task, which is not only computationally expensive but also prone to overfitting when data is limited. Furthermore, the Objective Gap remains a hurdle: a model pre-trained to predict edge existence (link prediction) may struggle to adapt its internal representations for a node classification task without extensive retraining.

Graph prompting addresses these issues by introducing a "third way." Instead of modifying the model, researchers modify the input or the internal representations to "prompt" the frozen model into performing the desired task.

The "pre-train, prompt" paradigm: Pre-training involves a trainable model on a large graph, while prompting keeps that model frozen and introduces a trainable prompt $g$ to adapt to downstream tasks.

A Taxonomy of Graph Prompting Techniques

The authors propose a detailed taxonomy to categorize the rapidly evolving landscape of graph prompting. These methods are generally divided based on where the prompt is applied: at the data level, the representation level, or the task level.

A comprehensive taxonomy of the graph pre-training and prompting scheme, categorizing methods by their technical approach and application level.

1. Data-level Prompting

These methods modify the input graph data itself to better align with the pre-trained model's expectations.

  • Feature-based Prompting: This involves adding learnable prompt vectors directly to the original node features. A prominent example is GPF, which uses these vectors to shift the feature distribution toward the task-specific domain.
  • Insertion-based Prompting: These techniques add "virtual" prompt nodes or edges into the graph structure. These nodes act as task-specific anchors, helping the model focus on relevant structural patterns (e.g., All-in-one, SGL-PT).

2. Representation-level Prompting

Rather than changing the input, these methods intervene in the model's internal processing or its final output.

  • Output Representation: Prompts are applied (often via element-wise multiplication or addition) only to the final layer's embeddings. GraphPrompt is a notable example that uses this to unify pre-training and downstream tasks under a subgraph similarity objective.
  • Hidden Representation: These methods inject prompts into every layer of the Graph Neural Network (GNN) or Transformer, allowing for a deeper, multi-scale integration of task-specific information (e.g., EdgePrompt).

3. Task-level Prompting

These methods reformulate the downstream task so that it mathematically resembles the pre-training task.

  • Link Prediction-based: This turns a classification problem into a link prediction problem between a target node and a "class prototype" node. GPPT pioneered this by using the model's existing ability to predict connections to determine class membership.
  • Similarity-based: These use contrastive loss functions to pull node representations closer to their respective class prototypes in the embedding space.

Key Insights and Performance

Parameter Efficiency and Few-Shot Learning

One of the most compelling advantages of graph prompting is its efficiency. Prompting typically requires updating less than 1% of the parameters needed for full fine-tuning. Despite this, prompting methods consistently outperform traditional fine-tuning in "few-shot" scenarios (where only 1–5 labels per class are available). By freezing the backbone, the model retains its general structural knowledge without the risk of "catastrophic forgetting" or overfitting to a tiny labeled set.

Handling Heterophily

The survey highlights an "Aha" moment regarding graph heterophily (where connected nodes belong to different classes). Node-wise prompts, such as those used in ProNoG, are crucial here. They allow the model to adapt to the specific neighborhood of each node individually, rather than applying a global prompt that might fail in complex, non-assortative graph structures.

Future Directions

While the field is growing rapidly, several frontiers remain:

  1. Theoretical Foundations: While empirical results are strong, a rigorous mathematical understanding of how prompts "unlock" pre-trained knowledge is still lacking.
  2. Universal Compatibility: Most current prompts are architecture-specific. Developing "universal" prompts that can transfer across different graph types (e.g., from social networks to molecular graphs) is a major open challenge.
  3. LLM Integration: There is significant potential in using Large Language Models (LLMs) to generate semantic prompts for graphs, allowing models to combine structural data with natural language reasoning.
  4. Robustness: As lightweight additions, prompts may be vulnerable to adversarial attacks. Ensuring the security and resilience of these prompts is vital for deployment in sensitive fields like healthcare.

Summary updated

BibTeX
@inproceedings{fu2025graph,
  author = {Xingbo Fu and Zehong Wang and Zihan Chen and Jiazheng Li and Yaochen Zhu and Zhenyu Lei and Cong Shen and Yanfang Ye and Chuxu Zhang and Jundong Li},
  title = {{Graph Prompting for Graph Learning Models: Recent Advances and Future Directions}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure