BlendMask: Top-Down Meets Bottom-Up for Instance Segmentation

Hao Chen, Kunyang Sun, Zhi Tian, Chunhua Shen, Yongming Huang, Youliang Yan

Abstract: Instance segmentation is one of the fundamental vision tasks. Recently, fully convolutional instance segmentation methods have drawn much attention as they are often simpler and more efficient than two-stage approaches like Mask R-CNN. To date, almost all such approaches fall behind the two-stage Mask R-CNN method in mask precision when models have similar computation complexity, leaving great room for improvement. In this work, we achieve improved mask prediction by effectively combining instance-level information with semantic information with lower-level fine-granularity. Our main contribution is a blender module which draws inspiration from both top-down and bottom-up instance segmentation approaches. The proposed BlendMask can effectively predict dense per-pixel position-sensitive instance features with very few channels, and learn attention maps for each instance with merely one convolution layer, thus being fast in inference. BlendMask can be easily incorporate with the state-of-the-art one-stage detection frameworks and outperforms Mask R-CNN under the same training schedule while being faster. A light-weight version of BlendMask achieves 36.0 mAP at 27 FPS evaluated on a single 1080Ti. Because of its simplicity and efficacy, we hope that our BlendMask could serve as a simple yet strong baseline for a wide range of instance-wise prediction tasks.

Introduction

Instance segmentation—the task of detecting objects and outlining their exact pixels—has traditionally been dominated by two-stage methods like Mask R-CNN. These "top-down" methods detect a bounding box first and then predict a mask inside it. However, they often struggle with mask precision because they rely on fixed, low-resolution features (typically 28x28), which lose fine details like sharp edges.

On the other hand, "bottom-up" methods try to group pixels into objects based on local embeddings. While they capture detail well, they often struggle to distinguish between overlapping objects of the same class and require complex post-processing. Earlier hybrid attempts like YOLACT were fast but lacked accuracy because they used overly simplified ways to combine features. BlendMask seeks to find the "Goldilocks" zone: a method that is as simple and fast as one-stage detectors but as precise as (or better than) two-stage segmenters.

Methods and Architecture

BlendMask is built on top of FCOS, a popular anchor-free object detector. The architecture consists of three main parts:

  1. Bottom Module: This processes the backbone features to predict a set of "bases" (score maps) for the entire image. These bases represent fundamental geometric or semantic shapes (e.g., "top-left parts," "edges," or "object interiors").
  2. Top Layer: Attached to the object detection "towers," this layer predicts a 3D tensor of instance attentions for each detected object. Unlike previous methods that used a single scalar per base, BlendMask predicts a spatial map (e.g., 7x7 or 14x14) for each base.
  3. The Blender (Core Innovation): This module performs the actual fusion. It takes the bounding box predicted by the detector, crops the corresponding area from the global "bases" using RoIAlign, and then performs an element-wise product with the "attentions."
The BlendMask architecture overview

The Blender Module

The Blender is the heart of the system. By using spatial attention maps instead of single scalars, the model can selectively "blend" different bases for different parts of an object, allowing for much more complex and accurate mask shapes. This allows the network to split the workload: the top-down part handles instance-level logic (pose, overall shape), while the bottom-up part handles pixel-level details (edges, textures).

The blending process combining bases and attentions

Key Results

The authors evaluated BlendMask on the MS COCO 2017 dataset, using train2017 for training and val2017 for validation.

  • Accuracy: With a ResNet-50 backbone, BlendMask achieves 37.0% mAP, outperforming Mask R-CNN (34.6%) and the one-stage TensorMask (35.5%).
  • Speed: BlendMask is faster than Mask R-CNN. A lightweight version, BlendMask-RT, achieves 34.2% mAP at 25+ FPS on a single 1080Ti, making it viable for real-time applications.
  • Efficiency: It reaches state-of-the-art results with only half the training iterations required by some competitors and significantly lower inference time.
  • Qualitative Quality: Visual results show that BlendMask produces significantly cleaner edges and better handles thin structures compared to its predecessors.

Discussion and Future Work

BlendMask demonstrates that spatial awareness in the blending process is critical for matching the performance of two-stage detectors. Because the bottom module is decoupled from the detection head, BlendMask can produce masks at much higher resolutions than Mask R-CNN without a massive increase in computational cost.

Future work may explore finding the optimal balance between attention resolution and computational overhead for extremely large objects. Additionally, the authors suggest that the Blender module's logic could be extended beyond masks to other instance-wise tasks, such as keypoint detection or object pose estimation.

Summary updated

BibTeX
@inproceedings{chen2020blendmask,
  author = {Hao Chen and Kunyang Sun and Zhi Tian and Chunhua Shen and Yongming Huang and Youliang Yan},
  title = {{BlendMask: Top-Down Meets Bottom-Up for Instance Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=DCduetI0XKo},
}
Figure