NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperbolic Category Discovery

Yuanpei Liu, Zhenqi He, Kai Han

Abstract

Generalized Category Discovery (GCD) is an intriguing open-world problem that has garnered increasing attention. Given a dataset that includes both labelled and unlabelled images, GCD aims to categorize all images in the unlabelled subset, regardless of whether they belong to known or unknown classes. In GCD, the common practice typically involves applying a spherical projection operator at the end of the self-supervised pretrained backbone, operating within Euclidean or spherical space. However, both of these spaces have been shown to be suboptimal for encoding samples that possesses hierarchical structures. In contrast, hyperbolic space exhibits exponential volume growth relative to radius, making it inherently strong at capturing the hierarchical structure of samples from both seen and unseen categories. Therefore, we propose to tackle the category discovery challenge in the hyperbolic space.

We introduce HypCD, a simple Hyperbolic framework for learning hierarchy-aware representations and classifiers for generalized Category Discovery. HypCD first transforms the Euclidean embedding space of the backbone network into hyperbolic space, facilitating subsequent representation and classification learning by considering both hyperbolic distance and the angle between samples. This approach is particularly helpful for knowledge transfer from known to unknown categories in GCD. We thoroughly evaluate HypCD on public GCD benchmarks, by applying it to various baseline and state-of-the-art methods, consistently achieving significant improvements.

The Challenge of Generalized Category Discovery

Generalized Category Discovery (GCD) presents a significant hurdle in machine learning: how to categorize an unlabeled pool of data that contains both known ("Old") classes and entirely novel ("New") classes. Traditional approaches often rely on Euclidean or spherical embedding spaces. However, these "flat" geometries struggle to represent the complex, tree-like taxonomies inherent in real-world data.

Semantic categories often follow a hierarchical structure (e.g., a car hierarchy or bird species taxonomy). Furthermore, individual objects possess internal hierarchies, where parts (like wings or wheels) relate to the whole. Euclidean space, which grows only polynomially with its radius, lacks the capacity to efficiently embed these branching structures without significant distortion.

Figure 5: Inter-category and intra-category relations represented in hierarchical structures.

Why Hyperbolic Space?

Hyperbolic geometry offers a natural solution. In a hyperbolic space, such as the Poincaré ball, the volume grows exponentially with the radius. This property mimics the growth of nodes in a tree, providing the necessary "room" to represent hierarchical data. As shown in the figure above, both inter-category relations (taxonomies) and intra-category relations (part-to-whole) can be more faithfully captured in this geometry.

The HypCD Framework

To address these limitations, we propose HypCD (Hyperbolic Category Discovery). The framework shifts the representation learning process from Euclidean to hyperbolic space. Key components include:

  1. Hyperbolic Mapping: Euclidean features from a pretrained backbone (e.g., DINO) are projected into the Poincaré ball using an exponential mapping. To ensure numerical stability, a feature clipping operation is applied beforehand.
  2. Hybrid Contrastive Loss: Unlike standard methods that focus solely on angular similarity, HypCD utilizes a weighted combination of hyperbolic distance and angular similarity. This allows the model to cluster samples based on both their semantic direction and their hierarchical scale.
  3. Hyperbolic Classifier (HypFFN): For parametric discovery, we replace standard linear layers with hyperbolic feed-forward networks that respect the non-Euclidean geometry of the embedding space.
Figure 3: (a) Comparison between spherical and hyperbolic methods in handling different scales; (b) Accuracy comparison showing HypCD's improvement over previous SOTA.

Experimental Results

We evaluated HypCD on several rigorous benchmarks, including the Semantic Shift Benchmark (SSB) and generic datasets like CIFAR and ImageNet-100.

Our results demonstrate that HypCD consistently outperforms previous state-of-the-art (SOTA) methods. On the Stanford Cars dataset, HypCD achieved a massive improvement of 11.8% to 15.9% in accuracy. Across all fine-grained tasks in the SSB, average accuracy improved by at least 6.0% compared to Euclidean baselines. Notably, HypCD significantly narrows the performance gap between "Old" and "New" classes, suggesting that hyperbolic embeddings facilitate better knowledge transfer to unknown categories.

Conclusion

HypCD demonstrates that the geometry of the embedding space is a critical factor in Generalized Category Discovery. By leveraging the inherent hierarchical properties of hyperbolic space, our framework achieves superior representation learning and classification for both known and novel categories. Future work will explore the application of hyperbolic geometry to other open-world challenges, such as multi-modal learning and object detection.

Summary updated

BibTeX
@inproceedings{liu2025hyperbolic,
  author = {Yuanpei Liu and Zhenqi He and Kai Han},
  title = {{Hyperbolic Category Discovery}},
  booktitle = {BEW @ ICCV},
  year = {2025},
  url = {https://openreview.net/forum?id=PGeuLbh3bX},
}
Figure