NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tokenization, Fusion, and Augmentation: Towards Fine-grained Multi-modal Entity Representation

Yichi Zhang, Zhuo Chen, Lingbing Guo, Yajing Xu, Binbin Hu, Ziqi Liu, Huajun Chen, Wen Zhang · DOI

Abstract

Multi-modal knowledge graph completion (MMKGC) aims to discover unobserved knowledge from given knowledge graphs, collaboratively leveraging structural information from the triples and multi-modal information of the entities to overcome the inherent incompleteness. Existing MMKGC methods usually extract multi-modal features with pre-trained models, resulting in coarse handling of multi-modal entity information, overlooking the nuanced, fine-grained semantic details and their complex interactions. To tackle this shortfall, we introduce a novel framework, MyGO, to tokenize, fuse, and augment the fine-grained multi-modal representations of entities and enhance MMKGC performance. Motivated by tokenization technology, MyGO tokenizes multi-modal entity information as fine-grained discrete tokens and learns entity representations with a cross-modal entity encoder. To further augment the multi-modal representations, MyGO incorporates fine-grained contrastive learning to highlight the specificity of the entity representations. Experiments on standard MMKGC benchmarks reveal that our method surpasses 19 of the latest models, underlining its superior performance.

Introduction

Knowledge Graphs (KGs) are essential for modern AI, yet they are notoriously incomplete. Multi-modal Knowledge Graphs (MMKGs) attempt to solve this by enriching entities with images and textual descriptions. However, existing MMKGC methods typically use pre-trained models to extract a single, static embedding for each modality. This "coarse" approach has two major flaws: it ignores nuanced semantic features (like specific image segments or descriptive phrases) and it scales poorly when an entity has multiple images, often relying on simple averaging that introduces noise.

The MyGO Framework

We propose the MyGO (ModalitY information as fine-Grained tOkens) framework to move away from coarse entity embeddings toward dynamic, fine-grained interactions. The framework consists of three primary stages:

  1. Modality Tokenization (MT): Raw data is converted into discrete tokens. Visual data is processed through a visual codebook (via BEiT), while text is tokenized into subword units (via BERT). These are filtered to retain only the most frequent and semantically meaningful "semantic units."
  2. Hierarchical Triple Modeling (HTM):
    • Cross-modal Entity Encoder (CMEE): A Transformer-based layer that allows all visual and textual tokens to interact dynamically, capturing complex cross-modal relationships.
  3. Contextual Triple Encoder (CTE): Encodes the specific relational query to capture context-dependent entity features.
  4. Relational Decoder: Evaluates the plausibility of a triple using the TuckER score function.
  5. Fine-grained Contrastive Learning (FGCL): To sharpen representations, MyGO uses a multi-scale contrastive loss. It compares global entity representations and modality-level clusters to ensure the model learns distinctive, high-quality features.
The MyGO framework overview, showing the tokenization, hierarchical modeling, and contrastive learning stages.

Experimental Results

MyGO was evaluated on three standard MMKGC benchmarks: DB15K, MKG-W, and MKG-Y. The framework outperformed 19 state-of-the-art models across all metrics. On the DB15K dataset, MyGO achieved a 37.72% Mean Reciprocal Rank (MRR), representing an 11.4% relative improvement over the previous best model. The gain in Hit@1 was even more dramatic, with an 18.4% increase on DB15K.

Key Insights

  • Tokens vs. Embeddings: Treating multi-modal data as a sequence of tokens allows the model to "attend" to specific features, such as linking the text "dagger-like teeth" to specific visual segments of a T-Rex image.
  • Scalability with Multi-Image Data: Because MyGO treats images as sequences of tokens, adding more images simply extends the sequence. This makes the model significantly more stable and effective than baselines that rely on embedding averaging. As shown in the performance plots, MyGO's accuracy improves steadily as the number of images increases.
Performance comparison (MRR and Hit@10) showing that MyGO scales effectively with an increasing number of images per entity.
  • Backbone Flexibility: The framework is "plug-and-play," maintaining high performance regardless of whether BERT, RoBERTa, or Llama is used as the underlying text tokenizer.

Conclusion

MyGO demonstrates that fine-grained tokenization and interaction are superior to coarse embedding methods for Multi-modal Knowledge Graph Completion. By enabling deeper cross-modal reasoning and providing a robust way to handle multi-image data, MyGO sets a new state-of-the-art for the field. Future work will focus on improving the efficiency of the attention mechanisms and enhancing the interpretability of the reasoning process.

Summary updated

BibTeX
@inproceedings{zhang2025tokenization,
  author = {Yichi Zhang and Zhuo Chen and Lingbing Guo and Yajing Xu and Binbin Hu and Ziqi Liu and Huajun Chen and Wen Zhang},
  title = {{Tokenization, Fusion, and Augmentation: Towards Fine-grained Multi-modal Entity Representation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i12.33454},
}
Figure