Abstract
Weakly Supervised Instance Segmentation (WSIS) using only bounding box annotations significantly reduces labeling costs but faces challenges in accurately delineating object boundaries. This paper proposes a novel framework that leverages "pseudo-depth" maps, generated by off-the-shelf depth predictors, to guide the segmentation process. By incorporating depth-guided mask prediction and pairwise depth consistency losses, the model effectively distinguishes foreground instances from background noise and overlapping objects. Experimental results on COCO and Cityscapes demonstrate state-of-the-art performance, narrowing the gap between box-supervised and fully supervised methods.
Introduction
Instance segmentation is a fundamental computer vision task that requires pixel-level classification for every object instance. While fully supervised models achieve impressive accuracy, they rely on expensive and time-consuming mask annotations. Box-supervised instance segmentation offers a more scalable alternative by using only bounding boxes. However, bounding boxes are inherently noisy, often containing background pixels or parts of adjacent objects.
Previous attempts to bridge this gap using color or low-level features often fail in complex scenes with similar-looking foregrounds and backgrounds. This work introduces pseudo-depth as a robust geometric prior to improve boundary localization and instance separation. The core insight is that objects usually have distinct, continuous depth profiles compared to their surroundings, which can be exploited to refine mask boundaries.
Methodology
The proposed approach integrates depth information into the training pipeline without requiring depth data at inference time. The framework consists of several key components designed to leverage depth as a shape prior.
Pseudo-Depth Generation
During training, the framework utilizes a pre-trained monocular depth estimation model (such as DPT) to generate "pseudo-depth" maps for the training images. These maps provide a coarse 3D representation of the scene, highlighting object boundaries that might be visually camouflaged in the RGB space.
Depth-Guided Mask Prediction (DG-MaskHead)
The authors modify the standard segmentation head (based on CondInst) to predict both an instance mask and a local depth map simultaneously. This DG-MaskHead encourages the network to learn features that are sensitive to object geometry. The predicted depth acts as a feature that helps the mask prediction "focus" on the object's physical structure rather than just its appearance.
Pairwise Depth Consistency Loss
To enforce spatial consistency, a Pairwise Depth Consistency Loss is applied. This loss function enforces a simple rule: if two adjacent pixels have very similar pseudo-depth values, they should likely have the same mask label (both foreground or both background). This helps smooth the masks and prevents them from "leaking" into the background or other objects.
Depth-aware Self-Distillation
The framework employs a "Teacher-Student" framework where a teacher model generates high-quality pseudo-masks. To ensure the student learns from the best possible masks, a Depth-aware Hungarian Algorithm is used to match predicted masks to ground-truth boxes. This matching process considers not just spatial overlap (IoU) but also how well the mask aligns with the depth features, ensuring that the pseudo-labels used for training are geometrically plausible.
Results
The method was evaluated on the COCO and Cityscapes benchmarks, showing significant improvements over existing box-supervised techniques.
Performance on Cityscapes
On the Cityscapes street-view dataset, the model achieved 24.4% mask AP with a ResNet-50 backbone, representing a 2.7% improvement over the previous state-of-the-art method, BoxTeacher. When pre-trained on COCO, the performance further increased to 28.9% AP.
Performance on COCO
On the COCO dataset, the model reached 36.0% mask AP with a ResNet-101 backbone. Utilizing a stronger Swin-Base backbone, it achieved 41.0% mask AP, significantly narrowing the gap between weakly supervised and fully supervised models (which achieve 41.7% AP).
Qualitative analysis confirms that the model is much better at handling occlusions and suppressing background clutter compared to methods like BoxInst. The use of depth allows the model to correctly identify boundaries even when the object and background share similar colors.
Conclusion
By treating depth as a shape prior, this research demonstrates that even coarse geometric information can significantly boost the performance of weakly supervised segmentation models. The proposed depth-guided framework provides a robust solution for high-quality instance segmentation with minimal annotation effort. While the method depends on the quality of the initial pseudo-depth maps, its robustness to coarse depth suggests it is a practical approach for large-scale visual recognition systems.
Summary updated