High-Level Feature Guided Decoding for Semantic Segmentation

Ye Huang, Di Kang, Shenghua Gao, Wen Li, Lixin Duan

TL;DR

This paper introduces High-Level Feature Guided Decoding (HFGD), a novel approach to semantic segmentation that uses pre-trained high-level features to guide the training of the decoder. This method effectively addresses the issue of contaminated high-level features in existing upsampler-based methods, leading to state-of-the-art results without requiring extra training data.

What Problem Does This Paper Address?

Semantic segmentation, the task of assigning a class label to every pixel in an image, is fundamental to computer vision. Most modern methods employ a backbone network to extract high-level features and a decoder to recover spatial details for pixel-wise prediction. However, existing upsampler-based decoders, like SemanticFPN, often underperform compared to dilation-based methods. This is attributed to the contamination of high-level features during joint fine-tuning with low-level features on limited datasets. The paper aims to solve this by protecting the integrity of pre-trained high-level features and using them as a reliable guide for the decoder.

Methods

The core of the proposed method is the High-Level Feature Guided Module (HFGM). It treats the pre-trained backbone as a "teacher" and the upsampler branch as a "student." Crucially, stop-gradient operations are employed to prevent gradients from the upsampler from updating the backbone, thus protecting its valuable pre-trained features. The upsampler is then guided to mimic these protected high-level features.

To further enhance the guidance, the authors introduce a Context-Augmented Encoder (CAE) that operates on the low-resolution (OS=32) high-level features. This CAE aims to improve the representation quality without incurring excessive computational cost.

Finally, the paper proposes Ultra SemanticFPN (U-SFPN), a modified version of SemanticFPN. U-SFPN incorporates 3x3 convolutions in its initial layers to better capture spatial information and uses increased channel numbers. It also supports higher output strides (OS=2) for potentially more detailed predictions.

Datasets

The paper evaluates its method on the following datasets:

  • Pascal Context: A dataset for semantic segmentation.
  • COCOStuff164k: A large-scale dataset for semantic segmentation.
  • Cityscapes: A dataset focused on urban street scenes, known for its high-resolution images and accurate annotations.

The authors also mention using ImageNet for pre-training the backbone networks.

Key Insights and Ideas

  • Protecting pre-trained features is crucial: Joint fine-tuning of upsamplers and backbones can degrade the quality of pre-trained high-level features, leading to suboptimal segmentation performance.
  • High-level features as a teacher: Using well-trained high-level features as a "teacher" to guide the upsampler "student" is an effective strategy for improving decoder performance.
  • Stop-gradients are key: Implementing stop-gradient operations is essential to isolate the backbone from the upsampler's gradients, preserving the integrity of the pre-trained features.
  • Context augmentation at low resolution is efficient: Applying context augmentation techniques (like CAE) to low-resolution, high-level features strikes a good balance between effectiveness and computational efficiency.
  • Higher resolution can improve results: Operating at higher output strides (e.g., OS=2) can further boost segmentation accuracy, especially when guided by robust high-level features.

Key Results

  • State-of-the-art performance: The proposed HFGD achieves state-of-the-art results on Pascal Context, COCOStuff164k, and Cityscapes datasets among methods that do not use extra training data.
  • Improved accuracy over SemanticFPN: HFGD consistently outperforms SemanticFPN, with gains of up to 3.62% mIOU on Pascal Context.
  • Competitive with dilation-based methods: HFGD achieves comparable or better accuracy than dilation-based methods while being significantly more efficient (lower GFLOPs). For example, on Pascal Context, HFGD achieved 50.76% mIOU with lower GFLOPs than Self-Attention + CAR [18] (50.50% mIOU).
  • Effectiveness of U-SFPN: The modified U-SFPN upsampler consistently outperforms the original SFPN when used with HFGD, showing improvements of up to 1.14% mIOU on Swin-Large backbone.
  • Visual improvements: Qualitative results show HFGD producing finer details and better class discrimination, particularly for small or distant objects.

Limitations and Future Work

  • Computational cost of dilation: While effective, dilation-based methods can have high computational costs, especially for later layers. The paper's approach offers a more efficient alternative.
  • Generalizability of HFGM: The paper suggests that HFGM is generalizable and can improve various existing upsamplers, indicating potential for future work in integrating HFGM with other architectures.
  • Further exploration of CAE: The CAE module is proposed as a way to enhance high-level features. Further research could explore other advanced context encoding modules for CAE.
  • Higher resolution benefits: The paper demonstrates the benefit of OS=2 on Cityscapes. Exploring even higher resolutions or more efficient ways to leverage them could be a future direction.

Summary updated

BibTeX
@article{huang2024high,
  author = {Ye Huang and Di Kang and Shenghua Gao and Wen Li and Lixin Duan},
  title = {{High-Level Feature Guided Decoding for Semantic Segmentation}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  doi = {10.1109/tcsvt.2024.3393632},
}
Figure