DiffusionCom: Structure-Aware Multimodal Diffusion Model for Multimodal Knowledge Graph Completion

Wei Huang, Meiyu Liang, Peining Li, Xu Hou, Yawen Li, Junping Du, Zhe Xue, Zeli GuanarXiv 2025 · DOI

Abstract

Multimodal Knowledge Graph Completion (MKGC) is a critical task for maintaining and expanding knowledge bases by predicting missing links using textual, visual, and structural information. Existing discriminative models often fail to capture the complex, non-linear distributions of multimodal data and frequently overlook the graph's topological structure. We propose DiffusionCom, a generative framework that reformulates MKGC as a denoising diffusion process. By combining a novel Structure-MKGformer encoder with a conditional diffusion model, DiffusionCom achieves a state-of-the-art Hits@1 score of 0.372 on the FB15k-237-IMG dataset, representing a 38.2% relative improvement over previous methods.

Introduction

Knowledge Graphs (KGs) serve as foundational structures for various AI applications, yet they are often incomplete. Multimodal Knowledge Graphs (MKGs) enhance these structures by incorporating images and text. However, predicting missing relations or entities remains challenging. Most current approaches are discriminative, attempting to compute the conditional probability $p(tail | head, relation)$. These models typically suffer from two primary limitations: an inability to model intricate data distributions and a "structural blindness" where semantic features from pre-trained Transformers (like BERT or ViT) are prioritized over the actual graph connectivity.

Overview of the joint distribution and the diffusion model for generating it.

DiffusionCom addresses these issues by shifting to a generative paradigm. Instead of a single-pass prediction, it employs a denoising diffusion process to progressively refine the probability distribution of missing entities, starting from Gaussian noise.

Methodology

The Diffusion Framework

DiffusionCom utilizes a Denoising Diffusion Probabilistic Model (DDPM). In the forward process, Gaussian noise is incrementally added to the joint probability distribution of a triple until it becomes pure noise. In the reverse process, a Conditional Denoiser (CDenoiser) is trained to iteratively remove this noise, guided by multimodal conditions, to recover the most likely missing entity.

Structure-MKGformer

To provide the necessary context for the diffusion process, we developed the Structure-MKGformer. This encoder integrates three distinct data streams:

  1. Semantic Features: Visual and textual data are processed through standard ViT and BERT layers.
  2. Structural Information: A Multimodal Graph Attention Network (MGAT) reasons over local subgraphs, allowing the model to incorporate the entity's neighborhood topology.
  3. Adaptive Fusion: A learnable weighting mechanism balances semantic and structural information to create a robust multimodal condition.
The overall architecture of DiffusionCom, including the Structure-MKGformer and the conditional diffusion process.

Dual Optimization

The model is trained using a hybrid loss function. It combines a generative loss (KL divergence) with a discriminative loss (Binary Cross-Entropy), ensuring the model benefits from both the refinement capabilities of generation and the classification accuracy of discrimination.

Experimental Results

Datasets and Performance

We evaluated DiffusionCom on two standard benchmarks: FB15k-237-IMG and WN18-IMG.

  • FB15k-237-IMG: DiffusionCom achieved a Hits@1 of 0.372, a significant leap from the previous state-of-the-art (LAFA) at 0.269.
  • WN18-IMG: The model reached near-perfect scores with 0.973 Hits@1 and 0.985 Hits@10.

Key Insights

  • Generative Refinement: The "coarse-to-fine" approach of diffusion allows the model to navigate complex relational patterns more effectively than discriminative models.
  • Efficiency: While image diffusion often requires 1,000 steps, DiffusionCom reaches peak performance in just 30-40 steps, indicating a simpler probability space for KG completion.
  • Architecture Choice: Ablation studies showed that a simple Multi-Layer Perceptron (MLP) outperformed Transformers as a denoiser, likely due to the lack of long-range dependencies in short KG triples.

Conclusion

DiffusionCom demonstrates that generative diffusion models can significantly outperform traditional discriminative approaches in MKGC. By explicitly modeling graph structure through the MGAT and utilizing a conditional denoising process, the model sets a new standard for link prediction. Future work will focus on improving inference speed and scaling the model to industrial-sized graphs with millions of entities.

Summary updated

BibTeX
@misc{huang2025diffusioncom,
  author = {Wei Huang and Meiyu Liang and Peining Li and Xu Hou and Yawen Li and Junping Du and Zhe Xue and Zeli Guan},
  title = {{DiffusionCom: Structure-Aware Multimodal Diffusion Model for Multimodal Knowledge Graph Completion}},
  year = {2025},
  eprint = {2504.06543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.06543},
}
Figure