[Paper Review] Semantic-SAM: Segment and Recognize Anything at Any Granularity
Semantic-SAM is a universal segmentation model that can segment and recognize objects at multiple granularities with semantic-aware outputs, trained jointly on seven datasets to enable open-vocabulary and multi-granularity segmentation. It uses many-to-many matching and decoupled object/part classification to achieve semantic-awareness and granularity-abundance.
In this paper, we introduce Semantic-SAM, a universal image segmentation model to enable segment and recognize anything at any desired granularity. Our model offers two key advantages: semantic-awareness and granularity-abundance. To achieve semantic-awareness, we consolidate multiple datasets across three granularities and introduce decoupled classification for objects and parts. This allows our model to capture rich semantic information. For the multi-granularity capability, we propose a multi-choice learning scheme during training, enabling each click to generate masks at multiple levels that correspond to multiple ground-truth masks. Notably, this work represents the first attempt to jointly train a model on SA-1B, generic, and part segmentation datasets. Experimental results and visualizations demonstrate that our model successfully achieves semantic-awareness and granularity-abundance. Furthermore, combining SA-1B training with other segmentation tasks, such as panoptic and part segmentation, leads to performance improvements. We will provide code and a demo for further exploration and evaluation.
Motivation & Objective
- Aim to build a universal segmentation model with semantic-awareness and granularity-abundance.
- Unify training data across semantic and granularity levels from multiple datasets.
- Enable multi-granularity outputs from a single click via a many-to-many matching scheme.
- Decouple object and part concepts to transfer part knowledge across objects.
- Demonstrate improvements in panoptic and part segmentation through joint training with SA-1B.
Proposed method
- Use a query-based mask decoder to produce multi-granularity masks.
- Represent each user click with multiple queries corresponding to different granularity levels (K=6).
- Convert point/box prompts into anchor boxes and feed them with position embeddings into a deformable decoder.
- Employ many-to-many Hungarian matching to align multiple predicted masks with multiple ground-truth masks per click.
- Decouple object and part classification using a shared text encoder to enable joint object/part segmentation across datasets.
- Train on seven datasets (SA-1B, COCO panoptic, ADE20k panoptic, Pascal Part, PACO, PartImageNet, Objects365) and reorganize data formats to match objectives.
Experimental results
Research questions
- RQ1Can a single model segment and recognize at multiple granularities across diverse datasets with open vocabulary?
- RQ2Does joint training on semantic and granularity-rich data improve both generic segmentation and fine-grained part segmentation?
- RQ3Does a many-to-many matching strategy improve multi-granularity outputs from a single click?
- RQ4Can decoupled object/part classification enable effective knowledge transfer of part concepts across objects?
- RQ5What is the impact of SA-1B and other segmentation data on panoptic and part segmentation tasks?
Key findings
- Semantic-SAM achieves semantic-awareness and granularity-abundance by joint training on seven datasets.
- Joint SA-1B with COCO panoptic and other data yields improvements in box AP (+2.3) and mask AP (+1.2) in interactive segmentation.
- Multi-granularity outputs per click are richer and higher quality than prior methods like SAM, with better 1-IoU@All Granularity.
- Many-to-many matching significantly improves 1-IoU@All Granularity scores compared to many-to-one matching.
- Training with SA-1B data particularly improves small object performance (APs, APm) in COCO evaluation.
- Semantic-SAM demonstrates open-vocabulary and multi-granularity capabilities across generic and part segmentation tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.