Abstract
We present a high-performance method that can achieve mask-level instance segmentation with only bounding-box annotations for training. While this setting has been studied in the literature, here we show significantly stronger performance with a simple design (e.g., dramatically improving previous best reported mask AP of 21.1% to 31.6% on the COCO dataset). Our core idea is to redesign the loss of learning masks in instance segmentation, with no modification to the segmentation network itself. The new loss functions can supervise the mask training without relying on mask annotations. This is made possible with two loss terms, namely, 1) a surrogate term that minimizes the discrepancy between the projections of the ground-truth box and the predicted mask; 2) a pairwise loss that can exploit the prior that proximal pixels with similar colors are very likely to have the same category label. Experiments demonstrate that the redesigned mask loss can yield surprisingly high-quality instance masks with only box annotations. For example, without using any mask annotations, with a ResNet-101 backbone and 3x training schedule, we achieve 33.2% mask AP on COCO test-dev split (vs. 39.1% of the fully supervised counterpart). Our excellent experiment results on COCO and Pascal VOC indicate that our method dramatically narrows the performance gap between weakly and fully supervised instance segmentation.
Introduction
Instance segmentation—the task of identifying every individual object in an image and outlining its exact pixels—is a cornerstone of computer vision. However, it suffers from a massive "annotation bottleneck." While drawing a bounding box takes a few seconds, tracing a precise mask can take nearly a minute per object. This makes scaling datasets to hundreds of categories or millions of images prohibitively expensive.
Previous attempts to train segmenters using only boxes (weakly supervised learning) often relied on complex, multi-stage pipelines or external "proposal" algorithms like GrabCut, which are slow and difficult to integrate into modern deep learning frameworks. BoxInst aims to solve this by making box-supervised training simple, fast, and high-performing.
Methodology
The brilliance of BoxInst lies in its simplicity: it doesn't change the neural network architecture at all. Instead, it replaces the standard mask loss with two clever "surrogate" losses that work without ground-truth masks:
- Projection Loss: This term enforces a basic geometric truth: the horizontal and vertical "shadows" (projections) of a predicted mask must match the edges of the ground-truth bounding box. If the mask is too small or too large, the projection won't match the box, and the model is penalized.
- Pairwise Affinity Loss: This leverages a classic computer vision prior: proximal pixels with similar colors are very likely to belong to the same object. The authors define a color similarity threshold; if two nearby pixels look the same, the loss encourages the model to give them the same label (both foreground or both background). This effectively uses the image's own texture to "teach" the model where object boundaries are.
The method is built on top of CondInst, a fully convolutional instance segmentation framework, meaning it inherits high inference speeds (17 FPS on a V100 GPU).
Key Results and Insights
The authors evaluated BoxInst on two standard computer vision benchmarks: COCO and Pascal VOC 2012.
- Performance Leap: BoxInst improved the state-of-the-art for box-supervised COCO mask AP from 21.1% to 31.6%, a massive leap that makes weakly supervised methods viable for real-world applications. On COCO
test-dev, BoxInst achieved 33.2% mask AP using a ResNet-101 backbone. For context, the fully supervised version of the same model achieves 39.1%. - Efficiency: Because the architecture is unchanged, BoxInst is just as fast as its fully supervised counterpart, running at 17 FPS.
- Semi-Supervised Learning: The authors showed that if you have masks for some categories but only boxes for others, BoxInst can use the "mask knowledge" from the first group to significantly improve segmentation on the "box-only" group.
Conclusion
BoxInst proves that you don't need a more complex model to handle weak supervision; you just need a more thoughtful way to supervise the existing one. By using differentiable projections and local color similarity as natural supervisors, the method dramatically narrows the performance gap between weakly and fully supervised instance segmentation. Future work may address rare failure cases where background objects with similar colors to the foreground are incorrectly merged.
Summary updated