Abstract
Knowledge Graph Embedding (KGE) methods often struggle with sparse data and "long-tail" entities. The Neighborhood Knowledge Graph Embedding (NKGE) framework addresses this by leveraging "entity neighbors"—curated sets of topological and semantic connections. By processing these neighbors through a multi-layer Deep Memory Network (DMN), the model adaptively filters noise and enhances entity representations. Experimental results on standard benchmarks like WN18RR and FB15k-237 demonstrate that NKGE significantly outperforms baseline models in link prediction tasks.
Introduction
Knowledge Graphs (KGs) are essential for various AI applications but are frequently incomplete. Traditional KGE models like TransE map entities and relations into low-dimensional spaces based on direct triplets. However, these models often fail when dealing with entities that have sparse connections. While incorporating external information such as entity descriptions or multi-hop paths can help, these sources are often noisy and redundant. The NKGE framework aims to extract meaningful signals from this noise by identifying and attending to the most representative neighbors of an entity.
Methodology
The NKGE framework consists of three primary components designed to integrate structural and contextual information.
Entity Neighbor Definition
The model defines two types of neighbors to capture diverse information:
- Topological Neighbors: Entities directly connected within the KG.
- Semantic Neighbors: Entities mentioned in a target entity's description, or those that mention the target entity.
Deep Memory Network (DMN) Encoder
The DMN serves as the core processing unit for neighbor embeddings. It treats neighbors as external memory and uses the relation $r$ from a target triplet $(h, r, t)$ as a query. This allows the model to iteratively attend to the most relevant neighbors, effectively filtering out irrelevant information.
Gating Mechanism
To finalize the entity representation, NKGE employs a learnable gating mechanism. This gate combines the standard structural embedding (e.g., from TransE or ConvE) with the neighbor-based representation, allowing the model to dynamically weigh the importance of graph structure versus neighbor context for each specific entity.
Experimental Results
The model was evaluated on four standard benchmarks: FB15k, WN18, and their more robust counterparts, FB15k-237 and WN18RR.
Performance Comparison
NKGE consistently outperformed baseline models across all datasets. As shown in the results table, NKGE(ConvE) achieved state-of-the-art performance on WN18 and WN18RR, significantly improving metrics such as Mean Reciprocal Rank (MRR) and Hits@N.
Key Insights
- Contextual Identity: An entity's identity is effectively defined by its surroundings. Curating neighbors allows the model to deduce entity properties even when direct descriptions are sparse.
- Memory-Based Reasoning: Utilizing DMNs for KGE allows for iterative reasoning over neighbor sets, which is superior to simple pooling or raw text processing.
- Synergy of Neighbors: Combining topological and semantic neighbors yields better performance than using either in isolation, confirming that different neighbor types provide complementary information.
Conclusion
The NKGE framework demonstrates the power of curated entity neighbors and memory networks in improving knowledge graph embeddings. By filtering noise and adaptively attending to relevant context, NKGE provides a robust solution for link prediction in sparse KGs. Future work will explore more sophisticated neighbor extraction methods and dynamic gating mechanisms that consider specific relations and neighbor properties.
Summary updated