Representing structured data—such as hierarchies, taxonomies, and complex networks—in continuous vector spaces is a foundational task in machine learning. While tree structures are relatively well-understood, many real-world relationships (like citation networks, Git commit histories, and causal models) take the form of Directed Acyclic Graphs (DAGs).
DAGs present a unique embedding challenge because they can exhibit "bi-directional exponential growth." A single node in a DAG might have an exponentially increasing number of both ancestors and descendants. Standard Euclidean embeddings lack the geometric "volume" to pack these nodes without significant distortion, and previous non-Euclidean methods either focused strictly on trees (like Poincaré Embeddings) or utilized "cones" that struggled with the symmetry and complexity of non-tree DAGs.
To solve this, researchers have introduced Disk Embeddings, a generalized framework for representing DAGs by mapping nodes to "formal disks" in quasi-metric spaces.
The Disk Embedding Framework
The core innovation of this paper is moving away from representing nodes as infinitely small points. Instead, the authors propose representing each node as a formal disk $(x, r)$, consisting of a center coordinate $x$ and a radius $r$.
In this framework, a partial order (such as reachability in a DAG) is represented by disk inclusion. Node $i$ is considered a descendant of node $j$ if the disk for $i$ is entirely contained within the disk for $j$. Mathematically, this inclusion is defined using a quasi-metric: $d(x_i, x_j) \le r_j - r_i$.
This approach allows the model to capture the "scope" or "generality" of a concept through its radius. A broad, high-level concept will have a large radius, encompassing the smaller disks of its more specific descendants.
The Power of Hyperbolic Geometry
While the Disk Embedding framework can operate in Euclidean and Spherical spaces, the authors highlight the specific advantages of Hyperbolic Disk Embeddings.
Because the area of a disk in hyperbolic space grows exponentially with its radius, it naturally provides the necessary "room" to represent the complex, exponential branching of DAGs. Hyperbolic geometry's translational symmetry and volume properties make it an ideal container for complex transitive relations.
Furthermore, unlike previous "cone" based methods—which are inherently directional and expand away from a fixed origin—disks maintain a property called reversibility. This means the model can represent the growth of ancestors just as naturally as the growth of descendants, a crucial feature for complex DAGs.
Optimization and Unification
To learn these embeddings, the authors utilize Riemannian Stochastic Gradient Descent (RSGD), specifically leveraging the Lorentz model of hyperbolic geometry for improved numerical stability.
They also identify and fix a flaw in previous energy functions where gradients could vanish for negative samples, proposing a robust margin loss function. Theoretically, the authors prove that existing methods like Order Embeddings and Hyperbolic Entailment Cones are actually just special cases of Disk Embeddings projected into specific subspaces.
Key Results and Performance
The authors evaluated their models on predicting transitive relations (reachability) using the F1 score. They tested on standard WordNet Nouns (a mostly tree-like dataset) and a "WordNet Nouns Reversed" dataset, which inverts relations to create a highly complex, non-tree DAG where nodes have many ancestors.
- Complex DAGs: On the challenging WordNet Nouns Reversed task, the proposed models crushed existing baselines. Using only 10 dimensions and 50% of the training data, Spherical Disk Embeddings achieved a 90.1% F1 score. In stark contrast, Order Embeddings and Poincaré Embeddings lagged significantly at 41.4% and 51.9%, respectively.
- Tree-like DAGs: On the standard WordNet Nouns dataset, Hyperbolic Disk Embeddings reached a state-of-the-art 94.2% F1 score in just 10 dimensions.
- Efficiency: A major takeaway is the model's ability to capture complex structures in very low-dimensional spaces (as few as 5 or 10 dimensions), which is highly beneficial for downstream machine learning tasks.
Limitations and Future Directions
While highly effective, the current model focuses strictly on transitive relations (reachability). It does not explicitly preserve non-transitive details, meaning it cannot easily distinguish between a direct edge ($A \to C$) and an indirect path ($A \to B \to C$).
Future work will need to address scalability to massive, global-scale DAGs like massive citation networks. Additionally, while the radius currently acts as a proxy for "generality," further exploration is needed to understand how these learned radii correlate with other intrinsic node properties across different domains.
Summary updated