PRODIGY: Enabling In-context Learning Over Graphs
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2020Graph Contrastive Learning with Augmentationscited by 1,203
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
- 2019Strategies for Pre-training Graph Neural Networkscited by 964
- 2020Graph Neural Networks in Recommender Systems: A Surveycited by 493
- 2020GCC: Graph Contrastive Coding for Graph Neural Network Pre-Trainingcited by 461
10 more
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
- 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
- 2020Graph Meta Learning via Local Subgraphscited by 89
- 2018One-Shot Relational Learning for Knowledge Graphscited by 78
- 2019Meta Relational Learning for Few-Shot Link Prediction in Knowledge Graphscited by 73
- 2019Few-Shot Knowledge Graph Completioncited by 63
- 2022Task-Adaptive Few-shot Node Classificationcited by 43
- 2022Few-shot Relational Reasoning via Connection Subgraph Pretrainingcited by 18
- 2023Relational Multi-Task Learning: Modeling Relations between Data and Taskscited by 15
- 2020Identifying Possible Rumor Spreaders on Twitter: A Weak Supervised Learning Approachcited by 13
Built on by
Citing papers per year: 2023: 6; 2024: 43; 2025: 31; 2026: 17.
97 papers.
Sort:
By area:
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2024Data Interpreter: An LLM Agent For Data Sciencecited by 222
- 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 101
- 2024UniTS: A Unified Multi-Task Time Series Modelcited by 93
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
- 2023Graph Prompt Learning: A Comprehensive Survey and Beyondcited by 61
- 2024UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphscited by 60
- 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
- 2025UniGraph2: Learning a Unified Embedding Space to Bind Multimodal Graphscited by 47
- 2024ARC: A Generalist Graph Anomaly Detector with In-Context Learningcited by 46
38 more
- 2024Text-space Graph Foundation Models: Comprehensive Benchmarks and New Insightscited by 44
- 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
- 2025RiemannGFM: Learning a Graph Foundation Model from Riemannian Geometrycited by 32
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Datacited by 32
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Treescited by 30
- 2024ProG: A Graph Prompt Learning Benchmarkcited by 29
- 2024A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoningcited by 25
- 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusioncited by 24
- 2023Data-centric Graph Learning: A Surveycited by 22
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
- 2024Graph-oriented Instruction Tuning of Large Language Models for Generic Graph Miningcited by 20
- 2023Retrieval-augmented Multi-modal Chain-of-Thoughts Reasoning for Large Language Modelscited by 18
- 2024Graph Learning under Distribution Shifts: A Comprehensive Survey on Domain Adaptation, Out-of-distribution, and Continual Learningcited by 17
- 2024GraphAlign: Pretraining One Graph Neural Network on Multiple Graphs via Feature Alignmentcited by 15
- 2024Towards Neural Scaling Laws on Graphscited by 13
- 2024Prompt Learning on Temporal Interaction Graphscited by 13
- 2024UniGAD: Unifying Multi-level Graph Anomaly Detectioncited by 13
- 2024Can Graph Neural Networks Learn Language with Extremely Weak Text Supervision?cited by 13
- 2025GRAVER: Generative Graph Vocabularies for Robust Graph Foundation Models Fine-tuningcited by 13
- 2024Universal Link Predictor By In-Context Learning on Graphscited by 12
- 2024One Model for One Graph: A New Perspective for Pretraining with Cross-domain Graphscited by 12
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigationcited by 11
- 2025One Prompt Fits All: Universal Graph Adaptation for Pretrained Modelscited by 11
- 2024Does Graph Prompt Work? A Data Operation Perspective with Theoretical Analysiscited by 10
- 2024Graph Learning in the Era of LLMs: A Survey from the Perspective of Data, Models, and Taskscited by 10
- 2024Subgraph-level Universal Prompt Tuningcited by 9
- 2024A Survey on Self-Supervised Graph Foundation Models: Knowledge-Based Perspectivecited by 9
- 2026From Few-Shot to Zero-Shot: Towards Generalist Graph Anomaly Detectioncited by 8
- 2024LPNL: Scalable Link Prediction with Large Language Modelscited by 7
- 2024DDIPrompt: Drug-Drug Interaction Event Prediction based on Graph Prompt Learningcited by 7
- 2025Towards A Universal Graph Structural Encodercited by 7
- 2024A Pure Transformer Pretraining Framework on Text-attributed Graphscited by 6
- 2024Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphscited by 6
- 2025GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learningcited by 6
- 2026Toward Effective Multimodal Graph Foundation Model: A Divide-and-Conquer Based Approachcited by 6
- 2024Towards Foundation Models on Graphs: An Analysis on Cross-Dataset Transfer of Pretrained GNNscited by 5
- 2025Towards Graph Foundation Models: A Transferability Perspectivecited by 5
- 2024Towards Graph Foundation Models: A Study on the Generalization of Positional and Structural Encodingscited by 4
50 most cited of 97 All 97 (JSON)
- 2026Training Graph Foundation Models on The Web Graph25 Sep 2026
- 2026Preserving Geometric Integrity in Graph Prompting via Measure-Constrained Optimal Transport20 Sep 2026
- 2026Chimaera: A Mixture-of-Graph-Experts Architecture for Cross-Task and Cross-Dataset Graph Learning8 Sep 2026
- 2026LoGIC: Budgeted Context Construction for Node-Level Graph In-Context Learning with Tabular Foundation Models5 Sep 2026
- 2026Adaptive Recurrent Message Passing for Test Time Computing on Graphs21 Jun 2026
- 2026Advancing Graph Few-Shot Learning via In-Context Learning23 May 2026
- 2026Learning the Interaction Prior for Protein-Protein Interaction Prediction: A Model-Agnostic Approach11 May 2026
- 2026On the Safety of Graph Representation Learning7 May 2026
- 2026Bridging Input Feature Spaces Towards Graph Foundation Models6 May 2026
- 2026Mochi: Aligning Pre-training and Inference for Efficient Graph Foundation Models via Meta-Learning23 Apr 2026
- 2026The Structural Attention Tax: How Retrieval Format Hijacks In-Context Learning Independent of Content21 Apr 2026
- 2026A Cross-graph Tuning-free GNN Prompting Framework1 Apr 2026
38 more
- 2026Modality-free Graph In-context Alignment13 Mar 2026
- 2026Evaluating Progress in Graph Foundation Models: A Comprehensive Benchmark and New Insights28 Feb 2026
- 2026Multi-Domain Riemannian Graph Gluing for Building Graph Foundation Models28 Feb 2026
- 2026From Few-Shot to Zero-Shot: Towards Generalist Graph Anomaly Detection21 Feb 2026
- 2026Toward Effective Multimodal Graph Foundation Model: A Divide-and-Conquer Based Approach4 Feb 2026
- 2025GRAVER: Generative Graph Vocabularies for Robust Graph Foundation Models Fine-tuning5 Nov 2025
- 2025Adapting General-Purpose Foundation Models for X-ray Ptychography in Low-Data Regimes4 Nov 2025
- 2025Cross-Paradigm Graph Backdoor Attacks with Promptable Subgraph Triggers26 Oct 2025
- 2025Prior Knowledge Makes It Possible: From Sublinear Graph Algorithms to LLM Test-Time Methods18 Oct 2025
- 2025Relational Transformer: Toward Zero-Shot Foundation Models for Relational Data7 Oct 2025
- 2025GILT: An LLM-Free, Tuning-Free Graph Foundational Model for In-Context Learning6 Oct 2025
- 2025One Prompt Fits All: Universal Graph Adaptation for Pretrained Models26 Sep 2025
- 2025Towards Open-World Retrieval-Augmented Generation on Knowledge Graph: A Multi-Agent Collaboration Framework1 Sep 2025
- 2025DaMoC: Efficiently Selecting the Optimal Large Language Model for Fine-tuning Domain Tasks Based on Data and Model Compression1 Sep 2025
- 2025GSTBench: A Benchmark Study on the Transferability of Graph Self-Supervised Learning28 Aug 2025
- 2025A Scalable Pretraining Framework for Link Prediction with Efficient Adaptation6 Aug 2025
- 2025Urban In-Context Learning: Bridging Pretraining and Inference through Masked Diffusion for Urban Profiling5 Aug 2025
- 2025Quantizing Text-attributed Graphs for Semantic-Structural Integration20 Jul 2025
- 2025Heterogeneous Graph Prompt Learning via Adaptive Weight Pruning12 Jul 2025
- 2025HGMP:Heterogeneous Graph Multi-Task Prompt Learning10 Jul 2025
- 2025Toward a Graph Foundation Model: Pre-Training Transformers With Random Walks17 Jun 2025
- 2025GraphLAMA: Enabling Efficient Adaptation of Graph Language Models with Limited Annotations11 Jun 2025
- 2025H2GFM: Towards unifying Homogeneity and Heterogeneity on Text-Attributed Graphs10 Jun 2025
- 2025Are Large Language Models Good Temporal Graph Learners?3 Jun 2025
- 2025Freeze, Prompt, and Adapt: A Framework for Source-free Unsupervised GNN Prompting22 May 2025
- 2025Relation-Aware Graph Foundation Model17 May 2025
- 2025PyTDC: A multimodal machine learning training, evaluation, and inference platform for biomedical foundation models8 May 2025
- 2025GraphPrompter: Multi-stage Adaptive Prompt Optimization for Graph In-Context Learning4 May 2025
- 2025GLaMoR: Consistency Checking of OWL Ontologies using Graph Language Models26 Apr 2025
- 2025Designing a reliable lateral movement detector using a graph foundation model18 Apr 2025
- 2025Towards A Universal Graph Structural Encoder15 Apr 2025
- 2025DP-GPL: Differentially Private Graph Prompt Learning13 Mar 2025
- 2025Towards Graph Foundation Models: A Transferability Perspective12 Mar 2025
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation26 Feb 2025
- 2025RiemannGFM: Learning a Graph Foundation Model from Riemannian Geometry5 Feb 2025
- 2025UniGraph2: Learning a Unified Embedding Space to Bind Multimodal Graphs2 Feb 2025
- 2024Towards Foundation Models on Graphs: An Analysis on Cross-Dataset Transfer of Pretrained GNNs23 Dec 2024
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees21 Dec 2024
50 newest of 97 All 97 (JSON)
- 2025Towards Open-World Retrieval-Augmented Generation on Knowledge Graph: A Multi-Agent Collaboration Frameworkcited by 2
- 2026The Structural Attention Tax: How Retrieval Format Hijacks In-Context Learning Independent of Contentcited by 1
- 2025Prior Knowledge Makes It Possible: From Sublinear Graph Algorithms to LLM Test-Time Methodscited by 0
- 2026The Structural Attention Tax: How Retrieval Format Hijacks In-Context Learning Independent of Content21 Apr 2026
- 2025Prior Knowledge Makes It Possible: From Sublinear Graph Algorithms to LLM Test-Time Methods18 Oct 2025
- 2025Towards Open-World Retrieval-Augmented Generation on Knowledge Graph: A Multi-Agent Collaboration Framework1 Sep 2025
- 2024Data Interpreter: An LLM Agent For Data Sciencecited by 222
- 2024Data Interpreter: An LLM Agent For Data Science28 Feb 2024
- 2024Krait: A Backdoor Attack Against Graph Prompt Tuningcited by 2
- 2024Krait: A Backdoor Attack Against Graph Prompt Tuning18 Jul 2024
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 101
- 2024UniTS: A Unified Multi-Task Time Series Modelcited by 93
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
- 2023Graph Prompt Learning: A Comprehensive Survey and Beyondcited by 61
- 2024UniGraph: Learning a Unified Cross-Domain Foundation Model for Text-Attributed Graphscited by 60
- 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
- 2024ARC: A Generalist Graph Anomaly Detector with In-Context Learningcited by 46
- 2024Text-space Graph Foundation Models: Comprehensive Benchmarks and New Insightscited by 44
- 2024Graph Machine Learning in the Era of Large Language Models (LLMs)cited by 33
12 most cited of 85 All 85 (JSON)
- 2026Training Graph Foundation Models on The Web Graph25 Sep 2026
- 2026Preserving Geometric Integrity in Graph Prompting via Measure-Constrained Optimal Transport20 Sep 2026
- 2026Chimaera: A Mixture-of-Graph-Experts Architecture for Cross-Task and Cross-Dataset Graph Learning8 Sep 2026
- 2026LoGIC: Budgeted Context Construction for Node-Level Graph In-Context Learning with Tabular Foundation Models5 Sep 2026
- 2026Adaptive Recurrent Message Passing for Test Time Computing on Graphs21 Jun 2026
- 2026Advancing Graph Few-Shot Learning via In-Context Learning23 May 2026
- 2026Learning the Interaction Prior for Protein-Protein Interaction Prediction: A Model-Agnostic Approach11 May 2026
- 2026On the Safety of Graph Representation Learning7 May 2026
- 2026Bridging Input Feature Spaces Towards Graph Foundation Models6 May 2026
- 2026Mochi: Aligning Pre-training and Inference for Efficient Graph Foundation Models via Meta-Learning23 Apr 2026
- 2026A Cross-graph Tuning-free GNN Prompting Framework1 Apr 2026
- 2026Modality-free Graph In-context Alignment13 Mar 2026
12 newest of 85 All 85 (JSON)