mlsanityData to 7 Oct 2026

KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning

arXiv 2605.14907 ↗First posted 14 May 2026cs.AIcited by 2

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
  5. 2017Convolutional 2D Knowledge Graph Embeddingscited by 729
  6. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
  7. 2025TabICL: A Tabular Foundation Model for In-Context Learning on Large Datacited by 267
  8. 2019Inductive Relation Prediction by Subgraph Reasoningcited by 237
  9. 2020Can Graph Neural Networks Count Substructures?cited by 235
  10. 2024Many-Shot In-Context Learningcited by 203
  11. 2020Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddingscited by 169
  12. 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Modelscited by 115
27 more
  1. 2026TabICLv2: A better, faster, scalable, and open tabular foundation modelcited by 112
  2. 2017Knowledge Transfer for Out-of-Knowledge-Base Entities: A Graph Neural Network Approachcited by 102
  3. 2020CoDEx: A Comprehensive Knowledge Graph Completion Benchmarkcited by 102
  4. 2019Unifying Knowledge Graph Learning and Recommendation: Towards a Better Understanding of User Preferencescited by 87
  5. 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
  6. 2019Meta Relational Learning for Few-Shot Link Prediction in Knowledge Graphscited by 73
  7. 2025LimiX: Unleashing Structured-Data Modeling Capability for Generalist Intelligencecited by 65
  8. 2023Statistical Foundations of Prior-Data Fitted Networkscited by 59
  9. 2023InGram: Inductive Knowledge Graph Embedding via Relation Graphscited by 50
  10. 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
  11. 2025TimePFN: Effective Multivariate Time Series Forecasting with Synthetic Datacited by 27
  12. 2022An Open Challenge for Inductive Link Prediction on Knowledge Graphscited by 26
  13. 2024A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoningcited by 25
  14. 2022Query2Particles: Knowledge Graph Reasoning with Particle Embeddingscited by 24
  15. 2023A Multi-Task Perspective for Link Prediction with New Relation Types and Nodescited by 23
  16. 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
  17. 2025How Expressive are Knowledge Graph Foundation Models?cited by 22
  18. 2023Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraintscited by 21
  19. 2025GraphPFN: A Prior-Data Fitted Graph Foundation Modelcited by 20
  20. 2025Top Ten Challenges Towards Agentic Neural Graph Databasescited by 13
  21. 2022Neural Graph Databasescited by 11
  22. 2025Controllable Logical Hypothesis Generation for Abductive Reasoning in Knowledge Graphscited by 11
  23. 2026Relational In-Context Learning via Synthetic Pre-training with Structural Priorcited by 11
  24. 2025Flock: A Knowledge Graph Foundation Model via Learning on Random Walkscited by 8
  25. 2025Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Modelcited by 8
  26. 2026TFMLinker: Universal Link Predictor by Graph In-Context Learning with Tabular Foundation Modelscited by 5
  27. 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.