Abstract
Weakly supervised semantic segmentation has been a subject of increased interest due to the scarcity of fully annotated images. We introduce a new approach for solving weakly supervised semantic segmentation with deep Convolutional Neural Networks (CNNs). The method introduces a novel layer which applies simplex projection on the output of a neural network using area constraints of class objects. The proposed method is general and can be seamlessly integrated into any CNN architecture. Moreover, the projection layer allows strongly supervised models to be adapted to weakly supervised models effortlessly by substituting ground truth labels. Our experiments have shown that applying such an operation on the output of a CNN improves the accuracy of semantic segmentation in a weakly supervised setting with image-level labels.
Introduction
Training Convolutional Neural Networks (CNNs) for semantic segmentation typically requires dense, pixel-by-pixel annotations, which are incredibly expensive and tedious to create. To mitigate this, researchers utilize "weakly supervised" learning, where networks are trained using only image-level tags (e.g., identifying that an image contains a "dog" and a "car" without specifying their locations).
Because image-level tags do not provide information regarding the location or scale of objects, models often struggle to produce accurate boundaries. Previous state-of-the-art methods attempted to guide networks by enforcing constraints on object sizes through cumbersome alternating optimization steps, such as minimizing KL divergence to a latent distribution. These methods are computationally heavy and difficult to implement. The Convolutional Simplex Projection Network (CSPN) addresses this by asking: Can we enforce these size constraints directly and efficiently as a standard layer inside the neural network?
Methods
The authors propose the Convolutional Simplex Projection Network (CSPN), which introduces a novel, plug-and-play network layer designed to enforce object size constraints mathematically.
The Simplex Projection Layer
This layer takes the output heatmap of a CNN and a target object size (in pixels) and projects the heatmap onto a "simplex" constraint set. Essentially, it adjusts the network's confidence scores so that the total predicted area for a specific class exactly matches the estimated size of that object. Unlike previous optimization-heavy approaches, this projection is solved using a highly efficient, linear-time algorithm, adding virtually no computational overhead.
Integration with SEC
The authors integrated this layer into the well-known SEC (Seed, Expand, Constrain) architecture. SEC traditionally uses a heuristic "Expand" loss to encourage predictions to reach a reasonable size. CSPN replaces this heuristic with a rigorous Projection loss, which strictly limits the space of feasible solutions and leads to faster convergence (often in just 4-5 epochs).
Estimating Object Size
Since true object sizes are unknown in a weakly supervised setting, CSPN estimates them offline. A pre-trained saliency network generates heatmaps, and the number of pixels above a specific threshold is counted to serve as the size constraint. Despite these being rough estimates, the network proves robust to this noise.
Experimental Results
The model was evaluated on the PASCAL VOC 2012 segmentation benchmark, consisting of over 10,000 training images and approximately 1,450 images each for validation and testing.
- Accuracy Boost: CSPN achieved 54.5% mIoU on the validation set and 55.5% mIoU on the test set.
- Baseline Comparison: This represents a +3.8% improvement over the baseline SEC model.
- Constraint Efficiency: CSPN outperformed older constraint-based networks (like CCNN) by a margin of roughly +19% mIoU, demonstrating that treating constraints as differentiable layers is superior to separate optimization problems.
Conclusion and Future Work
CSPN demonstrates that strict mathematical constraints can be effectively implemented as network layers. While the current simplex projection layer focuses on total area rather than shape, it provides a powerful mechanism for weakly supervised tasks. The authors suggest that this approach is versatile and plan to investigate its application in other deep learning domains where output spaces can be narrowed by known mathematical constraints.
Summary updated