Select any box or crossing in the drawing to read what it does. Arrow keys move between them.
Name vector
flat “pre-trained semantic embedding” / Sections 4 and 5.1, pages 2825 and 2827
The paper follows RNM and initialises each entity with a 300-d FastText word embedding, “which can represent the lingual information of entity names”. Out: one flat vector per entity. The paper does not say how names in different languages are brought together, or how many entities fell back to a random vector.
Exponential map
crossing, flat to ball Eq. 4 and 5, page 2825
It “projects a tangent vector [...] into the hyperbolic space”. In: a flat vector at a base point. Out: a point of the ball. The toy uses the Poincaré disc form of the map; the paper prints the hyperboloid form.
Entity point
in the ball the input feature of Eq. 6 / page 2825
The name vector after Eq. 4. In: exp of the name vector. Out: to the attention, flattened, and to the Möbius addition as it is. The paper names the Poincaré ball model (Section 3.2, Eq. 1) but prints Eq. 3, 5 and 7 in hyperboloid form and says it maps features “into the hyperboloid manifold” (Section 4), so the text does not settle which coordinates the trained model used. This toy draws a Poincaré disc.
Neighbours
in the ball N(i) in Eq. 8 / page 2825
The paper says “we consider the KG as an undirected graph”. In: the points of every entity linked to this one. Out: to the attention. Equations 6 to 10 run over neighbours only; the paper describes no use of relation labels.
Logarithmic map
crossing, ball to flat Eq. 7, page 2825
Used “to map the hyperbolic vector into the tangent space at point u”. In: a point of the ball. Out: a flat vector that a learned matrix can act on.
Attention
flat importance α, Eq. 9 / pages 2825 and 2826
A softmax over the neighbours of a learned linear function of the two flattened points, concatenated. “The attention mechanism enhances the important neighbors.” Out: one weight per neighbour. The paper does not mention attention heads or another non-linearity.
Average and summary n
flat then in the ball Eq. 8 / page 2825
The neighbours are flattened at the entity’s own point, averaged with the attention weights, and the average is mapped back with an exponential map at the same point. Out: one summary point n.
Möbius addition
in the ball Eq. 2 and 6 / pages 2824 and 2825
The ball’s replacement for “+”: the result of adding two points stays in the ball. In: the entity’s point and the summary n. Out: the new state z. One of the two operations that act on points of the ball directly.
Hyperbolic linear layer
flat W, then in the ball ⊕ b / Eq. 10, page 2826
W and b are learnable parameters. The matrix acts on the flattened state; the bias is added back in the ball. This is where the dimension drops: 300 to 200 to 100 in the experiments. No activation between layers is printed.
Embedding H
in the ball Sections 1 and 5.1
“We consider the output of the hyperbolic neural network model as the final low-dimensional hyperbolic embeddings for entities.” 100 numbers by default. Out: to the angle layer and to the rotation.
The angle layer and its angles θ
flat W′, then in the ball / Eq. 13, page 2826
One more hyperbolic linear layer, with weights shared by all entities, “which makes the mapping adaptive to the entity”. In: H. Out: d/2 angles, 50 at the default size computed. The paper does not discuss the range of the angles or report what was learned.
Rotation
in the ball “instance-specific mapping function” / Eq. 11 and 12, page 2826
A “block-diagonal matrix specified by 2×2 matrices”: each consecutive pair of coordinates is turned by its own angle. It acts on the embedding’s coordinates with no exponential or logarithmic map around it. The paper argues for it in words and with the Linear-T variant; it proves nothing about rotations.
Nearest in graph 2
in the ball “Alignment Inference Strategy” / Eq. 15, page 2826; the sentence quoted is on page 2823
“For each entity, we find the aligned entity by searching for the nearest neighbor in terms of hyperbolic distance” (Section 1, page 2823); Eq. 15 is the rule. In: the rotated embedding and every embedding of graph 2. Out: the prediction.
Graph 2 embeddings
in the ball H1 and H2 are defined in Section 4, page 2826
The network learns embeddings “on two KGs respectively” (Section 1, page 2822). The paper does not say whether the two graphs share one set of weights. The mapping runs one way: “Now we have the mapping function from G1 to G2.”