mlsanityData to 7 Oct 2026

GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learning

arXiv 2505.02027 ↗First posted 4 May 2025cs.LG cs.AI cs.SIcited by 6

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  3. 2017Graph Attention Networkscited by 8,854
  4. 2017Inductive Representation Learning on Large Graphscited by 6,284
  5. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  6. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  8. 2020Graph Contrastive Learning with Augmentationscited by 1,203
  9. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  10. 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
  11. 2019Strategies for Pre-training Graph Neural Networkscited by 964
  12. 2022A Survey on In-context Learningcited by 717
35 more
  1. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  2. 2020GCC: Graph Contrastive Coding for Graph Neural Network Pre-Trainingcited by 461
  3. 2021MetaICL: Learning to Learn In Contextcited by 450
  4. 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
  5. 2020Graph Structure Learning for Robust Graph Neural Networkscited by 368
  6. 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
  7. 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
  8. 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
  9. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
  10. 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
  11. 2023GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural Networkscited by 166
  12. 2021Meta-learning via Language Model In-context Tuningcited by 163
  13. 2021Motif-based Graph Self-Supervised Learning for Molecular Property Predictioncited by 159
  14. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  15. 2023All in One: Multi-task Prompting for Graph Neural Networkscited by 147
  16. 2020Learning to Drop: Robust Graph Neural Network via Topological Denoisingcited by 127
  17. 2022Universal Prompt Tuning for Graph Neural Networkscited by 100
  18. 2023PRODIGY: Enabling In-context Learning Over Graphscited by 97
  19. 2018One-Shot Relational Learning for Knowledge Graphscited by 78
  20. 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
  21. 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
  22. 2021Adaptive Methods for Real-World Domain Generalizationcited by 66
  23. 2023Graph Prompt Learning: A Comprehensive Survey and Beyondcited by 61
  24. 2018An Analysis of the t-SNE Algorithm for Data Visualizationcited by 49
  25. 2023AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptationcited by 48
  26. 2023Virtual Node Tuning for Few-shot Node Classificationcited by 46
  27. 2023Data-centric AI: Perspectives and Challengescited by 43
  28. 2023GraphControl: Adding Conditional Control to Universal Graph Pre-trained Models for Graph Domain Transfer Learningcited by 32
  29. 2023HetGPT: Harnessing the Power of Prompt Tuning in Pre-Trained Heterogeneous Graph Neural Networkscited by 32
  30. 2023GripRank: Bridging the Gap between Retrieval and Generation via the Generative Knowledge Improved Passage Rankingcited by 11
  31. 2023GraphRARE: Reinforcement Learning Enhanced Graph Neural Network with Relative Entropycited by 9
  32. 2024Cooperative Classification and Rationalization for Graph Generalizationcited by 7
  33. 2021An O(1) algorithm for implementing the LFU cache eviction schemecited by 4
  34. 2024Graph Augmentation for Recommendationcited by 4
  35. 2024Fast Iterative Graph Computing with Updated Neighbor Statescited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.