TL;DR
SEMMA is a novel Knowledge Graph Foundation Model (KGFM) that integrates Large Language Model (LLM)-enriched textual semantics alongside graph structure for zero-shot link prediction. By combining linguistic signals with structural patterns, SEMMA significantly outperforms purely structural baselines and proves twice as effective in extreme generalization settings where the relation vocabulary is completely unseen at test time.
What Problem Does This Paper Address?
Knowledge Graph Foundation Models (KGFMs) aim to perform zero-shot reasoning over entirely unseen graphs by learning transferable patterns during pretraining. However, state-of-the-art KGFMs (like ULTRA) rely exclusively on graph topology, completely ignoring the rich textual attributes and labels attached to nodes and edges.
This purely structural approach hits a wall when encountering different graphs with similar structures but entirely different meanings. While entities in a knowledge graph (KG) can number in the millions and are highly graph-specific, the vocabulary of relations (e.g., "bornIn", "spouseOf") is compact, highly informative, and carries strong semantic meaning that humans intuitively understand. The authors address this missed opportunity by asking: How can we systematically leverage textual relation semantics to build more robust, generalizable graph foundation models?
Methods
SEMMA introduces a parallel, dual-module architecture that processes structural and textual signals simultaneously before fusing them for final link prediction.
- Textual Semantic Extraction via LLMs: For every relation identifier, SEMMA uses a zero-shot prompt to an LLM (GPT-4o) to generate two outputs: a cleaned, human-readable relation name (e.g.,
greatGranddaughterOf$\rightarrow$Great Granddaughter Of) and a concise textual description defining the relation and its inverse. - Embedding Generation: These enriched textual descriptions are converted into dense vector embeddings using a text embedding model (Jina-embeddings-v3). Virtual inverse relations are handled via a simple vector negation heuristic ($\tau_{r^{-1}} = -\tau_r$).
- Textual Relation Graph ($G_R^{TEXT}$): SEMMA constructs a graph where nodes represent relations and edge weights represent the cosine similarity between their text embeddings. Edges below a threshold (0.8) are filtered out to prevent over-smoothing.
- Parallel Processing & Fusion: The structural relation graph ($G_R^{STR}$) and the textual relation graph ($G_R^{TEXT}$) are processed in parallel using separate Neural Bellman-Ford Networks (NBFNets). The outputs are fused via a Multi-Layer Perceptron (MLP) or Attention mechanism and passed to an entity-level NBFNet to output the final link predictions.
The authors also introduce SEMMA Hybrid, a variant that uses the validation set to dynamically deactivate the textual module if the relation text is noisy or unhelpful for a specific dataset.
Datasets
The model was evaluated across 54 diverse knowledge graphs spanning three distinct generalization regimes:
- Transductive: The training and test graphs are identical.
- Partially Inductive (Inductive $e$): New entities appear at test time, but the relation vocabulary remains the same.
- Fully Inductive (Inductive $e, r$): Both entities and relations are completely unseen at test time.
Additionally, the authors conducted a rigorous data leakage audit, discovering that 30 out of the 54 standard benchmark datasets contained test triples already present in the pretraining corpus. To ensure robust evaluation, they reported separate results on a cleaned subset of 22 unleaked datasets.
Key Insights and Ideas
- Structure Collapses Without Semantics: Purely structural models fail when multiple distinct relations share the same head or tail entities in a test graph because they assign identical temporary IDs to unseen relations. SEMMA uses textual semantics to successfully differentiate these relations (e.g., distinguishing
agentCollaboratesWithAgentfromcompetesWith). - Standardization vs. Flexibility: Textual semantics are not a silver bullet for every graph. Highly curated, standardized KGs (like YAGO310 or Hetionet) can suffer from over-smoothing when textual similarities blur precise relational boundaries. Conversely, commonsense and crowdsourced KGs (like ConceptNet and Metafam) benefit immensely from text, which bridges linguistic variations and looser relational definitions.
Key Results
SEMMA consistently outperforms purely structural baselines across the board:
- Overall Performance: On the full 54-graph benchmark, SEMMA achieved a Total Average MRR of 0.374 (and 0.376 for the Hybrid variant), outperforming ULTRA's 0.365.
- Unleaked Datasets: On the cleaner, more challenging subset of 22 unleaked graphs, SEMMA maintained its edge, scoring an MRR of 0.353 compared to ULTRA's 0.347.
- Inductive Relation Vocabulary: In an extreme evaluation setting where the test-time query relations were completely disjoint from the test graph topology, ULTRA's performance collapsed, while SEMMA proved 2x more effective across metrics like MRR, Hits@3, and Hits@10.
Limitations and Future Work
- Relation-Only Text: SEMMA currently ignores textual information attached to entities (names, descriptions), focusing exclusively on relations. Extending the dual-module framework to entity-level text is a natural next step.
- Upstream LLM Dependency: The quality of SEMMA's textual graph depends heavily on the upstream LLM. Biases or hallucinations in the LLM could negatively impact downstream graph reasoning.
- Benchmark Homogeneity: The authors note that existing KGFM benchmarks heavily reuse subsets of Freebase and WordNet, calling for genuinely novel, cross-domain benchmarks to evaluate true zero-shot generalization.
Summary updated