KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Knowledge graph (KG) foundation models aim to generalize to graphs with unseen entities and relations by learning transferable relational structure. Most existing methods, however, focus on relation-level universality, leaving in-context learning, the other pillar of foundation models, largely unexplored for KG reasoning. Context in KGs is structured and heterogeneous: accurate prediction requires conditioning both on the local neighborhood of the query entities and on global context that summarizes how the query relation behaves across many instances. We propose KGPFN, a KG foundation model built on a Prior-Data Fitted Network (PFN) that combines transferable relational representations with inference-time in-context learning over structured context. KGPFN learns relation representations by message passing on relation graphs and extracts multi-scale local context from the intermediate head representations of a multi-layer NBFNet. It then builds relation-specific global context from positive and negative examples of the query relation, together with their local structural representations, and aggregates this context with feature-level and sample-level attention. Through multi-graph pretraining, KGPFN learns to combine structural representations with labeled contextual evidence without inference-time parameter updates. On 57 knowledge graphs, KGPFN achieves the best average MRR both without and with fine-tuning, and context sensitivity analyses highlight the value of negative context examples. Our code is available at https://github.com/HKUST-KnowComp/KGPFN.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 39 of its 50 references that are in the map. First posted on arXiv 14 May 2026.
Builds on
39 of 50 references.
References · 39
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
- 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2025TabICL: A Tabular Foundation Model for In-Context Learning on Large Datacited by 267
- 2019Inductive Relation Prediction by Subgraph Reasoningcited by 237
- 2020Can Graph Neural Networks Count Substructures?cited by 235
- 2024Many-Shot In-Context Learningcited by 203
- 2020Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddingscited by 169
- 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Modelscited by 115
27 more
- 2026TabICLv2: A better, faster, scalable, and open tabular foundation modelcited by 112
- 2017Knowledge Transfer for Out-of-Knowledge-Base Entities: A Graph Neural Network Approachcited by 102
- 2020CoDEx: A Comprehensive Knowledge Graph Completion Benchmarkcited by 102
- 2019Unifying Knowledge Graph Learning and Recommendation: Towards a Better Understanding of User Preferencescited by 87
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2019Meta Relational Learning for Few-Shot Link Prediction in Knowledge Graphscited by 73
- 2025LimiX: Unleashing Structured-Data Modeling Capability for Generalist Intelligencecited by 65
- 2023Statistical Foundations of Prior-Data Fitted Networkscited by 59
- 2023InGram: Inductive Knowledge Graph Embedding via Relation Graphscited by 50
- 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
- 2025TimePFN: Effective Multivariate Time Series Forecasting with Synthetic Datacited by 27
- 2022An Open Challenge for Inductive Link Prediction on Knowledge Graphscited by 26
- 2024A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoningcited by 25
- 2022Query2Particles: Knowledge Graph Reasoning with Particle Embeddingscited by 24
- 2023A Multi-Task Perspective for Link Prediction with New Relation Types and Nodescited by 23
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
- 2025How Expressive are Knowledge Graph Foundation Models?cited by 22
- 2023Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraintscited by 21
- 2025GraphPFN: A Prior-Data Fitted Graph Foundation Modelcited by 20
- 2025Top Ten Challenges Towards Agentic Neural Graph Databasescited by 13
- 2022Neural Graph Databasescited by 11
- 2025Controllable Logical Hypothesis Generation for Abductive Reasoning in Knowledge Graphscited by 11
- 2026Relational In-Context Learning via Synthetic Pre-training with Structural Priorcited by 11
- 2025Flock: A Knowledge Graph Foundation Model via Learning on Random Walkscited by 8
- 2025Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Modelcited by 8
- 2026TFMLinker: Universal Link Predictor by Graph In-Context Learning with Tabular Foundation Modelscited by 5
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.