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

Knowledge Graph Completion via Complex Tensor Factorization

Théo Trouillon, Christopher R. Dance, Éric Gaussier, Johannes Welbl, Sebastian Riedel, Guillaume Bouchard

Introduction

Knowledge graphs (KGs) such as Freebase and WordNet are essential for structured information retrieval, yet they are often incomplete. The task of link prediction—predicting missing relationships between entities—is critical for enhancing these graphs for applications like question answering and recommender systems. Historically, researchers faced a trade-off between scalability and expressiveness. Simple models like DistMult are efficient but limited to symmetric relations, while more expressive models like RESCAL or Neural Tensor Networks (NTN) suffer from quadratic parameter growth, leading to overfitting and high computational costs on large-scale data.

The ComplEx Model

The authors introduce ComplEx, a tensor factorization approach that moves entity and relation embeddings from the real domain ($\mathbb{R}$) to the complex domain ($\mathbb{C}$). By utilizing the Hermitian dot product, ComplEx effectively represents both symmetric and antisymmetric relations while maintaining linear time and space complexity.

For a triple $(subject, relation, object)$, the scoring function is defined as the real part of the multilinear product of their complex vectors: $$Re(\langle w_r, e_s, \bar{e}_o \rangle)$$ where $\bar{e}_o$ is the complex conjugate of the object entity vector. This "twist" allows the model to differentiate between $(s, r, o)$ and $(o, r, s)$, enabling the learning of directed, asymmetric relationships without additional parameters. Theoretically, the authors prove that any real square matrix can be represented as the real part of a unitarily diagonalizable matrix, meaning complex embeddings are mathematically sufficient to represent any binary relation.

Comparison of Models

ComplEx occupies a unique position in the landscape of link prediction models. It provides the expressiveness of complex models while retaining the efficiency of simpler ones.

Table 1: Comparison of scoring functions and complexities for various knowledge graph completion models.

As shown in Table 1, ComplEx maintains $O(K)$ time and space complexity, matching the efficiency of DistMult and TransE, whereas models like RESCAL and NTN scale quadratically or worse with the embedding dimension $K$. This linear scaling is critical for applying the model to web-scale datasets with millions of entities.

Experimental Results

The model was evaluated on several benchmarks, including WN18 and FB15K. ComplEx consistently outperformed state-of-the-art models, particularly on datasets rich in asymmetric relations.

  • WN18: ComplEx achieved a Filtered Mean Reciprocal Rank (MRR) of 0.941, significantly outperforming DistMult (0.822) and TransE (0.454).
  • FB15K: It reached an MRR of 0.692, surpassing the previous state-of-the-art, HolE (0.524).
  • Efficiency: Training on WN18 takes approximately 45 minutes on a single GPU, demonstrating its viability for truly large-scale knowledge graphs.

Conclusion

ComplEx demonstrates that complex-valued embeddings offer a powerful yet efficient way to model the diverse relationship patterns found in knowledge graphs. By leveraging the geometric properties of complex numbers, the model achieves state-of-the-art performance while remaining computationally lean. Future work may explore extensions to n-ary relations and more sophisticated negative sampling techniques to further boost performance.

Summary updated

BibTeX
@article{trouillon2017knowledge,
  author = {Théo Trouillon and Christopher R. Dance and Éric Gaussier and Johannes Welbl and Sebastian Riedel and Guillaume Bouchard},
  title = {{Knowledge Graph Completion via Complex Tensor Factorization}},
  journal = {J. Mach. Learn. Res.},
  year = {2017},
  url = {https://openreview.net/forum?id=vnig0boZJMM},
}
Figure