Hyperbolic Diffusion Embedding and Distance for Hierarchical Representation Learning

Ya-Wei Eileen Lin, Ronald R. Coifman, Gal Mishne, Ronen Talmon

Introduction

Hierarchical data—where entities branch out like a tree—is ubiquitous across domains, from the evolutionary lineage of species to the differentiation of stem cells and the structure of human language. Hyperbolic geometry serves as the natural mathematical "home" for this type of data because, much like a tree, the volume of hyperbolic space grows exponentially as one moves away from the center.

Despite this natural fit, current methods for learning hyperbolic representations face two major hurdles. First, many algorithms require prior knowledge of the tree structure (edges and nodes) or exact tree distances. In real-world scenarios, researchers often only have observational data, such as gene expression tables, and need to discover the underlying hierarchy. Second, existing hyperbolic embedding methods frequently rely on complex optimization or deep learning techniques that can be slow, numerically unstable, and prone to local minima.

To address these challenges, this paper introduces Hyperbolic Diffusion Embedding (HDE) and Hyperbolic Diffusion Distance (HDD). This novel framework combines diffusion geometry with hyperbolic spaces to automatically recover hierarchical structures from raw data without requiring a pre-defined tree structure.

Methodology

The proposed method bridges two powerful mathematical domains: Diffusion Geometry, typically used to uncover the manifold or shape of data, and Hyperbolic Geometry, used to represent hierarchies. The HDE process follows four primary steps:

  1. Multi-scale Diffusion: The algorithm constructs a diffusion operator from the raw data. By evaluating this operator at different "diffusion times" using a dyadic grid (e.g., $2^0, 2^{-1}, 2^{-2}$), it captures the data's structure across multiple scales—from fine-grained local neighborhoods to coarse-grained global clusters.
  2. Hyperbolic Mapping: Each multi-scale density is embedded into the Poincaré half-space model, a specific model of hyperbolic geometry that is particularly effective at representing the depth of a hierarchy.
  3. Product Manifold Representation: Rather than mapping a data point to a single location, each point is represented as a collection of points across a product of hyperbolic spaces. This allows the model to account for the hierarchy at every scale simultaneously.
  4. HDD Calculation: The Hyperbolic Diffusion Distance (HDD) is defined using an $\ell_1$ distance across this product manifold.

Crucially, HDE is a closed-form, data-driven approach. It relies on spectral decomposition (eigenvalues and eigenvectors) rather than iterative neural network training, making it highly stable and computationally efficient.

Key Insights

A major breakthrough in this work is the theoretical guarantee provided by the authors. They mathematically prove that the proposed HDD is equivalent to the underlying hierarchical distance, demonstrating that the method is a mathematically grounded recovery tool rather than just a clever heuristic.

Furthermore, the multi-scale aspect is mandatory for success. By embedding data at multiple diffusion scales, the method naturally captures the branching nature of trees—small scales resolve the leaves, while large scales identify the trunk. Because the method leverages the natural properties of the Poincaré half-space to represent diffusion time, it bypasses the numerical instabilities that plague optimization-based hyperbolic methods, turning a difficult optimization problem into a straightforward geometric mapping.

Experimental Results

The authors evaluated HDE and HDD across three distinct data categories: standard graph benchmarks (e.g., balanced trees, phylogenetic trees, citation networks), biological single-cell RNA sequencing (scRNA-seq) datasets, and classic UCI Machine Learning datasets.

  • Superior Precision: On graph benchmarks, HDD achieved the highest Mean Average Precision (MAP), consistently outperforming popular baselines like Poincaré Embeddings (PE) and Tree Representation (TR).
  • Biological Discovery: In high-dimensional scRNA-seq data, where hierarchies represent cell differentiation, HDD significantly outperformed all baselines. For downstream classification, it beat the next best method by a wide margin, achieving approximately 86% accuracy on the Zeisel dataset compared to ~74% for standard Poincaré methods.
  • Remarkable Speed: Because it avoids iterative optimization, HDD is exceptionally fast. For a graph with over 4,000 nodes, HDD completed the embedding in about 91 seconds. In stark contrast, an optimization-based Poincaré method took over 86 hours to reach a comparable result.

Limitations and Future Directions

While highly effective, the method does have limitations. HDD excels at preserving local hierarchical relationships (yielding high MAP scores), but it occasionally exhibits higher "global distortion" than simpler tree-fitting methods, highlighting a trade-off between local precision and global structural stretch.

Additionally, while the embedding step is fast, building the initial diffusion kernel for massive datasets (e.g., millions of points) can be memory-intensive. The authors suggest integrating "landmark diffusion" techniques to scale the method further. Finally, because HDD is differentiable, a promising future direction is to utilize it as a loss function within deep neural networks, guiding the extraction of hierarchical features in complex computer vision or natural language processing tasks.

Summary updated

BibTeX
@inproceedings{lin2023hyperbolic,
  author = {Ya-Wei Eileen Lin and Ronald R. Coifman and Gal Mishne and Ronen Talmon},
  title = {{Hyperbolic Diffusion Embedding and Distance for Hierarchical Representation Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=MM2vSRQMAR},
}
Figure