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

On Completing Sparse Knowledge Base with Transitive Relation Embedding

Zili Zhou, Shaowu Liu, Guandong Xu, Wu Zhang

Abstract

Knowledge Base Completion (KBC) often struggles with data sparsity, where many entities appear infrequently, leading to poor embedding quality. We discuss Transitive Relation Embedding (TRE), a method that leverages local transitive "triangle patterns" among relations to infer missing links. By focusing on relation-level dependencies rather than entity-specific embeddings, TRE significantly improves performance on sparse datasets and enhances existing KBC models while maintaining high computational efficiency.

Introduction

Knowledge Bases (KBs) such as Freebase and WordNet are essential for various AI applications, from recommendation engines to semantic search. However, these graphs are typically incomplete. Traditional KBC models learn low-dimensional embeddings for every entity and relation in the graph. A significant challenge is the power-law distribution of entities: while a few are frequent, the "long tail" of entities appears only once or twice, making it impossible to learn reliable embeddings. This sparsity problem limits the effectiveness of models like TransE or DistMult and increases computational costs as the number of entities grows.

The Transitive Relation Embedding (TRE) Framework

To address sparsity, researchers propose Transitive Relation Embedding (TRE). Unlike traditional methods, TRE shifts the focus from individual entities to the patterns between relations.

The Triangle Pattern

The core of TRE is the Triangle Pattern. If three entities ($a, b, c$) are connected such that $a \xrightarrow{r_p} b$ and $b \xrightarrow{r_q} c$, there is often a latent relation $r_o$ connecting $a$ and $c$.

The Triangle Pattern concept: inferring a relation between entities d and f based on their common neighbor e.

Entity-Independent Learning

TRE learns embeddings for relations based on these transitive structures across the entire KB. Because it focuses on relations ($m$) rather than entities ($n$), and $m \ll n$, the model has significantly more data per parameter. This makes it robust to the sparsity of individual entities. Mathematically, TRE uses role-specific mapping matrices to project relation embeddings into a joint space, calculating the probability of a missing relation based on the existing sides of a triangle. This approach is also highly interpretable, as it explicitly learns probabilistic inference rules (e.g., an actor in a film likely speaks the film's language).

Experimental Evaluation

The model was tested on three datasets: FB15K, WN18, and DBP. DBP is a particularly sparse dataset derived from DBpedia, where the median entity occurrence is just 1, serving as a rigorous test for handling sparsity.

Performance and Efficiency

TRE was evaluated as an enhancement to several baseline models. The results demonstrate that adding TRE consistently improves metrics like Mean Reciprocal Rank (MRR) and Hit@10 across all datasets.

Performance comparison between baseline models and their TRE-enhanced versions on the FB15K dataset.

As shown in the results, the Hit@10 for TransE on the $(h, r, ?)$ task improved from 0.4355 to 0.7974 when augmented with TRE. Similar substantial gains were observed across all tested baselines (TransH, TransR, RESCAL, etc.). Furthermore, TRE is highly efficient; it converged in approximately 360 seconds, significantly faster than complex baselines like RESCAL, which took over 6,200 seconds.

Conclusion

TRE provides a powerful, interpretable, and efficient solution to the KB sparsity problem. By leveraging the inherent transitive logic of relations, it allows for accurate link prediction even for entities with minimal data. Future work may extend this approach to capture longer relational paths beyond simple triangles and integrate TRE with deep learning architectures like Graph Convolutional Networks.

Summary updated

BibTeX
@inproceedings{zhou2019completing,
  author = {Zili Zhou and Shaowu Liu and Guandong Xu and Wu Zhang},
  title = {{On Completing Sparse Knowledge Base with Transitive Relation Embedding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013125},
}
Figure