SEMMA: A Semantic Aware Knowledge Graph Foundation Model

Arvindh Arun, Sumit Kumar, Mojtaba Nayyeri, Bo Xiong, Ponnurangam Kumaraguru, Antonio Vergari, Steffen Staab

Arvindh Arun, Sumit Kumar, Mojtaba Nayyeri, Bo Xiong, Ponnurangam Kumaraguru, Antonio Vergari, Steffen Staab.
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing.

Abstract

Knowledge Graph Foundation Models (KGFMs) aim to generalize across diverse graphs for tasks like link prediction. However, current state-of-the-art models rely almost exclusively on graph topology, ignoring the rich semantic information in entity and relation names. We introduce SEMMA, a semantic-aware KGFM that integrates textual semantics via Large Language Models (LLMs) with structural patterns. SEMMA achieves state-of-the-art zero-shot performance, particularly in challenging inductive scenarios where relation types are entirely new.

Introduction

Knowledge Graph Foundation Models (KGFMs) are designed to be the "LLMs of graphs"—pre-trained on massive datasets to perform reasoning on unseen graphs without further training. While models like ULTRA have shown promise by learning transferable structural patterns, they suffer from a "structural blind spot." By relying solely on topology, they fail to distinguish between relations that share similar connection patterns but have vastly different meanings (e.g., fatherOf vs. competedWith). SEMMA addresses this by incorporating textual semantics, preventing "structural collapse" when the model encounters disjoint relation vocabularies.

Methodology: Dual-Module Architecture

SEMMA utilizes a parallel architecture to process structural and textual information simultaneously:

  1. Structural Module: Uses a Graph Neural Network (NBFNet) to learn transferable patterns from a structural relation graph, capturing how relations interact topologically.
  2. Textual Module: This core innovation leverages GPT-4o to clean raw relation identifiers and generate concise descriptions. These descriptions are converted into vector embeddings using a text encoder (Jina-embeddings-v3).
  3. Textual Relation Graph ($G_R^{TEXT}$): A secondary graph is constructed where nodes represent relations and edges represent semantic similarity (cosine similarity) between their LLM-generated descriptions.
  4. Fusion and Prediction: The outputs from both modules are fused via a Multi-Layer Perceptron (MLP) and passed to an entity-level NBFNet for final link prediction.
The SEMMA architecture processes structural topology and LLM-enriched relation text in parallel before fusing them for final entity prediction.

For datasets where text might be noisy, the SEMMA HYBRID variant can automatically weight the textual module's contribution based on validation performance.

Experimental Evaluation

SEMMA was evaluated across 54 diverse Knowledge Graphs spanning three regimes: transductive (known graphs), partially inductive (new entities), and fully inductive (new entities and relations). To ensure rigorous testing, the authors identified and corrected for data leakage in existing benchmarks, creating a "clean" subset of 22 KGs.

Key Results and Insights

SEMMA consistently outperforms purely structural models across all evaluation metrics. The most significant gains occur in the "Fully Inductive" setting, where the model must predict links for relationship types it has never seen before. In these scenarios, SEMMA proved to be up to 2x more effective than ULTRA.

Experimental results showing SEMMA outperforming the structural-only ULTRA model across inductive and transductive benchmarks.

Key Findings:

  • Relations as Generalization Anchors: While entities vary wildly across domains, relations are more stable and carry the most transferable signal. SEMMA’s use of textual embeddings creates an "ontological map" that helps it recognize that fatherOf is semantically related to sonOf_inv even without prior structural examples.
  • Linguistic Variability: On datasets like Metafam, which feature rich relation names and high linguistic variability, SEMMA showed nearly 2x improvement in Mean Reciprocal Rank (MRR).
  • Robustness: The HYBRID variant ensures that even in cases where textual information is unhelpful, the model maintains a performance floor equal to the structural baseline.

Conclusion and Future Work

SEMMA demonstrates that integrating textual semantics is vital for the next generation of Knowledge Graph Foundation Models. By bridging the gap between symbolic structure and linguistic meaning, SEMMA achieves unprecedented zero-shot generalization. Future research will explore integrating entity-level text, handling multilingual graphs, and incorporating complex logical constraints directly from textual descriptions.

Summary updated

BibTeX
@misc{arun2025semma,
  author = {Arvindh Arun and Sumit Kumar and Mojtaba Nayyeri and Bo Xiong and Ponnurangam Kumaraguru and Antonio Vergari and Steffen Staab},
  title = {{SEMMA: A Semantic Aware Knowledge Graph Foundation Model}},
  year = {2025},
  eprint = {2505.20422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.20422},
}
Figure