Expansion and Shrinkage of Localization for Weakly-Supervised Semantic Segmentation

Jinlong Li, Zequn Jie, Xu Wang, Xiaolin Wei, Lin Ma

TL;DR

The Expansion and Shrinkage of Localization (ESOL) framework tackles the "incomplete mask" problem in weakly-supervised semantic segmentation. By using a two-stage process powered by deformable convolutions—first expanding to find all object parts via inverse supervision, then shrinking to prune background noise—it generates high-quality pseudo-labels that significantly outperform previous state-of-the-art methods on standard benchmarks.

What Problem Does This Paper Address?

Training a semantic segmentation model usually requires expensive, pixel-perfect "ground truth" masks. Weakly-Supervised Semantic Segmentation (WSSS) tries to bypass this by training models using only cheap image-level labels (e.g., "this image contains a cat").

The standard tool for this is the Class Activation Map (CAM). However, CAMs have a "laziness" problem: a classifier only needs to see the most discriminative part of an object (like a bird’s beak or a cat’s ears) to identify it. Consequently, the resulting masks are often incomplete, missing the rest of the object's body and including bits of the background.

Comparison of ESOL with standard CAM and other expansion methods

While previous methods attempted to solve this by expanding the activated regions, they often inadvertently captured too much background. ESOL aims to bridge this gap by forcing the network to "see" the whole object and then systematically refine its boundaries to exclude false positives.

Methods

The authors propose a two-stage training pipeline called ESOL, which leverages the offset learning capabilities of deformable convolutions:

The ESOL architecture detailing the Expansion and Shrinkage stages
  1. Expansion Stage: The goal here is to maximize recall. The authors introduce a "deformable convolution" layer where the offsets are learnable. While the backbone network is frozen, they train this "expansion sampler" using an inverse supervision signal (maximizing the classification loss). This forces the sampler to look away from the "easy" discriminative parts and find other, less obvious parts of the object that the classifier was previously ignoring.
  2. Feature Clipping: To prevent the model from simply returning to the original high-activation "hotspots" during the next stage, the authors apply a clipping strategy. This flattens the activation peaks, giving all parts of the newly detected object a "fair chance" to be processed.
  3. Shrinkage Stage: The goal here is to maximize precision. A second deformable convolution layer (the "shrinkage sampler") is added. This stage uses standard classification loss combined with an area loss to narrow down the high-recall region, effectively pruning away the false-positive background pixels that were accidentally caught during the expansion phase.

Key Insights and Ideas

  • Adversarial Expansion: Instead of just trying to find more features, ESOL uses loss maximization to actively hunt for what the classifier missed. It treats the search for object parts as an optimization problem where the "reward" is finding features the model didn't know it needed.
  • Deformable Samplers as "Crawlers": By using the offsets in deformable convolutions as the primary mechanism for expansion and shrinkage, the model can "crawl" across the image to find boundaries in a way that standard fixed-grid convolutions cannot.
  • The Importance of Leveling the Playing Field: The "Feature Clipping" step is a subtle but vital insight. Without it, the "shrinkage" stage would naturally gravitate back to the most discriminative pixels, undoing the work of the expansion stage.

Datasets and Key Results

The researchers evaluated their method on two primary computer vision benchmarks: PASCAL VOC 2012 (20 foreground categories) and MS COCO 2014 (80 foreground categories).

ESOL achieved impressive results, setting new benchmarks for WSSS using only image-level labels:

  • PASCAL VOC 2012: Achieved 69.9% mIoU on the validation set and 69.3% on the test set, outperforming recent competitors like CONTA and IRN.
  • MS COCO 2014: Reached 42.6% mIoU, a significant jump over the baseline IRN (41.4%).
  • Efficiency: ESOL is remarkably efficient. It generates pseudo-labels for PASCAL VOC in just 10 hours on a single GPU, compared to 106 hours for AdvCAM and 27 hours for RIB.
  • Qualitative Improvement: Visualizations show that ESOL successfully captures thin structures (like chair legs or bird legs) that traditional CAM methods almost entirely ignore, while successfully pruning background noise.

Limitations and Future Work

While ESOL significantly improves the quality of initial "seed" masks, it still relies on an external refinement step (like IRN) to produce the final high-resolution pseudo-labels used for training.

The authors also note that while WSSS reduces human labor, the performance still lags behind fully-supervised models. Future work could involve integrating ESOL into an end-to-end training framework or exploring how to better utilize saliency maps to further sharpen object boundaries without human intervention.

Summary updated

BibTeX
@inproceedings{li2022expansion,
  author = {Jinlong Li and Zequn Jie and Xu Wang and Xiaolin Wei and Lin Ma},
  title = {{Expansion and Shrinkage of Localization for Weakly-Supervised Semantic Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=4YyG8RlWG1},
}
Figure