Introduction
Instance segmentation is a fundamental computer vision task that requires identifying and delineating every individual object within an image. Traditionally, training these models necessitates "full supervision," involving labor-intensive, pixel-level manual annotations. Weakly Supervised Instance Segmentation (WSIS) aims to mitigate these costs by utilizing only image-level labels (e.g., "car," "person"). However, WSIS often struggles with noisy Class Activation Maps (CAMs) and imbalanced "long-tail" data distributions. This paper introduces EM-Paste, a framework that leverages an iterative Expectation-Maximization (EM) strategy and DALL-E-generated synthetic backgrounds to produce high-quality pseudo-labeled datasets for instance segmentation.
Methodology
The EM-Paste pipeline consists of three primary stages designed to transform weak image-level labels into precise instance masks.
EM-guided Cut
To extract clean object masks from image-level labels, the authors employ an EM-guided approach. The process begins with class-agnostic region proposals. In the M-step, the model estimates the feature distribution for a specific class in a latent space. In the E-step, the best-matching region proposals are selected based on this distribution. This iterative refinement helps bridge the gap between generic shapes and class-specific masks, significantly reducing the noise typically associated with CAMs.
DALL-E Background Augmentation
To enhance model robustness and prevent overfitting to specific scenes, EM-Paste utilizes DALL-E to generate context-aware backgrounds. A key innovation is the "distractor" trick: original image captions are modified by replacing the target object with a semantically similar but distinct "distractor" word (e.g., replacing "person" with "gorilla"). This ensures that the generated background provides a realistic context without containing unlabelled instances of the target class, which would otherwise introduce label noise during training.
Compositional Paste
The refined foreground masks are then integrated into both original and synthetic backgrounds using a "Space Maximize Paste" algorithm. This algorithm identifies the largest available empty regions in an image to place new objects, resulting in a diverse and dense training set. This method also allows for "balanced sampling," where rare object classes are pasted more frequently to address long-tail distribution issues.
Experiments and Results
The researchers evaluated EM-Paste on the PASCAL VOC 2012 and MS COCO benchmarks, as well as a custom "Long-tail PASCAL VOC" dataset.
- PASCAL VOC 2012: EM-Paste achieved 58.4 mAP@50, a significant +7.4 point improvement over previous state-of-the-art baselines.
- MS COCO: On this more complex dataset, the method reached 30.8 mAP@50, outperforming existing methods by +2.8 points.
- Long-tail Performance: In imbalanced scenarios, EM-Paste nearly doubled performance, increasing mean average precision from 20.26 to 40.28.
- Comparison with Bounding Box Supervision: Notably, EM-Paste outperformed several older methods that utilized more granular bounding box supervision, demonstrating the effectiveness of the pseudo-labeling strategy.
Conclusion
EM-Paste demonstrates that high-quality instance segmentation models can be trained effectively using only image-level labels. By combining iterative mask refinement via EM with sophisticated background augmentation using generative models, the framework overcomes the traditional limitations of WSIS. Future work may involve automating the distractor word selection using Large Language Models (LLMs) and exploring more advanced blending techniques to further reduce the domain gap between real and synthetic data.
Summary updated