Adapting Segment Anything Model for Unseen Object Instance Segmentation

Rui Cao, Chuanxin Song, Biqi Yang, Jiangliu Wang, Pheng-Ann Heng, Yun-Hui LiuarXiv 2024 · DOI

Abstract

Unseen Object Instance Segmentation (UOIS) is a foundational capability for robotic tasks such as grasping and manipulation in unstructured environments. While the Segment Anything Model (SAM) has emerged as a powerful foundation model for general segmentation, its application to cluttered tabletop scenes is often hindered by background confusion and over-segmentation. This paper introduces UOIS-SAM, a framework that adapts SAM for robotic environments using two lightweight, trainable modules: a Heatmap-based Prompt Generator (HPG) and a Hierarchical Discrimination Network (HDNet). UOIS-SAM achieves state-of-the-art performance on multiple benchmarks using only 10% of the training data required by previous methods.

Introduction

In robotics, the ability to identify and outline objects never encountered during training—known as Unseen Object Instance Segmentation (UOIS)—is essential. Although SAM provides impressive zero-shot capabilities, it faces two primary challenges in tabletop robotics:

  1. Background Confusion: Standard grid-based prompting often leads SAM to misidentify the table or floor as objects.
  2. Over-segmentation: SAM’s hierarchical mask generation frequently selects sub-parts (e.g., a handle) rather than the whole object, especially under heavy occlusion or complex textures.

Previous solutions relied on massive, fully supervised synthetic datasets. UOIS-SAM addresses these issues by efficiently leveraging SAM’s pre-existing knowledge through targeted architectural adaptations.

Methodology

UOIS-SAM keeps the heavy weights of the original SAM model frozen and introduces two lightweight components to guide its inference:

Heatmap-based Prompt Generator (HPG)

To avoid the pitfalls of heuristic point sampling, the HPG utilizes a DINOv2 backbone to predict a foreground mask and a class-agnostic heatmap. This heatmap identifies likely object centers. By sampling points from these peaks, the system ensures that SAM is prompted with points that land on objects, significantly reducing background noise and improving autonomy.

Hierarchical Discrimination Network (HDNet)

SAM naturally produces masks at three levels: "whole," "part," and "subpart." In complex scenes, SAM's default confidence scores often favor the wrong level. HDNet is a small Multi-Layer Perceptron (MLP) adapter that processes SAM’s internal tokens to refine Intersection over Union (IoU) scores. This allows the system to accurately select the most appropriate mask level for the UOIS task.

Experimental Results

The model was trained on the UOAIS-Sim dataset, consisting of 45,000 photorealistic synthetic images. Remarkably, the authors found that using only 10% of this data was sufficient to reach peak performance. Evaluation was conducted on four real-world benchmarks: OCID, OSD, PhoCAL, and HouseCat6D.

Comparison of UOIS-SAM against SAM baseline across various tabletop environments.

Performance and Efficiency

UOIS-SAM established new state-of-the-art (SOTA) records on the OCID dataset, achieving an 85.8% Overlap Precision and a 79.9% F-measure. This performance significantly exceeds previous methods like MSMFormer while utilizing 90% less training data.

Robustness to Challenging Materials

A key finding was that UOIS-SAM, using only RGB data, outperformed several RGB-D methods on datasets containing transparent or reflective objects (PhoCAL and HouseCat6D). This is attributed to the fact that depth sensors often fail on such surfaces, whereas SAM’s visual features remain robust.

Conclusion and Future Work

UOIS-SAM demonstrates that adapting foundation models is a highly efficient alternative to training specialized models from scratch. While the model is fast (approx. 0.484s per image), it is not yet suitable for high-speed reactive control. Future work will focus on enhancing real-time performance and better integrating depth information to further mitigate errors in extremely high-texture backgrounds.

Summary updated

BibTeX
@misc{cao2024adapting,
  author = {Rui Cao and Chuanxin Song and Biqi Yang and Jiangliu Wang and Pheng-Ann Heng and Yun-Hui Liu},
  title = {{Adapting Segment Anything Model for Unseen Object Instance Segmentation}},
  year = {2024},
  eprint = {2409.15481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.15481},
}
Figure