Segment Any Object Model (SAOM): Real-to-Simulation Fine-Tuning Strategy for Multi-Class Multi-Instance Segmentation

Mariia Khan, Yue Qiu, Yuren Cong, Jumana Abu-Khalaf, David Suter, Bodo Rosenhahn

Here is a concise, engaging summary of the paper "Segment Any Object Model (SAOM): Real-to-Simulation Fine-Tuning Strategy for Multi-Class Multi-Instance Segmentation."

TL;DR

The Segment Any Object Model (SAOM) adapts Meta’s foundational Segment Anything Model (SAM) to prioritize whole-object segmentation over part-based fragmentation in indoor environments. By fine-tuning strictly on simulated data using a novel grid-mapping prompt strategy, SAOM achieves a 28% boost in mIoU and successfully generalizes to real-world scenes without requiring expensive real-world training data.

What Problem Does This Paper Address?

Meta’s Segment Anything Model (SAM) is a powerful tool for zero-shot segmentation, but it suffers from a major drawback when run in automatic ("everything") mode: it tends to over-segment objects into sub-parts. For instance, instead of segmenting a whole laptop or sofa, SAM might output separate masks for the keyboard, screen, cushions, and armrests.

While part-based segmentation is useful for some tasks, whole-object segmentation is critical for robotics and indoor scene understanding. A domestic robot needs to recognize a whole mug to pick it up, or an entire chair to avoid it. Furthermore, fine-tuning SAM on real-world data to fix this bias is incredibly time-consuming and expensive. SAOM addresses this by leveraging simulated data to teach SAM to see "the whole picture."

Methods

The authors introduce a Real-to-Simulation (Real-Sim) fine-tuning pipeline. They train the model entirely on synthetic data generated by a simulator and then deploy it directly onto real-world images (Sim-to-Real transfer).

Fig. 2. Our domain invariant Real-to-Simulation (Real-Sim) SAM’s fine-tuning strategy. We use object images and GT data collected from Ai2Thor simulator during fine-tuning (real-to-sim) stage. The fine-tuned model, SAOM, can be directly tested on real images (sim- to-real) without being previously trained on real-world data.

To make this work, they introduced two key technical innovations:

  1. Nearest Neighbour Assignment Method: During training, SAM typically requires point or box prompts. To train it for the prompt-less "everything" mode, the authors calculate a continuous location prior for each ground-truth mask using SAM's image encoder. They then map this prior to its closest point on a pre-defined discrete grid (e.g., $32 \times 32$). This aligns the training process with how SAM operates during zero-shot inference.
  2. Object Classifier: Because vanilla SAM only generates masks without semantic labels, the authors append a lightweight classifier layer to output both the mask and the object's class simultaneously.
Fig. 3. Our domain invariant SAM’s fine-tuning strategy - SAOM - designed specifically for multi-class multi-instance semantic segmentation in the “everything” mode. We used our novel nearest neighbour assignment method and substituted the original object point prompts with their nearest neighbours from a pre-defined point grid on an image to make the model functional in the “everything” mode.

Datasets

The authors generated and utilized two distinct datasets:

  • Simulated Training/Validation Dataset: Collected using the Ai2Thor simulator. It consists of 33,638 images and 303,937 object masks across 120 indoor scenes. It features 54 common indoor object classes categorized by size (small, medium, large) and functionality (openable, pickupable, receptacles).
  • Real-World Test Dataset: A compact, challenging benchmark consisting of 151 real-world images of indoor scenes. It includes various viewpoints, complex backgrounds, and varying levels of object occlusion to rigorously test the model's sim-to-real generalization capabilities.

Key Insights and Ideas

  • Simulation as a Bias-Corrector: Foundational models trained on massive real-world datasets (like SAM's SA-1B) carry inherent architectural biases. This paper proves that targeted, low-cost simulation data can successfully "re-educate" a foundational model's granularity preference (shifting it from parts to whole objects).
  • "Everything of Interest" Filtering: Unlike vanilla SAM, which attempts to segment every wall, floor tile, and shadow, SAOM naturally learns to ignore background structures. It acts as an attention filter, focusing only on the 54 actionable object classes it was trained on, making it highly efficient for robotics applications.

Key Results

SAOM drastically outperformed both vanilla SAM and Semantic-SAM in generating clean, whole-object boundaries.

Fig. 4. Comparison between vanilla SAM, Semantic-SAM (SemSAM) and our SAOM on images from real-to-sim test set, where we adopt the “everything” mode to obtain SAM segmentation for 4 different scene types. Note that objects such as bed, laptop and blinds in a bedroom, microwave and fridge in a kitchen, TV and armchair in a living room or toilet and plunger in a bathroom have a whole-object segmentation mask with SAOM.
  • Quantitative Performance: Across all 54 indoor object classes, SAOM achieved a 28% increase in mean Intersection-over-Union (mIoU) (rising from 10.82% to 39.17%) and a 25% increase in mean Accuracy (mAcc) compared to vanilla SAM.
  • Reduction in Redundancy: In validation tests, SAOM generated 81.6% fewer masks than vanilla SAM and 39% fewer than Semantic-SAM. This reduction confirms that the model successfully filters out sub-part fragmentations and background noise, yielding cleaner, object-centric data.

Limitations and Future Work

Despite its strong segmentation performance, SAOM has a few limitations:

  • Low Classification Accuracy: The added classifier layer only achieved a mean accuracy of 0.36 across the 54 classes. The authors suggest that data augmentation techniques will be necessary to improve semantic labeling.
  • Background Object Struggles: SAOM occasionally misses smaller objects in the background. The authors propose mitigating this in the future by increasing the resolution of the input point grid (e.g., moving from a $32 \times 32$ grid to a $64 \times 64$ grid) or upgrading the underlying vision backbone from ViT-B to a stronger alternative.
  • Next Steps: The team plans to integrate domain adaptation and domain randomization techniques to further harden the model against complex, real-world lighting and texture variations.

Summary updated

BibTeX
@inproceedings{khan2024segment,
  author = {Mariia Khan and Yue Qiu and Yuren Cong and Jumana Abu-Khalaf and David Suter and Bodo Rosenhahn},
  title = {{Segment Any Object Model (SAOM): Real-to-Simulation Fine-Tuning Strategy for Multi-Class Multi-Instance Segmentation}},
  booktitle = {ICIP},
  year = {2024},
  doi = {10.1109/icip51287.2024.10647744},
}
Figure