Not All Areas Are Equal: Transfer Learning for Semantic Segmentation via Hierarchical Region Selection.

Ruoqi Sun, Xinge Zhu, Chongruo Wu, Chen Huang, Jianping Shi, Lizhuang MaCVPR 2019 · DOI

TL;DR

This paper tackles the challenge of adapting semantic segmentation models trained on synthetic data to real-world images. They propose a novel hierarchical weighting network that selectively learns from similar regions in synthetic data, significantly improving performance on limited real-world datasets.

What Problem Does This Paper Address?

Training deep neural networks for semantic segmentation requires massive amounts of meticulously labeled data, which is expensive and time-consuming to acquire. Synthetic data, generated using computer graphics, offers a cost-effective alternative with automatic pixel-wise annotations. However, models trained solely on synthetic data often perform poorly on real-world images due to the "domain gap" – differences in textures, lighting, and other visual characteristics. This paper aims to bridge this gap by effectively leveraging both abundant synthetic data and limited real-world data for improved semantic segmentation.

Methods

The core of the proposed method is a hierarchical transfer learning framework that uses weighting networks to adapt synthetic data to the target domain. Instead of treating entire images or relying on simple pixel-wise similarity, the authors propose learning weights at three granularities:

  • Pixel-level: Scores similarity at the individual pixel level.
  • Region-level: Considers similarity within local image regions.
  • Image-level: Assesses overall image similarity.

These hierarchical weighting networks (Wp, Wr, Wi) are trained end-to-end with the segmentation network. They learn to assign higher weights to synthetic image regions that are more similar to their real-world counterparts. To further enhance domain adaptation, the authors also incorporate a Generative Adversarial Network (GAN), which helps to align the feature distributions of the source and target domains. The segmentation loss for synthetic data is a weighted cross-entropy loss, where the weights are determined by the hierarchical weighting maps.

Datasets

The paper utilizes the following datasets:

  • Synthetic Datasets (Source Domain):
    • GTAV: Rendered from the gaming engine GTAV, with compatible semantic categories to CITYSCAPES.
  • SYNTHIA: Contains video sequences from a virtual city, also with CITYSCAPES-compatible annotations.
  • Real-World Dataset (Target Domain):
    • CITYSCAPES: A real-world urban scene dataset with 2,975 training images and 500 validation images, featuring 19 semantic categories.

The experiments are conducted using combinations of these datasets, primarily focusing on transferring knowledge from synthetic sources to the CITYSCAPES target domain.

Key Insights and Ideas

  • Domain knowledge is hierarchical: The paper's central idea is that similarity between synthetic and real-world data isn't uniform. It exists at different levels (pixel, region, image), and exploiting this hierarchy is key to effective transfer.
  • Selective learning is crucial: Directly training on synthetic data often harms performance due to the domain gap. Selectively learning from similar synthetic regions, rather than all of them, is a more effective strategy.
  • Weighting maps as a bridge: The hierarchical weighting maps act as a learned mechanism to quantify and leverage this similarity, guiding the model to focus on more relevant synthetic data.
  • GANs complement weighting: While weighting networks are the primary innovation, the inclusion of a GAN further aids in aligning feature distributions, demonstrating a synergistic effect.
  • Robustness to limited data: The method shows remarkable performance even when a significantly reduced amount of real-world data is available, highlighting its practical utility.

Key Results

The proposed method consistently outperforms existing baselines across various experimental settings.

  • GTAV + CITYSCAPES → CITYSCAPES: Achieved a mean IoU (mIoU) of 68.1%, significantly outperforming baselines like FCN+GAN (which achieved 64.8%) and PixelDA (66.1%). The authors' method with shared weighting maps (W¹) achieved 67.6%, and with multi-channel weighting maps (W¹⁹) achieved 68.1%.
  • SYNTHIA + CITYSCAPES → CITYSCAPES: Similar improvements were observed, with the proposed method achieving 68.8% mIoU compared to FCN (65.3%) and FCN+GAN (64.9%). The multi-channel weighting map (W¹⁹) again showed a slight advantage over the shared map (W¹).
  • Extremely Limited Data: When using only 1/2 of the real-world CITYSCAPES training data, the proposed model achieved comparable performance to FCN+GAN trained on the full dataset and was only 4% worse than the full model, demonstrating its effectiveness in low-data regimes.
  • Ablation Studies: Hierarchical weighting consistently outperformed single-level (pixel-level only) weighting, indicating the benefit of considering region and image-level similarities.

Limitations and Future Work

  • Computational Cost: While the method is end-to-end, the inclusion of GANs and multiple weighting networks adds to the computational complexity.
  • Domain Gap Magnitude: The paper acknowledges that extremely large domain gaps might still pose challenges, although their method shows significant improvements.
  • Future Work: The authors suggest exploring the use of multiple synthetic datasets to further enhance robustness and flexibility. They also imply that the hierarchical weighting mechanism could be extended to other transfer learning tasks beyond semantic segmentation.

Summary updated

BibTeX
@inproceedings{sun2019not,
  author = {Ruoqi Sun and Xinge Zhu and Chongruo Wu and Chen Huang and Jianping Shi and Lizhuang Ma},
  title = {{Not All Areas Are Equal: Transfer Learning for Semantic Segmentation via Hierarchical Region Selection.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00449},
}
Figure