MACO: A Modality Adversarial and Contrastive Framework for Modality-Missing Multi-modal Knowledge Graph Completion

Yichi Zhang, Zhuo Chen, Wen Zhang

Introduction

Knowledge Graph Completion (KGC) is the fundamental task of predicting missing triples (links) within a network of entities and relations. While Multi-modal KGC (MMKGC) has emerged as a powerful paradigm—leveraging auxiliary data such as images to enrich entity representations—it faces a significant real-world challenge: missing modalities. In many large-scale knowledge graphs, a substantial portion of entities lack visual information.

Existing MMKGC models often struggle with this inconsistency, typically resorting to skipping these entities or filling gaps with uninformative noise (e.g., random or zero vectors). Such approaches degrade the model's ability to learn a cohesive multi-modal latent space. To address this, the MACO (Modality Adversarial and COntrastive) framework was developed to "hallucinate" high-quality synthetic visual features for entities missing images, using their structural context as a guide.

The MACO Framework

MACO operates on the principle that an entity's position and neighborhood within a graph structure often imply its visual characteristics. The framework consists of three primary components:

1. Feature Encoders

  • Structural Encoder (S-ENC): Utilizes a Relational Graph Convolutional Network (R-GCN) to capture the relational neighborhood and structural context of an entity.
  • Visual Encoder (V-ENC): Employs a Vision Transformer (ViT) to extract features from entities that do have existing images.

2. Modality-Adversarial Training

To generate realistic visual features, MACO employs a Generative Adversarial Network (GAN) architecture. A Generator (G) takes an entity's structural embedding and random noise as input to produce a synthetic visual feature. Simultaneously, a Discriminator (D) attempts to distinguish between real structural-visual pairs and the synthetic pairs created by the generator. This adversarial "mini-max game" forces the generator to produce visual features that are statistically consistent with the underlying graph structure.

3. Cross-modal Contrastive Loss

Because GAN training can be unstable, MACO incorporates a cross-modal contrastive learning objective. This ensures that the generated visual feature for a specific entity is mathematically closer to its own structural feature than to the features of any other entity. By maximizing mutual information between modalities, the framework stabilizes training and ensures semantic alignment.

Once the generator is trained, it provides synthetic visual features for all missing entities. These features are then integrated into standard MMKGC models, such as IKRL, TBKGC, or RSME, for the final link prediction task.

Experimental Evaluation

The researchers evaluated MACO using the FB15K-237 dataset, a standard benchmark containing over 14,000 entities and 237 relations. To simulate real-world data scarcity, they created four variants of the dataset by randomly removing visual information at Missing Rates (MR) of 20%, 40%, 60%, and 80%.

Key Results and Insights

  • Superior Performance: MACO consistently outperformed baseline imputation methods (such as "Random" or "One" initialization) across all metrics, including Mean Reciprocal Rank (MRR) and Hit@K. For example, using the IKRL model at a 40% missing rate, MACO achieved an MRR of 30.6, significantly higher than the ~28.0 achieved by random initialization.
  • Robustness to Scarcity: Even at an extreme 80% missing rate, MACO maintained high performance levels, whereas baseline methods experienced sharp declines. This suggests that the structural encoder successfully captures enough semantic information to reconstruct missing visual cues.
  • The "All-Gen" Strategy: An intriguing finding was that replacing all original images with generated ones (All-Gen) sometimes yielded better results than only filling the gaps. This indicates that the generator can act as a "denoiser," creating a more uniform and optimized latent space for the completion task.
  • Model-Agnostic Versatility: The framework proved highly adaptable, successfully enhancing three different state-of-the-art MMKGC architectures (IKRL, TBKGC, and RSME).

Conclusion and Future Directions

MACO demonstrates that the structural role of an entity—such as its connections to specific genres or related entities—can serve as an effective proxy for missing visual data. By combining adversarial competition with contrastive alignment, the framework generates semantic-rich representations that bridge the gap in incomplete multi-modal datasets.

Future research may expand MACO to handle other missing modalities, such as text descriptions or sensor data. Additionally, the authors suggest that a "collaborative design"—where the feature generator and the KGC model are optimized simultaneously rather than in sequence—could further enhance performance in complex, real-world knowledge graphs.

Summary updated

BibTeX
@inproceedings{zhang2023maco,
  author = {Yichi Zhang and Zhuo Chen and Wen Zhang},
  title = {{MACO: A Modality Adversarial and Contrastive Framework for Modality-Missing Multi-modal Knowledge Graph Completion}},
  booktitle = {NLPCC},
  year = {2023},
  doi = {10.1007/978-3-031-44693-1\_10},
}
Figure