arXiv:cs.AI· Yisen Gao, Jiaxin Bai, Haoyu Huang, Zhongwei Xie, Yufei Li, Hong Ting Tsang, Sirui Han, Yangqiu Song·· 4 小时前AI 评分38
KGPFN:用上下文学习释放知识图谱基础模型潜力
KGPFN: Unlocking the Potential of Knowledge Graph Foundation Model via In-Context Learning
AI 导读
KGPFN 是一个基于 Prior-Data Fitted Network(PFN)的知识图谱基础模型,通过推理时上下文学习结合可迁移关系表示,无需推理时更新参数即可预测未见实体和关系。该模型在 57 个知识图谱上取得最佳平均 MRR,无论是否微调,上下文敏感性分析显示负样本上下文具有重要价值。代码已开源。
正文
Abstract: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 this https URL.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2605.14907 [cs.AI] |
| (or arXiv:2605.14907v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2605.14907 arXiv-issued DOI via DataCite |
Submission history
From: Yisen Gao [view email]
[v1]
Thu, 14 May 2026 14:41:19 UTC (2,001 KB)
[v2]
Fri, 2 Oct 2026 08:18:50 UTC (1,020 KB)
来源:arXiv:cs.AI · arxiv.org