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

Knowledge Graph Completion with Pre-trained Multimodal Transformer and Twins Negative Sampling

Yichi Zhang, Wen ZhangarXiv 2022 · DOI

Introduction

Knowledge Graphs (KGs) are fundamental for representing structured world facts as triples, such as (Paris, capital of, France). However, real-world KGs are often incomplete. Multimodal Knowledge Graphs (MMKGs) extend this concept by incorporating images and textual descriptions for entities, offering a richer context for link prediction.

Current approaches to MMKG completion generally fall into two categories:

  1. Embedding-based methods: These are computationally efficient but often rely on shallow fusion techniques that fail to capture complex cross-modal interactions.
  2. Fine-tuning methods (e.g., KG-BERT): These utilize deep architectures like Transformers for sophisticated fusion but suffer from extreme latency during inference, making them impractical for large-scale deployment.

This paper introduces VBKGC (VisualBERT-enhanced Knowledge Graph Completion), a framework designed to bridge the gap between deep multimodal reasoning and high-speed inference.

The VBKGC Framework

The VBKGC model integrates pre-trained multimodal Transformers with traditional knowledge graph embedding (KGE) techniques.

Architecture

The framework consists of three primary modules:

  • Encoding Module: Utilizes a pre-trained VisualBERT as a fixed feature extractor. It processes textual tokens and visual features (extracted via VGG) to generate a deeply fused multimodal representation of an entity.
  • Projection Module: Maps these high-dimensional multimodal features into the structural embedding space.
  • Scoring Module: Employs a complex scoring function that evaluates five types of interactions: structural-only, multimodal-only, and three cross-modal variations.
The VBKGC architecture, featuring Encoding, Projection, and Scoring modules.

Twins Negative Sampling

A core innovation of this work is Twins Negative Sampling. Standard training involves generating negative triples by replacing one entity with a random alternative. Twins sampling refines this by replacing only the multimodal features while retaining the structural identity for multimodal scores. This strategy forces the model to align an entity's structural "personality" with its visual and textual "appearance," preventing embedding drift and improving cross-modal alignment.

Experimental Evaluation

The authors evaluated VBKGC on two benchmark datasets: WN9 (WordNet subset) and FB15K-237 (Freebase subset with images).

Performance Results

VBKGC demonstrates significant improvements in both accuracy and precision. On the WN9 dataset, the model achieved a Mean Reciprocal Rank (MRR) of 0.857, a substantial gain over the TransE baseline of 0.766. Notably, the Hit@1 metric—representing exact-match accuracy—saw a dramatic 25% relative increase on WN9.

Main experimental results comparing VBKGC against baseline and state-of-the-art methods.

Efficiency and Scalability

By using VisualBERT as a fixed feature extractor rather than fine-tuning it for every triple, VBKGC maintains the inference speed of traditional embedding models. It achieves performance comparable to or better than deep fine-tuning models like StAR and KG-BERT while being orders of magnitude faster during inference, making it viable for large-scale applications.

Key Insights

  • Deep Fusion as a Feature Extractor: Leveraging pre-trained Transformers for feature extraction allows the model to benefit from complex multimodal understanding without the computational burden of end-to-end fine-tuning.
  • The Alignment Problem: Multimodal information acts as a powerful "tie-breaker" for entities that are structurally similar. Twins Negative Sampling serves as a specialized regularizer that ensures structural and multimodal embeddings remain coherent.
  • Precision Gains: The significant boost in Hit@1 suggests that multimodal data is particularly effective at resolving ambiguity in near-miss cases.

Conclusion and Future Work

VBKGC successfully combines the strengths of deep Transformers and efficient embedding models. While highly effective, the authors note that the advantage of Twins Negative Sampling can diminish as the number of negative samples increases on certain datasets. Future research may explore KG-specific pre-training for multimodal encoders to further enhance performance and scalability.

Summary updated

BibTeX
@misc{zhang2022knowledge,
  author = {Yichi Zhang and Wen Zhang},
  title = {{Knowledge Graph Completion with Pre-trained Multimodal Transformer and Twins Negative Sampling}},
  year = {2022},
  eprint = {2209.07084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.07084},
}
Figure