Hyperbolic Continuous Structural Entropy for Hierarchical Clustering

Guangjie Zeng, Hao Peng, Angsheng Li, Li Sun, Chunyang Liu, Shengze Li, Yicheng Pan, Philip S. Yu

TL;DR

HypCSE is a new framework for hierarchical clustering that combines the geometric advantages of hyperbolic space with the information-theoretic power of Structural Entropy (SE). By making SE differentiable and learning the graph structure adaptively during training, the authors achieve state-of-the-art dendrogram quality across various real-world datasets.

What Problem Does This Paper Address?

Hierarchical clustering (HC) is the bread and butter of data organization, creating "dendrograms" that show how data points relate at different scales. However, the field faces two major hurdles:

  1. Lack of a Global Objective: Traditional methods (like merging the two closest clusters) are procedural. They don't optimize for a single, global "quality" score, which can lead to suboptimal trees.
  2. Static or Noisy Graphs: Many modern graph-based HC methods rely on a fixed, predefined graph. If that graph is noisy or doesn't perfectly capture the underlying hierarchy, the resulting clustering suffers.

Furthermore, most HC methods operate in flat Euclidean space. Because the number of nodes in a tree grows exponentially with depth, Euclidean space (which grows polynomially) forces high "distortion" when trying to map a hierarchy.

Methods

The authors introduce HypCSE (Hyperbolic Continuous Structural Entropy), which tackles these issues through three main innovations:

  • Hyperbolic Embedding: They use Hyperbolic space (specifically the Lorentz and Poincaré models). Because hyperbolic space expands exponentially as you move away from the origin, it is mathematically "roomy" enough to fit tree structures with almost no distortion.
  • Continuous Structural Entropy (CSE): Structural Entropy measures how much uncertainty remains in a graph's structure. Usually, this is a discrete calculation. The authors reformulate SE using the concept of the Lowest Common Ancestor (LCA). In hyperbolic space, the LCA of two points is approximated by the point on the geodesic (the shortest path) between them that is closest to the origin. This allows them to create a differentiable objective function that can be optimized via gradient descent.
  • Graph Structure Learning (GSL): Instead of trusting a static input graph, HypCSE uses a "learner" network and contrastive learning to refine the graph structure during training. This ensures the model focuses on the most informative relationships while filtering out noise.

The final pipeline involves encoding data with a Hyperbolic Graph Neural Network, optimizing the CSE and contrastive losses, and then "decoding" the hyperbolic embeddings into a final binary tree.

Datasets

The model was evaluated on seven classic datasets from the UCI Machine Learning Repository:

  • Zoo, Iris, Wine, Breast Cancer, OpticalDigits, Spambase, and PenDigits. These datasets vary in size (from 101 to 10,992 samples) and dimensionality, providing a robust test for how well the model captures different types of hierarchical relationships.

Key Insights and Ideas

  • The Geometry of LCA: The most elegant "aha moment" is the realization that the distance of a hyperbolic geodesic to the origin is a perfect continuous proxy for the depth of a node in a tree. This bridge between geometry and information theory is what makes the optimization possible.
  • Adaptive Hierarchy: By using Graph Structure Learning, the model doesn't just cluster the data it's given; it actively learns which connections in the data are most relevant to the hierarchy.
  • Global over Local: Unlike "greedy" algorithms that make local decisions, HypCSE's use of a global objective (SE) ensures that the entire structure of the dendrogram is considered during every step of training.

Key Results

HypCSE consistently outperformed both traditional discrete methods (like Single Linkage and HDBSCAN) and modern continuous methods (like HypHC and FPH).

  • Dendrogram Purity (DP): HypCSE achieved the highest DP across all seven datasets. For example, on the PenDigits dataset, it reached 81.4% DP, significantly outperforming the next best continuous method, which trailed at 69.6%.
  • Structural Entropy (SE): It achieved the lowest (best) SE on four datasets and was the runner-up on another. This indicates that the trees generated by HypCSE are more efficient at representing the graph's underlying information.
  • Flexibility: The authors showed that HypCSE can be easily integrated into other pipelines, such as similarity-based classification, where it also set new performance benchmarks.

Limitations and Future Work

While HypCSE is powerful, the authors noted some areas for improvement:

  • Parameter Sensitivity: The performance on certain datasets (like Spambase) was sensitive to the "decay rate" ($\tau$) used in the graph learning module, suggesting that some hierarchies are more ambiguous and harder to learn than others.
  • Scalability: Although they implemented strategies to reach $O(n \log n)$ complexity for tree decoding, training complex hyperbolic neural networks on massive-scale graphs (millions of nodes) remains a computational challenge for future research.
  • Domain Specificity: Future work could involve applying this framework to specialized fields like bioinformatics (phylogenetic trees) or NLP (taxonomies), where the hierarchical nature of the data is even more pronounced.

Summary updated

BibTeX
@inproceedings{zeng2026hyperbolic,
  author = {Guangjie Zeng and Hao Peng and Angsheng Li and Li Sun and Chunyang Liu and Shengze Li and Yicheng Pan and Philip S. Yu},
  title = {{Hyperbolic Continuous Structural Entropy for Hierarchical Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i33.40035},
}
Figure