TL;DR
This paper introduces a novel "Dynamic Feature Regularized Loss" (DFR) for weakly supervised semantic segmentation using scribbles. By combining static shallow features with dynamically updated deep features from a Vision Transformer backbone and a new "feature consistency head," their method achieves state-of-the-art performance without relying on extra datasets or post-processing.
What Problem Does This Paper Address?
Semantic segmentation, the task of assigning a class label to every pixel in an image, typically requires dense pixel-level annotations. However, obtaining such annotations is labor-intensive and costly. Weakly supervised semantic segmentation aims to alleviate this by using less precise supervision signals like scribbles, bounding boxes, or image-level tags. This paper specifically tackles the challenge of scribble-level supervision, where only a few pixels are marked with scribbles. Existing methods often struggle to accurately capture the complex relationships between pixels with limited supervision. Regularized losses, while effective, have historically relied on static shallow features (like color and spatial information) which can fail to distinguish between pixels of different objects that share similar visual characteristics. This limitation hinders the model's ability to learn precise boundaries and segment objects accurately.
Methods
The core innovation is the Dynamic Feature Regularized (DFR) loss. Unlike previous methods that use static features, DFR incorporates both static shallow features (position, RGB) and dynamic deep features. The deep features are derived from a Vision Transformer (ViT) backbone, chosen for its ability to capture global representations.
To ensure these deep features accurately represent pixel relationships, a feature consistency head is introduced. This head takes highly confident predictions from the semantic segmentation head as supervision. It works by:
- Closing feature distance: Encouraging pixels predicted to belong to the same semantic category to have similar deep features.
- Widening feature distance: Encouraging pixels predicted to belong to different semantic categories to have dissimilar deep features.
This creates a synergistic relationship: the feature consistency head provides better deep features for the DFR loss, and the improved semantic predictions from the DFR loss provide more reliable supervision for the feature consistency head. The entire framework is trained end-to-end, avoiding multi-stage training or complex post-processing. A local window is used to restrict the computation of the regularized loss for efficiency.
Datasets
- PASCAL VOC 2012: Used for training and evaluation, with augmented data from SBD.
- PASCAL CONTEXT: Used for training and evaluation.
The paper follows previous approaches in using scribble supervision provided by ScribbleSup.
Key Insights and Ideas
- Dynamic features are crucial for accurate regularization: Static shallow features are insufficient for capturing complex pixel relationships, especially when objects have similar appearances. Dynamically updated deep features from a powerful backbone like ViT are essential for a more robust regularized loss.
- Synergy between segmentation and feature consistency: The proposed feature consistency head and the DFR loss mutually benefit each other. This "virtuous cycle" is key to achieving high performance without external supervision.
- Vision Transformers excel at global context: The adoption of ViT as a backbone is instrumental in capturing richer feature representations, which are then leveraged by the DFR loss.
- End-to-end training simplifies the pipeline: The proposed method avoids complex multi-stage training or post-processing steps like Dense CRF, making it more efficient and easier to implement.
Key Results
The proposed method achieves state-of-the-art performance on both PASCAL VOC 2012 and PASCAL CONTEXT datasets.
- PASCAL VOC 2012 (val): 82.8% mIoU, a significant gain of 6.6% over A2GNN (76.2%) without using Dense CRF post-processing. This is also 9.6% higher than other single-stage methods that rely on extra datasets.
- PASCAL CONTEXT (val): 52.9% mIoU, a 12.7% improvement.
- The method achieves 98.3% of the upper-bound performance for single-scale inference on PASCAL VOC 2012.
- Qualitative results show improved detail preservation and more refined boundaries, even in challenging cases.
- Ablation studies confirm the effectiveness of the dynamic deep feature in the regularized kernel and the importance of both loss functions in the feature consistency head.
Limitations and Future Work
- Limitations: The paper acknowledges that while the method performs well, it still relies on the quality of the confident predictions from the semantic segmentation head for the feature consistency head. The performance can drop if these predictions are noisy. The paper also notes that using both ground truth and confident predictions as supervision for the feature consistency head can be detrimental due to potential noise.
- Future Work: The authors plan to extend their approach to other weakly supervised semantic segmentation tasks. They also suggest exploring how to further improve the feature consistency head's supervision mechanism.
Summary updated