Skip to main content
QUICK REVIEW

[Paper Review] EmbedMask: Embedding Coupling for One-stage Instance Segmentation

Hui Ying, Zhaojin Huang|arXiv (Cornell University)|Dec 4, 2019
Advanced Neural Network ApplicationsComputer Science33 references34 citations
TL;DR

EmbedMask combines proposal embeddings and pixel embeddings in a one-stage framework to perform high-resolution instance segmentation without RoI pooling, achieving competitive results with Mask R-CNN while being faster.

ABSTRACT

Current instance segmentation methods can be categorized into segmentation-based methods that segment first then do clustering, and proposal-based methods that detect first then predict masks for each instance proposal using repooling. In this work, we propose a one-stage method, named EmbedMask, that unifies both methods by taking advantages of them. Like proposal-based methods, EmbedMask builds on top of detection models making it strong in detection capability. Meanwhile, EmbedMask applies extra embedding modules to generate embeddings for pixels and proposals, where pixel embeddings are guided by proposal embeddings if they belong to the same instance. Through this embedding coupling process, pixels are assigned to the mask of the proposal if their embeddings are similar. The pixel-level clustering enables EmbedMask to generate high-resolution masks without missing details from repooling, and the existence of proposal embedding simplifies and strengthens the clustering procedure to achieve high speed with higher performance than segmentation-based methods. Without any bells and whistles, EmbedMask achieves comparable performance as Mask R-CNN, which is the representative two-stage method, and can produce more detailed masks at a higher speed. Code is available at github.com/yinghdb/EmbedMask.

Motivation & Objective

  • Bridge the gap between one-stage and two-stage instance segmentation by leveraging both detection strength and pixel-level embedding for clustering.
  • Introduce pixel embeddings and proposal embeddings to enable embedding-based clustering without RoI pooling.
  • Learn per-instance margins (Sigma) to adapt clustering for multi-scale objects.
  • Train end-to-end with a multi-task loss that includes mask-related supervision.
  • Demonstrate that a one-stage approach can achieve competitive COCO performance with improved mask detail and speed.

Proposed method

  • Predominantly builds on FCOS as a one-stage detection backbone.
  • Adds a Pixel Head to predict per-pixel embeddings (p) from the FPN largest feature map.
  • Adds a Proposal Head to predict per-proposal embeddings (q) and a proposal margin (sigma).
  • Defines embedding coupling where pixels are assigned to a proposal's mask if their pixel embedding is close to the corresponding proposal embedding, using a learnable Gaussian-like mapping phi to obtain mask probabilities.
  • Introduces learnable per-instance margins Sigma_k via a Gaussian kernel to adapt segmentation margins to multi-scale objects.
  • Defines a smooth loss that aligns Q_k and Sigma_k with the averaged positive samples during training to ensure consistency between training and inference.
  • Optimizes a multi-task loss L = L_cls + L_center + L_box + lambda1 L_mask + lambda2 L_smooth, with L_mask guiding pixel-proposal embedding alignment and mask probability via Lovasz hinge loss.

Experimental results

Research questions

  • RQ1Can a single-stage instance segmentation framework achieve competitive performance to two-stage models like Mask R-CNN on COCO?
  • RQ2Do pixel embeddings plus proposal embeddings with embedding coupling provide higher-fidelity masks while maintaining high speed?
  • RQ3Do learnable per-instance margins improve clustering for multi-scale object masks compared to fixed margins?
  • RQ4Is it beneficial to predict separate embeddings for pixels and proposals and use their similarity to guide pixel-to-instance assignment?
  • RQ5Does avoiding RoI pooling while maintaining detailed masks yield speed advantages without sacrificing accuracy?

Key findings

  • EmbedMask achieves competitive COCO results versus Mask R-CNN under the same training settings (e.g., comparable mask AP with small gaps).
  • The single-shot approach produces higher-detail masks by avoiding RoI pooling and predicting masks directly from pixel embeddings at high resolution.
  • Learnable per-instance margins (Sigma) improve masking performance and adapt to multi-scale objects, outperforming fixed-margin configurations.
  • Embedding coupling (pixel embedding p and proposal embedding Q) with a Gaussian-based mask probability phi enhances pixel-to-instance assignment and mask quality.
  • The method shows faster inference than Mask R-CNN while delivering comparable or better AP on several configurations (e.g., 13.7–16.7 fps vs 8.7–8.6 fps with ResNet-101/50 backbones on COCO).
  • EmbedMask-600 trades some accuracy for speed, achieving faster inference with a smaller input size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.