HAKE
A knowledge graph embedding that puts entities in polar coordinates so radius reads as hierarchy level.
Graphs and geometry · 42 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
- 41M
- Operations
- 42
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2020
- Cited by
- 440 (as of 17 October 2026)
- Authors
- Zhanqiu Zhang, Jianyu Cai, Yongdong Zhang, Jie Wang
- License
- MIT
- 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
- m1281
- Graph hash
- d73c4c25daefe1aca7feba9ca0871f463fb3b9392c0b6fc22cfcdddf1d6d4949
- Skeleton hash
- d73c4c25daefe1aca7feba9ca0871f463fb3b9392c0b6fc22cfcdddf1d6d4949
- Architecture hash
- ddf6be3713b4b2710a8f5510c3ac0efac112cfbe32c006a150936e661d7a2d2f
- Diagram SHA-256
- a18aa31fa41f4a742fbdd7c29b743a7a742e700893c214759bbc0e9130120933
- 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
HAKE, the Hierarchy-Aware Knowledge Graph Embedding model, scores (head, relation, tail) triples for link prediction by mapping entities into the polar coordinate system. The motivation is that existing knowledge graph embedding models focus on relation patterns such as symmetry, inversion and composition, yet many fail to model semantic hierarchies, which are common in real-world applications. The idea comes from the fact that concentric circles in the polar coordinate system can naturally reflect the hierarchy.
The radial coordinate models entities at different levels of the hierarchy, and entities with smaller radii are expected to be at higher levels. The angular coordinate distinguishes entities at the same level, which are expected to have roughly the same radii but different angles. Concretely, HAKE consists of two parts, the modulus part and the phase part, which model those two categories of entities. In the phase part the distance uses a sine function rather than a plain norm, as phases have periodic characteristic. The paper places HAKE among the translational distance models and notes that it shares similarities with RotatE. Training uses the negative sampling loss with self-adversarial training.
The authors' code trains HAKE and its baseline ModE through one script, with modulus_weight and phase_weight available only for the HAKE model. ModE is the paper's own baseline that uses only the modulus part but allows negative relation entries. On WN18RR, HAKE gains a 0.021 higher MRR, a 2.4% higher H@1 and a 2.4% higher H@3 against RotatE.
Key idea. A knowledge graph embedding that maps entities into the polar coordinate system, so radius encodes hierarchy level and angle separates entities at the same level.
- HAKE
- Hierarchy-Aware Knowledge Graph Embedding
- hierarchy-aware
- knowledge graph embedding
- link prediction
- knowledge graph completion
- polar coordinates
- ModE
- WN18RR
- FB15k-237
- YAGO3-10
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2022learninghierarchyawareknowledgegraph,
title={Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Prediction},
author={Zhanqiu Zhang and Jianyu Cai and Yongdong Zhang and Jie Wang},
year={2022},
eprint={1911.09419},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1911.09419},
}