Weakly Supervised Semantic Segmentation for Driving Scenes

Dongseob Kim, Seungho Lee, Junsuk Choe, Hyunjung Shim

Introduction

Semantic segmentation is a cornerstone of autonomous driving, providing the pixel-level understanding necessary for safe navigation. However, the traditional supervised learning paradigm requires exhaustive pixel-level annotations—a process that can take upwards of 1.5 hours per image for datasets like Cityscapes. Weakly Supervised Semantic Segmentation (WSSS) offers a cost-effective alternative by training models using only image-level tags.

Despite its promise, standard WSSS techniques, primarily those based on Class Activation Maps (CAM), struggle significantly when applied to driving scenes. This paper investigates the root causes of this failure and proposes a robust framework leveraging CLIP to overcome these challenges.

The Challenges of Driving Scenes

The authors identify three primary statistical hurdles that distinguish driving datasets from general-purpose benchmarks like PASCAL VOC or MS COCO:

  1. High Class Co-occurrence: In urban environments, certain classes almost always appear together (e.g., "road" and "car"). This makes it difficult for classifiers to disentangle which pixels belong to which label.
  2. Lack of Negative Samples: Some classes are ubiquitous in driving footage, appearing in nearly every frame. Without "negative" examples (images where the class is absent), models struggle to learn precise boundaries.
  3. Scale Variance: Driving scenes feature extreme scale diversity, from large foreground elements like the road surface to minute, distant objects like traffic lights.
Statistical analysis of driving datasets (Cityscapes, CamVid) vs. general datasets (VOC, COCO) showing class distribution, co-occurrence, and sample imbalance.

Proposed Methodology

To address these issues, the framework moves away from CAM-based initialization, instead using CLIP (Contrastive Language-Image Pre-training) to generate initial "pseudo-masks." Two novel strategies are introduced to refine these masks:

Global-Local View Training

CLIP’s object recognition capabilities are sensitive to input scale. While a "global view" of an image effectively identifies large-scale features like roads and buildings, it often overlooks smaller objects. By extracting and resizing random patches (Local Views), the model is forced to attend to fine-grained details, significantly improving the detection of small-scale objects like pedestrians and traffic signs.

Consistency-Aware Region Balancing (CARB)

Pseudo-labels generated by CLIP are inherently noisy. The Consistency-Aware Region Balancing (CARB) module manages this noise by partitioning the image into "consistent" regions (where model predictions match pseudo-labels) and "inconsistent" regions (where they disagree).

Rather than discarding inconsistent regions—which often contain critical information for distinguishing similar classes like "bus" vs. "car"—CARB employs an adaptive weighting mechanism. By monitoring loss queues for both regions, it dynamically down-weights the loss from inconsistent areas, preventing noisy labels from dominating the training process while still extracting valuable signals from difficult cases.

Experimental Results

The method was evaluated on major benchmarks including Cityscapes, CamVid, and WildDash2.

  • State-of-the-Art Performance: On the Cityscapes test set, the proposed framework achieved 51.8% mIoU, a substantial improvement over previous WSSS leaders like CLIP-ES (35.0%).
  • Ablation Study: The inclusion of Global-Local training and CARB provided a combined 12.0% mIoU boost over the baseline CLIP-masking approach.
  • Qualitative Success: Visual inspections reveal a marked reduction in "bleeding" errors, where dominant classes like "road" incorrectly overlap with "sidewalks" or "sky."

Conclusion

By addressing the unique contextual biases and scale variances of driving scenes, this work significantly narrows the gap between weakly supervised and fully supervised semantic segmentation. While a performance gap remains compared to fully supervised models (~75.8% mIoU), the 51.8% mIoU achieved represents a major milestone for cost-effective model training in autonomous driving. Future research may look toward incorporating temporal consistency from video data to further enhance robustness.

Summary updated

BibTeX
@inproceedings{kim2024weakly,
  author = {Dongseob Kim and Seungho Lee and Junsuk Choe and Hyunjung Shim},
  title = {{Weakly Supervised Semantic Segmentation for Driving Scenes}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.28053},
}
Figure