Fine-grained Background Representation for Weakly Supervised Semantic Segmentation

Xu Yin, Woobin Im, Dongbo Min, Yuchi Huo, Fei Pan, Sung-Eui Yoon · DOI

Introduction

Semantic segmentation is a cornerstone of computer vision, yet its reliance on dense, pixel-level annotations presents a significant bottleneck for scaling. Weakly Supervised Semantic Segmentation (WSSS) addresses this by training models using significantly cheaper image-level labels. However, the standard mechanism for generating pseudo-labels in WSSS—Class Activation Maps (CAMs)—suffers from two persistent issues: co-occurrence bias and incomplete activation.

Co-occurrence bias occurs when a model incorrectly attributes background pixels (e.g., water) to a foreground class (e.g., boat) because they frequently appear together. Incomplete activation refers to the tendency of classifiers to focus only on the most discriminative features of an object, such as a bird's head, while ignoring the rest of its body. This paper introduces Fine-grained Background Representation (FBR), a method that mitigates these issues by fundamentally rethinking how models perceive and represent the background.

The Problem: The Monolithic Background Assumption

Most WSSS frameworks treat the "background" as a single, uniform class. In reality, the background is a complex composition of diverse semantic entities, such as sky, grass, roads, and water. By forcing these varied elements into a single representation, models fail to learn the boundaries between specific foreground objects and their specific surroundings. FBR argues that by decomposing the background into fine-grained "primitives," models can better decouple objects from their contexts.

Methodology: Fine-grained Background Representation (FBR)

FBR is a modular framework designed to be integrated into existing WSSS architectures. It introduces three core innovations:

1. Negative Region of Interest (NROI)

Instead of maintaining a single background prototype, FBR employs online K-means clustering to discover $K$ distinct background semantics within the latent space. These discovered "primitives" are stored in a memory bank as Negative Regions of Interest (NROI). This allows the model to distinguish between a "boat" and "water" specifically, rather than just "boat" and "not-boat."

2. Fore-to-Background (FB) Contrast

Using the NROIs, the model performs pixel-to-NROI contrastive learning. This process "pushes" foreground pixels away from specific background clusters in the feature space. By contrasting foreground features against a diverse set of background primitives, the model learns to suppress false positives in the background more effectively than traditional methods.

3. Active Sampling for Intra-Foreground (IF) Contrast

To solve the problem of incomplete activation, the authors implement an active sampling strategy. Using a semantic graph, the model identifies "hard" negatives—classes that are semantically similar to the target object (e.g., a "bus" vs. a "truck"). By forcing the model to contrast the target object against these similar classes, the classifier is incentivized to learn more precise boundaries and activate the entire extent of the object to find distinguishing features.

Experimental Results

The researchers evaluated FBR across several major benchmarks, demonstrating its robustness and versatility.

  • Pascal VOC 2012: The method achieved a state-of-the-art 73.2% mIoU on the test set using only image-level labels. When augmented with saliency maps, performance rose to 74.9% mIoU.
  • MS COCO 2014: On this more challenging dataset featuring 80 categories, FBR reached 45.6% mIoU, outperforming previous benchmarks.
  • Weakly Supervised Instance Segmentation (WSIS): Beyond semantic segmentation, FBR was applied to the BoxInst baseline on the MS COCO 2017 dataset, resulting in a 2.0% AP improvement. This suggests that better background modeling is also critical for identifying individual object instances.

Qualitative analysis confirms these metrics; visual results show significantly cleaner boundaries and a marked reduction in background false positives compared to standard CAM-based approaches.

Discussion and Future Directions

While FBR represents a significant step forward, challenges remain. The model still struggles in scenarios where the background is visually nearly identical to the foreground (e.g., a train with a texture similar to the building behind it) or when objects possess highly intricate contours, such as potted plants.

Looking ahead, the authors suggest that FBR could be synergized with "foundation models" like the Segment Anything Model (SAM). By combining FBR’s strong semantic understanding and background decoupling with SAM’s high-fidelity mask generation, it may be possible to generate near-manual quality pseudo-labels, further closing the gap between weakly supervised and fully supervised segmentation.

Summary updated

BibTeX
@article{yin2024fine,
  author = {Xu Yin and Woobin Im and Dongbo Min and Yuchi Huo and Fei Pan and Sung-Eui Yoon},
  title = {{Fine-grained Background Representation for Weakly Supervised Semantic Segmentation}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  url = {https://openreview.net/forum?id=FJnBM8Vufb},
}
Figure