Sparse Instance Activation for Real-Time Instance Segmentation

Tianheng Cheng, Xinggang Wang, Shaoyu Chen, Wenqiang Zhang, Qian Zhang, Chang Huang, Zhaoxiang Zhang, Wenyu Liu

Abstract

Instance segmentation is a critical yet computationally demanding task in computer vision. Traditional approaches often rely on dense anchor-based detection or region-based proposals, which necessitate complex post-processing like Non-Maximum Suppression (NMS). This paper presents SparseInst, a conceptually novel, fully convolutional framework that achieves high-performance, real-time instance segmentation. By utilizing a sparse set of Instance Activation Maps (IAM) to highlight and aggregate object features, SparseInst enables a simple "one-to-one" prediction style. This architecture eliminates the NMS bottleneck, reaching 40 FPS and 37.9 AP on the COCO benchmark, significantly outperforming previous real-time methods in both speed and accuracy.

Introduction

Instance segmentation—the simultaneous task of detecting and masking every individual object in an image—has historically been bifurcated into two main strategies: region-based and center-based methods. Region-based methods, such as Mask R-CNN, detect bounding boxes first and then segment within them, a process that is often slow and struggles with overlapping objects. Center-based methods predict object centers or anchors across the image, resulting in thousands of redundant predictions that must be filtered via NMS, adding latency and complicating optimization for edge devices.

The authors of SparseInst identify a "representation gap" in these approaches: bounding boxes and center points are often poor proxies for the actual, complex shapes of objects. SparseInst was developed to bridge this gap by segmenting objects directly from image features in a sparse, efficient, and end-to-end manner, removing the "detect-then-segment" overhead.

Methodology

Instance Activation Maps (IAM)

The core innovation of SparseInst is the Instance Activation Map (IAM). Rather than searching for a single center point or fitting a box, the model learns a set of sparse maps that highlight the most informative regions of an object—such as the head and torso of a person. These maps act as a weighting mechanism to aggregate global features into a compact "instance feature."

Architecture Overview

The SparseInst architecture consists of three primary components:

  1. Backbone & Encoder: A standard backbone (e.g., ResNet) extracts features, which are then processed by an Instance Context Encoder. This encoder utilizes a Pyramid Pooling Module (PPM) to fuse multi-scale information into a single-level feature map, allowing the model to capture both small and large objects without the complexity of multi-level Feature Pyramid Network (FPN) heads.
  2. IAM-based Decoder: This decoder features two branches. The Instance Branch predicts the IAMs to aggregate features and generate unique mask kernels and class predictions. The Mask Branch generates high-resolution mask features for the entire image.
  3. Dynamic Segmentation: The final mask for each object is produced by a simple convolution between the predicted mask kernel and the mask features, allowing for flexible, shape-aware segmentation.

Bipartite Matching and NMS-Free Inference

To achieve a truly end-to-end pipeline, SparseInst adopts a bipartite matching strategy during training, similar to the DETR transformer model. The model's sparse predictions are matched one-to-one with ground-truth objects using the Hungarian algorithm. This forces the model to produce exactly one high-confidence prediction per object, making post-processing as simple as basic thresholding and eliminating the need for NMS.

Key Insights

  • Highlight-to-Segment: By aggregating features based on learned importance rather than cropping regions (RoI-Align), SparseInst captures global context that box-based methods often miss.
  • Efficiency through Sparsity: The model demonstrates that a fixed, small set of instances (e.g., 100) is sufficient to represent the objects in an image, keeping the model lean and fast.
  • IoU-aware Objectness: To improve mask quality, the authors introduced an "objectness" score that predicts the Intersection over Union (IoU) between predicted and ground-truth masks, which significantly boosts final accuracy.
  • Group-IAM: By employing multiple activation maps per object, the model can focus on different parts of an object simultaneously, leading to finer segmentation boundaries.

Experimental Results

SparseInst was evaluated on the MS-COCO dataset, the gold standard for instance segmentation. The results establish a new state-of-the-art for the speed-accuracy trade-off:

  • Performance: The model achieved 37.9 AP on the COCO test-dev split.
  • Speed: SparseInst runs at 40 FPS on an NVIDIA 2080Ti. A lighter variant, SparseInst-448, reaches 58.5 FPS.
  • Comparative Advantage: It significantly outperforms previous real-time leaders like YOLACT (29.8 AP) and SOLO (34.2 AP) while maintaining or exceeding their frame rates.

Conclusion and Future Work

SparseInst represents a significant shift toward simpler, faster instance segmentation by leveraging sparse instance activation. While the model excels in speed and efficiency, TIDE error analysis suggests that it still faces challenges regarding classification accuracy and "duplicate" errors compared to more complex, non-real-time models. Additionally, using a single-level feature map can be challenging for extremely small objects. Future research may extend the IAM concept to panoptic segmentation or video object segmentation, where sparse, instance-aware representations are highly advantageous.

Summary updated

BibTeX
@inproceedings{cheng2022sparse,
  author = {Tianheng Cheng and Xinggang Wang and Shaoyu Chen and Wenqiang Zhang and Qian Zhang and Chang Huang and Zhaoxiang Zhang and Wenyu Liu},
  title = {{Sparse Instance Activation for Real-Time Instance Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure