Causal Intervention for Weakly-Supervised Semantic Segmentation

Dong Zhang, Hanwang Zhang, Jinhui Tang, Xian-Sheng Hua, Qianru Sun

TL;DR

Researchers have developed a new framework called Context Adjustment (CONTA) that uses causal inference to fix a major flaw in weakly-supervised semantic segmentation. By treating co-occurring background objects as "confounders" and applying the "backdoor adjustment" formula, CONTA generates significantly more accurate pixel-level masks from simple image-level labels, setting new state-of-the-art benchmarks.

What Problem Does This Paper Address?

Semantic segmentation—the task of assigning a category (like "car" or "tree") to every single pixel in an image—is incredibly useful for self-driving cars and medical imaging. However, training these models usually requires "pixel-perfect" labels, which are notoriously expensive to produce (taking about 1.5 hours per image).

Weakly-Supervised Semantic Segmentation (WSSS) tries to solve this by training models using only image-level tags (e.g., "this image contains a horse"). The standard pipeline uses Class Activation Maps (CAMs) to identify which pixels triggered the "horse" label.

Visual comparison of standard CAMs versus the proposed pseudo-masks.

The problem? Confounding context. If horses almost always appear with people riding them, a standard model can't distinguish the horse's boundary from the person's. It learns a correlation rather than causation. This leads to three main issues:

  1. Object Ambiguity: Blurring boundaries between co-occurring objects (e.g., a horse and its rider).
  2. Incomplete Background: Mistaking parts of the floor for a "sofa" because they always appear together.
  3. Incomplete Foreground: Only identifying the most "discriminative" part of an object (like a car's wheels) while ignoring the rest (like the windows).

Methods

The authors propose a Structural Causal Model (SCM) to represent the relationships between image pixels ($X$), labels ($Y$), and the hidden context ($C$). They identify that context acts as a "confounder" that creates spurious correlations.

Structural Causal Model showing the confounding effect of context and the proposed backdoor adjustment.

To fix this, they use a causal technique called Backdoor Adjustment (represented by the $do$-operation: $P(Y|do(X))$). Instead of asking "What label is likely given these pixels?", the model asks "What is the causal effect of these pixels on the label, regardless of the surrounding context?"

The resulting method, CONTA, is an iterative EM-like (Expectation-Maximization) algorithm:

  1. Step 1: Train a classifier that incorporates context.
  2. Step 2: Generate "pseudo-masks" (rough pixel labels) using CAMs.
  3. Step 3: Train a segmentation model using these pseudo-masks.
  4. Step 4: Use the segmentation model to refine the "context" (the average mask for each class) and feed it back into Step 1 for the next round.

Key Insights and Ideas

  • Correlation $\neq$ Causation in Pixels: The "aha moment" is realizing that WSSS fails because models are too good at finding shortcuts. If a "sofa" is always on a "wooden floor," the model sees the floor as part of the sofa. Causal intervention forces the model to "imagine" the sofa in different contexts, breaking that link.
  • The "Virtual" Intervention: Since we can't physically go out and photograph every object in every possible setting, CONTA uses the "backdoor adjustment" to mathematically simulate this variety using the existing dataset.
  • Iterative Refinement: By treating the unobserved context as a missing variable in an EM framework, the model gradually "cleans" its own ground truth. Each round of training produces better masks, which in turn provide better context for the next round.

Key Results

The authors evaluated CONTA on two major computer vision benchmarks: PASCAL VOC 2012 (21 classes) and MS-COCO (81 classes). CONTA consistently boosted the performance of existing WSSS methods (like SEAM, IRNet, and DSRG) to new heights:

  • PASCAL VOC 2012: Reached 66.1% mIoU (mean Intersection over Union) on the validation set and 66.7% on the test set, surpassing previous state-of-the-art models by about 1-2%.
  • MS-COCO: Achieved 33.4% mIoU, a significant step forward for this complex dataset.
  • Qualitative Improvement: Visual results show that CONTA is much better at separating distinct objects and capturing the full extent of an object rather than just a small "hotspot."

Limitations and Future Work

  • Computational Cost: Because CONTA is an iterative process (the authors found 3 rounds to be optimal), it requires more training time than single-pass methods.
  • Initial Seed Quality: While CONTA improves masks, it still relies on an initial classification model to get started. If the initial model is extremely poor, the "context" it extracts might be too noisy to recover.
  • Future Directions: The authors suggest exploring more advanced "confounder set discovery" methods and incorporating expert knowledge (like known object relationships) directly into the causal graph.

Summary updated

BibTeX
@inproceedings{zhang2020causal,
  author = {Dong Zhang and Hanwang Zhang and Jinhui Tang and Xian-Sheng Hua and Qianru Sun},
  title = {{Causal Intervention for Weakly-Supervised Semantic Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Ba91N38nnGv},
}
Figure