TL;DR
This paper introduces SelfKG, a novel self-supervised method for entity alignment in knowledge graphs (KGs). By cleverly leveraging contrastive learning and a "relative similarity metric," SelfKG achieves performance comparable to state-of-the-art supervised methods without requiring any labeled entity pairs, significantly reducing the need for costly human annotation.
What Problem Does This Paper Address?
Constructing and maintaining large-scale knowledge graphs (KGs) is crucial for many applications like search and recommendation. A key challenge is entity alignment: identifying equivalent entities across different KGs. Traditionally, this task has heavily relied on supervised learning, requiring a significant number of human-labeled entity pairs. This supervision is expensive and time-consuming to obtain, especially for web-scale KGs. The paper aims to bridge this gap by exploring how to perform entity alignment effectively using only self-supervised learning, thereby eliminating the need for human-annotated alignment data.
Methods
The core of SelfKG lies in its self-supervised contrastive learning strategy, built upon three key observations:
- Uni-space Learning: Entities from different KGs are projected into a common embedding space using a shared encoder. This is facilitated by pre-trained language models like LaBSE, which provide strong initial embeddings.
- Relative Similarity Metric (RSM): Instead of directly pulling aligned entities closer (which requires supervision), SelfKG focuses on pushing unaligned (negative) entities further apart. This contrastive approach is more effective when supervision is absent.
- Self Negative Sampling: To avoid accidentally sampling true positive pairs as negatives, SelfKG samples negative entities from the source KG rather than the target KG. This is a crucial step for unsupervised learning.
The framework also incorporates a "neighborhood aggregator" (using Graph Attention Networks) to enrich entity representations with information from their 1-hop neighbors. To handle the large number of negative samples efficiently, SelfKG extends the MoCo framework by using two negative queues, one for each KG.
Datasets
The paper evaluates SelfKG on two widely-used benchmarks:
- DWY100K: A monolingual dataset consisting of two sub-datasets:
dbp_wd(DBpedia to Wikidata) anddbp_yg(DBpedia to YAGO3). - DBP15K: A multilingual dataset comprising three cross-lingual sub-datasets:
zh_en(Chinese to English),ja_en(Japanese to English), andfr_en(French to English).
Key Insights and Ideas
- Pushing Negatives is More Powerful than Pulling Positives (in unsupervised settings): The authors found that for unsupervised entity alignment, maximizing the distance between negative pairs is more beneficial than minimizing the distance between positive pairs. This insight is fundamental to their Relative Similarity Metric.
- Uni-space Learning is a Prerequisite: Aligning entities requires them to be in the same representational space. Leveraging pre-trained language models for initial embeddings is key to achieving this without supervision.
- Self Negative Sampling Prevents Accidental Supervision: By sampling negatives from the source KG, the method avoids the risk of picking a true positive pair as a negative, which would undermine the unsupervised approach.
- Self-supervised Learning Can Match Supervised Performance: The results demonstrate that with careful design, self-supervised methods can achieve performance comparable to, and sometimes even exceeding, supervised methods that use a significant portion of labeled data.
Key Results
SelfKG demonstrates strong performance across the evaluated datasets:
- On DWY100K, SelfKG achieves very high performance (e.g., Hit@1 of 0.983 for
dbp_wdand 1.000 fordbp_yg), outperforming most supervised methods and only slightly trailing the top supervised baselines like CEAFF and BERT-INT. - On DBP15K, SelfKG also shows competitive results, achieving Hit@1 scores of 0.745, 0.816, and 0.890 for
zh_en,ja_en, andfr_enrespectively. These results are comparable to or better than many supervised methods, especially when considering the multilingual nature of the task. - An ablation study confirms the importance of each component: the Relative Similarity Metric, neighborhood information, and self negative sampling all contribute significantly to the overall performance.
Limitations and Future Work
- Multilingual Alignment Complexity: While SelfKG performs well on multilingual datasets like DBP15K, the performance varies across language pairs, suggesting that multilingual alignment remains a complex challenge. The paper notes that the difference in performance might be due to inherent multilingual challenges rather than neighborhood noise.
- Hyperparameter Sensitivity: The paper includes a hyperparameter study, indicating that performance can be sensitive to choices like momentum coefficient and temperature, though SelfKG generally shows robustness.
- Future Work: The authors suggest that their findings open up significant potential for eliminating supervision in entity alignment. Further research is expected to deepen the understanding of self-supervised learning in this domain. The paper also hints at exploring more advanced techniques to handle the time complexity of large-scale negative sampling.
Summary updated