Introduction
For years, the "detect-then-segment" paradigm—pioneered by Mask R-CNN—has dominated instance segmentation. This approach relies on Regions of Interest (ROIs): the model predicts a bounding box, crops the features inside that box, resizes them to a fixed small square (usually $28 \times 28$), and then runs a mask head. However, this ROI-based approach suffers from three major drawbacks: axis-aligned boxes often include background noise, fixed weights make it difficult to distinguish between similar-looking instances in the same area, and resizing features destroys fine-grained details, leading to blurry boundaries on large objects.
Methodology
CondInst (Conditional Convolutions for Instance Segmentation) eliminates the need for the "crop-and-resize" operations (like ROIAlign) used in traditional models. Instead, it treats instance segmentation as a fully convolutional task by dynamically generating a tiny, custom neural network for every object in an image.
Built on top of the FCOS anchor-free detector, CondInst adds a "mask branch" providing a high-resolution feature map ($F_{mask}$) for the entire image. For every detected object, a controller sub-network predicts 169 parameters ($\theta$). These parameters serve as the weights for a compact mask head consisting of three $1 \times 1$ convolutional layers. To help these dynamic filters focus on the correct spatial location, the model appends relative coordinates (distance from the object center) to the feature maps.
Key Insights
- Instances as Functions: The core shift is representing an object instance as a set of parameters rather than a box. Each object "owns" a specific function that knows how to isolate it within the global feature map.
- Extreme Compactness: Because a dynamic mask head only needs to solve for one specific object at a time, it can be incredibly small. CondInst’s mask head uses only 8 channels and 169 parameters, compared to the 2.3 million parameters in Mask R-CNN’s mask head.
- The Power of Coordinates: Providing relative coordinates acts as a strong location cue, allowing the dynamic filters to distinguish the target object from identical-looking neighbors.
Results and Evaluation
The researchers evaluated CondInst primarily on the MS-COCO dataset. On the COCO test-dev split, CondInst achieved 37.8% Mask AP (using a ResNet-50 backbone), outperforming the well-tuned Mask R-CNN baseline (37.5%).
Beyond accuracy, CondInst is significantly faster, running in 49ms per image on a V100 GPU compared to 65ms for Mask R-CNN. Qualitative results demonstrate that by avoiding the resolution bottleneck of ROIAlign, CondInst produces much sharper edges and handles overlapping objects of the same class more effectively than previous fully convolutional methods.
Conclusion
CondInst demonstrates that instance segmentation can be performed efficiently without the complexity of ROI cropping. While the system still relies on box-based Non-Maximum Suppression (NMS) to filter duplicate detections, the underlying "conditional" framework offers a flexible architecture for high-resolution mask generation. Future work may extend this approach to panoptic segmentation and object tracking.
Summary updated