GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Graph In-Context Learning, with the ability to adapt pre-trained graph models to novel and diverse downstream graphs without updating any parameters, has gained much attention in the community. The key to graph in-context learning is to perform downstream graphs conditioned on chosen prompt examples. Existing methods randomly select subgraphs or edges as prompts, leading to noisy graph prompts and inferior model performance. Additionally, due to the gap between pre-training and testing graphs, when the number of classes in the testing graphs is much greater than that in the training, the in-context learning ability will also significantly deteriorate. To tackle the aforementioned challenges, we develop a multi-stage adaptive prompt optimization method GraphPrompter, which optimizes the entire process of generating, selecting, and using graph prompts for better in-context learning capabilities. Firstly, Prompt Generator introduces a reconstruction layer to highlight the most informative edges and reduce irrelevant noise for graph prompt construction. Furthermore, in the selection stage, Prompt Selector employs the k-nearest neighbors algorithm and pre-trained selection layers to dynamically choose appropriate samples and minimize the influence of irrelevant prompts. Finally, we leverage a Prompt Augmenter with a cache replacement strategy to enhance the generalization capability of the pre-trained model on new datasets. Extensive experiments show that GraphPrompter effectively enhances the in-context learning ability of graph models. On average across all the settings, our approach surpasses the state-of-the-art baselines by over 8%. Our code is released at https://github.com/karin0018/GraphPrompter.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 47 of its 56 references that are in the map. First posted on arXiv 4 May 2025.
Builds on
47 of 56 references.
References · 47
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Graph Contrastive Learning with Augmentationscited by 1,203
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
- 2019Strategies for Pre-training Graph Neural Networkscited by 964
- 2022A Survey on In-context Learningcited by 717
35 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2020GCC: Graph Contrastive Coding for Graph Neural Network Pre-Trainingcited by 461
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2020Graph Structure Learning for Robust Graph Neural Networkscited by 368
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
- 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2023GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural Networkscited by 166
- 2021Meta-learning via Language Model In-context Tuningcited by 163
- 2021Motif-based Graph Self-Supervised Learning for Molecular Property Predictioncited by 159
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2023All in One: Multi-task Prompting for Graph Neural Networkscited by 147
- 2020Learning to Drop: Robust Graph Neural Network via Topological Denoisingcited by 127
- 2022Universal Prompt Tuning for Graph Neural Networkscited by 100
- 2023PRODIGY: Enabling In-context Learning Over Graphscited by 97
- 2018One-Shot Relational Learning for Knowledge Graphscited by 78
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
- 2021Adaptive Methods for Real-World Domain Generalizationcited by 66
- 2023Graph Prompt Learning: A Comprehensive Survey and Beyondcited by 61
- 2018An Analysis of the t-SNE Algorithm for Data Visualizationcited by 49
- 2023AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptationcited by 48
- 2023Virtual Node Tuning for Few-shot Node Classificationcited by 46
- 2023Data-centric AI: Perspectives and Challengescited by 43
- 2023GraphControl: Adding Conditional Control to Universal Graph Pre-trained Models for Graph Domain Transfer Learningcited by 32
- 2023HetGPT: Harnessing the Power of Prompt Tuning in Pre-Trained Heterogeneous Graph Neural Networkscited by 32
- 2023GripRank: Bridging the Gap between Retrieval and Generation via the Generative Knowledge Improved Passage Rankingcited by 11
- 2023GraphRARE: Reinforcement Learning Enhanced Graph Neural Network with Relative Entropycited by 9
- 2024Cooperative Classification and Rationalization for Graph Generalizationcited by 7
- 2021An O(1) algorithm for implementing the LFU cache eviction schemecited by 4
- 2024Graph Augmentation for Recommendationcited by 4
- 2024Fast Iterative Graph Computing with Updated Neighbor Statescited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Heterogeneous Graph Prompt Learning via Adaptive Weight Pruningcited by 1
- 2026One Model, Many Graphs: Learning over Attributed Graphs across Heterogeneous Modalities with Vision-Language Modelscited by 1
- 2026A Cross-graph Tuning-free GNN Prompting Frameworkcited by 0
- 2026Hypergraph as Languagecited by 0
- 2026Enhancing LLMs for Graph Tasks via Graph-aware LoRA Generationcited by 0
- 2026LoGIC: Budgeted Context Construction for Node-Level Graph In-Context Learning with Tabular Foundation Modelscited by 0
- 2026LoGIC: Budgeted Context Construction for Node-Level Graph In-Context Learning with Tabular Foundation Models5 Sep 2026
- 2026One Model, Many Graphs: Learning over Attributed Graphs across Heterogeneous Modalities with Vision-Language Models21 Jul 2026
- 2026Enhancing LLMs for Graph Tasks via Graph-aware LoRA Generation21 Jun 2026
- 2026Hypergraph as Language21 May 2026
- 2026A Cross-graph Tuning-free GNN Prompting Framework1 Apr 2026
- 2025Heterogeneous Graph Prompt Learning via Adaptive Weight Pruning12 Jul 2025