mlsanityData to 7 Oct 2026

PRODIGY: Enabling In-context Learning Over Graphs

arXiv 2305.12600 ↗First posted 21 May 2023cs.LG cs.AIcited by 97

Not on the map. Why?

Abstract (arXiv)

In-context learning is the ability of a pretrained model to adapt to novel and diverse downstream tasks by conditioning on prompt examples, without optimizing any parameters. While large language models have demonstrated this ability, how in-context learning could be performed over graphs is unexplored. In this paper, we develop Pretraining Over Diverse In-Context Graph Systems (PRODIGY), the first pretraining framework that enables in-context learning over graphs. The key idea of our framework is to formulate in-context learning over graphs with a novel prompt graph representation, which connects prompt examples and queries. We then propose a graph neural network architecture over the prompt graph and a corresponding family of in-context pretraining objectives. With PRODIGY, the pretrained model can directly perform novel downstream classification tasks on unseen graphs via in-context learning. We provide empirical evidence of the effectiveness of our framework by showcasing its strong in-context learning performance on tasks involving citation networks and knowledge graphs. Our approach outperforms the in-context learning accuracy of contrastive pretraining baselines with hard-coded adaptation by 18% on average across all setups. Moreover, it also outperforms standard finetuning with limited data by 33% on average with in-context learning.

Key facts. Cited by 97 papers in the map (data through 7 Oct 2026). Builds on 22 of its 26 references that are in the map. First posted on arXiv 21 May 2023.

Builds on

22 of 26 references.

References · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  5. 2017Graph Attention Networkscited by 8,854
  6. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
  7. 2020Graph Contrastive Learning with Augmentationscited by 1,203
  8. 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
  9. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  10. 2019Strategies for Pre-training Graph Neural Networkscited by 964
  11. 2020Graph Neural Networks in Recommender Systems: A Surveycited by 493
  12. 2020GCC: Graph Contrastive Coding for Graph Neural Network Pre-Trainingcited by 461
10 more
  1. 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
  2. 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
  3. 2020Graph Meta Learning via Local Subgraphscited by 89
  4. 2018One-Shot Relational Learning for Knowledge Graphscited by 78
  5. 2019Meta Relational Learning for Few-Shot Link Prediction in Knowledge Graphscited by 73
  6. 2019Few-Shot Knowledge Graph Completioncited by 63
  7. 2022Task-Adaptive Few-shot Node Classificationcited by 43
  8. 2022Few-shot Relational Reasoning via Connection Subgraph Pretrainingcited by 18
  9. 2023Relational Multi-Task Learning: Modeling Relations between Data and Taskscited by 15
  10. 2020Identifying Possible Rumor Spreaders on Twitter: A Weak Supervised Learning Approachcited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 6; 2024: 43; 2025: 31; 2026: 17.

97 papers.

Sort:

By area:

  1. 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
  2. 2024Data Interpreter: An LLM Agent For Data Sciencecited by 222
  3. 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 101
  4. 2024UniTS: A Unified Multi-Task Time Series Modelcited by 93
  5. 2024Position: Graph Foundation Models are Already Herecited by 84
  6. 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
  7. 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
  8. 2023Graph Prompt Learning: A Comprehensive Survey and Beyondcited by 61
  9. 2024UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphscited by 60
  10. 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
  11. 2025UniGraph2: Learning a Unified Embedding Space to Bind Multimodal Graphscited by 47
  12. 2024ARC: A Generalist Graph Anomaly Detector with In-Context Learningcited by 46
38 more
  1. 2024Text-space Graph Foundation Models: Comprehensive Benchmarks and New Insightscited by 44
  2. 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
  3. 2025RiemannGFM: Learning a Graph Foundation Model from Riemannian Geometrycited by 32
  4. 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Datacited by 32
  5. 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Treescited by 30
  6. 2024ProG: A Graph Prompt Learning Benchmarkcited by 29
  7. 2024A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoningcited by 25
  8. 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusioncited by 24
  9. 2023Data-centric Graph Learning: A Surveycited by 22
  10. 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
  11. 2024Graph-oriented Instruction Tuning of Large Language Models for Generic Graph Miningcited by 20
  12. 2023Retrieval-augmented Multi-modal Chain-of-Thoughts Reasoning for Large Language Modelscited by 18
  13. 2024Graph Learning under Distribution Shifts: A Comprehensive Survey on Domain Adaptation, Out-of-distribution, and Continual Learningcited by 17
  14. 2024GraphAlign: Pretraining One Graph Neural Network on Multiple Graphs via Feature Alignmentcited by 15
  15. 2024Towards Neural Scaling Laws on Graphscited by 13
  16. 2024Prompt Learning on Temporal Interaction Graphscited by 13
  17. 2024UniGAD: Unifying Multi-level Graph Anomaly Detectioncited by 13
  18. 2024Can Graph Neural Networks Learn Language with Extremely Weak Text Supervision?cited by 13
  19. 2025GRAVER: Generative Graph Vocabularies for Robust Graph Foundation Models Fine-tuningcited by 13
  20. 2024Universal Link Predictor By In-Context Learning on Graphscited by 12
  21. 2024One Model for One Graph: A New Perspective for Pretraining with Cross-domain Graphscited by 12
  22. 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigationcited by 11
  23. 2025One Prompt Fits All: Universal Graph Adaptation for Pretrained Modelscited by 11
  24. 2024Does Graph Prompt Work? A Data Operation Perspective with Theoretical Analysiscited by 10
  25. 2024Graph Learning in the Era of LLMs: A Survey from the Perspective of Data, Models, and Taskscited by 10
  26. 2024Subgraph-level Universal Prompt Tuningcited by 9
  27. 2024A Survey on Self-Supervised Graph Foundation Models: Knowledge-Based Perspectivecited by 9
  28. 2026From Few-Shot to Zero-Shot: Towards Generalist Graph Anomaly Detectioncited by 8
  29. 2024LPNL: Scalable Link Prediction with Large Language Modelscited by 7
  30. 2024DDIPrompt: Drug-Drug Interaction Event Prediction based on Graph Prompt Learningcited by 7
  31. 2025Towards A Universal Graph Structural Encodercited by 7
  32. 2024A Pure Transformer Pretraining Framework on Text-attributed Graphscited by 6
  33. 2024Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphscited by 6
  34. 2025GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learningcited by 6
  35. 2026Toward Effective Multimodal Graph Foundation Model: A Divide-and-Conquer Based Approachcited by 6
  36. 2024Towards Foundation Models on Graphs: An Analysis on Cross-Dataset Transfer of Pretrained GNNscited by 5
  37. 2025Towards Graph Foundation Models: A Transferability Perspectivecited by 5
  38. 2024Towards Graph Foundation Models: A Study on the Generalization of Positional and Structural Encodingscited by 4

50 most cited of 97 All 97 (JSON)