Abstract
Weakly-supervised semantic segmentation (WSSS) aims to train segmentation models using only image-level labels, significantly reducing annotation costs. However, standard Class Activation Maps (CAMs) used for initial localization often focus only on the most discriminative object parts. We propose Mixup-CAM, a framework that utilizes mixup data augmentation and uncertainty regularization to generate more complete and uniform object masks. By combining entropy regularization and a novel spatial concentration loss, our method prevents the network from being "lazy," forcing it to discover broader object regions. Mixup-CAM achieves state-of-the-art results on the PASCAL VOC 2012 benchmark, demonstrating the power of regularized uncertainty in weakly-supervised learning.
Introduction: The "Lazy" Classifier Problem
Training high-fidelity semantic segmentation models typically requires pixel-level annotations, which are labor-intensive and expensive. WSSS offers a cheaper alternative by using image-level tags (e.g., "cat," "dog"). The standard approach involves extracting CAMs from a classification network to serve as pseudo-labels.
However, classification networks are inherently "lazy." To minimize classification loss, they only need to identify the most discriminative feature of an object—such as a cat's ears or a dog's snout—to make a correct prediction. Consequently, the resulting CAMs are often sparse and incomplete, failing to cover the entire object body. This "part-based" localization creates a bottleneck for downstream segmentation performance.
Methods: Mixup and Uncertainty Regularization
To address the incompleteness of CAMs, we introduce Mixup-CAM, an end-to-end framework designed to broaden the network's attention while maintaining spatial cohesion.
The framework consists of three core components:
- Mixup Data Augmentation: The network is trained on linear combinations of image pairs and their corresponding labels. This process calibrates predictive uncertainty and discourages the model from over-relying on small, high-confidence patches, effectively forcing it to explore more of the image to maintain accuracy.
- Entropy Regularization ($L_{ent}$): While mixup increases coverage, it can lead to over-uncertainty. We minimize the class-wise entropy of predictions to ensure the model remains confident about the presence of specific classes within the mixed input.
- Concentration Loss ($L_{con}$): To prevent the expanded attention maps from "bleeding" into the background or becoming fragmented, we apply a spatial penalty. This loss encourages activated pixels to cluster around the response center, ensuring the generated masks are contiguous and focused on the object.
Following the generation of these improved CAMs, we apply standard refinement techniques, including AffinityNet for random-walk expansion and Conditional Random Fields (CRF), to produce final pseudo-ground-truth masks for training a DeepLab-v2 segmentation model.
Key Results and Insights
Our experiments on the PASCAL VOC 2012 dataset demonstrate that better initial "seeds" lead to compounding improvements in final segmentation.
- Quantitative Gains: The baseline CAM achieved an Intersection-over-Union (IoU) of 48.0%. Integrating mixup improved this to 49.3%, and the full Mixup-CAM (with both regularization terms) reached 50.1%.
- Refinement Impact: After random-walk refinement, the gap widened: baseline masks reached 58.1% IoU, while Mixup-CAM masks achieved 61.9%, a significant +3.8% improvement.
- State-of-the-Art Performance: On the PASCAL VOC 2012 validation set, our final model achieved a mean IoU (mIoU) of 65.6%, outperforming recent competitive methods like FickleNet and SSDD.
Conclusion
Mixup-CAM demonstrates that uncertainty is a powerful tool for weakly-supervised learning when properly regularized. By forcing the network to look beyond the most discriminative parts, we generate higher-quality pseudo-labels that directly translate to better segmentation. While current results are promising, future work could explore end-to-end joint training of the entire segmentation pipeline, as well as more robust spatial priors for images containing multiple dispersed instances of the same class.
Summary updated