Multi-modal Contrastive Representation Learning for Entity Alignment

Zhenxi Lin, Ziheng Zhang, Meng Wang, Yinghui Shi, Xian Wu, Yefeng Zheng

Introduction

Knowledge Graphs (KGs) such as DBpedia, YAGO, and Freebase serve as the backbone for numerous downstream applications, including recommendation systems and semantic search. However, these graphs are often incomplete and isolated. Entity Alignment (EA) seeks to bridge these gaps by identifying equivalent entities across different KGs. As KGs evolve to become multi-modal—incorporating relational triples, textual attributes, and visual data—the challenge shifts from simple structural matching to the effective integration of heterogeneous data types.

Traditional multi-modal EA methods typically rely on simple feature fusion, which often fails to capture the complex interactions between modalities or address the "modality gap"—the inherent difficulty in comparing features from different spaces (e.g., images vs. graph structures). This paper presents MCLEA (Multi-modal Contrastive Learning based Entity Alignment), a framework designed to learn robust, aligned representations through novel contrastive objectives.

Methodology

MCLEA adopts a multi-stage approach to representation learning, focusing on both individual modality integrity and cross-modal synergy.

1. Modality-Specific Encoding

The framework first encodes three primary modalities:

  • Structure: A Graph Attention Network (GAT) is employed to capture the local neighborhood context of entities within the KG.
  • Text/Attributes: Entity names and attributes are treated as bag-of-words and processed through Multi-Layer Perceptrons (MLPs) to generate semantic embeddings.
  • Vision: Visual features are extracted from entity-associated images using pre-trained deep convolutional neural networks, such as ResNet-152 or VGG-16.

2. Joint Embedding and Contrastive Learning

Rather than simple concatenation, MCLEA utilizes a weighted concatenation mechanism to form a joint multi-modal embedding. The core innovation lies in the dual-contrastive loss functions:

  • Intra-modal Contrastive Loss (ICL): This loss ensures that equivalent entities remain close within each specific modality's latent space. By maximizing the similarity between positive pairs (aligned entities) and minimizing it for negative pairs within the same modality, the model learns highly discriminative features.
  • Inter-modal Alignment Loss (IAL): To bridge the modality gap, MCLEA uses a knowledge distillation approach. The joint multi-modal embedding—which contains the most comprehensive information—acts as a "teacher." The individual uni-modal encoders act as "students," forced to align their predictions with the joint view. This allows each modality to benefit from the complementary information present in others.

3. Adaptive Loss Weighting

Balancing multiple loss terms (ICL, IAL, and alignment loss) is traditionally a manual, labor-intensive process. MCLEA automates this using homoscedastic uncertainty. By treating the weight of each loss as a learnable parameter related to the task's uncertainty, the model dynamically adjusts the importance of each modality and objective during training.

Experimental Evaluation

The performance of MCLEA was evaluated on five benchmark datasets: the bilingual DBP15K (ZH-EN, JA-EN, FR-EN) and the more challenging cross-KG datasets, FB15K-DB15K and FB15K-YAGO15K. The latter are particularly difficult due to the high degree of structural heterogeneity between the source and target graphs.

Key Results

MCLEA achieved state-of-the-art (SOTA) performance across all metrics, including Hits@1, Hits@10, and Mean Reciprocal Rank (MRR). Notable findings include:

  • Superior Accuracy: On the FB15K-DB15K dataset, using only 20% of available alignment seeds for training, MCLEA improved Hits@1 by 67.9% relative to MMEA, the previous leading multi-modal baseline.
  • Parameter Efficiency: Despite its high performance, MCLEA is remarkably efficient. It utilizes approximately 13 million parameters—roughly 1/8th of the 110 million parameters required by BERT-INT, a heavy transformer-based competitor.
  • Robustness: The model maintains high performance even when training data is sparse, demonstrating its utility in real-world scenarios where labeled entity pairs are scarce.

Discussion and Insights

The success of MCLEA highlights the importance of contrastive learning in multi-modal contexts. Ablation studies confirmed that the Intra-modal Contrastive Loss (ICL) is the most critical component; its removal resulted in the most significant performance degradation. This suggests that refining individual modality representations is a prerequisite for effective multi-modal fusion.

Furthermore, the Inter-modal Alignment Loss (IAL) effectively mitigates the modality gap. By distilling knowledge from the joint embedding back into uni-modal encoders, the model ensures that even if one modality is missing or noisy for a specific entity, the other modalities can compensate effectively.

Conclusion and Future Work

MCLEA represents a significant advancement in Entity Alignment, proving that contrastive objectives and efficient distillation can outperform massive, computationally expensive transformer architectures. Future research directions include leveraging long-form entity descriptions, developing specialized encoders for numerical data (dates/coordinates), and optimizing the iterative alignment strategy for better scalability.

Summary updated

BibTeX
@inproceedings{lin2022multi,
  author = {Zhenxi Lin and Ziheng Zhang and Meng Wang and Yinghui Shi and Xian Wu and Yefeng Zheng},
  title = {{Multi-modal Contrastive Representation Learning for Entity Alignment}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure