RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space
Zhiqing SunZhihong DengJian-Yun NieJian Tang
Proposes a knowledge graph embedding framework that models relations as rotations in complex vector space to capture symmetry, antisymmetry, inversion, and composition patterns, paired with a self-adversarial negative sampling technique for superior link prediction accuracy.
RotatE introduces a knowledge graph embedding method that represents each relation as a rotation from the head entity to the tail entity in complex vector space. Knowledge graphs such as Freebase and WordNet remain incomplete, so the central task is to predict missing links by recovering unobserved factual triplets. Prior embedding approaches could capture only subsets of the recurring relation patterns—symmetry or antisymmetry, inversion, and composition—leaving performance gaps on realistic data.
The work set out to produce a single, scalable model that can simultaneously represent and infer all three patterns while remaining linear in time and memory. Entities and relations are mapped to complex vectors; each relation is constrained so that its modulus equals one, turning the mapping into an element-wise rotation. A self-adversarial negative-sampling loss then draws hard negatives according to the current model scores. The resulting method was tested on four standard link-prediction benchmarks plus the Countries dataset, which isolates composition, and compared against TransE, DistMult, ComplEx, HolE, and ConvE under identical filtered evaluation protocols.
RotatE records the highest mean reciprocal rank and Hits@10 on every benchmark, including the two subsets that lack inverse relations and therefore emphasize composition. On FB15k-237 and WN18RR the margin over prior leaders widens noticeably. The same model also achieves the best scores on the most demanding Countries task (S3). Histograms of learned phases confirm that symmetric relations concentrate near 0/π, inverse pairs are conjugates, and composed relations satisfy the expected phase-addition property. Self-adversarial sampling alone lifts both RotatE and re-implemented TransE, yet the rotational formulation remains necessary for the full pattern coverage.
These gains matter because accurate link prediction directly improves downstream applications such as question answering, information retrieval, and recommender systems that rely on complete knowledge graphs. Because the model is the first to reach state-of-the-art across all four widely used benchmarks, practitioners can adopt a single embedding technique rather than switching models according to the dominant pattern in a given graph.
The principal limitations are that results rest on standard academic benchmarks whose relation distributions may not match every production graph, and that the method still requires careful tuning of embedding dimension, margin, and temperature. Variance across random seeds is low, but broader testing on larger or noisier graphs would strengthen confidence. Next steps therefore include evaluating RotatE on additional industrial-scale graphs and extending it with probabilistic components that capture embedding uncertainty.
- Paper: Translating Embeddings for Modeling Multi-relational Data, Antoine Bordes et al. (2013). Reading TransE first is essential because RotatE directly builds upon and modifies its translation-based framework for knowledge graph embeddings.
- Paper: Complex Embeddings for Simple Link Prediction, Théo Trouillon et al. (2016). Understanding Complex Embeddings (ComplEx) provides vital foundational context for RotatE's adoption of complex-valued vector spaces.
- Paper: Knowledge Graph Embedding by Translating on Hyperplanes, Zhen Wang et al. (2014). TransH establishes key baseline improvements for modeling complex relation patterns that motivated RotatE's rotational approach.
- Paper: RoFormer: Enhanced Transformer with Rotary Position Embedding, Jianlin Su et al. (2024). RoFormer directly extends the rotational embedding concept from knowledge graphs into the domain of transformer-based language modeling.
- Paper: SimCSE: Simple Contrastive Learning of Sentence Embeddings, Tianyu Gao et al. (2021). SimCSE applies contrastive learning principles to representation spaces in a manner that complements the training strategies explored in RotatE.
