Hyperbolic Neural Networks++

Ryohei Shimizu, Yusuke Mukuta, Tatsuya Harada

Introduction

Many real-world datasets—such as taxonomies, social networks, and language hierarchies—possess an underlying "tree-like" structure. While standard Euclidean neural networks struggle to represent these hierarchies without using massive dimensions, hyperbolic spaces are naturally suited for them. In hyperbolic geometry, volume grows exponentially with the radius, perfectly mirroring the exponential growth of nodes in a tree.

Visualizing models of hyperbolic geometry, including the Poincaré ball model used in HNN++.

However, translating standard neural network operations (like linear transformations $Wx + b$) into hyperbolic geometry is notoriously difficult. Previous attempts, such as the original Hyperbolic Neural Networks (HNNs), suffered from significant flaws. They were parameter-inefficient—their version of Multinomial Logistic Regression (MLR) required twice as many parameters as the Euclidean equivalent—and they lacked robust implementations for ubiquitous operations like convolutions and multi-head attention.

Hyperbolic Neural Networks++ (HNN++) addresses these issues by providing a unified and parameter-efficient framework for building deep learning models in hyperbolic space. By redesigning core components, the authors achieve superior performance and stability over previous hyperbolic models while using significantly fewer parameters.

Core Methodological Innovations

The authors build their framework within the Poincaré ball model, a specific coordinate system for hyperbolic space. Their key technical contributions focus on making hyperbolic operations both mathematically sound and computationally efficient:

  • Unidirectional Reparameterization: The authors reformulate the MLR layer to use only $D+1$ parameters (one orientation vector and one scalar bias). This matches the efficiency of Euclidean layers and completely resolves the "double parameter" problem of earlier hyperbolic models.
  • Poincaré FC and Convolutional Layers: Instead of merely performing math in a "tangent space" (a flat Euclidean approximation of the curved space), HNN++ defines layers based on the signed distance to Poincaré hyperplanes. This allows the network to better exploit the actual intrinsic geometry of the space.
Comparing a standard Euclidean hyperplane (left) with its generalization to a Poincaré hyperplane in hyperbolic space (right).
  • Regularized Split and Concatenation ($\beta$-operations): In hyperbolic space, simply "gluing" two vectors together can cause the resulting vector to jump outside the allowed boundary of the Poincaré ball. The authors introduce $\beta$-split and $\beta$-concatenation operations to keep vector norms stable across deep layers.
  • Unified Hyperbolic Attention: By proving that three different mathematical definitions of a "hyperbolic midpoint" are actually equivalent, the authors build a robust multi-head attention mechanism that works reliably with real-valued (including negative) weights.

Experimental Results

The authors evaluated HNN++ across three distinct tasks, demonstrating significant improvements in efficiency, stability, and performance:

  1. WordNet Noun Hierarchy (Sub-tree Classification): HNN++ achieved the same or better accuracy as previous hyperbolic models while using 50% fewer parameters in the MLR layer. It also showed much narrower confidence intervals during training, indicating reduced sensitivity to initialization.
  2. Synthetic Mixture of Gaussians: Using a "Set Transformer" architecture, the new hyperbolic attention mechanism successfully modeled complex distributions.
  3. WMT’17 English-German (Machine Translation): On this standard benchmark, a hyperbolic convolutional sequence-to-sequence (ConvSeq2Seq) model crushed the Euclidean baseline in low-dimensional settings. At a dimension of $D=16$, HNN++ achieved a 9.81 BLEU score, compared to the Euclidean version's 2.68.

Key Insights and Limitations

The defining insight of HNN++ is that geometry matters. Hyperbolic neural networks shouldn't just be Euclidean math "wrapped" in hyperbolic functions. By leveraging the intrinsic properties of the Poincaré ball—like the curvature of geodesics—the model becomes fundamentally more stable and expressive. Furthermore, the authors mathematically prove that as the curvature of their hyperbolic space approaches zero, their operations perfectly recover standard Euclidean neural network operations, making HNN++ a true generalization of deep learning.

These models shine brightest when dimensions are limited; a 16-dimensional hyperbolic model can often outperform a much larger Euclidean one. However, this advantage comes with diminishing returns at high dimensions (e.g., $D=256$), where Euclidean space has enough "room" to compensate for its lack of hierarchical bias. Additionally, the trigonometric and hyperbolic functions required for these operations remain more computationally expensive than simple linear algebra. Future work may explore "product spaces"—combining multiple small hyperbolic spaces—to capture even more complex data structures efficiently.

Summary updated

BibTeX
@inproceedings{shimizu2021hyperbolic,
  author = {Ryohei Shimizu and Yusuke Mukuta and Tatsuya Harada},
  title = {{Hyperbolic Neural Networks++}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=DzR2Gj2E_9l8},
}
Figure