Skip to main content
QUICK REVIEW

[Paper Review] Complex and Holographic Embeddings of Knowledge Graphs: A Comparison

Théo Trouillon, Maximilian Nickel|arXiv (Cornell University)|Jul 5, 2017
Advanced Graph Neural NetworksComputer Science11 references22 citations
TL;DR

This paper compares ComplEx and HolE, two state-of-the-art knowledge graph embedding models, demonstrating their scoring functions are mathematically equivalent via Fourier transform properties. Despite identical performance in theory, empirical differences arise from distinct loss functions, with ComplEx offering computational advantages in handling symmetric/antisymmetric relations due to its complex-valued formulation.

ABSTRACT

Embeddings of knowledge graphs have received significant attention due to their excellent performance for tasks like link prediction and entity resolution. In this short paper, we are providing a comparison of two state-of-the-art knowledge graph embeddings for which their equivalence has recently been established, i.e., ComplEx and HolE [Nickel, Rosasco, and Poggio, 2016; Trouillon et al., 2016; Hayashi and Shimbo, 2017]. First, we briefly review both models and discuss how their scoring functions are equivalent. We then analyze the discrepancy of results reported in the original articles, and show experimentally that they are likely due to the use of different loss functions. In further experiments, we evaluate the ability of both models to embed symmetric and antisymmetric patterns. Finally, we discuss advantages and disadvantages of both models and under which conditions one would be preferable to the other.

Motivation & Objective

  • To compare ComplEx and HolE, two leading knowledge graph embedding models, despite their established equivalence in scoring functions.
  • To investigate why conflicting empirical results were reported in original studies, tracing discrepancies to differing loss functions.
  • To evaluate both models' ability to represent symmetric and antisymmetric relational patterns in knowledge graphs.
  • To analyze the practical trade-offs between ComplEx and HolE in terms of optimization, memory usage, and expressivity.

Proposed method

  • The paper derives the mathematical equivalence of ComplEx and HolE using Parseval’s theorem and the discrete Fourier transform (DFT), showing their scoring functions are identical up to a constant factor.
  • It reformulates HolE’s circular correlation using the inverse DFT and complex conjugation, aligning it with ComplEx’s trilinear product of complex embeddings.
  • The analysis reveals that real-valued HolE embeddings map to complex vectors via DFT, which match the structure of ComplEx embeddings under symmetry constraints.
  • The authors show that equivalent complex embeddings are half the size of real embeddings but require double the memory per dimension due to complex arithmetic, preserving equal memory complexity.
  • Experiments compare model performance on symmetric and antisymmetric relations, using controlled settings to isolate the effect of the loss function.
  • The study uses negative sampling and evaluates link prediction performance to assess practical differences under identical training protocols.

Experimental results

Research questions

  • RQ1Are ComplEx and HolE scoring functions truly equivalent, and if so, under what mathematical conditions?
  • RQ2Why do original studies report differing empirical results despite theoretical equivalence?
  • RQ3How do ComplEx and HolE perform on symmetric versus antisymmetric relational patterns in knowledge graphs?
  • RQ4What are the practical advantages and disadvantages of using complex versus real-valued embeddings in knowledge graph representation?

Key findings

  • The scoring functions of ComplEx and HolE are mathematically equivalent up to a constant factor, as proven using Parseval’s theorem and DFT properties.
  • Discrepancies in reported results stem primarily from the use of different loss functions, not differences in model capacity or architecture.
  • ComplEx demonstrates superior expressivity in modeling antisymmetric relations due to its complex conjugate formulation, which naturally captures directional patterns.
  • Both models have identical memory complexity, as complex embeddings are half the size of equivalent real embeddings but require double the memory per dimension.
  • The equivalence holds only when symmetry constraints are preserved in the DFT domain, which is implicitly enforced in ComplEx via complex conjugation.
  • Empirical evaluation confirms that both models achieve comparable performance on link prediction when trained with the same loss function.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.