Table of Contents
Fetching ...

Unifying Dual-Space Embedding for Entity Alignment via Contrastive Learning

Cunda Wang, Weihua Wang, Qiuyu Liang, Feilong Bao, Guanglai Gao

TL;DR

This work tackles entity alignment across knowledge graphs by unifying dual-space embeddings in Euclidean and hyperbolic spaces. It introduces UniEA, which jointly learns Euclidean neighborhood information with GATs and hierarchical structure in hyperbolic space via HGCNs, while enforcing cross-space consistency through contrastive losses. A margin-based alignment loss using seed pairs and negative sampling further strengthens cross-graph matching, and an intra-graph contrastive term discourages excessive similarity among neighboring entities. Extensive experiments on OpenEA datasets demonstrate state-of-the-art performance and robust ablations confirm the contribution of dual-space learning and contrastive objectives. The approach offers a scalable, structure-preserving pathway for cross-graph entity alignment with practical impact on knowledge integration tasks.

Abstract

Entity alignment aims to match identical entities across different knowledge graphs (KGs). Graph neural network-based entity alignment methods have achieved promising results in Euclidean space. However, KGs often contain complex structures, including both local and hierarchical ones, which make it challenging to efficiently represent them within a single space. In this paper, we proposed a novel method UniEA, which unifies dual-space embedding to preserve the intrinsic structure of KGs. Specifically, we learn graph structure embedding in both Euclidean and hyperbolic spaces simultaneously to maximize the consistency between the embedding in both spaces. Moreover, we employ contrastive learning to mitigate the misalignment issues caused by similar entities, where embedding of similar neighboring entities within the KG become too close in distance. Extensive experiments on benchmark datasets demonstrate that our method achieves state-of-the-art performance in structure-based EA. Our code is available at https://github.com/wonderCS1213/UniEA.

Unifying Dual-Space Embedding for Entity Alignment via Contrastive Learning

TL;DR

This work tackles entity alignment across knowledge graphs by unifying dual-space embeddings in Euclidean and hyperbolic spaces. It introduces UniEA, which jointly learns Euclidean neighborhood information with GATs and hierarchical structure in hyperbolic space via HGCNs, while enforcing cross-space consistency through contrastive losses. A margin-based alignment loss using seed pairs and negative sampling further strengthens cross-graph matching, and an intra-graph contrastive term discourages excessive similarity among neighboring entities. Extensive experiments on OpenEA datasets demonstrate state-of-the-art performance and robust ablations confirm the contribution of dual-space learning and contrastive objectives. The approach offers a scalable, structure-preserving pathway for cross-graph entity alignment with practical impact on knowledge integration tasks.

Abstract

Entity alignment aims to match identical entities across different knowledge graphs (KGs). Graph neural network-based entity alignment methods have achieved promising results in Euclidean space. However, KGs often contain complex structures, including both local and hierarchical ones, which make it challenging to efficiently represent them within a single space. In this paper, we proposed a novel method UniEA, which unifies dual-space embedding to preserve the intrinsic structure of KGs. Specifically, we learn graph structure embedding in both Euclidean and hyperbolic spaces simultaneously to maximize the consistency between the embedding in both spaces. Moreover, we employ contrastive learning to mitigate the misalignment issues caused by similar entities, where embedding of similar neighboring entities within the KG become too close in distance. Extensive experiments on benchmark datasets demonstrate that our method achieves state-of-the-art performance in structure-based EA. Our code is available at https://github.com/wonderCS1213/UniEA.

Paper Structure

This paper contains 31 sections, 13 equations, 5 figures, 5 tables.

Figures (5)

  • Figure 1: Knowledge graph with hierarchical structures.
  • Figure 2: The framework of our proposed UniEA. Here, $\oplus$ denotes concatenate. The 'Exp. Map' operation is derived from Equation \ref{['exp']}; the 'Log. Map' operation is derived from Equation \ref{['log']}.
  • Figure 3: The results of ablation experiment on EN-FR-15K and D-W-15K.
  • Figure 4: Visualization of Entity Embedding on EN-FR-15K. Different colors represent different KGs.
  • Figure 5: H@1 results and training times on EN-FR-15K.