[Paper Review] ShapeMask: Learning to Segment Novel Objects by Refining Shape Priors
ShapeMask introduces a novel instance segmentation framework that improves generalization to novel categories by refining shape priors and learning instance-specific embeddings. Starting from a bounding box, it progressively refines object shapes using learned priors and embeddings, achieving 6.4 AP gain over state-of-the-art in cross-category learning and competitive performance in fully supervised settings with 150ms inference time.
Instance segmentation aims to detect and segment individual objects in a scene. Most existing methods rely on precise mask annotations of every category. However, it is difficult and costly to segment objects in novel categories because a large number of mask annotations is required. We introduce ShapeMask, which learns the intermediate concept of object shape to address the problem of generalization in instance segmentation to novel categories. ShapeMask starts with a bounding box detection and gradually refines it by first estimating the shape of the detected object through a collection of shape priors. Next, ShapeMask refines the coarse shape into an instance level mask by learning instance embeddings. The shape priors provide a strong cue for object-like prediction, and the instance embeddings model the instance specific appearance information. ShapeMask significantly outperforms the state-of-the-art by 6.4 and 3.8 AP when learning across categories, and obtains competitive performance in the fully supervised setting. It is also robust to inaccurate detections, decreased model capacity, and small training data. Moreover, it runs efficiently with 150ms inference time and trains within 11 hours on TPUs. With a larger backbone model, ShapeMask increases the gap with state-of-the-art to 9.4 and 6.2 AP across categories. Code will be released.
Motivation & Objective
- To address the challenge of generalizing instance segmentation to novel object categories without requiring extensive category-specific mask annotations.
- To improve zero-shot and few-shot generalization by introducing intermediate shape priors as a stronger inductive bias than bounding boxes.
- To enable efficient, robust, and accurate instance segmentation using class-agnostic training with minimal supervision.
- To design a lightweight, high-performance mask branch that maintains accuracy with drastically reduced parameters and FLOPs.
- To achieve competitive detection and segmentation performance while being hardware-efficient across TPUs and GPUs.
Proposed method
- ShapeMask begins with a class-agnostic bounding box detection as input, using it to localize the object of interest.
- It then estimates the object's shape by selecting the best-fitting shape priors from a learned set, providing a strong geometric prior.
- A fully convolutional network decodes a coarse mask from the shape prior, which is refined using learned instance embeddings to produce the final pixel-level segmentation.
- The model uses simple cropping instead of ROIAlign and jittered ground truths to accelerate training and avoid NMS or sorting operations.
- It employs a one-stage detector (RetinaNet) for efficient training and is trained end-to-end with class-agnostic supervision.
- The mask branch is designed to be lightweight, with performance maintained even at 16-channel capacity, achieving 35.8 AP with 130x fewer parameters than Mask R-CNN.
Experimental results
Research questions
- RQ1Can learning shape priors as an intermediate representation improve generalization in instance segmentation for novel categories?
- RQ2How does the combination of shape priors and instance embeddings compare to traditional detection or grouping-based methods in zero-shot and few-shot settings?
- RQ3To what extent can a lightweight mask branch maintain high accuracy while reducing model size and FLOPs?
- RQ4How robust is ShapeMask to inaccurate detections, limited training data, and reduced model capacity?
- RQ5Can ShapeMask achieve competitive performance in fully supervised instance segmentation while training faster than state-of-the-art?
Key findings
- ShapeMask achieves 6.4 AP gain over the previous state-of-the-art in cross-category instance segmentation, with a 9.4 AP gain using a larger backbone.
- It outperforms the state-of-the-art using only 1% of the labeled data, demonstrating strong few-shot generalization.
- With a 16-channel mask branch, ShapeMask achieves 35.8 AP—0.4 AP higher than Mask R-CNN—while using 130x fewer parameters and 23x fewer FLOPs.
- The model runs in 150ms inference time and trains in 11 hours on TPUs, with 4x faster training than state-of-the-art due to architectural optimizations.
- In the fully supervised setting, ShapeMask achieves 37.2 AP on COCO, outperforming Mask R-CNN and RetinaNet with the same ResNet-101-FPN backbone.
- ShapeMask also functions as a strong object detector, achieving 42.0 AP with ResNet-101-FPN and 45.4 AP with a larger NAS-FPN backbone, outperforming RetinaNet and Mask R-CNN.
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.