Dual Progressive Transformations for Weakly Supervised Semantic Segmentation

Dongjian Huo, Yukun Su, Qingyao WuarXiv 2022 · DOI

Introduction

Weakly Supervised Semantic Segmentation (WSSS) is a critical task in computer vision that aims to reduce the reliance on expensive pixel-level annotations. Instead, it utilizes image-level labels to train segmentation models. The core of most WSSS methods is the generation of Class Activation Maps (CAMs), which serve as initial "seed regions" for objects.

The "Goldilocks" Problem in CAMs

Existing methods for generating CAMs often struggle with a fundamental trade-off. Convolutional Neural Networks (CNNs) tend to focus on the most discriminative parts of an object (e.g., a bird's head), leading to under-activation and incomplete masks. Conversely, Vision Transformers (ViTs), which utilize global self-attention, often over-activate, including background elements or adjacent objects in the mask.

Previous attempts to mitigate these issues involved multi-branch CNN architectures. However, because these branches share the same underlying convolutional operations, they often suffer from the same systematic biases. The authors argue that true improvement requires "xeno-operations"—branches that process information in fundamentally different ways.

The CNN Refined Transformer (CRT) Framework

To address these limitations, the authors propose the Convolutional Neural Networks Refined Transformer (CRT). This dual-branch framework pairs a ResNet152 (CNN) with a DeiT-S (Transformer). This architectural diversity allows the branches to provide complementary supervisory signals during training.

The CRT architecture featuring dual CNN and Transformer branches with a specialized merging module.

Key Technical Innovations

  1. Overlapping Cutting-Merging: To overcome the low-resolution output of standard ViTs (typically 14x14), the CRT tiles input images into overlapping sub-graphs. These are processed and then merged to maintain high-resolution spatial detail, allowing for theoretically infinite input resolution.
  2. Residual-like Correction: The model employs a "temporal residual structure" where the Transformer's output is iteratively refined through multiple passes (typically three), allowing it to capture semantic regions missed in the initial inference.
  3. Cross-Branch Supervision: An L1 loss is applied between the CNN and Transformer CAMs. This forces the CNN to expand its focus using the Transformer's global context, while the Transformer is refined by the CNN's local precision.

Experimental Results

The CRT framework was evaluated on the PASCAL VOC 2012 and CUB-200-2011 benchmarks. On PASCAL VOC 2012, the model achieved a state-of-the-art 71.7% mIoU on the test set. Notably, the quality of the initial seed regions improved significantly, jumping from a 40.8% baseline to 51.5% mIoU.

Qualitative comparison of segmentation masks against ground truth across various object categories.

Qualitative analysis demonstrates that CRT produces masks that accurately follow object boundaries, effectively avoiding the "blobs" of pure CNNs and the "background bleed" of pure Transformers. On the CUB-200-2011 dataset, CRT outperformed previous benchmarks like TS-CAM by 1.6% in Top-1 localization accuracy.

Conclusion and Future Work

The CRT framework demonstrates that architectural diversity is a powerful tool for WSSS. By combining the strengths of CNNs and Transformers, the model achieves superior pseudo-label generation. While the "cutting-merging" strategy introduces computational overhead—increasing inference time as image size grows—it provides a clear path toward high-resolution segmentation using Transformers. Future research will likely focus on optimizing the efficiency of these multi-scale tiling strategies.

Summary updated

BibTeX
@misc{huo2022dual,
  author = {Dongjian Huo and Yukun Su and Qingyao Wu},
  title = {{Dual Progressive Transformations for Weakly Supervised Semantic Segmentation}},
  year = {2022},
  eprint = {2209.15211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.15211},
}
Figure