Abstract

Recognizing unknown objects is crucial for safety-critical applications such as autonomous driving and robotics. Open-Set Panoptic Segmentation (OPS) aims to segment known thing and stuff classes while identifying valid unknown objects as separate instances. Prior OPS approaches largely treat known categories as a flat label set, ignoring the semantic hierarchy that provides valuable structural priors for distinguishing unknown objects from in-distribution classes. In this work, we propose Hyp2Former, an end-to-end framework for OPS that does not require explicit modeling of unknowns during training, and instead learns hierarchical semantic similarities continuously in hyperbolic space. By explicitly encoding hierarchical relationships among known categories, the model learns a structured embedding space that captures multiple levels of semantic abstraction. As a result, unknown objects that cannot be confidently classified as known categories still remain in close proximity to higher-level concepts (e.g., an unknown animal remains closer to "animal" or "object" than to unrelated concepts such as "electronics" or "stuff") and can therefore be reliably detected, even if their fine-grained category was not represented during training. Empirical evaluations across multiple public datasets such as MS COCO, Cityscapes, and Lost&Found demonstrate that Hyp2Former outperforms existing methods on OPS, achieving the best balance between unknown object discovery and in-distribution robustness. We make the code and trained models soon publicly available at http://hyp2former.cs.uni-freiburg.de.

Approach

Overview of our approach
Overview of the proposed Hyp2Former. Multi-scale features are extracted from a backbone and are processed by a pixel and a transformer decoder. A set of learnable queries interacts with the decoder to produce query embeddings, which are fed into the classification head Fcls and the mask head Fmask. In parallel, the embeddings are projected into a hyperbolic manifold, where an explicit semantic hierarchy guides the hyperbolic hierarchy-aligned loss Lhyp. This loss pulls embeddings toward their positive proxies (corresponding to the ground-truth class and its ancestors at different levels of granularity) and pushes them away from all other proxies, thereby structuring the hyperbolic embedding space according to semantic similarity. The predefined hierarchy HL with L levels comprises three subtrees: object (thing), stuff, and a background class for invalid regions. For clarity, only the object subtree is illustrated.

Code

Code coming soon.

Publications

If you find our work useful, please consider citing our paper:

Yao Lu, Rohit Mohan, Abhinav Valada

Hyp2Former: Hierarchy-Aware Hyperbolic Embeddings for Open-Set Panoptic Segmentation
arXiv preprint arXiv:2605.02580, 2026.
(PDF) (BibTeX)

Authors

Yao Lu

Yao Lu

University of Freiburg

Rohit Mohan

Rohit Mohan

University of Freiburg

Abhinav Valada

Abhinav Valada

University of Freiburg