Every Little Helps: Building Knowledge Graph Foundation Model with Fine-grained Transferable Multi-modal Tokens

Yichi Zhang, Zhuo Chen, Lingbing Guo, Wen Zhang, Huajun ChenarXiv 2026

TL;DR

The paper introduces TOFU (TOken-based MMKG FoUndation model), the first foundation model for multi-modal knowledge graph reasoning that generalizes across completely different graphs. By discretizing structural, visual, and textual data into fine-grained, transferable tokens, TOFU eliminates the need for dataset-specific embedding tables and achieves state-of-the-art zero-shot and fine-tuned performance across 17 distinct knowledge graphs.

What Problem Does This Paper Address?

Multi-modal Knowledge Graph Reasoning (MMKGR) aims to predict missing links (triples) in graphs containing multi-modal entity data, such as text descriptions and images. Historically, MMKGR models have been stuck in a transductive bottleneck: they learn fixed, entity-specific embedding tables. If you introduce a new entity, a new relation, or an entirely new graph, these models fail because they cannot generalize beyond their training vocabulary.

Recently, Knowledge Graph Foundation Models (KGFMs) like ULTRA have emerged to solve this cross-graph generalization problem, but they focus exclusively on structural graph patterns. They completely ignore the rich multi-modal signals (images and text) that could serve as powerful anchors when transferring knowledge to an unseen graph. TOFU bridges this gap by creating a unified, token-based architecture capable of processing structure, text, and vision under a single foundational framework.

Methods

TOFU borrows a core design principle from Large Language Models (LLMs): everything is a token. Instead of maintaining massive entity lookup tables, TOFU tokenizes all three modalities into a shared, discrete space:

  1. Visual & Textual Tokens: Raw text is processed using a standard BERT tokenizer, while images are converted into discrete visual tokens using a pre-trained BEiT/VQ-VAE codebook.
  2. Structural Tokens: To represent an entity's position without relying on its specific ID, TOFU samples local context subgraphs and encodes entities based on their shortest-path distances to the head and tail entities.
Figure 2. An overview of our TOFU framework. TOFU first models each modality (structure/visual/textual) into discrete tokens and employs a hierarchical fusion architecture to obtain the transferable entity and relation features, which consists of a structural encoder, a multi-modal encoder, and a fusion gate. Finally, TOFU applies global aggregation with a mixture-of-message mechanism to obtain multi-source information from the MMKG to make the MMKGR prediction based on the query-informed entity representations.

These tokens are processed through a Hierarchical Local Fusion architecture:

  • A Structural Encoder (GNN) and a Multi-modal Encoder (Transformer) independently extract local features.
  • A Gated Fusion module adaptively weights the structural vs. multi-modal features based on the query context.

Finally, a Global Propagation module uses a novel Mixture-of-Messages (MiM) mechanism. Because different relations are best modeled by different geometric operations, MiM dynamically combines three classic knowledge graph reasoning functions (TransE, DistMult, and RotatE) using a relation-informed temperature distribution to compute final triple scores.

Datasets

The authors evaluated TOFU across 17 multi-modal knowledge graphs spanning three distinct generalization settings:

  • Transductive: DB15K, MKG-W, MKG-Y, YAGO15K, WN9, WN18RR++, and three splits of FB15K-237 (10%, 20%, 50%).
  • Inductive (Unseen Entities): Four inductive splits of FB15K-237 (v1, v2, v3, v4).
  • Fully-Inductive (Unseen Entities & Relations): Four fully-inductive splits of FB15K-237 (FB-25, FB-50, FB-75, FB-100).

Key Insights and Ideas

  • The Power of Discretization: Treating graph structure and multi-modal features as discrete tokens allows the model to completely discard entity/relation-specific embedding tables. This is what enables true cross-KG transferability.
  • Modality Synergy: Ablation studies revealed that while structural information remains the dominant signal for graph reasoning, textual and visual tokens act as critical complementary features, especially when generalizing to out-of-distribution (OOD) graphs.
  • Dynamic Message Passing: Rather than forcing a single scoring function (like TransE) across the entire graph, the Mixture-of-Messages approach allows the model to adapt its mathematical representation depending on the specific relation query, which significantly boosts robust generalization.

Key Results

TOFU demonstrates remarkable performance and parameter efficiency across the board:

  • Cross-Graph Generalization: In zero-shot settings on unseen graphs, TOFU frequently outperforms strong KGFM baselines (like ULTRA and KG-ICL) and even beats some fully fine-tuned baselines.
  • Parameter Efficiency: Traditional MMKGR models are massive because their parameters scale with the number of entities (e.g., MoMoK uses 72.4M parameters). TOFU fixes the parameter count entirely. It achieves its state-of-the-art results with just 0.248M parameters—less than 1% of the size of traditional models.
Figure 3. Detailed MRR results on the MMKGs. We annotate three baselines and the TOFU’s performance across zero-shot and fine-tuning settings for each dataset, sorted in ascending order.

Limitations and Future Work

While TOFU successfully establishes a foundation model paradigm for multi-modal knowledge graphs, the authors note that it currently focuses primarily on link prediction (reasoning). Future work includes expanding the unified token-based architecture to handle other critical multi-modal knowledge graph tasks simultaneously, such as entity linking and cross-lingual entity alignment.

Summary updated

Abstract

Multi-modal knowledge graph reasoning (MMKGR) aims to predict the missing links by exploiting both graph structure information and multi-modal entity contents. Most existing works are designed for a transductive setting, which learns dataset-specific embeddings and struggles to generalize to new KGs. Recent knowledge graph foundation models (KGFMs) improve cross-KG transfer, but they mainly exploit structural patterns and ignore rich multi-modal signals. We address these gaps by proposing a token-based foundation model (TOFU) for MMKGR, which exhibits strong generalization across different MMKGs. TOFU discretizes structural, visual, and textual information into modality-specific tokens. TOFU then employs a hierarchical fusion architecture with mixture-of-message mechanisms, aiming to process these tokens and obtain transferable features for MMKGR. Experimental results on 17 transductive, inductive, and fully-inductive MMKGs show that TOFU consistently outperforms strong KGFM and MMKGR baselines, delivering strong performance on unseen MMKGs.
BibTeX
@misc{zhang2026every,
  author = {Yichi Zhang and Zhuo Chen and Lingbing Guo and Wen Zhang and Huajun Chen},
  title = {{Every Little Helps: Building Knowledge Graph Foundation Model with Fine-grained Transferable Multi-modal Tokens}},
  year = {2026},
  eprint = {2602.15896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.15896},
}
Figure