Abstract
Semantic segmentation typically requires dense, per-pixel annotations, which are prohibitively expensive to produce at scale. Box2Seg is a novel framework designed to achieve high-quality segmentation using only bounding box annotations. By integrating a per-class attention mechanism to filter background noise within boxes and discriminative pixel embeddings to ensure feature consistency, Box2Seg significantly reduces the performance gap between weakly and fully supervised models. On the PASCAL VOC 2012 benchmark, the framework achieves a state-of-the-art mean Intersection-over-Union (mIoU) of 76.4%.
Introduction
The primary bottleneck in scaling semantic segmentation is the "data tax" associated with manual labeling. While drawing a bounding box takes approximately 7 seconds, per-pixel labeling can take up to 10 minutes per image. However, bounding boxes are inherently "noisy" labels; they contain both the target object and background pixels. Standard training approaches that treat the entire box as foreground often result in poor boundary localization. Box2Seg addresses this by learning to distinguish between foreground and background within the provided boxes during training.
Methods
The Box2Seg architecture utilizes a three-branch Convolutional Neural Network (CNN) to produce distinct outputs for each input image $I$:
- Segmentation Map ($y$): Predicts per-pixel class probabilities.
- Attention Map ($\\alpha$): A per-class spatial map identifying pixels within a box likely to be the actual object.
- Pixel Embeddings ($\\beta$): High-dimensional vectors used to calculate pixel affinity and group similar features.
Attention Weighted Loss (AWL)
The core innovation is the Attention Weighted Loss. Unlike standard cross-entropy, AWL uses the predicted attention map to weight the loss for pixels inside the bounding box. If the attention map identifies a pixel as background, the penalty for the segmentation branch predicting "background" is reduced. To prevent the attention map from collapsing, it is regularized using a "fill-rate" constraint derived from the classical GrabCut algorithm, ensuring the predicted object area remains realistic.
Discriminative Feature Learning
To maintain consistency across an object (e.g., ensuring a cat's head and tail are grouped together), the model employs an Affinity Loss. This loss trains the embedding branch ($\\beta$) to produce similar vectors for pixels of the same class while pushing apart embeddings of different classes. This global context helps refine boundaries where local textures might be ambiguous.
Key Insights and Results
A critical observation by the authors is that bounding box noise is "one-sided": pixels outside all boxes are guaranteed background, while pixels inside are uncertain. The AWL is specifically tailored for this asymmetry. Furthermore, the authors discovered that AWL improves performance even in fully supervised settings by helping the model ignore labeling errors in "perfect" datasets.
Box2Seg achieved a state-of-the-art mIoU of 76.4% on the PASCAL VOC 2012 validation set, outperforming previous weakly supervised methods by 2.1%. In semi-supervised experiments, pre-training with boxes followed by fine-tuning with only 10% pixel-level labels yielded an impressive 83.1% mIoU, demonstrating the framework's efficiency in data-scarce environments.
Conclusion and Future Work
Box2Seg demonstrates that bounding boxes are a highly effective form of weak supervision when combined with attention mechanisms and discriminative embeddings. While the model occasionally struggles with overlapping boxes or "label bleeding" in similar textures, it sets a new standard for cost-effective segmentation. Future work may involve integrating explicit edge detection or exploring even sparser supervision, such as image-level tags.
Summary updated