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

MyGO: Discrete Modality Information as Fine-Grained Tokens for Multi-modal Knowledge Graph Completion

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

Abstract

Multi-modal knowledge graphs (MMKG) store structured world knowledge containing rich multi-modal descriptive information. To overcome their inherent incompleteness, multi-modal knowledge graph completion (MMKGC) aims to discover unobserved knowledge from given MMKGs, leveraging both structural information from the triples and multi-modal information of the entities. Existing MMKGC methods usually extract multi-modal features with pre-trained models and employ a fusion module to integrate multi-modal features with triple prediction. However, this often results in a coarse handling of multi-modal data, overlooking the nuanced, fine-grained semantic details and their interactions. To tackle this shortfall, we introduce a novel framework MyGO to process, fuse, and augment the fine-grained modality information from MMKGs. MyGO tokenizes multi-modal raw data 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 20 of the latest models, underlining its superior performance.

Introduction

Knowledge Graphs (KGs) represent facts as triples consisting of a head entity, a relation, and a tail entity. While powerful, KGs are notoriously incomplete. Multi-modal Knowledge Graphs (MMKGs) attempt to mitigate this by augmenting entities with auxiliary information such as images and textual descriptions. The task of Multi-modal Knowledge Graph Completion (MMKGC) leverages this multi-modal data to predict missing links.

A significant limitation in current MMKGC research is the reliance on "coarse" representations. Conventional methods typically use frozen, pre-trained encoders to produce a single embedding vector for an entire image or a block of text. This approach collapses complex semantic information into a single point in space, losing fine-grained details—such as specific visual attributes or textual nuances—that could be critical for reasoning. Furthermore, these models often struggle to integrate multiple images per entity, frequently resorting to simple averaging which further dilutes the signal.

The MyGO Framework

To address these challenges, we propose MyGO (ModalitY information as fine-Grained tOkens). MyGO shifts the paradigm from global embeddings to a token-based approach, allowing for more granular interaction between modalities.

The MyGO framework architecture, consisting of Modality Tokenization, Hierarchical Triple Modeling, and Fine-grained Contrastive Learning.

The framework is structured into three primary components:

1. Modality Tokenization (MT)

Instead of extracting a single feature vector, MyGO decomposes raw multi-modal data into sequences of discrete tokens. For images, we utilize a BEiT (Bidirectional Encoder representation from Image Transformers) backbone to convert image patches into visual tokens. For text, we employ BERT to generate textual tokens. This discretization allows the model to treat different parts of an image or text as distinct semantic units, facilitating more precise cross-modal alignment.

2. Hierarchical Triple Modeling (HTM)

The modeling process follows a hierarchical structure to build context-aware representations:

  • Cross-modal Entity Encoder (CMEE): This layer uses a Transformer architecture to enable interaction between all visual and textual tokens associated with an entity. It produces a unified, multi-modal entity representation that captures the interplay between different features.
  • Contextual Triple Encoder (CTE): This component encodes the specific query context (e.g., the head entity and the relation) to generate a representation tailored to the prediction task at hand.
  • Relational Decoder: Finally, a decoder based on the TuckER decomposition calculates the plausibility scores for candidate triples, determining the most likely missing links.

3. Fine-grained Contrastive Learning (FGCL)

To enhance the distinctiveness of the learned representations, MyGO incorporates a contrastive learning objective. By maximizing the similarity between different "views" of the same entity (e.g., its global representation vs. its specific modality tokens) and minimizing similarity with other entities, the model learns to emphasize the unique features that define each entity.

Experimental Evaluation

We evaluated MyGO on three benchmark datasets: DB15K, MKG-W, and MKG-Y. These datasets provide a rigorous testing ground with thousands of entities, relations, and associated multi-modal assets.

MyGO demonstrated state-of-the-art performance, outperforming 19 competitive baselines across all standard metrics, including Mean Reciprocal Rank (MRR) and Hit@N. On the DB15K dataset, MyGO achieved an 11.4% improvement in MRR and an 18.4% increase in Hit@1 over the previous best-performing model.

Key Insights and Discussion

A critical finding of this work is the relationship between multi-modal data volume and model performance. In many existing models, adding more images per entity leads to diminishing returns or even performance degradation due to the noise introduced by coarse fusion. In contrast, MyGO shows a steady improvement in performance as the number of images increases.

Performance comparison (MRR and Hit@10) as the number of images per entity increases, demonstrating MyGO's superior scalability.

This scalability is attributed to the tokenization strategy, which allows the model to selectively attend to relevant features across multiple images rather than being forced to aggregate them into a single, potentially noisy, vector. Furthermore, ablation studies confirmed that both the fine-grained tokenization and the hierarchical encoder structure are essential for achieving these gains.

Conclusion

MyGO represents a significant step forward in Multi-modal Knowledge Graph Completion by moving beyond coarse global embeddings. By treating multi-modal data as sequences of fine-grained tokens and employing a hierarchical modeling approach with contrastive learning, MyGO captures the nuanced interactions necessary for complex reasoning. Our results across multiple benchmarks validate the effectiveness and robustness of this approach, setting a new state-of-the-art for the field.

Summary updated

BibTeX
@inproceedings{zhang2025mygo,
  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 = {{MyGO: Discrete Modality Information as Fine-Grained Tokens for Multi-modal Knowledge Graph Completion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i12.33454},
}
Figure