AttH
A knowledge graph embedding model that combines hyperbolic rotations and reflections with attention.
Graphs and geometry · 199 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Graphs and geometry
- Parameters
- 1.4M
- Operations
- 199
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACL 2020
- Cited by
- 384 (as of 29 October 2026)
- Authors
- Ines Chami, Adva Wolf, Da-Cheng Juan and others
- Source
- GitHub: HazyResearch/KGEmb
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14737
- Graph hash
- 5ef8681a89642ea2c97fd8be4bf1bf8fe65ebc3649d301bfba7cc37aae5bc93e
- Skeleton hash
- 84ce85310ad0b9e88577d4ec570c05ef1cb0a6ce6dbc56a28fab63c4a6d7b0d9
- Architecture hash
- d39a8ea094837ba8147c66f799b96f1c40ad92315902ce978e8e5ea883922273
- Diagram SHA-256
- 461a7b9ddf5c530569bc505f125371aedf832a0ef03b865ae7bbf38040182383
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
AttH is a knowledge graph embedding model that places entities in hyperbolic space and represents each relation as a geometric transformation there. Knowledge graph embeddings learn low-dimensional representations of entities and relations in order to predict missing facts. The paper's argument is that hyperbolic embeddings suit hierarchical data, but earlier hyperbolic methods did not account for the logical patterns in knowledge graphs, such as symmetry and anti-symmetry.
For a triple of head entity, relation and tail entity, AttH applies a relation-specific rotation and a relation-specific reflection to the head embedding. Both are parameterized with Givens transformations, 2 × 2 matrices arranged in block-diagonal form. An attention mechanism combines the two results in tangent space, a translation by the relation embedding follows, and the query is compared with the tail embedding by hyperbolic distance. Each relation also learns its own curvature. In the paper's analysis, reflections capture symmetric relations and rotations capture anti-symmetry, and the attention lets one model cover both.
On link prediction the paper reports gains over Euclidean-based models of up to 6.1% in mean reciprocal rank (MRR) in 32 dimensions, and in 500 dimensions an MRR of 49.6% on WN18RR and 57.7% on YAGO3-10.
Key idea. AttH embeds knowledge graphs in hyperbolic space with relation-specific curvatures and combines hyperbolic rotations and reflections through attention to capture hierarchical and logical patterns together.
- AttH
- hyperbolic knowledge graph embedding
- Low-Dimensional Hyperbolic Knowledge Graph Embeddings
- knowledge graph embedding
- link prediction
- knowledge graph completion
- hyperbolic attention
- hyperbolic space
- WN18RR
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chami2020lowdimensionalhyperbolicknowledgegraph,
title={Low-Dimensional Hyperbolic Knowledge Graph Embeddings},
author={Ines Chami and Adva Wolf and Da-Cheng Juan and Frederic Sala and Sujith Ravi and Christopher Ré},
year={2020},
eprint={2005.00545},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2005.00545},
}