Representation Tradeoffs for Hyperbolic Embeddings

Christopher De Sa, Albert Gu, Christopher Ré, Frederic Sala

Abstract

This paper introduces a groundbreaking combinatorial approach to hyperbolic embeddings that achieves near-perfect representation of hierarchical data without the need for expensive optimization. By leveraging the unique geometry of hyperbolic space, the authors demonstrate that a simple 2D embedding can outperform complex 200D models on datasets like WordNet, while providing a rigorous framework for understanding the tradeoffs between dimensionality and numerical precision.

Introduction: The Challenge of Hierarchical Data

Representing hierarchical data—such as taxonomies, social networks, or the Internet—in standard "flat" Euclidean space is mathematically inefficient. Because the number of nodes in a tree grows exponentially with depth, Euclidean space, which only grows polynomially, forces a "crowding" effect that leads to high distortion.

Hyperbolic space is the natural solution because its volume grows exponentially, mirroring the structure of trees. However, existing methods for hyperbolic embeddings relied on stochastic gradient descent (SGD), which is slow, prone to local minima, and lacks formal quality guarantees. Furthermore, researchers didn't fully understand the "hidden cost" of these embeddings: the numerical precision (number of bits) required to store coordinates as points move toward the edge of the hyperbolic disk.

Methods: Combinatorial and Scalable Algorithms

The authors propose two primary algorithmic contributions:

  1. Combinatorial Construction: Instead of training a model, they use a geometric algorithm to "place" nodes. They extend Sarkar’s construction, which embeds trees into the Poincaré disk. The algorithm works in two phases: first, it maps a graph to a weighted tree (using Steiner nodes to handle cycles), and then it recursively places children around their parents in hyperbolic space. This method is deterministic, runs in nearly linear time, and offers provable distortion bounds.
Figure 6: Illustration of different graph topologies and their weighted tree representations used in the combinatorial construction.
  1. Hyperbolic Multidimensional Scaling (h-MDS): To handle general datasets that aren't perfectly tree-like, they generalized the classical MDS algorithm. They introduced a "pseudo-Euclidean mean" that allows them to reduce the recovery of hyperbolic points to a standard eigenvalue problem, making it much more scalable than previous optimization-based approaches.

Key Insights: Geometry and Precision

A significant theoretical contribution of this work is the exploration of the precision-dimensionality tradeoff. The authors show that one can trade numerical precision (bits) for dimensions. To keep distortion low, one either needs very high numerical precision or more dimensions. Specifically, precision must scale linearly with the longest path in a tree but only logarithmically with the tree's branching factor (degree).

Figure 3: Visualization of the Poincaré disk geometry (left) and the distance ratio comparison between graph, hyperbolic, and Euclidean metrics (right).

Furthermore, the authors found that hyperbolic space is not scale-invariant. Unlike Euclidean space, doubling coordinates in hyperbolic space changes relative distances, making the learning of a scale factor ($\tau$) critical for embedding quality.

Results and Evaluation

The researchers evaluated their methods on a diverse set of benchmarks, including WordNet, phylogenetic trees, and various biological and social networks.

  • WordNet Superiority: The combinatorial construction achieved a Mean Average Precision (MAP) of 0.989 using only 2 dimensions. For context, previous state-of-the-art models reached only 0.87 MAP using 200 dimensions.
  • Low Distortion: On phylogenetic trees, their h-MDS approach produced a distortion of just 0.039, significantly lower than Euclidean PCA (0.746).
  • Efficiency: Because the combinatorial method doesn't require iterative training, it can process massive graphs like WordNet (74k+ nodes) in a fraction of the time required by SGD-based methods.

Limitations and Future Work

The primary limitation is the precision requirement. For some embeddings to maintain low distortion in 2D, the algorithm required nearly 500 bits of precision—far beyond standard 64-bit hardware. While increasing dimensions to 10 reduced this requirement to 32 bits, it highlights a hardware constraint for very deep hierarchies. Future work will focus on integrating these high-quality, low-dimensional representations into downstream machine learning tasks like natural language inference or recommendation systems.

Summary updated

BibTeX
@inproceedings{sa2018representation,
  author = {Christopher De Sa and Albert Gu and Christopher Ré and Frederic Sala},
  title = {{Representation Tradeoffs for Hyperbolic Embeddings}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=r1Ny8oWuWr},
}
Figure