Abstract
In this paper, we introduce an anchor-box free and single shot instance segmentation method, which is conceptually simple, fully convolutional and can be used by easily embedding it into most off-the-shelf detection methods. Our method, termed PolarMask, formulates the instance segmentation problem as predicting contour of instance through instance center classification and dense distance regression in a polar coordinate. Moreover, we propose two effective approaches to deal with sampling high-quality center examples and optimization for dense distance regression, respectively, which can significantly improve the performance and simplify the training process. Without any bells and whistles, PolarMask achieves 32.9% in mask mAP with single-model and single-scale training/testing on the challenging COCO dataset. For the first time, we show that the complexity of instance segmentation, in terms of both design and computation complexity, can be the same as bounding box object detection and this much simpler and flexible instance segmentation framework can achieve competitive accuracy.
Introduction
Traditionally, instance segmentation—the task of identifying and outlining every individual object in an image—has been tackled through complex multi-stage pipelines. Methods like Mask R-CNN typically follow a "detect then segment" approach, first identifying a bounding box and then performing binary classification on every pixel within that box. While effective, these methods are computationally heavy and architecturally complex. Other approaches rely on pixel-wise embeddings to group pixels into instances, often requiring expensive post-processing.
PolarMask addresses this complexity gap by asking: why can't instance segmentation be as simple and "single-shot" as modern anchor-free object detectors? The primary challenge lies in representing arbitrary shapes in a way that a neural network can easily regress, similar to how it handles the four sides of a bounding box.
The PolarMask Framework
PolarMask introduces a conceptually simple framework built on top of FCOS (Fully Convolutional One-Stage object detector). It shifts the paradigm from pixel-wise classification to contour regression using polar coordinates.
Polar Representation
Instead of predicting a dense grid of pixels, PolarMask predicts an instance's center point and $n$ rays (typically 36) emitted from that center at uniform angular intervals. The lengths of these rays define the object's contour. This transformation simplifies the segmentation task into a dense distance regression problem.
Polar Centerness
To ensure high-quality mask predictions, the authors introduced a "Polar Centerness" branch. This branch down-weights predictions where the rays have highly varying lengths—a sign of a poorly chosen center. By prioritizing stable, high-quality centers during inference, the model achieves better contour consistency.
Polar IoU Loss
Standard regression losses like Smooth-$L_1$ treat each ray independently, ignoring the global geometry of the mask. PolarMask utilizes a specialized Polar IoU Loss that calculates the Intersection over Union of the entire polar-defined area. This allows the model to optimize the mask as a whole, leading to a significant improvement in accuracy.
Experimental Results
The researchers evaluated PolarMask on the COCO (Common Objects in Context) dataset, using the trainval35k set for training and reporting results on the minival and test-dev sets.
- Competitive Accuracy: PolarMask achieved 32.9% mask mAP on COCO with a single-scale ResNet-101 backbone.
- Efficiency: It outperformed other single-shot methods like YOLACT by 0.9 mAP while maintaining a simpler architecture.
- Speed: With a ResNet-101 backbone, it runs at 12.3 FPS, which is nearly 5x faster than the more complex TensorMask.
- Loss Impact: Switching from standard $L_1$ loss to the specialized Polar IoU Loss resulted in a relative accuracy improvement of roughly 15%, demonstrating the importance of geometry-aware optimization.
Discussion and Conclusion
The core insight of PolarMask is that instance segmentation does not inherently require more complexity than object detection. By using polar coordinates, the "mask" branch becomes structurally similar to a standard "bounding box" branch. This approach leverages the fact that a set of points on a contour is sufficient to recover a high-quality mask, and these points are naturally ordered in polar space, making them easier to predict than unordered Cartesian coordinates.
However, the current single-center polar representation has limitations. It struggles with "donut" shapes (objects with holes) or highly concave objects where a single ray might intersect the mask boundary multiple times. Future work may involve automatically finding optimal centers or increasing ray density for more complex boundaries. Despite these challenges, PolarMask serves as a strong, simple baseline for single-shot instance segmentation.
Summary updated