ProjE: Embedding Projection for Knowledge Graph Completion

Baoxu Shi, Tim WeningerAAAI 2017

Abstract

Knowledge Graph Completion (KGC) is essential for addressing the inherent incompleteness of large-scale knowledge bases like Freebase and DBpedia. Traditional approaches often oscillate between simple translation-based models that lack expressivity and complex neural architectures that suffer from parameter explosion. This paper introduces ProjE, a shared-variable neural network that utilizes an embedding projection layer to rank candidate entities collectively. By employing a listwise loss function and diagonal transformation matrices, ProjE achieves state-of-the-art performance on benchmarks such as FB15K, outperforming existing methods by up to 37% while maintaining a significantly smaller parameter footprint.

Introduction

Knowledge Graphs (KGs) serve as the backbone for various AI applications, yet they are notoriously incomplete. The task of Knowledge Graph Completion involves predicting missing links, such as identifying the correct entity to complete a triple $(h, r, ?)$. Previous research has been dominated by two paradigms: efficient but overly simplistic translation models (e.g., TransE) and expressive but computationally expensive neural models (e.g., NTN).

Existing models frequently fail to consider candidate entities collectively during training, often relying on pairwise ranking losses that compare a single positive triple against a single negative one. Furthermore, many high-performing models require expensive pre-training or complex multi-hop path calculations. ProjE addresses these gaps by rethinking KGC as a ranking task over the entire entity set using a streamlined projection mechanism.

The ProjE Framework

The core innovation of ProjE is the Embedding Projection layer. Instead of measuring isolated distances, ProjE projects input entities and relations into a shared space to rank all candidates simultaneously.

1. Combination Operator

To represent an input pair $(h, r)$, ProjE combines the head entity and relationship embeddings using a learnable operator: $$e \oplus r = D_e e + D_r r + b_c$$ Here, $D_e$ and $D_r$ are diagonal matrices. This choice is critical; diagonal matrices allow for meaningful feature interaction without the parameter bloat associated with full transformation matrices.

The ProjE architecture illustrating the combination of entity and relation embeddings followed by projection onto candidate entities.

2. Projection and Loss Functions

The combined vector is projected onto a target matrix $W^c$ representing all candidate entities. The model shares weights between $W^c$ and the entity embedding matrix to remain compact. The authors propose two training variations:

  • ProjE_pointwise: Uses a sigmoid activation for multi-class classification.
  • ProjE_listwise: Employs a softmax activation to rank all candidates collectively, which better aligns with the nature of the KGC task.

Experimental Evaluation

ProjE was evaluated on major benchmarks including FB15K, DBpedia, and SemMedDB. The results demonstrate that collective ranking and architectural simplicity lead to superior performance.

Key Results on FB15K

On the FB15K dataset, ProjE variants significantly outperformed established baselines. Specifically, the ProjE_wlistwise model achieved a Filtered Mean Rank of 34, a dramatic improvement over TransE (125) and the previous state-of-the-art PTransE (54). In terms of HITS@10, it reached 88.4%, setting a new benchmark for the field.

Comparison of ProjE variants against baseline algorithms on the FB15K dataset.

Fact Checking and Relationship Prediction

Beyond entity prediction, ProjE excelled in relationship prediction (achieving a Filtered Mean Rank of 1.2) and fact-checking tasks. In the latter, ProjE achieved a perfect AUC of 1.000 in specific categories like "US Vice-President," outperforming specialized models like PredPath.

Conclusion

ProjE demonstrates that high-performance knowledge graph completion does not require massive parameter sets or complex multi-hop path mining. By focusing on collective ranking through embedding projection and utilizing efficient diagonal transformations, ProjE provides a scalable and highly accurate solution. Future work may explore integrating multi-hop dependencies through more advanced neural architectures like RNNs or CNNs within this projection framework.

Summary updated

BibTeX
@inproceedings{shi2017proje,
  author = {Baoxu Shi and Tim Weninger},
  title = {{ProjE: Embedding Projection for Knowledge Graph Completion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10677},
}
Figure