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

Compounding Geometric Operations for Knowledge Graph Completion

Xiou Ge, Yun-Cheng Wang, Bin Wang, C.-c. Jay KuoACL 2023

Abstract

CompoundE is a novel Knowledge Graph Embedding (KGE) framework that integrates translation, rotation, and scaling into a single, cascaded geometric operation. By leveraging the mathematical properties of the affine group, it generalizes several popular models (like TransE and RotatE) and achieves state-of-the-art performance across link prediction, path query answering, and entity typing—often while using significantly fewer parameters.

Introduction

Knowledge Graphs (KGs) store vast amounts of information as triples (head entity, relation, tail entity). To make this data useful for AI, we must map these entities and relations into a continuous vector space—a process called Knowledge Graph Embedding (KGE).

The challenge lies in the sheer complexity of real-world data. Relations can be symmetric, antisymmetric, transitive, or hierarchical. They can also be "complex" in mapping: one head might connect to many tails (1-to-N) or vice-versa. Existing models usually rely on a single geometric "trick"—TransE uses translation, RotatE uses rotation, and PairRE uses scaling. However, a single operation often lacks the expressive power to capture all these nuances simultaneously. The authors argue that just as image processing combines these operations to manipulate pictures, KGE models should "compound" them to model complex relational logic.

Methodology

The authors introduce CompoundE, which treats a relation as a sequence of affine transformations. For a given triple $(h, r, t)$, the model transforms the head entity $h$ using three cascaded operations:

  1. Scaling ($S$): Adjusts the "size" or importance of specific dimensions.
  2. Rotation ($R$): Rotates the vector in the complex plane (using 2D Givens rotations).
  3. Translation ($T$): Shifts the vector in the space.
Geometric comparison of CompoundE with existing models TransE, RotatE, and PairRE.

Using group theory, the authors prove that CompoundE belongs to the Affine Group $Aff(n)$. This is a broader category than the Special Euclidean Group $SE(n)$ used by previous models. Consequently, CompoundE can "reduce" to TransE, RotatE, or PairRE by simply setting certain parameters (like scaling to 1 or translation to 0).

Experimental Setup

The model was evaluated on several standard benchmarks across three tasks:

  • Link Prediction: ogbl-wikikg2 (Large-scale), FB15k-237 (Medium), and WN18RR (Small).
  • Path Query Answering: WordNet and Freebase datasets.
  • Entity Typing: FB15k-ET and YAGO43k-ET.

Notably, ogbl-wikikg2 contains over 2.5 million entities, providing a rigorous test for the model's scalability and parameter efficiency.

Key Results and Insights

CompoundE demonstrates significant improvements over existing baselines, particularly in handling complex relations and maintaining efficiency at lower dimensions.

Performance comparison (MRR) across different embedding dimensions for various KGE models.
  • Link Prediction: On the large-scale ogbl-wikikg2, CompoundE achieved an MRR (Mean Reciprocal Rank) of 0.6515, outperforming the previous best-published result (0.6392) while using fewer parameters.
  • Efficiency through Geometry: On the massive ogbl-wikikg2 dataset, CompoundE achieved superior results with an embedding dimension of only 100. Previous state-of-the-art models often required dimensions of 500 or more, meaning CompoundE is much more memory-efficient for large-scale industrial applications.
  • The Power of Singularity: To model 1-to-N relations, a transformation must be able to "collapse" different points. The scaling component in CompoundE allows for this by letting scaling factors reach zero (singularity), a feature missing in pure rotation or translation models.

Conclusion

CompoundE provides a "universal" geometric model for KGs by successfully modeling symmetry, antisymmetry, inversion, composition, and sub-relations. While currently transductive, future work may integrate textual descriptions for inductive reasoning or explore higher-dimensional rotations and additional affine operations like shear.

Summary updated

BibTeX
@inproceedings{ge2023compounding,
  author = {Xiou Ge and Yun-Cheng Wang and Bin Wang and C.-C. Jay Kuo},
  title = {{Compounding Geometric Operations for Knowledge Graph Completion}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.384},
}
Figure