A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoning
Yuanning Cui, Zequn Sun, Wei Hu
摘要
Extensive knowledge graphs (KGs) have been constructed to facilitate knowledge-driven tasks across various scenarios. However, existing work usually develops separate reasoning models for different KGs, lacking the ability to generalize and transfer knowledge across diverse KGs and reasoning settings. In this paper, we propose a prompt-based KG foundation model via in-context learning, namely KG-ICL, to achieve a universal reasoning ability. Specifically, we introduce a prompt graph centered with a query-related example fact as context to understand the query relation. To encode prompt graphs with the generalization ability to unseen entities and relations in queries, we first propose a unified tokenizer that maps entities and relations in prompt graphs to predefined tokens. Then, we propose two message passing neural networks to perform prompt encoding and KG reasoning, respectively. We conduct evaluation on 43 different KGs in both transductive and inductive settings. Results indicate that the proposed KG-ICL outperforms baselines on most datasets, showcasing its outstanding generalization and universal reasoning capabilities. The source code is accessible on GitHub: https://github.com/nju-websoft/KG-ICL.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphs 引用了 Composition-based Multi-Relational Graph Convolutional Networks
- Flock: A Knowledge Graph Foundation Model via Learning on Random Walks 引用了 Composition-based Multi-Relational Graph Convolutional Networks
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
- HYPER: A Foundation Model for Inductive Link Prediction with Knowledge Hypergraphs 引用了 Composition-based Multi-Relational Graph Convolutional Networks
引用它的顶会 Paper10
- HYPER: A Foundation Model for Inductive Link Prediction with Knowledge HypergraphsXingyue Huang, Mikhail Galkin, Michael M. Bronstein, Ismail Ilkan CeylanICLR 2026 · 12 次引用
- Deliberation on Priors: Trustworthy Reasoning of Large Language Models on Knowledge GraphsJie Ma, Ning Qu, Zhitao Gao, Rui Xing 等NeurIPS 2025 · 9 次引用
- Flock: A Knowledge Graph Foundation Model via Learning on Random WalksJinwoo Kim, Xingyue Huang, Krzysztof Olejniczak, Kyungbin Min 等ICLR 2026 · 8 次引用
- Can Knowledge-Graph-based Retrieval Augmented Generation Really Retrieve What You Need?Junchi Yu, Yujie Liu, Jindong Gu, Philip H. S. Torr 等NeurIPS 2025 · 8 次引用
- Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General GraphsKai Wang, Siqiang Luo, Caihua Shan, Yifei ShenNeurIPS 2025 · 5 次引用
它引用的 Paper37
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik 等ICLR 2020 · 1,744 次引用
- Self-Supervised Graph Transformer on Large-Scale Molecular DataYu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie 等NeurIPS 2020 · 1,113 次引用
- Composition-based Multi-Relational Graph Convolutional NetworksShikhar Vashishth, Soumya Sanyal, Vikram Nitin, Partha P. TalukdarICLR 2020 · 1,105 次引用
相关 Paper
- Towards Foundation Models for Knowledge Graph ReasoningMikhail Galkin, Xinyu Yuan, Hesham Mostafa, Jian Tang 等ICLR 2024 · 95 次引用
- Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph ReasoningXingrui Zhuo, Jiapu Wang, Gongqing Wu, Zhongyuan Wang 等ICLR 2026 · 2 次引用
- A Foundation Model for Zero-shot Logical Query ReasoningMichael Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang 等NeurIPS 2024 · 20 次引用
- PRODIGY: Enabling In-context Learning Over GraphsQian Huang, Hongyu Ren, Peng Chen, Gregor Krzmanc 等NeurIPS 2023 · 131 次引用
- Modality-free Graph In-context AlignmentWei Zhuo, Siqiang LuoICLR 2026 · 2 次引用
