Learning a Discriminative Feature Network for Semantic Segmentation

Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, Nong Sang

Abstract

Semantic segmentation remains a challenging task due to intra-class inconsistency and inter-class indistinction. This paper introduces the Discriminative Feature Network (DFN), which decomposes the task into two sub-problems addressed by specialized sub-networks: a Smooth Network and a Border Network. The Smooth Network utilizes a Channel Attention Block and global context to unify the appearance of objects within the same class. Simultaneously, the Border Network employs semantic boundary supervision to distinguish between similar-looking adjacent categories. Experimental results on PASCAL VOC 2012 and Cityscapes demonstrate that DFN achieves state-of-the-art performance, reaching 86.2% and 80.3% mIoU, respectively.

Introduction

Assigning a category label to every pixel in an image—semantic segmentation—is often hindered by visual ambiguities. Existing Fully Convolutional Networks (FCNs) frequently suffer from two specific issues:

  1. Intra-class Inconsistency: Variations in lighting, texture, or occlusion cause parts of the same object to be classified differently.
  2. Inter-class Indistinction: Different categories with similar visual features (e.g., a black monitor next to a black computer case) are often merged or mislabeled at their boundaries.

While many approaches attempt to solve these by increasing the receptive field through dilated convolutions, they often fail to explicitly model class relationships or boundary precision.

Methodology: The Discriminative Feature Network

The DFN architecture consists of two primary components designed to handle the macroscopic and microscopic aspects of segmentation.

The Smooth Network

The Smooth Network is designed to address intra-class inconsistency. It adopts a U-shaped structure based on a ResNet-101 backbone to integrate high-level semantic information with low-level spatial details.

  • Global Context: By incorporating Global Average Pooling, the network gains a holistic understanding of the image, ensuring local patches are classified in accordance with the overall object category.
  • Channel Attention Block (CAB): To refine feature fusion, the CAB uses high-level features to guide the selection of low-level features. This mechanism suppresses noise in the shallow layers and emphasizes discriminative signals relevant to the target class.

The Border Network

The Border Network targets inter-class indistinction by focusing on object boundaries.

  • Semantic Boundary Supervision: The network is explicitly trained to predict boundaries using a bottom-up approach. Ground truth boundaries are generated via Canny edge detection on the semantic labels.
  • Focal Loss: To handle the class imbalance inherent in boundary detection (where boundary pixels are sparse), the authors utilize Focal Loss, preventing the background from dominating the learning process.

Both sub-networks utilize Refinement Residual Blocks (RRB) to maintain channel consistency and enhance feature representation across different stages.

Experimental Results

The DFN was evaluated on the PASCAL VOC 2012 and Cityscapes benchmarks.

Qualitative comparison showing the original image (left), the intra-class inconsistency in a baseline FCN (middle), and the improved consistency of the DFN (right).

On PASCAL VOC 2012, the model achieved a mean IoU (mIoU) of 86.2%. Ablation studies highlighted the impact of the sub-networks: the Smooth Network alone improved the baseline from 72.86% to 79.54% mIoU. On Cityscapes, the DFN reached 80.3% mIoU, demonstrating robust performance on high-resolution urban scenes.

Conclusion

The Discriminative Feature Network effectively addresses the core challenges of semantic segmentation by separating the tasks of internal consistency and boundary distinction. By leveraging global context and explicit boundary supervision, the DFN provides a powerful framework for high-precision dense prediction.

Summary updated

BibTeX
@inproceedings{yu2018learning,
  author = {Changqian Yu and Jingbo Wang and Chao Peng and Changxin Gao and Gang Yu and Nong Sang},
  title = {{Learning a Discriminative Feature Network for Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00199},
}
Figure