NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SOLO: A Simple Framework for Instance Segmentation

Xinlong Wang, Rufeng Zhang, Chunhua Shen, Tao Kong, Lei Li

TL;DR

SOLO (Segmenting Objects by Locations) is a simple, box-free, one-stage framework for instance segmentation that treats the task as a direct classification problem. By assigning "instance categories" based on an object's center location and size, SOLO achieves state-of-the-art performance while being significantly faster and simpler than traditional "detect-then-segment" approaches like Mask R-CNN.

What Problem Does This Paper Address?

Instance segmentation—identifying individual objects and their pixel-level boundaries—is traditionally handled in two ways:

  1. Top-down (Detect-then-Segment): First detect a bounding box, then segment the pixels inside (e.g., Mask R-CNN). This is indirect and relies heavily on accurate box detection.
  2. Bottom-up: Predict pixel embeddings or affinity relations and then cluster them into instances. This requires complex post-processing grouping.

The authors of SOLO ask a fundamental question: What distinguishes object instances in an image? Looking at the MS COCO dataset, they found that 98.3% of object pairs have center distances greater than 30 pixels. For the remaining 1.7%, most have significantly different sizes. SOLO leverages this insight to distinguish instances directly by their location and size, eliminating the need for bounding boxes or complex grouping.

Methods

The core idea of SOLO is to divide an image into an $S \times S$ grid.

  • Category Branch: Each grid cell predicts the semantic category (e.g., "dog," "car") of the object whose center falls into that cell.
  • Mask Branch: Simultaneously, each cell is responsible for predicting a full-image instance mask for the object centered there.

The paper introduces three main iterations:

  • Vanilla SOLO: The mask branch outputs $S^2$ channels, where each channel corresponds to a specific grid cell's potential instance mask.
  • Decoupled SOLO: To reduce the redundancy of $S^2$ channels, the authors decouple the mask into $X$ and $Y$ components. An instance mask is generated by the element-wise multiplication of a horizontal and a vertical category map.
  • Dynamic SOLO (SOLOv2): This version separates the mask branch into a mask kernel branch (predicting convolution weights dynamically based on location) and a mask feature branch (predicting high-resolution features). The final mask is generated by convolving the features with the predicted kernels.

Additionally, the authors introduce Matrix NMS, a parallelized version of Non-Maximum Suppression that is significantly faster than traditional sequential NMS because it can be implemented as a single matrix operation.

Datasets

The framework was evaluated on three major benchmarks:

  • MS COCO: The primary dataset for instance segmentation and object detection.
  • LVIS: A dataset focused on long-tail object segmentation with over 1,000 categories.
  • Cityscapes: Focused on urban street scenes.
  • SOFI (Soft Instance Segmentation): A new benchmark introduced in the appendix for instance-level image matting, consisting of high-quality alpha mattes.

Key Insights and Ideas

  • Location as a Category: The most "aha" moment is treating the $(i, j)$ position in a grid as a category label itself. This allows the network to use standard classification losses for a task that usually requires complex geometric reasoning.
  • CoordConv is Crucial: Because standard convolutions are spatially invariant, the authors use "CoordConv" (concatenating pixel coordinates to the input features) to give the model the spatial awareness needed to distinguish instances by location.
  • Matrix NMS: Moving from a recursive, sequential NMS to a parallel matrix operation provides a massive speedup (9x faster) with no loss in accuracy, making it a "drop-in" improvement for many vision pipelines.
  • Unified Representation: By predicting masks directly, the model naturally handles objects of different scales through a Feature Pyramid Network (FPN) without needing to "anchor" them to specific box sizes.

Key Results

  • Accuracy: SOLOv2 with a ResNet-101 backbone achieves 39.7% mask AP on COCO, outperforming Mask R-CNN and other one-stage methods.
  • Speed: A light-weight version of SOLO runs at 31.3 FPS on a V100 GPU, making it suitable for real-time applications.
  • Efficiency: Matrix NMS processes 500 masks in less than 1ms, effectively making the post-processing overhead negligible.
  • Versatility: The authors demonstrate that SOLO can be easily extended to Panoptic Segmentation and Instance-level Image Matting, where it achieves a 30.9% relative improvement over baselines on their new SOFI benchmark.

Limitations and Future Work

While SOLO is highly effective, the authors note that:

  • Grid Resolution: The performance is somewhat dependent on the grid number $S$. While $S=20$ works well for many cases, very crowded scenes might require denser grids.
  • Boundary Details: While SOLOv2 improves mask quality, predicting extremely fine details for very large objects remains a challenge compared to specialized matting tools.
  • Future Directions: The authors suggest that the "segmenting by location" paradigm could be a cornerstone for many other instance-level recognition tasks beyond just segmentation and matting.

Summary updated

BibTeX
@article{wang2022solo,
  author = {Xinlong Wang and Rufeng Zhang and Chunhua Shen and Tao Kong and Lei Li},
  title = {{SOLO: A Simple Framework for Instance Segmentation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2021.3111116},
}
Figure