[Paper Review] Dynamic Feature Regularized Loss for Weakly Supervised Semantic Segmentation
This paper proposes a Dynamic Feature Regularized (DFR) loss for weakly supervised semantic segmentation using scribble annotations, combining static shallow features (RGB, spatial position) with dynamically updated deep features from a vision transformer backbone and a feature consistency head. The method achieves state-of-the-art performance with a 6.1% mIoU improvement over prior methods, outperforming SOTA by a significant margin in end-to-end training without post-processing or extra datasets.
We focus on tackling weakly supervised semantic segmentation with scribble-level annotation. The regularized loss has been proven to be an effective solution for this task. However, most existing regularized losses only leverage static shallow features (color, spatial information) to compute the regularized kernel, which limits its final performance since such static shallow features fail to describe pair-wise pixel relationship in complicated cases. In this paper, we propose a new regularized loss which utilizes both shallow and deep features that are dynamically updated in order to aggregate sufficient information to represent the relationship of different pixels. Moreover, in order to provide accurate deep features, we adopt vision transformer as the backbone and design a feature consistency head to train the pair-wise feature relationship. Unlike most approaches that adopt multi-stage training strategy with many bells and whistles, our approach can be directly trained in an end-to-end manner, in which the feature consistency head and our regularized loss can benefit from each other. Extensive experiments show that our approach achieves new state-of-the-art performances, outperforming other approaches by a significant margin with more than 6\% mIoU increase.
Motivation & Objective
- Address the limitation of existing regularized losses that rely solely on static shallow features (e.g., color and spatial position), which fail to capture accurate semantic relationships between pixels in complex scenes.
- Overcome the poor generalization of shallow features in ambiguous cases—such as similar-colored, adjacent objects—by integrating dynamic deep features that evolve during training.
- Enable end-to-end training without multi-stage procedures or external datasets by jointly optimizing a semantic segmentation head and a feature consistency head.
- Improve feature discriminability by enforcing feature consistency for pixels of the same class while widening the distance between different classes, using confident predictions as supervision.
- Achieve state-of-the-art performance on PASCAL VOC 2012 with scribble supervision, surpassing prior methods by a large margin without post-processing.
Proposed method
- Propose a new regularized loss function, DFR loss, which computes the kernel using both static shallow features (RGB and spatial position) and dynamic deep features from a feature consistency head.
- Introduce a feature consistency head that minimizes the L2 distance between features of pixels from the same semantic category and maximizes it for different categories, using confident predictions from the segmentation head as supervision.
- Use a vision transformer backbone to extract global, high-level representations that support the learning of discriminative deep features.
- Enable mutual enhancement between the semantic segmentation head and the feature consistency head: accurate segmentation improves feature quality, and better features improve segmentation via the DFR loss.
- Restrict the computation of the DFR loss to a local window to maintain computational efficiency while preserving global context through the vision transformer.
- Train the entire model end-to-end without multi-stage training, post-processing (e.g., dense CRF), or external datasets.
Experimental results
Research questions
- RQ1Can dynamic deep features improve the accuracy of regularized loss in weakly supervised semantic segmentation compared to static shallow features?
- RQ2Does a joint training strategy between a segmentation head and a feature consistency head lead to better feature representation and segmentation performance?
- RQ3Can confident predictions from the segmentation head serve as effective supervision for learning discriminative deep features without ground-truth pixel-level labels?
- RQ4How does the integration of deep features from different stages of a vision transformer backbone affect the final segmentation performance?
- RQ5Can the proposed method achieve state-of-the-art results with a single-stage, end-to-end training pipeline without relying on external datasets or post-processing?
Key findings
- The proposed DFR loss with both shallow and dynamic deep features achieves 81.5% mIoU on PASCAL VOC 2012 validation set, a 6.1% improvement over the previous SOTA method.
- Using deep features alone (without the feature consistency head) improves performance from 80.8% to 81.0%, demonstrating the positive impact of deep features even without explicit consistency supervision.
- The feature consistency head significantly enhances performance: using only ground-truth scribbles as supervision yields only 80.6% mIoU, but using confident predictions (M) from the segmentation head boosts it to 81.5%.
- Combining features from multiple blocks of the vision transformer (Block-1 to Block-4) yields the best performance (81.5%), showing that multi-scale representations are crucial for accurate pixel relationship modeling.
- Using both ground truth and confident predictions together harms performance (81.1% mIoU), indicating that noisy predictions in M can introduce incorrect negative pairs, which degrades training.
- The ablation study confirms that RGB features are essential—removing them drops mIoU from 81.5% to 72.8%, highlighting the importance of color information in the regularized kernel.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.