Bayesian Semantic Instance Segmentation in Open Set World

Trung Pham, B. G. Vijay Kumar, Thanh-Toan Do, Gustavo Carneiro, Ian D. Reid

Introduction

Standard instance segmentation models typically operate in a "closed-set" environment, meaning they are restricted to segmenting object classes present in their training data. For instance, a model trained on the 80 COCO classes will fail to recognize or segment a "walrus" if encountered in the wild. This limitation poses significant safety and functional risks for autonomous systems. This paper introduces a Bayesian framework designed for "open-set" segmentation, enabling the simultaneous segmentation of known objects (via a detector) and unknown objects (via low-level image boundaries) within a single, global image partition.

The Open-Set Challenge

Current state-of-the-art models like Mask R-CNN require exhaustive pixel-level mask annotations, which are expensive and difficult to scale. The authors address two primary gaps: segmenting previously unseen objects and reducing annotation costs by demonstrating that bounding box detections—which are significantly cheaper to annotate—can effectively guide the segmentation of known classes.

Methodology: Bayesian MAP Inference

The authors formulate instance segmentation as a Bayesian Maximum A Posteriori (MAP) inference problem. The goal is to identify the optimal "partition" of an image—a set of non-overlapping regions covering the entire scene.

Likelihood Models

The framework utilizes three competing models to explain image regions:

  1. Boundary/Contour Model (C): Employs a deep network (COB) to identify edges, acting as a "catch-all" for unknown regions based on physical boundaries.
  2. Bounding Box Model (B): Utilizes detections from a standard object detector (e.g., Faster R-CNN) to claim regions within detected boxes.
  3. Mask Model (M): An optional component that incorporates predicted masks when available.
The proposed Bayesian framework pipeline, integrating object and boundary detection through simulated annealing.

Optimization via Simulated Annealing

Finding the perfect image partition is an NP-hard problem. The authors employ Simulated Annealing (SA) combined with an Efficient Image Partition Sampler. Instead of pixel-level movements, the algorithm uses a "sample-and-paste" strategy on a region hierarchy (an Ultrametric Contour Map), allowing for rapid merging, splitting, or swapping of image chunks.

Experimental Setup and Results

The model was trained on the COCO dataset for known object detection and evaluated on the NYU RGB-D dataset. NYU serves as an ideal "open-set" benchmark because it contains hundreds of classes, only 60 of which overlap with COCO, leaving approximately 720 classes as "unknown."

Key Findings

  • Superior Performance on Unknowns: The method significantly outperformed unsupervised baselines on the NYU dataset, achieving an $F_1^{50}$ of 54.2 compared to the baseline's 45.2.
  • Efficiency of Weak Supervision: A major insight is that the model performs nearly as well using only bounding box detections as it does with full mask supervision, suggesting a path toward more data-efficient training.
  • Global Consistency: Unlike models that produce overlapping masks, this Bayesian approach ensures every pixel belongs to exactly one instance, providing a holistic scene understanding that includes "stuff" like floors and sky.
Final segmentation output demonstrating the model's ability to partition a scene into both known and unknown instances.

Conclusion and Future Work

While the partition sampler is efficient, the iterative nature of Simulated Annealing is currently slower than "one-shot" deep learning inference, limiting its use in real-time robotics. Additionally, the system remains dependent on the quality of the low-level boundary detector. Future research aims to develop an end-to-end learning framework that combines Bayesian robustness with the speed of modern neural networks.

Summary updated

BibTeX
@inproceedings{pham2018bayesian,
  author = {Trung Pham and B. G. Vijay Kumar and Thanh-Toan Do and Gustavo Carneiro and Ian D. Reid},
  title = {{Bayesian Semantic Instance Segmentation in Open Set World}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01249-6\_1},
}
Figure