Abstract
Entity Alignment (EA) aims to find equivalent entities between two Knowledge Graphs (KGs). Existing methods usually encode the triples of entities as embeddings and learn to align the embeddings, which prevents the direct interaction between the original information of the cross-KG entities. Moreover, they encode the relational triples and attribute triples of an entity in heterogeneous embedding spaces, which prevents them from helping each other. In this paper, we transform both triples into unified textual sequences, and model the EA task as a bi-directional textual entailment task between the sequences of cross-KG entities. Specifically, we feed the sequences of two entities simultaneously into a pre-trained language model (PLM) and propose two kinds of PLM-based entity aligners that model the entailment probability between sequences as the similarity between entities. Our approach captures the unified correlation pattern of two kinds of information between entities, and explicitly models the fine-grained interaction between original entity information. The experiments on five cross-lingual EA datasets show that our approach outperforms the state-of-the-art EA methods and enables the mutual enhancement of the heterogeneous information.
The Challenge of Entity Alignment
Knowledge Graphs (KGs) like Wikidata or DBpedia are massive repositories of structured information, but they are often siloed by language or domain. Entity Alignment (EA) is the process of identifying when two different nodes in two different KGs represent the same real-world object—for example, matching "The Rolling Stones" in an English KG with "滚石乐队" in a Chinese KG.
Traditionally, researchers solve this by encoding entities into vector embeddings. If the vectors are close together in a high-dimensional space, the entities are considered a match. However, this "embedding-only" approach suffers from two major flaws:
- Information Loss: Compressing complex entity relationships into a single vector prevents the model from examining specific, fine-grained details (like a shared website URL or a specific founding year) that could confirm a match.
- Heterogeneous Gaps: KGs contain two types of data: relational triples (who is connected to whom) and attribute triples (specific facts like "height" or "website"). Most models treat these as separate mathematical entities, making it difficult for them to inform one another.
The TEA Framework: Moving from Alignment to Entailment
The authors propose TEA (Textual Entailment for Alignment), which moves away from pure representation learning toward a "reading comprehension" style task. Instead of asking "Are these vectors similar?", the framework asks "Does the description of Entity A entail Entity B?"
1. Textualization
First, graph data is transformed into natural language strings. A list of neighbors becomes a sentence like: "The Rolling Stones' neighbors are Satisfaction, Charlie Watts..." Attributes become: "The Rolling Stones' attribute values are The Stones, 1962..."
2. The Entailment Framework
By feeding the sequences of two entities into a Pre-trained Language Model (PLM) like BERT simultaneously, the model's attention mechanism can directly compare words across the two KGs. This allows for "cross-KG interaction," where the model can see that "1962" in the English KG matches "1962" in the Chinese KG, providing a "smoking gun" for alignment that an embedding might blur.
3. Two Aligner Flavors
The paper introduces two ways to model this entailment using standard PLM pre-training tasks:
- NSP-Aligner: Uses the "Next Sentence Prediction" head to predict if Entity B's description logically follows Entity A's.
- MLM-Aligner: Uses "Masked Language Modeling" by inserting a
[MASK]token between the two descriptions and asking the model to fill it with "Yes" (align) or "No" (not align).
Two-Stage Inference
Since running a heavy transformer model on every possible pair of entities is computationally expensive, TEA uses a hybrid approach:
- Stage 1 (Retrieval): Use fast embedding-based similarity to find the top-K candidates.
- Stage 2 (Re-ranking): Use the TEA entailment model to re-rank those candidates and identify the true match.
Experimental Results
TEA was evaluated on two major benchmarks: DBP15K (cross-lingual DBpedia pairs) and SRPRS (a sparse version designed to be more challenging).
Key findings include:
- State-of-the-Art Performance: On the DBP15K (ZH-EN) dataset, TEA achieved a Hits@1 of 94.1%, significantly outperforming previous embedding-based methods that often struggled to exceed 85%.
- Robustness to Sparsity: The model proved remarkably effective on the SRPRS datasets, where traditional graph-based methods often fail due to a lack of connections needed to build strong embeddings.
- Mutual Enhancement: Because relational and attribute data are both converted to text, they exist in the same semantic space. The model can use a shared attribute (like a birthdate) to help resolve tricky relational ambiguities.
Conclusion
By framing Entity Alignment as a textual entailment task, TEA leverages the linguistic reasoning capabilities of Pre-trained Language Models to overcome the limitations of traditional embedding-based methods. While the computational cost of re-ranking is higher, the gain in accuracy and the ability to handle heterogeneous, sparse data represent a significant step forward for Knowledge Graph integration.
Summary updated