Segmenting Known Objects and Unseen Unknowns without Prior Knowledge

Stefano Gasperini, Alvaro Marcos-Ramiro, Michael Schmidt, Nassir Navab, Benjamin Busam, Federico Tombari

Abstract

Panoptic segmentation methods typically assign a known class to each pixel in an input image. However, even state-of-the-art approaches struggle when encountering objects outside their training categories, often forcing incorrect predictions. This lack of robustness is critical in safety-sensitive domains like autonomous driving. Since real-world datasets cannot capture the infinite variety of the "long tail" of object distributions, models must handle unseen and unknown scenarios. We propose Holistic Segmentation, a new task that aims to identify and separate unknown objects into individual instances while performing standard panoptic segmentation on known classes. Our proposed framework, U3HS, achieves this by identifying unknowns through uncertainty estimation and clustering instance-aware embeddings. Notably, U3HS requires no prior training on unknown categories, making it suitable for unconstrained real-world environments.

Introduction: The "Closed-Set" Limitation

In computer vision, panoptic segmentation is considered the gold standard for scene understanding, requiring models to classify every pixel as either "stuff" (background) or "things" (individual objects). However, standard models operate under a "closed-set" assumption: they can only recognize categories they have seen during training. When faced with a novel object—such as a rare animal or an unusual road obstacle—these models are forced to misclassify it into a known category.

A typical driving scene containing out-of-distribution objects (crates) that pose a challenge for standard closed-set segmentation models.

In safety-critical applications like autonomous driving, this "forced choice" can lead to dangerous failures. A robust system must not only recognize what it knows but also explicitly identify what it does not know.

The Challenge of Unseen Unknowns

Existing "open-set" methods often rely on a "void" or "unlabeled" class during training. This assumes the model has been exposed to some form of "unknown" data beforehand. Other approaches leverage external knowledge, such as large-scale vision-language models (e.g., CLIP), to describe potential novel objects.

The authors argue that a truly robust system should make zero assumptions about unknown data. This introduces two primary technical challenges:

  1. Detection: Identifying image regions that do not belong to any known training category.
  2. Separation: Segmenting those regions into distinct, individual object instances (e.g., distinguishing between two adjacent unknown boxes).

Methodology: The U3HS Framework

To address these challenges, the researchers developed U3HS (Unseen Unknowns via Uncertainty estimation for Holistic Segmentation). The architecture is built upon three specialized branches:

1. The Semantic Branch (Uncertainty Estimation)

Instead of using a standard softmax output, which tends to produce overconfident predictions even for out-of-distribution (OOD) data, U3HS employs Dirichlet Prior Networks (DPN). This allows the model to estimate "epistemic uncertainty"—a measure of how far the current input is from the training distribution. High uncertainty serves as a reliable trigger for detecting potential unknown objects.

2. The Embedding Branch

The model learns to map pixels into a high-dimensional embedding space. The training objective ensures that pixels belonging to the same object instance are clustered together, while pixels from different objects are pushed apart. While trained only on known classes, these embeddings capture geometric and appearance-based "objectness" that generalizes to novel shapes.

3. The Detection Branch

This branch handles the standard panoptic segmentation task by identifying the centers of known object categories.

The U3HS pipeline: from input with unknown objects to holistic segmentation, which identifies known classes and separates unknown regions into individual instances.

Holistic Instance Separation

The core innovation of U3HS lies in how it combines these signals. Pixels flagged as "highly uncertain" by the semantic branch are grouped using DBSCAN clustering in the embedding space. This allows the model to discover and separate unknown instances without any prior knowledge of their specific categories.

Experimental Evaluation

The effectiveness of U3HS was validated across three diverse benchmarks:

  • Cityscapes: Used to establish a baseline for performance on known urban categories.
  • Lost&Found: A challenging dataset featuring unusual road obstacles. This served as the primary testbed for "unseen unknowns," as the model was never trained on these specific OOD objects.
  • MS COCO: The researchers created a "held-out" split, treating the 20% least frequent classes (e.g., bears, frisbees) as unknowns to test the model's ability to generalize across varied contexts.

Key Results and Insights

  • Superior Unknown Detection: On the Lost&Found dataset, U3HS achieved a Panoptic Quality (PQ) of 7.94, significantly outperforming previous state-of-the-art open-set methods like OSIS (PQ of 1.45).
  • Zero-Shot Generalization: In the MS COCO experiments, U3HS successfully separated novel objects into individual instances with a PQ of 9.62, outperforming baselines that relied on "void" class training.
  • Maintaining Known Performance: Crucially, the ability to detect unknowns did not degrade performance on known classes, proving that U3HS provides a balanced solution for real-world deployment.

Conclusion and Future Work

U3HS represents a significant step toward "holistic" scene understanding by removing the need for prior knowledge of unknown categories. By treating high uncertainty as a functional signal rather than a failure, the model can navigate unconstrained environments more safely.

However, limitations remain. The current uncertainty thresholding can sometimes be overly aggressive, leading to fragmented masks for unknown objects. Additionally, the model does not yet distinguish between unknown "things" (instances) and unknown "stuff" (background textures). Future research will focus on refining uncertainty estimators and improving the robustness of the clustering process across different environmental conditions.

For more information, visualizations, and code, visit the project page: https://holisticseg.github.io

Summary updated

BibTeX
@inproceedings{gasperini2022segmenting,
  author = {Stefano Gasperini and Alvaro Marcos-Ramiro and Michael Schmidt and Nassir Navab and Benjamin Busam and Federico Tombari},
  title = {{Segmenting Known Objects and Unseen Unknowns without Prior Knowledge}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2022},
}
Figure