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, Wen Zhang, Huajun Chen

TL;DR

MyGO (ModalitY information as fine-Grained tOkens) is a novel framework that significantly improves Multi-modal Knowledge Graph Completion (MMKGC) by moving away from "coarse" entity embeddings. Instead of representing an image or text description as a single frozen vector, MyGO tokenizes raw data into fine-grained semantic units, allowing for deeper cross-modal interaction and more robust reasoning.

What Problem Does This Paper Address?

Knowledge Graphs (KGs) are essential for AI, but they are notoriously incomplete. Multi-modal Knowledge Graphs (MMKGs) attempt to solve this by adding images and text descriptions to entities (e.g., a picture of a T-Rex and a text snippet about its "dagger-like teeth").

However, existing methods typically use pre-trained models to extract a single, static embedding for each modality. This "coarse" approach has two major flaws:

  1. Loss of Detail: It ignores nuanced features (like specific image segments or phrases) that might be crucial for distinguishing similar entities.
  2. Poor Scalability: When an entity has multiple images, most models simply average the embeddings, which often introduces noise and leads to erratic performance.
The intuition behind MyGO: moving from single frozen embeddings to fine-grained token interactions.

Methods

The authors propose the MyGO framework, which consists of three main components:

  1. Modality Tokenization (MT): Raw data is converted into discrete tokens. For images, they use a visual codebook (via BEiT); for text, they use standard subword tokenization (via BERT). They filter these to keep only the most frequent, meaningful "semantic units."
  2. Hierarchical Triple Modeling (HTM):
    • Cross-modal Entity Encoder (CMEE): A Transformer layer that allows all visual and textual tokens to interact dynamically.
  3. Contextual Triple Encoder (CTE): Encodes the specific query (e.g., "What is the relation between Entity A and ?") to capture relational context.
  4. Relational Decoder: Uses the TuckER score function to predict the plausibility of a triple.
  5. Fine-grained Contrastive Learning (FGCL): To sharpen the representations, the model uses a multi-scale contrastive loss. It compares global entity representations (using dropout as data augmentation) and specific modality-level clusters (visual-to-visual and textual-to-textual) to ensure the model learns distinctive features.
The MyGO framework overview, showing the tokenization, hierarchical modeling, and contrastive learning stages.

Datasets

The model was evaluated on three standard MMKGC benchmarks:

  • DB15K: A widely used dataset derived from DBpedia.
  • MKG-W & MKG-Y: More recent and diverse benchmarks designed to test multi-modal reasoning in broader contexts.

Key Insights and Ideas

  • Tokens > Embeddings: Treating multi-modal data as a sequence of tokens rather than a single vector allows the model to "attend" to specific features. For a T-Rex, the model can specifically link the text "dagger-like teeth" to the corresponding visual features in an image.
  • Handling Multi-Image Data: Because MyGO treats images as sequences of tokens, adding more images simply extends the sequence. This makes the model much more stable than baselines that rely on averaging. As shown in Figure 3, MyGO's performance improves steadily as the number of images increases, while baselines often fluctuate.
  • Robustness to Backbones: The framework is "plug-and-play." The authors demonstrated that MyGO remains effective whether using BERT, RoBERTa, or even Llama as the underlying text tokenizer.
Performance comparison showing that MyGO scales effectively with more images, unlike traditional methods.

Key Results

MyGO outperformed 19 state-of-the-art models across all metrics.

  • On the DB15K dataset, it achieved a 37.72% MRR (Mean Reciprocal Rank), representing a relative improvement of 11.4% over the previous best model.
  • The gain in Hit@1 (correctly predicting the exact entity at rank 1) was even more dramatic, with an 18.4% increase on DB15K.
  • Efficiency: Despite using Transformers, MyGO maintains a competitive training speed (approx. 11s per epoch on DB15K using a single A800 GPU), making it practical for real-world use.
The efficiency-performance trade-off, showing MyGO achieves superior accuracy while remaining computationally viable.

Limitations and Future Work

The primary limitation is the quadratic time complexity $O((m+n)^2)$ relative to the number of tokens ($m$ visual, $n$ textual). While currently manageable, very large-scale multi-modal data (e.g., high-resolution video) would require more efficient attention mechanisms.

The authors suggest that future work should focus on better interpreting how the model weights specific fine-grained tokens during the reasoning process to improve the explainability of Knowledge Graph predictions.

Summary updated

BibTeX
@inproceedings{zhang2025tokenization,
  author = {Yichi Zhang and Zhuo Chen and Lingbing Guo and Yajing Xu and Binbin Hu and Ziqi Liu and Wen Zhang and Huajun Chen},
  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