Neighborhood Mixture Model for Knowledge Base Completion

Dat Quoc Nguyen, Kairit Sirts, Lizhen Qu, Mark Johnson

Introduction

Knowledge Bases (KBs) such as WordNet, Freebase, and DBpedia serve as foundational resources for various artificial intelligence applications. However, these repositories are often incomplete, necessitating the development of Knowledge Base Completion (KBC) techniques. Traditional embedding models, notably TransE, represent entities and relations as dense vectors in a continuous vector space. While effective, these models typically process individual triples—such as (Ben Affleck, won, Oscar award)—in isolation, failing to leverage the rich structural context provided by an entity's immediate neighborhood.

This paper introduces the Neighborhood Mixture Model (NMM), which posits that an entity's identity is intrinsically defined by its connections. By representing entities as a dynamic, weighted mixture of their neighbors, the proposed TransE-NMM model achieves significant performance gains in link prediction and fact classification tasks.

Methodology

The core innovation of TransE-NMM is the transition from static entity embeddings to dynamic, context-aware representations.

Neighborhood Representation

Instead of a fixed vector $v_e$, an entity is represented by a dynamic vector $\vartheta_{e,r}$ calculated as a weighted sum of the entity’s primary embedding and the embeddings of its immediate neighbors. This approach acknowledges that the "meaning" of an entity in a graph is distributional, similar to how a word's meaning is defined by its surrounding context in linguistics.

An example of an entity's local neighborhood in a knowledge graph, illustrating how surrounding nodes like 'Oscar award' and 'Los Angeles' define the central entity.

Relation-Specific Weighting

Crucially, the mixture weights are relation-specific. When predicting a specific relation $r$, the model learns to prioritize neighbors that are semantically relevant to that relation. For instance, if the target relation is nationality, the model assigns higher weights to neighbors connected via place_of_birth while down-weighting unrelated connections like hobbies.

Computational Efficiency

To manage "hub" entities with high degrees (e.g., the gender "male"), the authors implement a filtering threshold $\tau$. If an entity's neighborhood exceeds this limit, only a subset of neighbors is considered, ensuring the model remains computationally tractable without sacrificing significant predictive power.

Experimental Evaluation

The model was evaluated on three standard benchmarks: WN11 (WordNet subset), FB13 (Freebase subset), and NELL186 (Never-Ending Language Learning subset). These datasets vary in scale and relational diversity, with NELL186 featuring 186 distinct relations.

Results

TransE-NMM consistently outperformed the baseline TransE and several other state-of-the-art models across multiple metrics, including triple classification accuracy and entity prediction (Mean Reciprocal Rank).

Comprehensive experimental results comparing TransE and TransE-NMM across triple classification, entity prediction, and relation prediction tasks.

Key findings include:

  • Triple Classification: On NELL186, TransE-NMM achieved a 2.44% absolute improvement in micro-averaged accuracy over standard TransE, representing a 31% reduction in error.
  • Entity Prediction: On FB13, the model improved the Mean Reciprocal Rank (MRR) from 0.213 to 0.267, a 25% relative improvement.
  • Qualitative Analysis: Learned weights were found to be semantically intuitive, automatically prioritizing relevant neighbor types for specific prediction tasks.

Conclusion

The Neighborhood Mixture Model demonstrates that the immediate "local neighborhood" of an entity contains vital information for Knowledge Base Completion. By integrating this structural context into the TransE framework, the authors provide a more flexible and accurate representation of knowledge. Future work may involve combining NMM with relation path models to capture both local and long-distance dependencies within the knowledge graph.

Summary updated

BibTeX
@inproceedings{nguyen2016neighborhood,
  author = {Dat Quoc Nguyen and Kairit Sirts and Lizhen Qu and Mark Johnson},
  title = {{Neighborhood Mixture Model for Knowledge Base Completion}},
  booktitle = {CoNLL},
  year = {2016},
  doi = {10.18653/v1/k16-1005},
}
Figure