Towards Foundation Models for Knowledge Graph Reasoning

Mikhail Galkin, Xinyu Yuan, Hesham Mostafa, Jian Tang, Zhaocheng Zhu

TL;DR

ULTRA is a major step toward "foundation models" for Knowledge Graphs (KGs). By learning how relations interact with each other rather than memorizing specific entity or relation labels, ULTRA can perform zero-shot link prediction on any new graph—even those with entirely unseen relation types—often outperforming models trained specifically for those graphs.

What Problem Does This Paper Address?

In the worlds of Natural Language Processing (NLP) and Computer Vision, foundation models like GPT-4 or CLIP are the norm. They work because they operate on a shared "vocabulary" (tokens or pixels) that transfers across tasks.

Knowledge Graphs (KGs), however, are fundamentally different. Every KG—whether it’s about movies, proteins, or corporate structures—has its own unique set of entities and relations. Traditional models are "transductive," meaning they only work on the specific entities and relations they were trained on. Even newer "inductive" models usually only handle new entities, failing the moment they encounter a new relation type (e.g., a model trained on "parent_of" in a family tree graph cannot suddenly understand "inhibits" in a biological graph).

The authors tackle the "fully inductive" challenge: How do we build a model that can reason on any graph with any vocabulary?

Methods

The core innovation of ULTRA (Universal and Learnable Transferable Relationship Approach) is that it doesn't learn what a relation is, but rather how it behaves relative to others.

Relative relation representations transfer to new relations
  1. Relation Graph Construction: ULTRA "lifts" the original KG into a secondary graph where each node is a relation. It defines four fundamental, universal ways relations can interact based on their shared head or tail entities: tail-to-head (t2h), head-to-head (h2h), head-to-tail (h2t), and tail-to-tail (t2t).
  2. Conditional Relation Representations: It runs a Graph Neural Network (GNN) over this relation graph. Given a query (e.g., "Who is the director of Inception?"), it uses a "labeling trick" to initialize the "director" node and produces representations for all other relations relative to it.
  3. Entity-Level Reasoning: These relative relational features are then plugged into an inductive link predictor (specifically an adapted NBFNet). Because the relational features are derived from universal structural patterns, they transfer perfectly to any new graph.

Crucially, ULTRA is small (only ~177k parameters) and doesn't require any input text or features—it learns purely from the graph's topology.

Datasets

The authors conducted a massive evaluation across 57 different KGs.

  • Pre-training: ULTRA was trained on a mixture of just 3 standard KGs: WN18RR (WordNet), FB15k-237 (Freebase), and CoDEx-Medium (Wikidata).
  • Evaluation: The model was tested on 54 other graphs, including:
  • Transductive sets: YAGO3-10, NELL-995, ConceptNet100k.
  • Inductive Entity sets: GraIL, INDIGO, ILPC 2022.
  • Inductive Entity & Relation sets: INGRAM and MTDEA benchmarks.

Key Insights and Ideas

  • Relational Invariance: While the labels of relations change between datasets, the logic of how they interact is often the same. For example, the structural relationship between "Author" and "Book" in one graph might mirror "Director" and "Movie" in another. ULTRA captures this meta-logic.
  • Relative is Better than Absolute: By representing relations relative to a query relation (using a labeling trick), the model avoids the need for a global, fixed vocabulary.
  • Zero-Shot is Viable: A single model pre-trained on three diverse graphs can generalize to dozens of others without seeing a single training example from the target domain. This mirrors the "zero-shot" capabilities of Large Language Models.

Key Results

Zero-shot and fine-tuned performance of ULTRA across 57 KGs compared to supervised SOTA
  • Zero-Shot Superiority: On average, the zero-shot ULTRA model (0.395 MRR) outperformed the best reported supervised baselines (0.344 MRR) that were trained specifically on each target graph.
  • Massive Gains on Small Graphs: On smaller inductive datasets like FB-25, zero-shot ULTRA yielded nearly 3x better performance than previous state-of-the-art models.
  • Fine-tuning Boost: While zero-shot performance is strong, a quick fine-tuning step (often just 1,000–2,000 steps) consistently pushed the performance even higher, especially on very large transductive graphs.
  • Efficiency: Despite its power, the model is remarkably parameter-efficient, using fewer than 200k parameters to outperform models with millions.

Limitations and Future Work

  • Scaling Laws: Interestingly, the authors found that simply increasing the number of graphs in the pre-training mix didn't always lead to better performance. They suggest that current GNN architectures might hit a "capacity ceiling" at small sizes.
  • Model Size: At 177k parameters, ULTRA is tiny compared to LLMs. Future work will likely explore how to scale these models to millions or billions of parameters effectively.
  • Feature Integration: ULTRA currently ignores node/edge features (like text descriptions). Combining ULTRA's structural reasoning with the semantic power of LLMs is a promising next step.
  • Sparse Graphs: Generalization remains difficult on extremely sparse graphs (like ConceptNet100k), where structural patterns are harder to find.

Summary updated

BibTeX
@inproceedings{galkin2024towards,
  author = {Mikhail Galkin and Xinyu Yuan and Hesham Mostafa and Jian Tang and Zhaocheng Zhu},
  title = {{Towards Foundation Models for Knowledge Graph Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=jVEoydFOl9},
}
Figure