Large-scale Entity Alignment via Knowledge Graph Merging, Partitioning and Embedding

Kexuan Xin, Zequn Sun, Wen Hua, Wei Hu, Jianfeng Qu, Xiaofang Zhou · DOI

Abstract

Entity Alignment (EA) is a fundamental task for knowledge graph (KG) integration, aiming to identify identical entities across different sources. While Graph Neural Networks (GNNs) have become the standard for capturing structural information in EA, they face significant scalability challenges when applied to massive KGs with millions of nodes. Existing partitioning methods often lead to structural and alignment information loss. We propose LargeGNN, a novel framework that employs a "Merge, Partition, and Embed" pipeline to achieve scalable and accurate entity alignment. By merging graphs based on seed alignments and utilizing landmark-based subgraph overlapping, LargeGNN preserves critical structural anchors. Furthermore, a self-supervised entity reconstruction task enhances robustness against partitioning-induced data loss. Our experiments on the million-scale DBpedia1M dataset demonstrate that LargeGNN outperforms state-of-the-art scalable baselines in both accuracy and computational efficiency.

1. Introduction

Entity Alignment (EA) is the process of linking entities in different Knowledge Graphs (KGs) that refer to the same real-world object. This is essential for building comprehensive knowledge bases from heterogeneous sources. Graph Neural Networks (GNNs) are highly effective for this task as they can model complex relational structures. However, GNNs encounter a "scalability wall" because they typically require the entire graph to reside in GPU memory.

For KGs with millions of entities, standard GNN training is impossible. Previous attempts to scale EA via graph partitioning have introduced two primary issues:

  1. Structure Loss: Partitioning cuts edges, destroying the local structural context necessary for GNNs.
  2. Alignment Loss: If equivalent entities are placed in separate partitions, the model cannot learn their correspondence.

2. Methodology

LargeGNN addresses these challenges through a specialized pipeline designed for large-scale deployment.

The LargeGNN pipeline: from input KGs to graph-level alignment.

2.1 Merge and Partition

Instead of partitioning KGs independently, LargeGNN first performs Seed-Targeted Merging. Known alignment pairs (seeds) are collapsed into single nodes in a joint graph. This ensures that these critical anchors are always processed together.

The merged graph is then partitioned using the METIS algorithm. To prevent the "island effect" where nodes near partition boundaries lose context, LargeGNN identifies landmark entities—nodes with high centrality—and duplicates them across multiple subgraphs. These landmarks serve as bridges for information flow across partition boundaries.

2.2 Robust GNN Training

LargeGNN utilizes a Dual-AMN encoder trained with two primary objectives:

  • Entity Reconstruction: This self-supervised task requires the model to reconstruct an entity's representation from its neighborhood. This teaches the GNN to be resilient to the missing structural data inherent in partitioned subgraphs.
  • Cross-Subgraph Negative Sampling: To ensure global discriminative power, the model samples negative matches from other subgraphs during training, preventing it from overfitting to local similarities.
The entity reconstruction process used to mitigate information loss.

2.3 Graph-Level Inference

After training, entity embeddings from all subgraphs are projected into a unified vector space. LargeGNN then employs Faiss, an efficient similarity search library, to perform global alignment across the entire million-scale KG.

3. Experiments and Results

The framework was evaluated on the standard OpenEA benchmarks and a newly introduced DBpedia1M dataset. DBpedia1M reflects real-world conditions by including a large proportion of "non-matchable" entities.

3.1 Accuracy and Scalability

LargeGNN consistently outperformed existing scalable baselines such as LargeEA and LIME. On the DBpedia1M dataset, LargeGNN achieved a 3-4% improvement in F1-score over the next best method. While traditional GNNs fail on 100K datasets due to memory limits, LargeGNN successfully processed 1 million entities.

3.2 Efficiency

Despite the overhead of landmark generation and overlapping subgraphs, LargeGNN remains highly efficient. Training on the million-scale dataset was completed in under an hour, demonstrating its readiness for practical, large-scale applications.

4. Conclusion

LargeGNN provides a robust solution for million-scale entity alignment by combining graph merging, strategic partitioning, and self-supervised learning. While currently focused on structural data, future iterations could integrate textual attributes to further enhance alignment accuracy in sparse regions of the graph.

Summary updated

BibTeX
@inproceedings{xin2022large,
  author = {Kexuan Xin and Zequn Sun and Wen Hua and Wei Hu and Jianfeng Qu and Xiaofang Zhou},
  title = {{Large-scale Entity Alignment via Knowledge Graph Merging, Partitioning and Embedding}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557374},
}
Figure