NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Interpretable Knowledge Transfer Model for Knowledge Base Completion

Qizhe Xie, Xuezhe Ma, Zihang Dai, Eduard H. Hovy

Abstract

Knowledge bases are important resources for a variety of natural language processing tasks but suffer from incompleteness. We propose a novel embedding model, ITransF, to perform knowledge base completion. Equipped with a sparse attention mechanism, ITransF discovers hidden concepts of relations and transfer statistical strength through the sharing of concepts. Moreover, the learned associations between relations and concepts, which are represented by sparse attention vectors, can be interpreted easily. We evaluate ITransF on two benchmark datasets—WN18 and FB15k for knowledge base completion and obtains improvements on both the mean rank and Hits@10 metrics, over all baselines that do not use additional information.

Introduction

Knowledge Bases (KBs) such as WordNet and Freebase serve as the backbone for numerous structured information tasks. However, these repositories are often incomplete, necessitating robust Knowledge Base Completion (KBC) methods. The goal of KBC is to predict missing links within the KB, typically represented as triples $(h, r, t)$ where $h$ is the head entity, $r$ is the relation, and $t$ is the tail entity.

Traditional embedding models, such as TransR and STransE, attempt to solve this by assigning unique projection matrices to every relation. While effective for common relations, this approach faces significant hurdles in real-world applications where data distribution is highly skewed.

The Challenge of Data Sparsity

A primary obstacle in KBC is the "long-tail" distribution of relations. In standard benchmarks like WN18 and FB15k, a small number of relations appear frequently, while the vast majority are rare.

Relation frequency distribution in WN18 and FB15k datasets.

As shown in the figure above, the frequency of relations drops off sharply. For rare relations with very few training examples, learning a high-dimensional projection matrix from scratch is nearly impossible, leading to poor generalization. Furthermore, these unique matrices act as "black boxes," offering no insight into the underlying conceptual similarities between different relations.

The ITransF Model

To address these issues, we introduce ITransF (Interpretable Knowledge Transfer). This model departs from the "one matrix per relation" paradigm by introducing two core innovations:

1. Concept Sharing

Instead of isolated matrices, ITransF maintains a shared pool of "concept projection matrices." This allows the model to transfer statistical strength; common relations help train the shared concepts, which rare relations can then utilize. This mechanism effectively allows rare relations to "borrow" knowledge from their more frequent counterparts.

2. Sparse Attention Mechanism

Each relation is assigned a sparse attention vector that selects and combines a subset of matrices from the shared pool. This selection serves as a conceptual "signature" for the relation. By enforcing sparsity (via $\ell_0$ constraints), we ensure that each relation only connects to a few core concepts, which enhances interpretability. For instance, symmetric relations naturally learn similar attention patterns, while hierarchical relations show logical associations between their head and tail concepts.

Experimental Results

We evaluated ITransF against several state-of-the-art baselines on the WN18 and FB15k datasets. ITransF consistently outperformed models that do not rely on external data (like text corpora or path information).

Performance on Rare Relations

The most significant advantage of ITransF is its robustness to data sparsity. By grouping relations into bins based on their frequency, we can observe the performance gap between ITransF and the STransE baseline.

Performance comparison (Hits@10) across relation frequency bins for WN18 and FB15k.

In the rarest bin (Bin 3), ITransF shows a substantial improvement in Hits@10. On the WN18 dataset, ITransF achieved a Hits@10 of 95.2% and a Mean Rank of 205. On FB15k, it reached a Hits@10 of 81.4% and a Mean Rank of 65. Beyond accuracy, the model is highly efficient; on FB15k, ITransF achieved state-of-the-art results while using 90x fewer projection matrices than previous models.

Conclusion

ITransF provides a scalable and interpretable framework for Knowledge Base Completion. By leveraging a sparse attention mechanism to share concepts across relations, the model overcomes the limitations of data sparsity and provides a human-readable map of relational associations. Future work will explore extending this sharing mechanism to entity embeddings and incorporating multi-step path reasoning to further enhance predictive power.

Summary updated

BibTeX
@inproceedings{xie2017interpretable,
  author = {Qizhe Xie and Xuezhe Ma and Zihang Dai and Eduard H. Hovy},
  title = {{An Interpretable Knowledge Transfer Model for Knowledge Base Completion}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  url = {https://openreview.net/forum?id=p2208UAtc8L},
}
Figure