atlas

Research map / Graph learning / Knowledge and temporal graphs

A Prompt-Based Knowledge Graph Foundation Model for Universal In-Context Reasoning

NeurIPS 2024 · Graph learning › Knowledge and temporal graphs · approach: Logical query answering and rule reasoning · 12 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes KG-ICL, a prompt-based knowledge graph foundation model that performs in-context reasoning over unseen KGs using query-related prompt graphs, a unified tokenizer, and two message passing networks, pre-trained on three KGs and evaluated on 43 KGs.

Problem

Existing KG reasoning models are trained separately per KG and cannot generalize or transfer to unseen entities, relations, and KGs across transductive, inductive, and fully-inductive settings.

Approach

Build a query-specific prompt graph around an example fact (neighbors of subject/object plus k-hop paths), map its entities and relations to predefined tokens via a unified tokenizer (distance-based entity labels, query-identity relation labels), encode it with a prompt MPNN, and use the resulting relation representations to initialize a conditional MPNN for KG reasoning without parameter updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
finetune KG-ICL pre-train for 5 epochsKG-ICL · Average (43 KGs)MRR: 0.442 -> 0.473Helped
add prompt graph generation and encoding (ablation)KG-ICL · Average (43 KGs)MRR: 0.132 -> 0.442Helped
add the unified tokenizer (ablation)KG-ICL · Average (43 KGs)MRR: 0.403 -> 0.442Helped
use the proposed token representation instead of GraIL one-hot labeling (ablation)KG-ICL · Average (43 KGs)MRR: 0.431 -> 0.442Helped
combine neighbors with 3-hop paths instead of neighbors only (ablation)KG-ICL prompt graph · Average (43 KGs)MRR: 0.425 -> 0.442Helped
add neighbors to 1-hop paths (ablation)KG-ICL prompt graph · Average (43 KGs)MRR: 0.153 -> 0.442Helped
add neighbors to 2-hop paths (ablation)KG-ICL prompt graph · Average (43 KGs)MRR: 0.171 -> 0.442Helped
add neighbors to 3-hop paths (ablation)KG-ICL prompt graph · Average (43 KGs)MRR: 0.410 -> 0.442Helped
replace KG reasoning message passing with NBFNet (ablation)KG-ICL · Average (43 KGs)MRR: 0.442 -> 0.416Hurt
increase the number of prompt examples from 1-shot to 20-shot (ablation)KG-ICL · 43 KGsMRRNo clear effect
use the same pre-training mixture as ULTRA (ablation)KG-ICL · Inductive (14 KGs)MRR: 0.554 -> 0.547No clear effect
use the same pre-training mixture as ULTRA (ablation)KG-ICL · Transductive (16 KGs)MRR: 0.346 -> 0.357No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: FB V1 NELL V1 CoDEx-small FB15k-237 WN18RR NELL-995 YAGO3-10 CoDEx AristoV4 DBpedia100k ConceptNet100k Hetionet

Benchmarks: 43 KG datasets across inductive, fully-inductive, and transductive settings FB15k-237 WN18RR NELL-995 YAGO3-10

Metrics: MRR Hits@10

Baselines: Supervised SOTA ULTRA InGram RED-GNN NBFNet

Builds on: ULTRA GraIL NBFNet RED-GNN PRODIGY

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy