Expand description
Hyperbolic embeddings using the Poincaré ball model.
The Poincaré ball model embeds hierarchical data (trees, taxonomies, ontologies) in hyperbolic space where distances naturally encode hierarchical relationships. Nodes close to the root are near the origin; leaf nodes are near the boundary.
Use cases in Oxios:
- Persona hierarchy (parent → child relationships)
- Skill graph (prerequisite chains)
- Memory category taxonomy
Reference: “Poincaré Embeddings for Learning Hierarchical Representations” (Nickel & Kiela, 2017)
Structs§
- Hyperbolic
Config - Configuration for hyperbolic operations.
- Hyperbolic
Embedding - Hyperbolic embedding manager for hierarchical data.
Functions§
- batch_
euclidean_ to_ poincare - Batch-convert Euclidean vectors to Poincaré ball points.
- euclidean_
to_ poincare - Convert a Euclidean vector to a point on the Poincaré ball.
- hyperbolic_
distance - Compute the hyperbolic distance between two points on the Poincaré ball.
- mobius_
add - Möbius addition: the hyperbolic analog of vector addition.
- mobius_
scalar_ mul - Möbius scalar multiplication: scaling in hyperbolic space.